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

Error deploying to EC2 on AWS #503

Open
WolaApplication opened this issue Dec 14, 2021 · 2 comments
Open

Error deploying to EC2 on AWS #503

WolaApplication opened this issue Dec 14, 2021 · 2 comments

Comments

@WolaApplication
Copy link

Hi everybody,

I am trying to deploy it on an EC2 instance and after installing all dependencies I am not able to start it.

The error is: Please install sqlite3 package manually

Sqlite3 is installed and available on the instance.

Running a node run-script db-update raise the following error in the same way:

`Sequelize [Node: 14.18.2, CLI: 2.5.1, ORM: 3.19.2, sqlite3: 4.2.0]

fs.js:40
} = primordials;
^

ReferenceError: primordials is not defined
at fs.js:40:5
at req_ (/home/ec2-user/timeoff-management-application/node_modules/natives/index.js:143:24)
at Object.req [as require] (/home/ec2-user/timeoff-management-application/node_modules/natives/index.js:55:10)
at Object. (/home/ec2-user/timeoff-management-application/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] db-update: node node_modules/.bin/sequelize db:migrate --config=config/db.json --models-path=lib/model/db/
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] db-update script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.`

Thanks in advance!

@blacklevel
Copy link

@WolaApplication were you ever able to fix this? I have the same error with db-update on Ubuntu 18.04.

@blacklevel
Copy link

FYI - I managed to fix the primodialserror by downgrading graceful-fs according to these instructions:

https://ourcodeworld.com/articles/read/1188/how-to-solve-gulp-exception-reference-error-primordials-is-not-defined-error#disqus_thread

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

2 participants