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

Cannot read properties of null (reading 'account_count') #404

Open
Tobjoern opened this issue Oct 24, 2022 · 1 comment
Open

Cannot read properties of null (reading 'account_count') #404

Tobjoern opened this issue Oct 24, 2022 · 1 comment

Comments

@Tobjoern
Copy link

Hello,
I followed the steps in the docker setup (Docker.README.md) exactly, but when I try to log-in, I get the error

"0|user.server | TypeError: Cannot read properties of null (reading 'account_count')
0|user.server | at default (file:///usr/socioboard/app/socioboard-api/User/middleware/authentication.middleware.js:31:71)"

When I start the compose file for the first time, I get the following log:

Running first time setup
Initializing MySQL Database
npm WARN exec The following package was not found and will be installed: sequelize-cli@6.5.1
sh: sequelize: Permission denied
Setup complete
Starting API

I suspect it has something to do with am error in the db initialization. Can anyone help me with that?

@mahavirvataliya
Copy link

There are multiple issue that seen that I have tried to fixed.
The above issue is due to seed is not being executed due to sequelize cli sh: sequelize: Permission denied,

From logs i identified that Plans are not being seeded in table due to created and updated timestamps are not null and required some values,

some of the other issues i had faced is

  1. Sequelize cli permission denined
  2. Log directory case sensitive issue in some of the file its Log and directory is cloned as log
  3. sed command not working in macos in docker compose build so mongo credentials are not working
  4. Plan Seeder has issue with no default value of database
  5. Check Laravel APP_KEY is correct else it not work.

Some of the fixes I have done in this commit.

mahavirvataliya@64d5b51#diff-a6048920288624178b3358f8569e58ac1007dda3ccdbf4ecdb0376fb161f0879

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