Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm init directus-project - Postgresql install error #8708

Closed
3 tasks done
TargaTeam opened this issue Oct 12, 2021 · 3 comments
Closed
3 tasks done

npm init directus-project - Postgresql install error #8708

TargaTeam opened this issue Oct 12, 2021 · 3 comments

Comments

@TargaTeam
Copy link

Preflight Checklist

Describe the Bug

npm init directus-project myproject

installs, then asks database type;

postgresql

then asks server, port, database user etc...

this results in an error:

Something went wrong while seeding the database:

[42P07] create table "directus_collections" ("collection" varchar(64), "icon" varchar(30), "note" text, "display_template" varchar(255), "hidden" boolean not null default '0', "singleton" boolean not null default '0', "translations" json, "archive_field" varchar(64), "archive_app_filter" boolean not null default '1', "archive_value" varchar(255), "unarchive_value" varchar(255), "sort_field" varchar(64)) - relation "directus_collections" already exists

The database is empty and just created before installation.

A week or two ago i've done exactly the same and it worked fine. As plenty of times before.

To Reproduce

npm init directus-project myproject

What version of Directus are you using?

latest (?)

What version of Node.js are you using?

v10.19.0

What database are you using?

postgres 12

What browser are you using?


What operating system are you using?

ubuntu

How are you deploying Directus?

ubuntu server, locally

@azrikahar
Copy link
Contributor

Hmm that's odd. Unfortunately can't seem to reproduce this on my end.

Would you mind upgrading to Node.js v.12.20 and try again? Since that is the minimum Node version currently supported by Directus.

If the project directory is created and there's a package.json file, can you share the content of the dependencies field?

Can you also verify the database is empty right before you press Enter for the final prompt in the CLI? just so we can be sure we're targeting the correct empty database.

@TargaTeam
Copy link
Author

TargaTeam commented Oct 12, 2021 via email

@azrikahar
Copy link
Contributor

No worries, glad it's resolved!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
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

2 participants