This topic contains 5 replies, has 2 voices, and was last updated by msulima 7 years ago.
- Topic
I have an installation of OROCRM working on an Amazon Lightsail VPS. Everything works except the background tasks like imports, email sync, etc.
I have installed supervisor with the following scripts
123456789101112131415161718192021[program:orocrm_web_socket]command=php /var/www/html/crm/app/console clank:server --env=prodnumprocs=1autostart=truestartsecs=0user=www-dataredirect_stderr=truestderr_logfile=/var/log/oroscript.err.logstdout_logfile=/var/log/oroscript.out.log[program:orocrm_message_consumer]command=php /var/www/html/crm/app/console oro:message-queue:consume --env=prodprocess_name=%(program_name)s_%(process_num)02dnumprocs=5autostart=trueautorestart=truestartsecs=0user=www-dataredirect_stderr=truestderr_logfile=/var/log/oroscript.err.logstdout_logfile=/var/log/oroscript.out.logI was being forced to use Supervisor with sudo and I have solved that with the chown in supervisord.conf
1234[unix_http_server]file=/var/run/supervisor.sock ; (the path to the socket file)chmod=0700 ; sockef file mode (default 0700)chown=ubuntu:ubuntuNow I see that the commands are also working
12345678ubuntu@ip-XXX-XXX-XX-XX:/var/www/html/crm$ supervisorctlorocrm_message_consumer:orocrm_message_consumer_00 RUNNING pid 32426, uptime 0:00:05orocrm_message_consumer:orocrm_message_consumer_01 RUNNING pid 32430, uptime 0:00:05orocrm_message_consumer:orocrm_message_consumer_02 RUNNING pid 32442, uptime 0:00:03orocrm_message_consumer:orocrm_message_consumer_03 RUNNING pid 32434, uptime 0:00:04orocrm_message_consumer:orocrm_message_consumer_04 RUNNING pid 32441, uptime 0:00:04orocrm_web_socket RUNNING pid 23408, uptime 1 day, 7:59:41supervisor>My Websocket configuation in parameters.yml is as follows:
12345678parameters:websocket_bind_address: 127.0.0.1websocket_bind_port: 8080websocket_frontend_host: 127.0.0.1websocket_frontend_port: 8080websocket_backend_host: 127.0.0.1websocket_backend_port: 8080web_backend_prefix: ''But on the oroinstallation.com/contact page I see the following error on the top:
Synchronizer can’t connect to server. Please contact your Administrator.and the console shows:
oro.min.js?version=d64922dd:1482 WebSocket connection to ‘ws://127.0.0.1:8080/’ failed: Error in connection establishment: net::ERR_CONNECTION_REFUSEDWhen I try to validate a contacts import csv I get the message that I will receive an email on complete. I dont.
When I try to import a contacts import csv I get the message that I will receive an email on complete. I dont.In the System > Jobs I see the following:
123456oro:import:http:oro_contact.add_or_replace:oro.58e012490.82911716 Cancelled 100%oro:import:http:oro_contact.add_or_replace:oro.58e7ef109.20870136 Cancelled 100%oro:import_validation:http:oro_contact.add_or_replace:oro.58e6b6dd1.33521527 Success 100%oro.importexport.export_oro_contact Success 100%oro:cron:run_command:oro:cron:imap-sync Success 100%oro:cron:run_command:oro:cron:send-email-campaigns Success 100%When I do an import it shows up in the Jobs as RUNNING and stuck at 33% unless I click interupt and then it becomes CANCELLED at 100%
I’ve tried being very detailed about the problem, please let me know if there’s any other information you need to help me debug this.
Thanks!
The forum ‘OroCRM’ is closed to new topics and replies.