02-06-2014 12:20 PM
The DemoData script
00-DownloadAndSetUpFullNuxeoDemo.shas can be found on GitHub: https://github.com/nuxeo/presales-vmdemo/wiki/Create-a-demo-from-one-of-Nuxeo-generic-demo-datasets is in more than one way troublesome.
This was extensively tested on various platforms (hypervisors, OVFs, handmade VMs based on Debian Wheezy 64bit). Is it just me or is the script (no longer) functioning as intended?
unzipping distribution Backup of original nuxeo conf Stopping possibly running nuxeo server Detected Tomcat server. Nuxeo home: /var/lib/nuxeo/server Nuxeo configuration: /etc/nuxeo/nuxeo.conf Include template: /var/lib/nuxeo/server/templates/common-base Include template: /var/lib/nuxeo/server/templates/common Include template: /var/lib/nuxeo/server/templates/postgresql Include template: /var/lib/nuxeo/server/templates/collaboration Include template: /var/lib/nuxeo/server/templates/dam Stopping server........................Server stopped. Updating nuxeo.conf nuxeo.templates=postgresql,collaboration,dam nuxeo.templates=postgresql,/etc/nuxeo/nuxeo_DAM_en_demo/templates/custom Deleting current data Deleting current server Copying fresh distrib rm: missing operand Try `rm --help' for more information. /var/lib/nuxeo/server /etc/nuxeo/nuxeo.conf Initializing server and installing default packages (dm, dam, social collab) Detected Tomcat server. Nuxeo home: /var/lib/nuxeo/server Nuxeo configuration: /etc/nuxeo/nuxeo.conf Include template: /var/lib/nuxeo/server/templates/common-base Include template: /var/lib/nuxeo/server/templates/common Include template: /var/lib/nuxeo/server/templates/postgresql Include template: /etc/nuxeo/nuxeo_DAM_en_demo/templates/custom Added /var/lib/nuxeo/server/setupWizardDownloads/4de36049ad3925bac0282a1ceeb8c7ad Added /var/lib/nuxeo/server/setupWizardDownloads/3eb30388a93328a895798878a4a2d1f7 Added /var/lib/nuxeo/server/setupWizardDownloads/c5c145e8f173b9f639bc515b8e8cb68e Added /var/lib/nuxeo/server/setupWizardDownloads/e61f403ef72ecaa6a90275465009a232 Detected Tomcat server. Nuxeo home: /var/lib/nuxeo/server Nuxeo configuration: /etc/nuxeo/nuxeo.conf Include template: /var/lib/nuxeo/server/templates/common-base Include template: /var/lib/nuxeo/server/templates/common Include template: /var/lib/nuxeo/server/templates/postgresql Include template: /etc/nuxeo/nuxeo_DAM_en_demo/templates/custom Relax restriction to target platform cap-5.9.2-I20140206_0119 because of package nuxeo-cmf Removed nuxeo-social-collaboration-5.9.2-I20140206_0119 Detected Tomcat server. Nuxeo home: /var/lib/nuxeo/server Nuxeo configuration: /etc/nuxeo/nuxeo.conf Include template: /var/lib/nuxeo/server/templates/common-base Include template: /var/lib/nuxeo/server/templates/common Include template: /var/lib/nuxeo/server/templates/postgresql Include template: /etc/nuxeo/nuxeo_DAM_en_demo/templates/custom Dependency resolution: Installation order (3): nuxeo-dm-5.9.2-I20140206_0119/nuxeo-rest-api-5.9.2-I20140206_0119/nuxeo-dam-5.9.2-I20140206_0119 Local packages to install (3): nuxeo-rest-api:5.9.2-I20140206_0119, nuxeo-dm:5.9.2-I20140206_0119, nuxeo-dam:5.9.2-I20140206_0119 Installing nuxeo-dm-5.9.2-I20140206_0119 Installing nuxeo-rest-api-5.9.2-I20140206_0119 Installing nuxeo-dam-5.9.2-I20140206_0119 Detected Tomcat server. No instance.clid found, the hotfixes will not be installed on the server. Altough not mandatory, it is highly recommended. The instance.clid is looked for in the parent of the nuxeo_demo folder. In your case in: /etc/nuxeo instance.clid files can be generated by registering another instance and getting the instance.clid file. A fresh updated server is now available in demo data. A proper reset should be done now to reset the server Resetting the server with the demo data. The server will stop if you close the window after (just restart the server in that case) Initializing variables reseting nuxeo.conf Detected Tomcat server. Nuxeo home: /var/lib/nuxeo/server Nuxeo configuration: /etc/nuxeo/nuxeo.conf Include template: /var/lib/nuxeo/server/templates/common-base Include template: /var/lib/nuxeo/server/templates/common Include template: /var/lib/nuxeo/server/templates/postgresql Include template: /etc/nuxeo/nuxeo_DAM_en_demo/templates/custom Include template: /var/lib/nuxeo/server/templates/dam Server is not running. soffice.bin: no process found Nuxeo DM Demo has been stopped. Database will be dropped dropdb: could not connect to database postgres: FATAL: role "root" does not exist
02-06-2014 12:55 PM
Hi,
02-10-2014 10:08 AM
Thanks Fred. You were right. I was indeed user root when I executed the script. However the other points seem still to be valid. I did some further investigation on the OVF-VM download of 5.9.1. The reason the script does not execute properly there (including when being user nuxeo) is that the script assumes it can unzip Tomcat and it cannot because the unzip package is not installed. If installed beforehand the script executes properly.
I think the install script can be improved by:
Links are provided for inspiration to make the script more robust. Maybe also some preliminary testing or even executing of the postgreSQL commands can also be implemented? Thank you for providing this demo data. Makes life much easier when testing! List item
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.