[Erp5-users] Installation problem - missing template.cfg

Jean-Paul Smets jp at nexedi.com
Sun Mar 18 11:16:31 CET 2012


Hi,

I think you did not do the step "install software". In SlapOS, you can 
request N instances of a given software. This way, you can run for 
example 10 independent instances of ERP5 (one for devt, one for prod, 
one for friend). And to create a SaaS service, it reduces costs a lot 
(it is possible to run 100 to 200 ERP5 instances on a cheap server).

But first, you must say to your server "I want ERP5 to be installed on 
this machine".
>
> Vifib shows a configured address nbd_id 2a10:e35... & nbd_port 1024
>
It has no consequence.
>
> Our ipv6 is via a sixxs tunnel on our gateway router/firewall machine, 
> and our ipv6 network is 2a10:348...
>
Should be fine. If you see many IPv6 addresses on the bridge, then OK.
>
> The machine I'm working with has a native ipv6 address on eth0.
>
Perfect.
>
> The gateway machine has a stateful firewall that allows outgoing and 
> associated incoming traffic.
>
Should be perfect.
>
> I've set it to also permit incoming tcp & udp traffic to my test 
> machine on port 1024, but after realising that vifib is showing a 
> completely different target address, I'm thoroughly confused...
>
I do not understand.
>
> On the ipv4 side, what is the network in slapos.cfg used for -- the 
> 10.0.0.0/16?
>
Should be perfect.
>
> The only 10. Address visible is slapbr0
>
> That shows a few hundred transmitted frames, zero received.
>
> The slaptap interfaces all show zero tx/rx.
>
> I'm guessing that it's for a tunnel to internal VMs rather than 
> anything external, but not at all clear.
>
You can read this:
http://www.slapos.org/wiki/osoe-Lecture.SlapOS.Extended/developer-Introducing.SlapOS.Architecture

It explains. Each instance has:
- one local IPv4 address so that any IPv4 software can be used
- one global IPv6 address, to interconnect all services between 
different hosts
- and use stunnel to forward IPv6 to IPv4 (so that two IPv6 incompatible 
services can connect eachother through IPv6 in a secure way)

Tomorrow, I will setup an instance for you on some machine.


Regards,

JPS.



> Robert.
>
> *From:*erp5-users-bounces at erp5.org 
> [mailto:erp5-users-bounces at erp5.org] *On Behalf Of *Robert Jenkins
> *Sent:* 17 March 2012 21:52
> *To:* 'Documentation and questions about the use of ERP5'
> *Subject:* Re: [Erp5-users] Installation problem - missing template.cfg
>
> Hi,
>
> I have looked at the pages you linked to.
>
> The lecture section on slave nodes appears to only give info on 
> transferring an existing node via a USB drive, not installing a node 
> from scratch?
>
> I have tried to follow sections 3.1 & 3.2 from this page:
>
> https://www.tiolive.com/nexedi/web_site_module/erp5_community/osoe-SlapOS.Book
>
> Section 3.1 appears to have worked OK, the machine has appeared under 
> 'servers' on vifib.net as validated.
>
> Section 3.2, adding vifib service, appears to have stalled with the 
> status 'Looking for a free partition'.
>
> I'm now working with another PC, again Centos 6.2 x86_64
>
> The file locations used are exactly as given in doc 3.1
>
> Rob.
>
> *From:*erp5-users-bounces at erp5.org 
> <mailto:erp5-users-bounces at erp5.org> 
> [mailto:erp5-users-bounces at erp5.org] 
> <mailto:[mailto:erp5-users-bounces at erp5.org]> *On Behalf Of *Jean-Paul 
> Smets
> *Sent:* 17 March 2012 15:17
> *To:* Documentation and questions about the use of ERP5
> *Subject:* Re: [Erp5-users] Installation problem - missing template.cfg
>
> Hi,
>
> Thanks for your questions. It helps improving the documentation.
>
> I updated the documentation ( http://www.erp5.com/download/linux) so 
> that the page you found 
> (http://www.erp5.com/user-Install.ERP5.With.SlapOS) is no longer 
> referenced. Instead, the documentation is now:
>
> http://www.erp5.com/developer-Allocate.SlapOS.ERP5.Instance 
> <http://www.slapos.org/wiki/osoe-Lecture.SlapOS.Extended/developer-Allocate.SlapOS.ERP5.Instance>
>
> and you need to read this before:
>
> http://www.slapos.org/slapos-Lecture.Telecom (the chapters about 
> installation of a SlapOS Slave node)
>
> As the moto says, "if it is not tested, it is not working". Currently, 
> the SlapOS installation process is not tested, so it will likely fail. 
> One of us is working on a test system for SlapOS to make sure every 
> day, automatically, that the build process works. But we lack hands so 
> it is not possible to progress so fast. There is also a binary cache 
> feature which prevents waiting for the build process to finish (which 
> is quite long as you noticed. This feature is not yet activated.
>
> I hope that in one month, I can update again the documentation so that 
> the installation process will become:
>   # apt-get install slapos
>   # slapos install erp5
>   # slapos request erp5
>
> and takes less than 5 minutes.
>
> If you are interested to help us, let me know. For example, running 
> every day the build process on a Centos 6 could be useful so that the 
> installation process for Centos users becomes instant. If you are 
> interested, I can assist you in setting up this environment.
>
> FYI, I use for my own development a release of ERP5 called "ERP5 Local 
> Development" version 1. And I have a fork of the slapos got repository 
> in /opt/slapdev so that I can do my own changes to the build process 
> and contribute. This is the way I would recommend someone to do in 
> order to contribute to the build process (at least until slaprunner 
> IDE is fully usable for that purpose).
>
> I will check for you if another release also works.
>
> You can track here ( 
> http://git.erp5.org/gitweb/slapos.git/shortlog/refs/heads/erp5?js=1) 
> all the ongoing work for the erp5 branch of SlapOS. You will find for 
> example the recent integration of Varnish with appropriate parameters 
> to cache Web content.
>
> Regards,
>
> JPS.
>
>
> Le 17/03/2012 14:33, Robert Jenkins a écrit :
>
> Hi,
> I'm trying to get ERP5 running on a Centos 6 based machine (Centos 6.2
> x86_64 with all updates).
>   
> Going through the 'ERP5 install with SlapOS'
> [http://www.erp5.com/user-Install.ERP5.With.SlapOS  ]
>   
> Everything works OK up to step 8.
>   
> At step 9, running slapgrid, it bombs out with this error:
>   
> bin/slapgrid-cp -c /raid/slapos/slapos.cfg
> INFO:ComputerPartitionProcessing:Processing computer partitions...
> INFO:SVCBackend:Supervisord already running.
> INFO:Partition:Installing Computer Partition slappart0...
> ERROR:ComputerPartitionProcessing:Traceback (most recent call last):
>    File
> "/raid/slapos/eggs/slapos.core-0.19-py2.7.egg/slapos/grid/slapgrid.py", line
> 462, in processComputerPartitionList
>      local_partition.install()
>    File
> "/raid/slapos/eggs/slapos.core-0.19-py2.7.egg/slapos/grid/SlapObject.py",
> line 220, in install
>      shutil.copy(template_location, config_location)
>    File "/raid/slapos/parts/python2.7/lib/python2.7/shutil.py", line 116, in
> copy
>      copyfile(src, dst)
>    File "/raid/slapos/parts/python2.7/lib/python2.7/shutil.py", line 81, in
> copyfile
>      with open(src, 'rb') as fsrc:
> IOError: [Errno 2] No such file or directory:
> '/raid/slapgrid/afaeaed482578cde211ab84114e0c317/template.cfg'
>   
> INFO:ComputerPartitionProcessing:Finished computer partitions...
>   
>   
> I have /opt/slapos&  /opt/slapgrid linked to /raid/slapos&  /raid/slapgrid,
> as the root is on a relatively small SSD with only /var&  /home mounted on
> HDD.
> /raid is another HDD
>   
> I've tried running through the install three times now, to try and make sure
> I'm not doing anything dumb.
> (slapos&  slapgrid directories emptied between tries).
> I've run it using both /opt/slapos and /raid/slapos as the configured
> directories, with the same error occurring.
>   
> Any help appreciated, it's getting a bit tedious watching everything rebuild
> each time.
>   
>   
> Thanks,
> Rob.
>   
>   
> _______________________________________________
> Erp5-users mailing list
> Erp5-users at erp5.org  <mailto:Erp5-users at erp5.org>
> https://mail.tiolive.com/mailman/listinfo/erp5-users
>
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus 
> signature database 6975 (20120317) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus 
> signature database 6975 (20120317) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
> _______________________________________________
> Erp5-users mailing list
> Erp5-users at erp5.org
> https://mail.tiolive.com/mailman/listinfo/erp5-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-users/attachments/20120318/8d00e104/attachment-0001.htm>


More information about the Erp5-users mailing list