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

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

Open
kuhlenbrecht opened this issue Nov 28, 2021 · 3 comments
Open

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

kuhlenbrecht opened this issue Nov 28, 2021 · 3 comments

Comments

@kuhlenbrecht
Copy link

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.

@patrickvenetz
Copy link
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.

@antoinet
Copy link

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

@patrickvenetz
Copy link
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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants