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

Testing database connection fails strapi new script #1945

Closed
crtl opened this issue Sep 13, 2018 · 1 comment
Closed

Testing database connection fails strapi new script #1945

crtl opened this issue Sep 13, 2018 · 1 comment

Comments

@crtl
Copy link

crtl commented Sep 13, 2018

Informations

vagrant@strapi:/var/www$ strapi new strapi-app
🚀 Start creating your Strapi application. It might take a minute, please take a coffee ☕️

Lets configurate the connection to your database:
? Choose your main database: Postgres
? Database name: (strapi-app)

vagrant@strapi:/var/www$ strapi new strapi-app
🚀 Start creating your Strapi application. It might take a minute, please take a coffee ☕️

Lets configurate the connection to your database:
? Choose your main database: MySQL
? Database name: strapi_app
? Host: localhost
? Port: 3306
? Username: root
? Password: ****

⏳ Testing database connection...
{ Error: Command failed: npm install --production --ignore-scripts
npm WARN deprecated postcss-cssnext@2.11.0: 'postcss-cssnext' has been deprecated in favor of 'postcss-preset-env'. Read more at https://moox.io/blog/deprecating-cssnext/
npm WARN deprecated bfj-node4@5.3.1: Switch to the `bfj` package for fixes and new features!
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN rollback Rolling back concat-map@0.0.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/var/www/strapi-app/admin/node_modules/concat-map/package.json.725371697'
npm WARN rollback Rolling back brace-expansion@1.1.11 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/var/www/strapi-app/admin/node_modules/brace-expansion/package.json.3709003424'
npm WARN rollback Rolling back balanced-match@1.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink '/var/www/strapi-app/admin/node_modules/balanced-match/package.json.3008887935'
npm WARN rollback Rolling back fs.realpath@1.0.0 failed (t
  • Node.js version: 8.9.4|10.10.0
  • npm version: 6.4.1
  • Strapi version: 3.0.0-alpha.14.1
  • Database: MySQL
  • Operating system: Ubuntu 17.10

What is the current behavior?
Cannot create a new app

Steps to reproduce the problem

  1. strapi new app-name
  2. Select MySQL as Database
  3. Wait

What is the expected behavior?
Strapi should successfully establish a connection to the running database server.

@crtl crtl changed the title Cannot create strapi app Testing database connection failes strapi new script Sep 13, 2018
@crtl crtl changed the title Testing database connection failes strapi new script Testing database connection fails strapi new script Sep 13, 2018
@crtl
Copy link
Author

crtl commented Sep 13, 2018

Because I was running node on vagrant in a shared folder I had to use another directory (this is an node issue).
After moving to another directory which is not shared the installation worked better.

@crtl crtl closed this as completed Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant