I installed the Appmarket addon in a VM, following these steps:
AppMarket Installation and Configuration
and also paying attention for the tips from @esfreire:
enter link description here
enter link description here
This installation was done without errors, all OK.
Now, I’m trying to install AppMarket in another virtual machine, which also has a opennebula-sunstone & opennebula-server previous installation. However, there are several issues which I can’t solve, because I followed the same steps that in the first VM, but the installation failed when I trying to start the opennebula-appmarket service
[root@test-opennebula centos]# /etc/init.d/opennebula-appmarket start Reloading systemd: [ OK ] Starting opennebula-appmarket (via systemctl): Job for opennebula-appmarket.service failed because the control process exited with error code. See "systemctl status opennebula-appmarket.service" and "journalctl -xe" for details. [FALLÓ]
This is the output of the opennebula-appmarket status:
> [root@test-opennebula centos]# systemctl status opennebula-appmarket -l
> ● opennebula-appmarket.service - LSB: start and stop opennebula-appmarket
> Loaded: loaded (/etc/rc.d/init.d/opennebula-appmarket)
> Active: failed (Result: exit-code) since mar 2016-03-15 10:47:16 CET; 5min ago
> Docs: man:systemd-sysv-generator(8)
> Process: 29033 ExecStart=/etc/rc.d/init.d/opennebula-appmarket start (code=exited, status=1/FAILURE)
> mar 15 10:47:14 test-opennebula runuser: pam_unix(runuser:session): session opened for user oneadmin by (uid=0) > mar 15 10:47:14 test-opennebula opennebula-appmarket: Starting AppMarket Server daemon: Stale .lock detected. Erasing it. > mar 15 10:47:14 test-opennebula opennebula-appmarket: /usr/bin/appmarket-server: line 71: /var/run/one/appmarket-server.pid: Permission denied > mar 15 10:47:16 test-opennebula opennebula-appmarket: Error executing appmarket-server. > mar 15 10:47:16 test-opennebula opennebula-appmarket: Check /var/log/one/appmarket-server.error or /var/log/one/appmarket-server.log for more information > mar 15 10:47:16 test-opennebula opennebula-appmarket: [FAILED] > mar 15 10:47:16 test-opennebula systemd: opennebula-appmarket.service: control process exited, code=exited status=1 > mar 15 10:47:16 test-opennebula systemd: Failed to start LSB: start and stop opennebula-appmarket. > mar 15 10:47:16 test-opennebula systemd: Unit opennebula-appmarket.service entered failed state. > mar 15 10:47:16 test-opennebula systemd: opennebula-appmarket.service failed.
Here are the contents of the file
appmarket-server.error, which says that an upgrade is required
[root@test-opennebula centos]# cat /var/log/one/appmarket-server.error :public is no longer used to avoid overloading Module#public, use :public_folder or :public_dir instead from /usr/lib/one/ruby/oneapps/market/controllers/appmarket-server.rb:52:in `block in <main>' Version mismatch, upgrade required. DB VERSION: 20003 AppMarket VERSION: 200100 Run the 'appmarket-db' command`
And if I run the command
appmarket-db, the output says:
[root@test-opennebula centos]# appmarket-db The DB is already in the last version
Any ideas? Thanks for your help.