Skip to content
This repository was archived by the owner on Apr 6, 2022. It is now read-only.
This repository was archived by the owner on Apr 6, 2022. It is now read-only.

yarn migrate:db:import fails with exit code 1 #688

Open

Description

@kuhlenbrecht

Bug Report

Hi, I just wanted to play with Publikator on my local machine. I tried to install the backend, but unfortunately an error occurred. I followed the instructions in the readme and at yarn dev:setup (or yarn migrate:db:import) the following error occurred:

Invalid URL: undefined
error Command failed with exit code 1.

Steps to Reproduce

Do steps 1 to 4 from the readme on a local Linux computer.

Actual Results

It looks like the script packages/migrations/script/db/import.js cannot find a database.

You can find the full output of yarn dev:setup here: https://pastebin.com/eMd2uHtW

Expected Results

yarn dev:setup should run through.

Environment

  • Node/yarn version: Node v14.18.1/yarn 1.22.17
  • OS: Arch Linux, Kernel 5.15.5

I generally haven't reported that many bugs yet. Sorry if this report was not so understandable.

Activity

  1. pae-blue commented on Jan 31, 2022

    @pae-blue
    Contributor

    @kuhlenbrecht Please excuse the very late response. It slipped my notifications.

    Report is excellent, thank you. I can confirm, this is a bug, indeed.

    packages/migrations/script/db/import.js requires either a URL provided as an argument or falls back to environment variable DATABASE_SAMPLE_DATA_URL.

    We're in the process of moving to a mono-repo – just gosh darn simpler to run and develop – and will address it there.

  2. antoinet commented on Jan 31, 2022

    @antoinet

    I'm also stuck on this one. @kuhlenbrecht I managed to disable the db import by removing the corresponding yarn migrate:db:import command from package.json

  3. pae-blue commented on Feb 1, 2022

    @pae-blue
    Contributor

    @antoinet Thanks. We're about to release https://github.com/republik/plattform and I'll make sure yarn dev:setup will run smoothly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions