Document Reference

Re: Can't deploy erp5

Publication Information

Embedded
From: Thomas Gambier

Hello,

 

the script to deploy ERP5 on Debian 10 is now working fine but the problem is that the installation of slapos in your machine is broken (it still tries to install older software that will never work). The simplest is to reinstall the machine fully. Otherwise, you could do the following commands:

rm /tmp/playbook*
rm -rf /tmp/tmpplaybook*
rm /etc/cron.d/ansible*
slapos node stop slapproxy
rm /opt/slapos/slapproxy.db
rm -rf /opt/slapgrid
rm -rf /srv/slapgrid
slapos node start slapproxy
# then start the installation again
wget https://deploy.erp5.net/erp5-standalone
bash erp5-standalone

 

For information (especially for Yusei), the standalone installation scripts are installing both erp5 software release and apache-frontend software release (the backend and the frontend) so you don't need to install anything else. If your machine has a public IPv4, the apache-frontend will listen on this IPv4 so your ERP5 is directly accessible from outside.

Also, for information, the slapos philosophy is to build everything from source, so you won't see anything installed through packages (except slapos and ansible and all their dependencies). All the softwares are installed under /opt/slapgrid and all the services are running inside partitions under /srv/slapgrid.

I get the following errors for the following commands you gave me Thomas:

root@erp:~# slapos node start slapproxy
2020-02-05 14:34:17 slapos[22608] INFO Launching supervisord with clean environment.
2020-02-05 14:34:17 slapos[22608] INFO Error: could not find config file /srv/slapgrid/etc/supervisord.conf
2020-02-05 14:34:17 slapos[22608] INFO For help, use -c -h
2020-02-05 14:34:17 slapos[22608] WARNING Supervisord unknown problem:
2020-02-05 14:34:17 slapos[22608] ERROR Failed to launch supervisord :
Traceback (most recent call last):
  File "/opt/slapos/eggs/slapos.core-1.5.7-py2.7.egg/slapos/cli/entry.py", line 300, in run_subcommand
    result = cmd.run(parsed_args)
  File "/opt/slapos/eggs/slapos.core-1.5.7-py2.7.egg/slapos/cli/command.py", line 50, in run
    return self.take_action(parsed_args)
  File "/opt/slapos/eggs/slapos.core-1.5.7-py2.7.egg/slapos/cli/supervisorctl.py", line 87, in take_action
    super(SupervisorctlAliasCommand, self).take_action(args)
  File "/opt/slapos/eggs/slapos.core-1.5.7-py2.7.egg/slapos/cli/supervisorctl.py", line 73, in take_action
    forbid_supervisord_launch
  File "/opt/slapos/eggs/slapos.core-1.5.7-py2.7.egg/slapos/cli/supervisorctl.py", line 79, in do_supervisorctl
    launchSupervisord(instance_root=instance_root, logger=logger)
  File "/opt/slapos/eggs/slapos.core-1.5.7-py2.7.egg/slapos/grid/svcbackend.py", line 196, in launchSupervisord
    raise RuntimeError('Failed to launch supervisord : %s' % result)
RuntimeError: Failed to launch supervisord :


root@erp:~#  bash erp5-standalone

...

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

 

Bottom Gadget
Right Gadget