ArchipelProject / Archipel

XMPP Based Orchestrator
http://archipelproject.org
GNU Affero General Public License v3.0
800 stars 126 forks source link

SyntaxError: Missing parentheses in call to 'print' #1175

Closed shawly closed 8 years ago

shawly commented 8 years ago

[root@Phobos ArchipelAgent]# ./buildAgent -d File "./buildAgent", line 33 print "\033[32mSUCCESS: %s\033[0m" % msg ^ SyntaxError: Missing parentheses in call to 'print'

good job, very intuitive install method. nice.

CyrilPeponnet commented 8 years ago

Please be sure to use Python 2.

shawly commented 8 years ago

Please update your Installation Wiki, it also has to be apscheduler==2.1.2 else archipel-initinstall will also throw an error.

I got it installed now with apscheduler 2.1.2 and python2.

My ejabberd server is working fine archipel-testxmppserver also works perfectly fine, but ejabberdctl connected_users doesn't show any user and also when I start the archipel-agent I get:

archipel-agent.service - Archipel Agent
   Loaded: loaded (/usr/lib/systemd/system/archipel-agent.service; disabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Mo 2015-12-21 13:05:49 CET; 3min 11s ago
  Process: 7111 ExecStart=/usr/bin/runarchipel --config=/etc/archipel/archipel.conf --nofork (code=exited, status=1/FAILURE)
 Main PID: 7111 (code=exited, status=1/FAILURE)

Dez 21 13:05:49 Phobos systemd[1]: archipel-agent.service: Main process exited, code=exited, status=1/FAILURE
Dez 21 13:05:49 Phobos systemd[1]: archipel-agent.service: Unit entered failed state.
Dez 21 13:05:49 Phobos systemd[1]: archipel-agent.service: Failed with result 'exit-code'.
Dez 21 13:05:49 Phobos systemd[1]: archipel-agent.service: Service hold-off time over, scheduling restart.
Dez 21 13:05:49 Phobos systemd[1]: Stopped Archipel Agent.
Dez 21 13:05:49 Phobos systemd[1]: archipel-agent.service: Start request repeated too quickly.
Dez 21 13:05:49 Phobos systemd[1]: Failed to start Archipel Agent.
Dez 21 13:05:49 Phobos systemd[1]: archipel-agent.service: Unit entered failed state.
Dez 21 13:05:49 Phobos systemd[1]: archipel-agent.service: Failed with result 'start-limit'.

The archipel.log doesn't throw any errors, but debug logging is turned on..

libvirt & libvirt-python are installed, qemu is installed and xmpppy is also installed, am I missing something? Do I even need xmpppy?

Edit: It seems to start now, I ran runarchipel and it said he couldn't find the names.txt so I created one, now the systemd service starts without errors.

CyrilPeponnet commented 8 years ago

https://github.com/ArchipelProject/Archipel/wiki/Installation%3A-Agent

Feel free to edit if needed :) especially for APScheduller.

shawly commented 8 years ago

Thanks, I added ==2.1.2 to apscheduler.

I just got one more problem, my hypervisor only shows the Chat tab... The only hint I have is this from the ejabberd log.

2015-12-21 16:09:27.993 [warning] <0.482.0>@ejabberd_xmlrpc:build_fault_response:386 Error -118
A problem '{error,account_unprivileged}' occurred executing the command srg_list with arguments
[{host,<<"phobos.ho.me">>}]

And this from the archipel.log

ESC[32mINFO    ESC[0m::2015-12-21 16:16:00.914::utils.py:72::ESC[33mTNArchipelHypervisor.exit_proc (Phobos@phobos.ho.me/Phobos)ESC[0m::Archipel is terminating.
ESC[33mWARNING ESC[0m::2015-12-21 16:16:00.915::utils.py:74::ESC[33mTNArchipelHypervisor.commit_to_db (Phobos@phobos.ho.me/Phobos)ESC[0m::CENTRALDB: cannot commit to db because we have not detected any central agent
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.124::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_ARCHIPELENTITY_XMPP_DISCONNECTED
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.124::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_ARCHIPELENTITY_XMPP_AUTHENTICATED
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.125::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_ARCHIPELENTITY_PLUGIN_ALL_LOADED
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.126::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_ARCHIPELENTITY_VCARD_READY
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.126::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method recover_pubsubs for hook name HOOK_ARCHIPELE
NTITY_XMPP_AUTHENTICATED (oneshot: False)
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.127::utils.py:72::ESC[33mTNArchipelHypervisor.__init__ (Phobos@phobos.ho.me/Phobos)ESC[0m::jid defined as Phobos@phobos.ho.me/Phobos
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.127::utils.py:72::ESC[33mTNArchipelHypervisor.__init__ (Phobos@phobos.ho.me/Phobos)ESC[0m::starting archipel-agent
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.133::utils.py:72::ESC[33mTNArchipelHypervisor.init_permissions (Phobos@phobos.ho.me/Phobos)ESC[0m::initializing permissions of Phobos@phobos.ho.me/Phobos
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.145::utils.py:72::ESC[33mTNArchipelHypervisor.init_permissions (Phobos@phobos.ho.me/Phobos)ESC[0m::permissions of Phobos@phobos.ho.me/Phobos initialized
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.154::utils.py:72::ESC[33mTNArchipelHypervisor.connect_libvirt (Phobos@phobos.ho.me/Phobos)ESC[0m::Connected to libvirt uri qemu:///system
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.156::utils.py:72::ESC[33mTNArchipelHypervisor.__init__ (Phobos@phobos.ho.me/Phobos)ESC[0m::Server address defined as phobos.ho.me
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.157::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_HYPERVISOR_ALLOC
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.158::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_HYPERVISOR_SOFT_ALLOC
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.158::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_HYPERVISOR_FREE
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.159::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_HYPERVISOR_MIGRATEDVM_LEAVE
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.159::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_HYPERVISOR_MIGRATEDVM_ARRIVE
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.160::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_HYPERVISOR_CLONE
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.160::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_HYPERVISOR_VM_WOKE_UP
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.161::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_HYPERVISOR_WOKE_UP
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.170::utils.py:72::ESC[33mTNArchipelHypervisor.perform_hooks (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: going to run methods for hook HOOK_ARCHIPELENTITY_PLUGIN_ALL_LOADED
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.178::utils.py:72::ESC[33mTNArchipelHypervisor.__init__ (Phobos@phobos.ho.me/Phobos)ESC[0m::TNHypervisorRepoManager: opening vmcasting database file /var/lib/archipel//vmcasting.sqlite3
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.180::utils.py:72::ESC[33mTNArchipelHypervisor.__init__ (Phobos@phobos.ho.me/Phobos)ESC[0m::TNHypervisorRepoManager: Database ready.
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.186::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method repo_parse_hook for hook name HOOK_ARCHIPELENTITY_XMPP_AUTHENTICATED (oneshot: False)
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.187::utils.py:72::ESC[33mTNArchipelHypervisor.__init__ (Phobos@phobos.ho.me/Phobos)ESC[0m::TNHypervisorRepoManager: opening vmcasting database file /var/lib/archipel//vmcasting.sqlite3
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.189::utils.py:72::ESC[33mTNArchipelHypervisor.__init__ (Phobos@phobos.ho.me/Phobos)ESC[0m::TNHypervisorRepoManager: Database ready.
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.195::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method repo_parse_hook for hook name HOOK_ARCHIPELENTITY_XMPP_AUTHENTICATED (oneshot: False)
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.195::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: loaded plugin hypervisor_vmcasts
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.196::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: plugin geolocalization has not been loaded because it is disabled by configuration.
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.200::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method create_autogroups_if_needed for hook name HOOK_ARCHIPELENTITY_PLUGIN_ALL_LOADED (oneshot: False)
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.200::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method handle_autogroup_for_entity for hook name HOOK_HYPERVISOR_WOKE_UP (oneshot: False)
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.201::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method handle_autogroup_for_entity for hook name HOOK_HYPERVISOR_ALLOC (oneshot: False)
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.201::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method handle_autogroup_for_entity for hook name HOOK_HYPERVISOR_SOFT_ALLOC (oneshot: False)
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.202::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method handle_autogroup_for_entity for hook name HOOK_HYPERVISOR_VM_WOKE_UP (oneshot: False)
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.209::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: loaded plugin xmppserver
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.216::archipelStatsCollector.py:70::Database ready.
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.217::archipelStatsCollector.py:79::Recovering stored statistics. It may take a while...
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.223::archipelStatsCollector.py:100::Statistics recovered.
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.229::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method start_collector for hook name HOOK_ARCHIPELENTITY_XMPP_AUTHENTICATED (oneshot: False)
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.229::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: loaded plugin hypervisor_health
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.235::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: plugin iphone_notification has not been loaded because it is disabled by configuration.
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.245::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: loaded plugin action_scheduler
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.256::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: loaded plugin hypervisor_network
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.264::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: loaded plugin vmparking
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.266::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method hypervisor_hook_xmpp_authenticated for hook name HOOK_ARCHIPELENTITY_XMPP_AUTHENTICATED (oneshot: False)
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.267::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: loaded plugin centraldb
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.267::utils.py:72::ESC[33mTNArchipelHypervisor.perform_hooks (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: going to run methods for hook HOOK_ARCHIPELENTITY_PLUGIN_ALL_LOADED
ESC[31mERROR   ESC[0m::2015-12-21 16:16:01.270::utils.py:76::ESC[33mTNArchipelHypervisor.perform_hooks (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: error when performing method create_autogroups_if_needed for hookname HOOK_ARCHIPELENTITY_PLUGIN_ALL_LOADED: <Fault -118: 'Error -118\nA problem \'{error,account_unprivileged}\' occurred executing the command srg_list with arguments\n[{host,<<"phobos.ho.me">>}]'>
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.277::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method manage_vcard_hook for hook name HOOK_ARCHIPELENTITY_XMPP_AUTHENTICATED (oneshot: False)
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.278::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method update_presence for hook name HOOK_ARCHIPELENTITY_XMPP_AUTHENTICATED (oneshot: False)
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.280::utils.py:72::ESC[33mTNArchipelHypervisor.connect_xmpp (Phobos@phobos.ho.me/Phobos)ESC[0m::Successfully connected to XMPP with JID Phobos@phobos.ho.me/Phobos
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.281::utils.py:72::ESC[33mTNArchipelHypervisor.perform_hooks (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: going to run methods for hook HOOK_ARCHIPELENTITY_XMPP_CONNECTED
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.281::utils.py:72::ESC[33mTNArchipelHypervisor.auth_xmpp (Phobos@phobos.ho.me/Phobos)ESC[0m::Trying to authentify the client with username Phobos and resource Phobos
ESC[32mINFO    ESC[0m::2015-12-21 16:16:01.285::utils.py:72::ESC[33mTNArchipelHypervisor.auth_xmpp (Phobos@phobos.ho.me/Phobos)ESC[0m::Successfully authenticated.
C[31mERROR   ESC[0m::2015-12-21 16:16:06.315::utils.py:76::ESC[33mTNArchipelHypervisor.on_xmpp_loop_tick (Phobos@phobos.ho.me/Phobos)ESC[0m::HYPERVISOR: No Central agent found after 5 seconds, starting vms based
 on local db info only.
ESC[32mINFO    ESC[0m::2015-12-21 16:16:06.316::utils.py:72::ESC[33mTNArchipelHypervisor.get_vms_from_local_db (Phobos@phobos.ho.me/Phobos)ESC[0m::opening database file /var/lib/archipel//hypervisor.sqlite3
ESC[32mINFO    ESC[0m::2015-12-21 16:16:06.317::utils.py:72::ESC[33mTNArchipelHypervisor.get_vms_from_local_db (Phobos@phobos.ho.me/Phobos)ESC[0m::Populating database if not exists.
ESC[32mINFO    ESC[0m::2015-12-21 16:16:06.318::utils.py:72::ESC[33mTNArchipelHypervisor.perform_hooks (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: going to run methods for hook HOOK_HYPERVISOR_WOKE_UP
ESC[33mWARNING ESC[0m::2015-12-21 16:16:06.320::utils.py:74::ESC[33mTNArchipelHypervisor.handle_autogroup_for_entity (Phobos@phobos.ho.me/Phobos)ESC[0m::XMPPSERVER: unable to add entity Phobos@phobos.ho.me/Phobos in autogroup All Hypervisors: <Fault -118: 'Error -118\nA problem \'{error,account_unprivileged}\' occurred executing the command srg_list with arguments\n[{host,<<"phobos.ho.me">>}]'>
CyrilPeponnet commented 8 years ago

You need to use the exact ejabberd configuration provided in the wiki.

On Dec 21, 2015, at 7:21 AM, shawly notifications@github.com wrote:

Thanks, I added ==2.1.2 to apscheduler.

I just got one more problem, my hypervisor only shows the Chat tab... The only hint I have is this from the ejabberd log.

2015-12-21 16:09:27.993 [warning] <0.482.0>@ejabberd_xmlrpc:build_fault_response:386 Error -118 A problem '{error,account_unprivileged}' occurred executing the command srg_list with arguments [{host,<<"phobos.ho.me">>}] And this from the archipel.log

ESC[32mINFO ESC[0m::2015-12-21 16:16:00.914::utils.py:72::ESC[33mTNArchipelHypervisor.exit_proc (Phobos@phobos.ho.me/Phobos)ESC[0m::Archipel is terminating. ESC[33mWARNING ESC[0m::2015-12-21 16:16:00.915::utils.py:74::ESC[33mTNArchipelHypervisor.commit_to_db (Phobos@phobos.ho.me/Phobos)ESC[0m::CENTRALDB: cannot commit to db because we have not detected any central agent ESC[32mINFO ESC[0m::2015-12-21 16:16:01.124::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_ARCHIPELENTITY_XMPP_DISCONNECTED ESC[32mINFO ESC[0m::2015-12-21 16:16:01.124::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_ARCHIPELENTITY_XMPP_AUTHENTICATED ESC[32mINFO ESC[0m::2015-12-21 16:16:01.125::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_ARCHIPELENTITY_PLUGIN_ALL_LOADED ESC[32mINFO ESC[0m::2015-12-21 16:16:01.126::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_ARCHIPELENTITY_VCARD_READY ESC[32mINFO ESC[0m::2015-12-21 16:16:01.126::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method recover_pubsubs for hook name HOOK_ARCHIPELE NTITY_XMPP_AUTHENTICATED (oneshot: False) ESC[32mINFO ESC[0m::2015-12-21 16:16:01.127::utils.py:72::ESC[33mTNArchipelHypervisor.init (Phobos@phobos.ho.me/Phobos)ESC[0m::jid defined as Phobos@phobos.ho.me/Phobos ESC[32mINFO ESC[0m::2015-12-21 16:16:01.127::utils.py:72::ESC[33mTNArchipelHypervisor.init (Phobos@phobos.ho.me/Phobos)ESC[0m::starting archipel-agent ESC[32mINFO ESC[0m::2015-12-21 16:16:01.133::utils.py:72::ESC[33mTNArchipelHypervisor.init_permissions (Phobos@phobos.ho.me/Phobos)ESC[0m::initializing permissions of Phobos@phobos.ho.me/Phobos ESC[32mINFO ESC[0m::2015-12-21 16:16:01.145::utils.py:72::ESC[33mTNArchipelHypervisor.init_permissions (Phobos@phobos.ho.me/Phobos)ESC[0m::permissions of Phobos@phobos.ho.me/Phobos initialized ESC[32mINFO ESC[0m::2015-12-21 16:16:01.154::utils.py:72::ESC[33mTNArchipelHypervisor.connect_libvirt (Phobos@phobos.ho.me/Phobos)ESC[0m::Connected to libvirt uri qemu:///system ESC[32mINFO ESC[0m::2015-12-21 16:16:01.156::utils.py:72::ESC[33mTNArchipelHypervisor.init (Phobos@phobos.ho.me/Phobos)ESC[0m::Server address defined as phobos.ho.me ESC[32mINFO ESC[0m::2015-12-21 16:16:01.157::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_HYPERVISOR_ALLOC ESC[32mINFO ESC[0m::2015-12-21 16:16:01.158::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_HYPERVISOR_SOFT_ALLOC ESC[32mINFO ESC[0m::2015-12-21 16:16:01.158::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_HYPERVISOR_FREE ESC[32mINFO ESC[0m::2015-12-21 16:16:01.159::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_HYPERVISOR_MIGRATEDVM_LEAVE ESC[32mINFO ESC[0m::2015-12-21 16:16:01.159::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_HYPERVISOR_MIGRATEDVM_ARRIVE ESC[32mINFO ESC[0m::2015-12-21 16:16:01.160::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_HYPERVISOR_CLONE ESC[32mINFO ESC[0m::2015-12-21 16:16:01.160::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_HYPERVISOR_VM_WOKE_UP ESC[32mINFO ESC[0m::2015-12-21 16:16:01.161::utils.py:72::ESC[33mTNArchipelHypervisor.create_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: creating hook with name HOOK_HYPERVISOR_WOKE_UP ESC[32mINFO ESC[0m::2015-12-21 16:16:01.170::utils.py:72::ESC[33mTNArchipelHypervisor.perform_hooks (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: going to run methods for hook HOOK_ARCHIPELENTITY_PLUGIN_ALL_LOADED ESC[32mINFO ESC[0m::2015-12-21 16:16:01.178::utils.py:72::ESC[33mTNArchipelHypervisor.init (Phobos@phobos.ho.me/Phobos)ESC[0m::TNHypervisorRepoManager: opening vmcasting database file /var/lib/archipel//vmcasting.sqlite3 ESC[32mINFO ESC[0m::2015-12-21 16:16:01.180::utils.py:72::ESC[33mTNArchipelHypervisor.init (Phobos@phobos.ho.me/Phobos)ESC[0m::TNHypervisorRepoManager: Database ready. ESC[32mINFO ESC[0m::2015-12-21 16:16:01.186::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method repo_parse_hook for hook name HOOK_ARCHIPELENTITY_XMPP_AUTHENTICATED (oneshot: False) ESC[32mINFO ESC[0m::2015-12-21 16:16:01.187::utils.py:72::ESC[33mTNArchipelHypervisor.init (Phobos@phobos.ho.me/Phobos)ESC[0m::TNHypervisorRepoManager: opening vmcasting database file /var/lib/archipel//vmcasting.sqlite3 ESC[32mINFO ESC[0m::2015-12-21 16:16:01.189::utils.py:72::ESC[33mTNArchipelHypervisor.init (Phobos@phobos.ho.me/Phobos)ESC[0m::TNHypervisorRepoManager: Database ready. ESC[32mINFO ESC[0m::2015-12-21 16:16:01.195::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method repo_parse_hook for hook name HOOK_ARCHIPELENTITY_XMPP_AUTHENTICATED (oneshot: False) ESC[32mINFO ESC[0m::2015-12-21 16:16:01.195::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: loaded plugin hypervisor_vmcasts ESC[32mINFO ESC[0m::2015-12-21 16:16:01.196::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: plugin geolocalization has not been loaded because it is disabled by configuration. ESC[32mINFO ESC[0m::2015-12-21 16:16:01.200::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method create_autogroups_if_needed for hook name HOOK_ARCHIPELENTITY_PLUGIN_ALL_LOADED (oneshot: False) ESC[32mINFO ESC[0m::2015-12-21 16:16:01.200::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method handle_autogroup_for_entity for hook name HOOK_HYPERVISOR_WOKE_UP (oneshot: False) ESC[32mINFO ESC[0m::2015-12-21 16:16:01.201::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method handle_autogroup_for_entity for hook name HOOK_HYPERVISOR_ALLOC (oneshot: False) ESC[32mINFO ESC[0m::2015-12-21 16:16:01.201::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method handle_autogroup_for_entity for hook name HOOK_HYPERVISOR_SOFT_ALLOC (oneshot: False) ESC[32mINFO ESC[0m::2015-12-21 16:16:01.202::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method handle_autogroup_for_entity for hook name HOOK_HYPERVISOR_VM_WOKE_UP (oneshot: False) ESC[32mINFO ESC[0m::2015-12-21 16:16:01.209::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: loaded plugin xmppserver ESC[32mINFO ESC[0m::2015-12-21 16:16:01.216::archipelStatsCollector.py:70::Database ready. ESC[32mINFO ESC[0m::2015-12-21 16:16:01.217::archipelStatsCollector.py:79::Recovering stored statistics. It may take a while... ESC[32mINFO ESC[0m::2015-12-21 16:16:01.223::archipelStatsCollector.py:100::Statistics recovered. ESC[32mINFO ESC[0m::2015-12-21 16:16:01.229::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method start_collector for hook name HOOK_ARCHIPELENTITY_XMPP_AUTHENTICATED (oneshot: False) ESC[32mINFO ESC[0m::2015-12-21 16:16:01.229::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: loaded plugin hypervisor_health ESC[32mINFO ESC[0m::2015-12-21 16:16:01.235::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: plugin iphone_notification has not been loaded because it is disabled by configuration. ESC[32mINFO ESC[0m::2015-12-21 16:16:01.245::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: loaded plugin action_scheduler ESC[32mINFO ESC[0m::2015-12-21 16:16:01.256::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: loaded plugin hypervisor_network ESC[32mINFO ESC[0m::2015-12-21 16:16:01.264::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: loaded plugin vmparking ESC[32mINFO ESC[0m::2015-12-21 16:16:01.266::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method hypervisor_hook_xmpp_authenticated for hook name HOOK_ARCHIPELENTITY_XMPP_AUTHENTICATED (oneshot: False) ESC[32mINFO ESC[0m::2015-12-21 16:16:01.267::utils.py:72::ESC[33mTNArchipelHypervisor.initialize_modules (Phobos@phobos.ho.me/Phobos)ESC[0m::PLUGIN: loaded plugin centraldb ESC[32mINFO ESC[0m::2015-12-21 16:16:01.267::utils.py:72::ESC[33mTNArchipelHypervisor.perform_hooks (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: going to run methods for hook HOOK_ARCHIPELENTITY_PLUGIN_ALL_LOADED ESC[31mERROR ESC[0m::2015-12-21 16:16:01.270::utils.py:76::ESC[33mTNArchipelHypervisor.perform_hooks (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: error when performing method create_autogroups_if_needed for hookname HOOK_ARCHIPELENTITY_PLUGIN_ALL_LOADED: <Fault -118: 'Error -118\nA problem \'{error,account_unprivileged}\' occurred executing the command srg_list with arguments\n[{host,<<"phobos.ho.me">>}]'> ESC[32mINFO ESC[0m::2015-12-21 16:16:01.277::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method manage_vcard_hook for hook name HOOK_ARCHIPELENTITY_XMPP_AUTHENTICATED (oneshot: False) ESC[32mINFO ESC[0m::2015-12-21 16:16:01.278::utils.py:72::ESC[33mTNArchipelHypervisor.register_hook (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: registering hook method update_presence for hook name HOOK_ARCHIPELENTITY_XMPP_AUTHENTICATED (oneshot: False) ESC[32mINFO ESC[0m::2015-12-21 16:16:01.280::utils.py:72::ESC[33mTNArchipelHypervisor.connect_xmpp (Phobos@phobos.ho.me/Phobos)ESC[0m::Successfully connected to XMPP with JID Phobos@phobos.ho.me/Phobos ESC[32mINFO ESC[0m::2015-12-21 16:16:01.281::utils.py:72::ESC[33mTNArchipelHypervisor.perform_hooks (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: going to run methods for hook HOOK_ARCHIPELENTITY_XMPP_CONNECTED ESC[32mINFO ESC[0m::2015-12-21 16:16:01.281::utils.py:72::ESC[33mTNArchipelHypervisor.auth_xmpp (Phobos@phobos.ho.me/Phobos)ESC[0m::Trying to authentify the client with username Phobos and resource Phobos ESC[32mINFO ESC[0m::2015-12-21 16:16:01.285::utils.py:72::ESC[33mTNArchipelHypervisor.auth_xmpp (Phobos@phobos.ho.me/Phobos)ESC[0m::Successfully authenticated. C[31mERROR ESC[0m::2015-12-21 16:16:06.315::utils.py:76::ESC[33mTNArchipelHypervisor.on_xmpp_loop_tick (Phobos@phobos.ho.me/Phobos)ESC[0m::HYPERVISOR: No Central agent found after 5 seconds, starting vms based on local db info only. ESC[32mINFO ESC[0m::2015-12-21 16:16:06.316::utils.py:72::ESC[33mTNArchipelHypervisor.get_vms_from_local_db (Phobos@phobos.ho.me/Phobos)ESC[0m::opening database file /var/lib/archipel//hypervisor.sqlite3 ESC[32mINFO ESC[0m::2015-12-21 16:16:06.317::utils.py:72::ESC[33mTNArchipelHypervisor.get_vms_from_local_db (Phobos@phobos.ho.me/Phobos)ESC[0m::Populating database if not exists. ESC[32mINFO ESC[0m::2015-12-21 16:16:06.318::utils.py:72::ESC[33mTNArchipelHypervisor.perform_hooks (Phobos@phobos.ho.me/Phobos)ESC[0m::HOOK: going to run methods for hook HOOK_HYPERVISOR_WOKE_UP ESC[33mWARNING ESC[0m::2015-12-21 16:16:06.320::utils.py:74::ESC[33mTNArchipelHypervisor.handle_autogroup_for_entity (Phobos@phobos.ho.me/Phobos)ESC[0m::XMPPSERVER: unable to add entity Phobos@phobos.ho.me/Phobos in autogroup All Hypervisors: <Fault -118: 'Error -118\nA problem \'{error,account_unprivileged}\' occurred executing the command srg_list with arguments\n[{host,<<"phobos.ho.me">>}]'> — Reply to this email directly or view it on GitHub.

CyrilPeponnet commented 8 years ago

And the error you have regarding permissions is because you need to set your hypervors or as ejabberd admin. Either by editing the conf or use archipel-ejabberdadmin command.

CyrilPeponnet commented 8 years ago

https://github.com/ArchipelProject/Archipel/wiki/General%3A-FAQ

shawly commented 8 years ago

And the error you have regarding permissions is because you need to set your hypervors or as ejabberd admin. Either by editing the conf or use archipel-ejabberdadmin command.

This was the problem, maybe it should be mentioned somewhere.