atrocore / atropim

AtroPIM is a modern, flexible, configurable, open-source product information management system (PIM) of a new generation.
https://atropim.com
GNU General Public License v3.0
149 stars 29 forks source link

I am getting Error 500: System is updating now! Please try later #90

Closed rakibulinux closed 3 years ago

rakibulinux commented 3 years ago

Can you please tell me how to fix it? My atropim was working but after the composer update, it's showing like that.

Screenshot from 2021-03-12 15-55-27

This is my composer file: Screenshot from 2021-03-12 15-57-26

rratsun commented 3 years ago

After updating the system will be available again. How long you are waiting?

rakibulinux commented 3 years ago

More than one hour

rratsun commented 3 years ago

Do you have such file data/treo-composer.log? Please, delete if such file is exist.

rratsun commented 3 years ago

How did you update the system? By ModuleManager? Do you have custom modules?

rakibulinux commented 3 years ago

I update the system via composer update and then change the permission. I don't have custom modules.

rakibulinux commented 3 years ago

data/treo-composer.log

I have deleted it now

rratsun commented 3 years ago

Is it OK now?

rakibulinux commented 3 years ago

After delete data/treo-composer.log Error 500: System is updating now! Please try later gone. But it's show The composer daemon is not running! Probably the daemon is reloading now and you should wait a minute or the crontab is not configured. Instructions on how to configure the crontab you can find here.

Screenshot from 2021-03-12 16-30-44

But you can see I have crontab -e -u www-data

Screenshot from 2021-03-12 16-30-26

rratsun commented 3 years ago

I suppose when you upgrade the system not all migrations were executed. What was your version of core before upgrading?

rakibulinux commented 3 years ago

image

rratsun commented 3 years ago

Did you get any errors while upgrading the system? You may try to run migrations manually php index.php migrate Treo 1.0.68 1.1.34. But don't forget to change file permissions after.

rakibulinux commented 3 years ago

Thanks @rratsun It's Fixed. Now it's looking good.

rratsun commented 3 years ago

I recommend you to reinstall all modules. I suppose that the modules migrations didn't execute to.

rakibulinux commented 3 years ago

Hello @rratsun How are you? I am getting Bad server response from pim.vendir.info/# can you please tell me how I can fix it? Screenshot from 2021-03-15 12-59-01

rratsun commented 3 years ago

Hello. To find out the reason you should send me the latest logs. data/logs/

rakibulinux commented 3 years ago

Please today logs: log-2021-03-15.log

rratsun commented 3 years ago

I see 2 problems.

  1. You didn't give permissions for files. Please repeat points 3 and 4 from https://github.com/atrocore/atrocore-docs/blob/master/en/administration/installation.md#3-change-recursively-the-user-and-group-ownership-for-project-files
  2. Please reinstall all modules. I already asked you to do it here https://github.com/atrocore/atropim/issues/90#issuecomment-797425099
rakibulinux commented 3 years ago

How I can reinstall all modules?

rratsun commented 3 years ago

Remove from composer.json file

"atrocore/pim": "*",
"atrocore/dam": "*",
"atrocore/ldap": "*",
"atrocore/export-feeds": "*",
"atrocore/import-feeds": "*"

then run php composer.phar update

then add modules to composer.json file again then run php composer.phar update

just in case run php index.php clear cache

after change file permissions

rakibulinux commented 3 years ago

Bad Server error not showing now. But still getting: [2021-03-15 13:47:01] Log.ERROR: CronManager (ScheduledJob [604b1e2b45874c25d]): Unsupported CRON expression [75 1 *] [] []

Screenshot from 2021-03-15 19-49-46

rratsun commented 3 years ago

Please, go to /#ScheduledJob fix the problem. You have configured the Cron expression incorrectly.

rratsun commented 3 years ago

https://crontab.guru/

rakibulinux commented 3 years ago

Getting new error: Error 500: FileStorageManager: Unknown storage 'DAMUploadDir' Screenshot from 2021-03-15 21-11-45

rratsun commented 3 years ago

You should manually execute migration for Dam. Please, run this command php index.php migrate Dam 1.1.3 1.2.0. Don't forget to change file permissions after.

All these problems happened because upgrade is failed. Not all migration executed and that's why we have what we have. Future upgrades wouldn't have such problems.

rakibulinux commented 3 years ago

Fixed Error 500 DAMUploadDir

69zainka69 commented 1 year ago

Hello i have problem with console? when i do "php composer.phar update" i see "PHP Warning: Module 'pdo_sqlsrv' already loaded in Unknown on line 0 PHP Fatal error: Uncaught PharException: phar "/var/www/atrocore/composer.phar" has a broken signature in /var/www/atrocore/composer.phar:13 Stack trace:

0 /var/www/atrocore/composer.phar(13): Phar::mapPhar()

1 {main}

thrown in /var/www/atrocore/composer.phar on line 13"

And i do update with /#Composer/list and in /DATA/LOGS/ i have: " [2023-09-10T07:54:53.576410+00:00] Log.WARNING: E_WARNING: unlink(data/treo-composer.log): No such file or directory {"code":2,"message":"unlink(data/treo-composer.log): No such file or directory","file":"/var/www/atrocore/vendor/atrocore/core/app/Espo/Console/Daemon.php","line":130} [] [2023-09-10T08:05:04.015523+00:00] Log.WARNING: E_WARNING: file_get_contents(data/treo-composer.log): failed to open stream: No such file or directory {"code":2,"message":"file_get_contents(data/treo-composer.log): failed to open stream: No such file or directory","file":"/var/www/atrocore/vendor/atrocore/core/app/Espo/Console/Daemon.php","line":97} [] [2023-09-10T08:05:04.029435+00:00] Log.WARNING: E_WARNING: unlink(data/treo-composer.log): No such file or directory {"code":2,"message":"unlink(data/treo-composer.log): No such file or directory","file":"/var/www/atrocore/vendor/atrocore/core/app/Espo/Console/Daemon.php","line":103} [] [2023-09-10T08:05:04.049219+00:00] Log.WARNING: E_WARNING: file_get_contents(data/treo-composer.log): failed to open stream: No such file or directory {"code":2,"message":"file_get_contents(data/treo-composer.log): failed to open stream: No such file or directory","file":"/var/www/atrocore/vendor/atrocore/core/app/Espo/Console/Daemon.php","line":97} [] [2023-09-10T08:05:04.050024+00:00] Log.WARNING: E_WARNING: unlink(data/treo-composer.log): No such file or directory {"code":2,"message":"unlink(data/treo-composer.log): No such file or directory","file":"/var/www/atrocore/vendor/atrocore/core/app/Espo/Console/Daemon.php","line":103} [] [2023-09-10T08:09:44.128695+00:00] Log.WARNING: E_WARNING: unlink(data/treo-composer.log): No such file or directory {"code":2,"message":"unlink(data/treo-composer.log): No such file or directory","file":"/var/www/atrocore/vendor/atrocore/core/app/Espo/Console/Daemon.php","line":130} [] [2023-09-10T08:20:59.206398+00:00] Log.WARNING: E_WARNING: file_put_contents(data/treo-composer.log): failed to open stream: Permission denied {"code":2,"message":"file_put_contents(data/treo-composer.log): failed to open stream: Permission denied","file":"/var/www/atrocore/vendor/atrocore/core/app/Espo/Console/Daemon.php","line":108} [] [2023-09-10T08:20:59.260558+00:00] Log.WARNING: E_WARNING: file_put_contents(data/treo-composer.log): failed to open stream: Permission denied {"code":2,"message":"file_put_contents(data/treo-composer.log): failed to open stream: Permission denied","file":"/var/www/atrocore/vendor/atrocore/core/app/Espo/Console/Daemon.php","line":114} [] [2023-09-10T08:20:59.306474+00:00] Log.WARNING: E_WARNING: unlink(data/treo-composer.log): No such file or directory {"code":2,"message":"unlink(data/treo-composer.log): No such file or directory","file":"/var/www/atrocore/vendor/atrocore/core/app/Espo/Console/Daemon.php","line":130} [] "

rratsun commented 1 year ago

All described problems related with you server configuration. First two is about your PHP configuration and the others because your files permission configurations.

Tushar030790 commented 4 months ago

I've encountered while using your AtroPIM software. I have followed the installation instructions provided in the manual and successfully installed AtroCore on my Windows PC. However, I am facing a challenge with importing CSV files into the system.

The import process seems to initiate correctly, but the status of the import remains 'pending' and does not progress to completion. This issue persists despite several attempts and verifying that the CSV file format aligns with the required specifications.

Could you please provide guidance on how to resolve this issue? If there are specific configurations or steps that I need to ensure for the import process to function correctly, I would greatly appreciate detailed instructions. Screenshot 2024-05-13 145701