ArchipelProject / Archipel

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

[CRASH REPORT] TNStropheJIDExceptionJID (0.5.0-2b0c777 (Moon)) #453

Closed ArchipelCrashReport closed 12 years ago

ArchipelCrashReport commented 12 years ago

Name: TNStropheJIDExceptionJID Reason: Given information are not a valid JID. User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0 Version: 0.5.0-2b0c777 (Moon)

User Description: This error come when i click on my hypervisor ! I can see all the graph behind the error but it only telling me to reload or cancel and my GUI come back to the login section !

StackTrace:

{anonymous}([object Object],"alloc")@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3155,{anonymous}([object Object],"alloc")@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3619,{anonymous}([object Object],"exceptionWithName:reason:userInfo:","TNStropheJIDExceptionJID","Given information are not a valid JID.",null)@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3165,{anonymous}([object Object],"exceptionWithName:reason:userInfo:","TNStropheJIDExceptionJID","Given information are not a valid JID.",null)@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3625,{anonymous}([object Object],"raise:reason:","TNStropheJIDExceptionJID","Given information are not a valid JID.")@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3161,{anonymous}([object Object],"raise:reason:","TNStropheJIDExceptionJID","Given information are not a valid JID.")@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3623,{anonymous}([object Object],"initWithNode:domain:resource:"," &lt;uuid&gt;18e3912a-778a-600e-7212-d8987feb4f8c&lt;/uuid&gt;","raych.fr","uuid&gt;@raych.fr")@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3150,{anonymous}([object Object],"initWithNode:domain:resource:"," &lt;uuid&gt;18e3912a-778a-600e-7212-d8987feb4f8c&lt;/uuid&gt;","raych.fr","uuid&gt;@raych.fr")@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3625,{anonymous}([object Object],"initWithString:"," &lt;uuid&gt;18e3912a-778a-600e-7212-d8987feb4f8c&lt;/uuid&gt;@raych.fr")@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3171,{anonymous}([object Object],"initWithString:"," &lt;uuid&gt;18e3912a-778a-600e-7212-d8987feb4f8c&lt;/uuid&gt;@raych.fr")@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3621,{anonymous}([object Object],"stropheJIDWithString:"," &lt;uuid&gt;18e3912a-778a-600e-7212-d8987feb4f8c&lt;/uuid&gt;@raych.fr")@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3251,{anonymous}([object Object],"stropheJIDWithString:"," &lt;uuid&gt;18e3912a-778a-600e-7212-d8987feb4f8c&lt;/uuid&gt;@raych.fr")@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3621,{anonymous}([object Object],"_didReceiveHypervisorRoster:",[object Object])@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3619,{anonymous}([object Object],"_didReceiveHypervisorRoster:",[object Object])@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3621,{anonymous}([object Object],"performSelector:withObject:","_didReceiveHypervisorRoster:",[object Object])@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3171,{anonymous}([object Object],"performSelector:withObject:","_didReceiveHypervisorRoster:",[object Object])@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3623,{anonymous}([object Object],"performSelector:withObject:","_didReceiveHypervisorRoster:",[object Object])@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3331,{anonymous}([object Element])@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3366,{anonymous}([object Element])@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3906,{anonymous}([object Element])@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:4473,{anonymous}([object Element],null,(function (_de) {var i, _df;_df = _dd.handlers;_dd.handlers = [];for (i = 0; i < _df.length; i ) {var _e0 = _df[i];try {if (_e0.isMatch(_de) && (_dd.authenticated || !_e0.user)) {if (_e0.run(_de)) {_dd.handlers.push(_e0);}} else {_dd.handlers.push(_e0);}} catch (e) {}}}))@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:3544,{anonymous}([object Object])@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:4465,{anonymous}(function () {[native code]},[object Object],[object Event])@http://archipel.otoole.fr/Frameworks/Objective-J/Objective-J.js:4370

gotoole commented 12 years ago

I've been on that for 2 days and it's driving me nuts. I'v been doing each steps i've found on github tu get cappucino and capuccinostrophe works.

I'v got some bad return from my Firebug saying i miss some plist file. does that make the problem ?

ArchipelCrashReport commented 12 years ago

No info.plist thing is normal. I'll have a look at the crash today.

Antoine Mercadal

Le 3 mai 2012 à 07:35, gotoole reply@reply.github.com a écrit :

I've been on that for 2 days and it's driving me nuts. I'v been doing each steps i've found on github tu get cappucino and capuccinostrophe works.

I'v got some bad return from my Firebug saying i miss some plist file. does that make the problem ?


Reply to this email directly or view it on GitHub: https://github.com/primalmotion/Archipel/issues/453#issuecomment-5488988

gotoole commented 12 years ago

Thank's I'm really waiting for it :D

ArchipelCrashReport commented 12 years ago

I need the output of virsh list all, and your hypervisor.sqlite3

Thanks

Antoine Mercadal

Le 4 mai 2012 à 00:31, gotoole reply@reply.github.com a écrit :

Thank's I'm really waiting for it :D


Reply to this email directly or view it on GitHub: https://github.com/primalmotion/Archipel/issues/453#issuecomment-5505618

gotoole commented 12 years ago

virsh # list --all

Id Name State

50 webmaster running 54 zimbra running 55 srv2008 running 56 probe running

I don't know if that can help you ! but i delete once the hypervisor.sqlite3 and run archipel-initinstall and restart archipel and do the import of the virtual machine in the GUI after.

You can find below the link for my hypervisor.sqlite

http://ubuntuone.com/0CNTKpUZ9NL4htCHaetoeH

gotoole commented 12 years ago

I just saw i've got a problem when i execute :

archipel-commandsbytag --help

Traceback (most recent call last): File "/usr/local/bin/archipel-commandsbytag", line 5, in pkg_resources.run_script('archipel-agent==0.5.0beta', 'archipel-commandsbytag') File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 467, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1200, in run_script execfile(script_filename, namespace, namespace) File "/usr/local/lib/python2.6/dist-packages/archipel_agent-0.5.0beta-py2.6.egg/EGG-INFO/scripts/archipel-commandsbytag", line 25, in import pubsub ImportError: No module named pubsub

Maybe that can help you ;)

ArchipelCrashReport commented 12 years ago

Ok I understand

I cleaned up your hypervisor.sqlite3. try to replace yours by this one, and restart the agent. I need to check on the import code. You said that probe, srv2008, zimbra and webmaster were "imported" from the UI right?

You can dl your file here http://dl.free.fr/cJZmFqMTc

Antoine Mercadal Archipel Founder and Lead Developer http://archipelproject.org

Le 5 mai 2012 à 09:01, gotoole a écrit :

  • Archipel Agent version :
  • archipelagent: 0.5.0beta
  • Installed plugins versions :
  • archipelagentvmparking: 0.5.0beta
    • vmparking
  • archipelagentvirtualmachinevnc: 0.5.0beta
    • vnc
  • archipelagentxmppserver: 0.5.0beta
    • xmppserver
  • archipelagentvmcasting: 0.5.0beta
    • virtualmachine_appliance
    • hypervisor_vmcasts
  • archipelagentvirtualmachinestorage: 0.5.0beta
    • storage
  • archipelagentvirtualmachinesnapshoting: 0.5.0beta
    • snapshoting
  • archipelagentvirtualmachineoomkiller: 0.5.0beta
    • oomkiller
  • archipelagentiphonenotification: 0.5.0beta
    • iphone_notification
  • archipelagenthypervisornetwork: 0.5.0beta
    • hypervisor_network
  • archipelagenthypervisorhealth: 0.5.0beta
    • hypervisor_health
  • archipelagenthypervisorgeolocalization: 0.5.0beta
    • geolocalization
  • archipelagentactionscheduler: 0.5.0beta
    • action_scheduler

I just saw i've got a problem when i execute :

archipel-commandsbytag --help

Traceback (most recent call last): File "/usr/local/bin/archipel-commandsbytag", line 5, in pkg_resources.run_script('archipel-agent==0.5.0beta', 'archipel-commandsbytag') File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 467, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1200, in run_script execfile(script_filename, namespace, namespace) File "/usr/local/lib/python2.6/dist-packages/archipel_agent-0.5.0beta-py2.6.egg/EGG-INFO/scripts/archipel-commandsbytag", line 25, in import pubsub ImportError: No module named pubsub

Maybe that can help you ;)


Reply to this email directly or view it on GitHub: https://github.com/primalmotion/Archipel/issues/453#issuecomment-5528161

gotoole commented 12 years ago

Thanks it works now !!

I know where i messed up. i'v been writing down this little bash script to simplify the generating of the JID for archipel.


!/bin/bash

/etc/init.d/archipel stop virsh list | cut -d" " -f3 | sed '1,2d' | sed '$d' | while read vm do idvm=$(virsh dumpxml "$vm" | grep uuid | sed s/\//g | sed s/<\/\uuid>\//g | sed 's/ //g') /usr/local/bin/archipel-importvirtualmachine --file=/var/lib/archipel/hypervisor.sqlite3 --uuid="$idvm" --xmppserver=raych.fr --name="$vm" >> /root/vm.list echo done cat /root/vm.list

/etc/init.d/archipel start


And i think i imported bad stuff at the begining and i did it again when i redid it.

Could you please tell me if i'm right on that ? if it is, you can close the issue ;) Thank's a lot. Archipel is the most beatiful cloud computing manager i ever saw :D

Thanks again.

Gregory O'Toole

ArchipelCrashReport commented 12 years ago

The JID should be uuid@server.com for vm. Yours was UUID@server.com

You just have to improve your regex to strip the tag.

Thanks

Antoine Mercadal

Le 5 mai 2012 à 13:11, gotoole reply@reply.github.com a écrit :

Thanks it works now !!

I know where i messed up. i'v been writing down this little bash script to simplify the generating of the JID for archipel.


!/bin/bash

virsh list | cut -d" " -f3 | sed '1,2d' | sed '$d' | while read vm /etc/init.d/archipel stop do idvm=$(virsh dumpxml "$vm" | grep uuid | sed s/\//g | sed s/<\/\uuid>\//g | sed 's/ //g') /usr/local/bin/archipel-importvirtualmachine --file=/var/lib/archipel/hypervisor.sqlite3 --uuid="$idvm" --xmppserver=raych.fr --name="$vm" >> /root/vm.list echo done cat /root/vm.list

/etc/init.d/archipel start


And i think i imported bad stuff at the begining and i did it again when i redid it.

Could you please tell me if i'm right on that ? if it is, you can close the issue ;) Thank's a lot. Archipel is the most beatiful cloud computing manager i ever saw :D

Thanks again.

Gregory O'Toole


Reply to this email directly or view it on GitHub: https://github.com/primalmotion/Archipel/issues/453#issuecomment-5530110

gotoole commented 12 years ago

thank's again !!

primalmotion commented 12 years ago

I consider this closed