Looks like the newly checked in code is looking for
/usr/bin/cloudstack-agent-upgrade.

I don't see that file in /usr/bin, however.

I only see the following cloudstack* in /usr/bin:

cloudstack-set-guest-password
cloudstack-set-guest-sshkey
cloudstack-setup-agent
cloudstack-ssh


On Thu, Sep 26, 2013 at 3:41 PM, Mike Tutkowski <
mike.tutkow...@solidfire.com> wrote:

> Looks like the new code references cloudstack-agent-upgrade.
>
> I'm on Ubuntu 12.04, by the way.
>
> /var/lib/dpkg/info/cloudstack-agent.postinst: line 39:
> /usr/bin/cloudstack-agent-upgrade: No such file or directory
> dpkg: error processing cloudstack-agent (--configure):
>  subprocess installed post-installation script returned error exit status 1
> Errors were encountered while processing:
>  cloudstack-agent
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
>
>
> On Thu, Sep 26, 2013 at 2:57 PM, Mike Tutkowski <
> mike.tutkow...@solidfire.com> wrote:
>
>> OK, thanks!
>>
>>
>> On Thu, Sep 26, 2013 at 2:52 PM, Wei ZHOU <ustcweiz...@gmail.com> wrote:
>>
>>> Mike,
>>> Sorry my fault. already fixed by commit
>>> 522860c03de5d05126f92fc44b6e3f50ed8439f0
>>> Please pull the latest code.
>>>
>>>
>>> 2013/9/26 Mike Tutkowski <mike.tutkow...@solidfire.com>
>>>
>>> > Any thoughts on this error message?
>>> >
>>> > I updated from master today, cleaned, recompiled, then rebuilt and
>>> > redeployed the DEBs.
>>> >
>>> > Thanks
>>> >
>>> > mtutkowski@ubuntu:~$ sudo apt-get install cloudstack-agent
>>> > Reading package lists... Done
>>> > Building dependency tree
>>> > Reading state information... Done
>>> > The following NEW packages will be installed:
>>> >   cloudstack-agent
>>> > 0 upgraded, 1 newly installed, 0 to remove and 468 not upgraded.
>>> > Need to get 39.1 MB of archives.
>>> > After this operation, 43.6 MB of additional disk space will be used.
>>> > WARNING: The following packages cannot be authenticated!
>>> >   cloudstack-agent
>>> > Install these packages without verification [y/N]? y
>>> > Get:1 http://localhost/cloudstack/repo/ binary/ cloudstack-agent 4.3.0
>>> > [39.1 MB]
>>> > Fetched 39.1 MB in 0s (49.3 MB/s)
>>> > Selecting previously unselected package cloudstack-agent.
>>> > (Reading database ... 168800 files and directories currently
>>> installed.)
>>> > Unpacking cloudstack-agent (from .../cloudstack-agent_4.3.0_all.deb)
>>> ...
>>> > Processing triggers for ureadahead ...
>>> > Setting up cloudstack-agent (4.3.0) ...
>>> > /var/lib/dpkg/info/cloudstack-agent.postinst: line 39:
>>> > /usr/bin/cloudstack-agent-upgrade: No such file or directory
>>> > dpkg: error processing cloudstack-agent (--configure):
>>> >  subprocess installed post-installation script returned error exit
>>> status 1
>>> > E: Sub-process /usr/bin/dpkg returned an error code (1)
>>> >
>>> >
>>> >
>>> > On Thu, Sep 26, 2013 at 8:45 AM, Mike Tutkowski <
>>> > mike.tutkow...@solidfire.com> wrote:
>>> >
>>> > > Let me update and try again and see if that solves the problem.
>>> > >
>>> > > I am probably a week behind on updating from master.
>>> > >
>>> > > Thanks
>>> > >
>>> > >
>>> > > On Wed, Sep 25, 2013 at 11:18 PM, Wei ZHOU <ustcweiz...@gmail.com>
>>> > wrote:
>>> > >
>>> > >> Mike,
>>> > >> Do you test the latest source code?
>>> > >>
>>> > >>  Pointer.nativeValue  is introduced in jna-3.2.6
>>> > >>
>>> > >>
>>> >
>>> http://upstream-tracker.org/java/compat_reports/jna/3.2.5_to_3.2.6/bin_compat_report.html
>>> > >> and Native.free  is introduced in jna-3.3.0
>>> > >>
>>> > >>
>>> >
>>> http://upstream-tracker.org/java/compat_reports/jna/3.2.7_to_3.3.0/bin_compat_report.html
>>> > >>
>>> > >> After commit 3dc4284,  jna-4.0.0.jar is in
>>> > /usr/share/cloudstack-agent/lib
>>> > >> , then it should be ok.
>>> > >>
>>> > >> -Wei
>>> > >>
>>> > >>
>>> > >> 2013/9/26 Mike Tutkowski <mike.tutkow...@solidfire.com>
>>> > >>
>>> > >> > Hi,
>>> > >> >
>>> > >> > I've been having a difficult time getting the KVM agent on master
>>> to
>>> > >> start
>>> > >> > on Ubuntu 12.04.
>>> > >> >
>>> > >> > The trouble seems to have begun after the Libvirt upgrade.
>>> > >> >
>>> > >> > Any thoughts on this:
>>> > >> >
>>> > >> > Thanks!
>>> > >> >
>>> > >> > log4j:WARN No appenders could be found for logger
>>> > >> > (org.apache.commons.httpclient.params.DefaultHttpParams).
>>> > >> > log4j:WARN Please initialize the log4j system properly.
>>> > >> > log4j:WARN See
>>> > http://logging.apache.org/log4j/1.2/faq.html#noconfigfor
>>> > >> > more info.
>>> > >> > java.lang.reflect.InvocationTargetException
>>> > >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> > >> > at
>>> > >> >
>>> > >> >
>>> > >>
>>> >
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> > >> > at
>>> > >> >
>>> > >> >
>>> > >>
>>> >
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> > >> > at java.lang.reflect.Method.invoke(Method.java:606)
>>> > >> > at
>>> > >> >
>>> > >>
>>> >
>>> org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243)
>>> > >> > Caused by: java.lang.NoSuchMethodError:
>>> com.sun.jna.Native.free(J)V
>>> > >> > at org.libvirt.Library.free(Unknown Source)
>>> > >> > at org.libvirt.Connect.getCapabilities(Unknown Source)
>>> > >> > at
>>> > >> >
>>> > >> >
>>> > >>
>>> >
>>> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.IsHVMEnabled(LibvirtComputingResource.java:4524)
>>> > >> > at
>>> > >> >
>>> > >> >
>>> > >>
>>> >
>>> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.configure(LibvirtComputingResource.java:753)
>>> > >> > at com.cloud.agent.Agent.<init>(Agent.java:168)
>>> > >> > at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:439)
>>> > >> > at
>>> > >>
>>> com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:386)
>>> > >> > at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:361)
>>> > >> > at com.cloud.agent.AgentShell.start(AgentShell.java:473)
>>> > >> > ... 5 more
>>> > >> > Cannot start daemon
>>> > >> > Service exit with a return value of 5
>>> > >> >
>>> > >> >
>>> > >> > On Wed, Sep 25, 2013 at 6:03 PM, Yoshikazu Nojima <
>>> m...@ynojima.net>
>>> > >> > wrote:
>>> > >> >
>>> > >> > > Hi Wei,
>>> > >> > >
>>> > >> > > Thank you for fix it!
>>> > >> > >
>>> > >> > > 2013/9/25 Wei ZHOU <ustcweiz...@gmail.com>:
>>> > >> > > > fixed by commit 3dc4284
>>> > >> > > >
>>> > >> > > >
>>> > >> > > > commit 3dc4284a34a1c79970b30288c245a26e8425e811
>>> > >> > > > Author: Wei Zhou <w.z...@leaseweb.com>
>>> > >> > > > Date:   Wed Sep 25 11:08:57 2013 +0200
>>> > >> > > >     add missing jna-4.0.0.jar to cloudstack-agent library by
>>> > >> changing
>>> > >> > > scope
>>> > >> > > > from provided to default runtime
>>> > >> > > > diff --git a/plugins/hypervisors/kvm/pom.xml
>>> > >> > > > b/plugins/hypervisors/kvm/pom.xml
>>> > >> > > > index 4c0ec98..024cafe 100644
>>> > >> > > > --- a/plugins/hypervisors/kvm/pom.xml
>>> > >> > > > +++ b/plugins/hypervisors/kvm/pom.xml
>>> > >> > > > @@ -51,7 +51,6 @@
>>> > >> > > >      <dependency>
>>> > >> > > >        <groupId>net.java.dev.jna</groupId>
>>> > >> > > >         <artifactId>jna</artifactId>
>>> > >> > > > -       <scope>provided</scope>
>>> > >> > > >         <version>${cs.jna.version}</version>
>>> > >> > > >      </dependency>
>>> > >> > > >    </dependencies>
>>> > >> > > >
>>> > >> > > >
>>> > >> > > > 2013/9/25 Wei ZHOU <ustcweiz...@gmail.com>
>>> > >> > > >
>>> > >> > > >> I tried both java 6 and java 7.
>>> > >> > > >> build and install successfully
>>> > >> > > >> agent can not restart.
>>> > >> > > >> I will try after jna.version change .
>>> > >> > > >>
>>> > >> > >
>>> > >> >
>>> > >> >
>>> > >> >
>>> > >> > --
>>> > >> > *Mike Tutkowski*
>>> > >> > *Senior CloudStack Developer, SolidFire Inc.*
>>> > >> > e: mike.tutkow...@solidfire.com
>>> > >> > o: 303.746.7302
>>> > >> > Advancing the way the world uses the
>>> > >> > cloud<http://solidfire.com/solution/overview/?video=play>
>>> > >> > *™*
>>> > >> >
>>> > >>
>>> > >
>>> > >
>>> > >
>>> > > --
>>> > > *Mike Tutkowski*
>>> > > *Senior CloudStack Developer, SolidFire Inc.*
>>> > > e: mike.tutkow...@solidfire.com
>>> > > o: 303.746.7302
>>> > > Advancing the way the world uses the cloud<
>>> > http://solidfire.com/solution/overview/?video=play>
>>> > > *™*
>>> > >
>>> >
>>> >
>>> >
>>> > --
>>> > *Mike Tutkowski*
>>> > *Senior CloudStack Developer, SolidFire Inc.*
>>> > e: mike.tutkow...@solidfire.com
>>> > o: 303.746.7302
>>> > Advancing the way the world uses the
>>> > cloud<http://solidfire.com/solution/overview/?video=play>
>>> > *™*
>>> >
>>>
>>
>>
>>
>> --
>> *Mike Tutkowski*
>> *Senior CloudStack Developer, SolidFire Inc.*
>> e: mike.tutkow...@solidfire.com
>> o: 303.746.7302
>> Advancing the way the world uses the 
>> cloud<http://solidfire.com/solution/overview/?video=play>
>> *™*
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkow...@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the 
> cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Reply via email to