You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Kamil Wokitajtis <wo...@gmail.com> on 2016/06/06 10:38:09 UTC

0.28.2 - mesos-docker-executor - libmesos not found

Hi,

I have upgraded my mesos env from 0.28.1 to 0.28.2.
On 0.28.1 everything worked just fine.
Now agents are unable to start docker images, mesos throws:

mesos-docker-executor: error while loading shared libraries:
libmesos-0.28.2.so: cannot open shared object file: No such  file or
directory

Just like for Mesos 0.28.1 where it works, libmesos-0.28.2 is in
/usr/local/lib
There is also symlink libmesos.so -> libmesos-0.28.2.
/etc/ld.so.conf.d/libc.conf contains /usr/local/lib entry.
I have also tried exporting LD_LIBRARY_PATH in startup scripts, no luck.

Thanks,
Kamil

Re: 0.28.2 - mesos-docker-executor - libmesos not found

Posted by haosdent <ha...@gmail.com>.
I encounter this problem before, because some distribution of Linux didn't
add /usr/local/lib in default library search path.
And I try edit /etc/ld.so.conf and to include `/usr/local/lib` then
execute ldconfig in Agent. It works for me.

On Mon, Jun 6, 2016 at 8:47 PM, Kamil Wokitajtis <wo...@gmail.com>
wrote:

> I have solved this issue by adding env variable to marathon app deployment
> json:
>
> "env": {
>   "LD_LIBRARY_PATH" : "/usr/local/lib"
> }
>
> Maybe someone could shed light, why 0.28.2 is unable to locate libmesos
> without exporting LD_LIBRARY_PATH?
>
>
>
> 2016-06-06 14:21 GMT+02:00 Kamil Wokitajtis <wo...@gmail.com>:
>
>> For 0.28.1:
>> root@pltr-app-pl01:~# ldd /usr/local/libexec/mesos/mesos-docker-executor
>> | grep libmesos
>>         libmesos-0.28.1.so => /usr/local/lib/libmesos-0.28.1.so
>>  (0x00007fbf522b6000)
>>
>> For 0.28.2, as expected, library not found:
>> root@pltr-app-pl02:~# ldd /usr/local/libexec/mesos/mesos-docker-executor
>> | grep libmesos
>>         libmesos-0.28.2.so => not found
>>
>> After exporting LD_LIBRARY_PATH, libmesos is found as expected:
>> root@pltr-app-pl02:~# export LD_LIBRARY_PATH=/usr/local/lib
>> root@pltr-app-pl02:~# ldd /usr/local/libexec/mesos/mesos-docker-executor
>> | grep mesos
>>         libmesos-0.28.2.so => /usr/local/lib/libmesos-0.28.2.so
>>  (0x00007f219a8c1000)
>>
>> Looks like exporting LD_LIBRARY_PATH should help. But exporting this
>> variable in mesos startup scripts doesn't seem to solve issue.
>>
>>
>> 2016-06-06 13:50 GMT+02:00 Guangya Liu <gy...@gmail.com>:
>>
>>> You can check what is the output of `ldd mesos-docker-executor` to see
>>> if the libmesos-xxx is in the right location.
>>>
>>> [root@dcos001 mesosphere]# ldd
>>> ./packages/mesos--0335ca0d3700ea88ad8b808f3b1b84d747ed07f0/libexec/mesos/mesos-docker-executor
>>> | grep libmesos
>>> libmesos-0.28.1.so =>
>>> /opt/mesosphere/packages/mesos--0335ca0d3700ea88ad8b808f3b1b84d747ed07f0/lib/
>>> libmesos-0.28.1.so (0x00007f5cf1cb1000)
>>>
>>> Thanks,
>>>
>>> Guangya
>>>
>>> On Mon, Jun 6, 2016 at 6:38 PM, Kamil Wokitajtis <wo...@gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I have upgraded my mesos env from 0.28.1 to 0.28.2.
>>>> On 0.28.1 everything worked just fine.
>>>> Now agents are unable to start docker images, mesos throws:
>>>>
>>>> mesos-docker-executor: error while loading shared libraries:
>>>> libmesos-0.28.2.so: cannot open shared object file: No such  file or
>>>> directory
>>>>
>>>> Just like for Mesos 0.28.1 where it works, libmesos-0.28.2 is in
>>>> /usr/local/lib
>>>> There is also symlink libmesos.so -> libmesos-0.28.2.
>>>> /etc/ld.so.conf.d/libc.conf contains /usr/local/lib entry.
>>>> I have also tried exporting LD_LIBRARY_PATH in startup scripts, no luck.
>>>>
>>>> Thanks,
>>>> Kamil
>>>>
>>>>
>>>
>>
>


-- 
Best Regards,
Haosdent Huang

Re: 0.28.2 - mesos-docker-executor - libmesos not found

Posted by Kamil Wokitajtis <wo...@gmail.com>.
I have solved this issue by adding env variable to marathon app deployment
json:

"env": {
  "LD_LIBRARY_PATH" : "/usr/local/lib"
}

Maybe someone could shed light, why 0.28.2 is unable to locate libmesos
without exporting LD_LIBRARY_PATH?



2016-06-06 14:21 GMT+02:00 Kamil Wokitajtis <wo...@gmail.com>:

> For 0.28.1:
> root@pltr-app-pl01:~# ldd /usr/local/libexec/mesos/mesos-docker-executor
> | grep libmesos
>         libmesos-0.28.1.so => /usr/local/lib/libmesos-0.28.1.so
>  (0x00007fbf522b6000)
>
> For 0.28.2, as expected, library not found:
> root@pltr-app-pl02:~# ldd /usr/local/libexec/mesos/mesos-docker-executor
> | grep libmesos
>         libmesos-0.28.2.so => not found
>
> After exporting LD_LIBRARY_PATH, libmesos is found as expected:
> root@pltr-app-pl02:~# export LD_LIBRARY_PATH=/usr/local/lib
> root@pltr-app-pl02:~# ldd /usr/local/libexec/mesos/mesos-docker-executor
> | grep mesos
>         libmesos-0.28.2.so => /usr/local/lib/libmesos-0.28.2.so
>  (0x00007f219a8c1000)
>
> Looks like exporting LD_LIBRARY_PATH should help. But exporting this
> variable in mesos startup scripts doesn't seem to solve issue.
>
>
> 2016-06-06 13:50 GMT+02:00 Guangya Liu <gy...@gmail.com>:
>
>> You can check what is the output of `ldd mesos-docker-executor` to see if
>> the libmesos-xxx is in the right location.
>>
>> [root@dcos001 mesosphere]# ldd
>> ./packages/mesos--0335ca0d3700ea88ad8b808f3b1b84d747ed07f0/libexec/mesos/mesos-docker-executor
>> | grep libmesos
>> libmesos-0.28.1.so =>
>> /opt/mesosphere/packages/mesos--0335ca0d3700ea88ad8b808f3b1b84d747ed07f0/lib/
>> libmesos-0.28.1.so (0x00007f5cf1cb1000)
>>
>> Thanks,
>>
>> Guangya
>>
>> On Mon, Jun 6, 2016 at 6:38 PM, Kamil Wokitajtis <wo...@gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I have upgraded my mesos env from 0.28.1 to 0.28.2.
>>> On 0.28.1 everything worked just fine.
>>> Now agents are unable to start docker images, mesos throws:
>>>
>>> mesos-docker-executor: error while loading shared libraries:
>>> libmesos-0.28.2.so: cannot open shared object file: No such  file or
>>> directory
>>>
>>> Just like for Mesos 0.28.1 where it works, libmesos-0.28.2 is in
>>> /usr/local/lib
>>> There is also symlink libmesos.so -> libmesos-0.28.2.
>>> /etc/ld.so.conf.d/libc.conf contains /usr/local/lib entry.
>>> I have also tried exporting LD_LIBRARY_PATH in startup scripts, no luck.
>>>
>>> Thanks,
>>> Kamil
>>>
>>>
>>
>

Re: 0.28.2 - mesos-docker-executor - libmesos not found

Posted by Kamil Wokitajtis <wo...@gmail.com>.
Thanks, that was the case. I wonder why I didn't have to run ldconfig in
the first place after 0.28.1 install.
Anyway, another lesson learnt.

2016-06-06 14:51 GMT+02:00 Stephen Gran <st...@piksel.com>:

> Hi,
>
> Run ldconfig after install?
>
> Cheers,
>
> On 06/06/16 13:21, Kamil Wokitajtis wrote:
> > For 0.28.1:
> > root@pltr-app-pl01:~# ldd /usr/local/libexec/mesos/mesos-docker-executor
> > | grep libmesos
> > libmesos-0.28.1.so <http://libmesos-0.28.1.so/> =>
> > /usr/local/lib/libmesos-0.28.1.so
> > <http://libmesos-0.28.1.so/> (0x00007fbf522b6000)
> >
> > For 0.28.2, as expected, library not found:
> > root@pltr-app-pl02:~# ldd /usr/local/libexec/mesos/mesos-docker-executor
> > | grep libmesos
> > libmesos-0.28.2.so <http://libmesos-0.28.2.so/> => not found
> >
> > After exporting LD_LIBRARY_PATH, libmesos is found as expected:
> > root@pltr-app-pl02:~#export LD_LIBRARY_PATH=/usr/local/lib
> > root@pltr-app-pl02:~# ldd /usr/local/libexec/mesos/mesos-docker-executor
> > | grep mesos
> > libmesos-0.28.2.so <http://libmesos-0.28.2.so/> =>
> > /usr/local/lib/libmesos-0.28.2.so
> > <http://libmesos-0.28.2.so/> (0x00007f219a8c1000)
> >
> > Looks like exporting LD_LIBRARY_PATH should help. But exporting this
> > variable in mesos startup scripts doesn't seem to solve issue.
> >
> >
> > 2016-06-06 13:50 GMT+02:00 Guangya Liu <gyliu513@gmail.com
> > <ma...@gmail.com>>:
> >
> >     You can check what is the output of `ldd mesos-docker-executor` to
> >     see if the libmesos-xxx is in the right location.
> >
> >     [root@dcos001 mesosphere]# ldd
> >
>  ./packages/mesos--0335ca0d3700ea88ad8b808f3b1b84d747ed07f0/libexec/mesos/mesos-docker-executor
> >     | grep libmesos
> >     libmesos-0.28.1.so <http://libmesos-0.28.1.so> =>
> >
>  /opt/mesosphere/packages/mesos--0335ca0d3700ea88ad8b808f3b1b84d747ed07f0/lib/
> libmesos-0.28.1.so
> >     <http://libmesos-0.28.1.so> (0x00007f5cf1cb1000)
> >
> >     Thanks,
> >
> >     Guangya
> >
> >     On Mon, Jun 6, 2016 at 6:38 PM, Kamil Wokitajtis
> >     <wokitajtis@gmail.com <ma...@gmail.com>> wrote:
> >
> >         Hi,
> >
> >         I have upgraded my mesos env from 0.28.1 to 0.28.2.
> >         On 0.28.1 everything worked just fine.
> >         Now agents are unable to start docker images, mesos throws:
> >
> >         mesos-docker-executor: error while loading shared libraries:
> >         libmesos-0.28.2.so <http://libmesos-0.28.2.so/>: cannot open
> >         shared object file: No such  file or directory
> >
> >         Just like for Mesos 0.28.1 where it works, libmesos-0.28.2 is in
> >         /usr/local/lib
> >         There is also symlink libmesos.so -> libmesos-0.28.2.
> >         /etc/ld.so.conf.d/libc.conf contains /usr/local/lib entry.
> >         I have also tried exporting LD_LIBRARY_PATH in startup scripts,
> >         no luck.
> >
> >         Thanks,
> >         Kamil
> >
> >
> >
>
> --
> Stephen Gran
> Senior Technical Architect
>
> picture the possibilities | piksel.com
>

Re: 0.28.2 - mesos-docker-executor - libmesos not found

Posted by Stephen Gran <st...@piksel.com>.
Hi,

Run ldconfig after install?

Cheers,

On 06/06/16 13:21, Kamil Wokitajtis wrote:
> For 0.28.1:
> root@pltr-app-pl01:~# ldd /usr/local/libexec/mesos/mesos-docker-executor
> | grep libmesos
> libmesos-0.28.1.so <http://libmesos-0.28.1.so/> =>
> /usr/local/lib/libmesos-0.28.1.so
> <http://libmesos-0.28.1.so/> (0x00007fbf522b6000)
>
> For 0.28.2, as expected, library not found:
> root@pltr-app-pl02:~# ldd /usr/local/libexec/mesos/mesos-docker-executor
> | grep libmesos
> libmesos-0.28.2.so <http://libmesos-0.28.2.so/> => not found
>
> After exporting LD_LIBRARY_PATH, libmesos is found as expected:
> root@pltr-app-pl02:~#export LD_LIBRARY_PATH=/usr/local/lib
> root@pltr-app-pl02:~# ldd /usr/local/libexec/mesos/mesos-docker-executor
> | grep mesos
> libmesos-0.28.2.so <http://libmesos-0.28.2.so/> =>
> /usr/local/lib/libmesos-0.28.2.so
> <http://libmesos-0.28.2.so/> (0x00007f219a8c1000)
>
> Looks like exporting LD_LIBRARY_PATH should help. But exporting this
> variable in mesos startup scripts doesn't seem to solve issue.
>
>
> 2016-06-06 13:50 GMT+02:00 Guangya Liu <gyliu513@gmail.com
> <ma...@gmail.com>>:
>
>     You can check what is the output of `ldd mesos-docker-executor` to
>     see if the libmesos-xxx is in the right location.
>
>     [root@dcos001 mesosphere]# ldd
>     ./packages/mesos--0335ca0d3700ea88ad8b808f3b1b84d747ed07f0/libexec/mesos/mesos-docker-executor
>     | grep libmesos
>     libmesos-0.28.1.so <http://libmesos-0.28.1.so> =>
>     /opt/mesosphere/packages/mesos--0335ca0d3700ea88ad8b808f3b1b84d747ed07f0/lib/libmesos-0.28.1.so
>     <http://libmesos-0.28.1.so> (0x00007f5cf1cb1000)
>
>     Thanks,
>
>     Guangya
>
>     On Mon, Jun 6, 2016 at 6:38 PM, Kamil Wokitajtis
>     <wokitajtis@gmail.com <ma...@gmail.com>> wrote:
>
>         Hi,
>
>         I have upgraded my mesos env from 0.28.1 to 0.28.2.
>         On 0.28.1 everything worked just fine.
>         Now agents are unable to start docker images, mesos throws:
>
>         mesos-docker-executor: error while loading shared libraries:
>         libmesos-0.28.2.so <http://libmesos-0.28.2.so/>: cannot open
>         shared object file: No such  file or directory
>
>         Just like for Mesos 0.28.1 where it works, libmesos-0.28.2 is in
>         /usr/local/lib
>         There is also symlink libmesos.so -> libmesos-0.28.2.
>         /etc/ld.so.conf.d/libc.conf contains /usr/local/lib entry.
>         I have also tried exporting LD_LIBRARY_PATH in startup scripts,
>         no luck.
>
>         Thanks,
>         Kamil
>
>
>

-- 
Stephen Gran
Senior Technical Architect

picture the possibilities | piksel.com

Re: 0.28.2 - mesos-docker-executor - libmesos not found

Posted by Kamil Wokitajtis <wo...@gmail.com>.
For 0.28.1:
root@pltr-app-pl01:~# ldd /usr/local/libexec/mesos/mesos-docker-executor |
grep libmesos
        libmesos-0.28.1.so => /usr/local/lib/libmesos-0.28.1.so
 (0x00007fbf522b6000)

For 0.28.2, as expected, library not found:
root@pltr-app-pl02:~# ldd /usr/local/libexec/mesos/mesos-docker-executor |
grep libmesos
        libmesos-0.28.2.so => not found

After exporting LD_LIBRARY_PATH, libmesos is found as expected:
root@pltr-app-pl02:~# export LD_LIBRARY_PATH=/usr/local/lib
root@pltr-app-pl02:~# ldd /usr/local/libexec/mesos/mesos-docker-executor |
grep mesos
        libmesos-0.28.2.so => /usr/local/lib/libmesos-0.28.2.so
 (0x00007f219a8c1000)

Looks like exporting LD_LIBRARY_PATH should help. But exporting this
variable in mesos startup scripts doesn't seem to solve issue.


2016-06-06 13:50 GMT+02:00 Guangya Liu <gy...@gmail.com>:

> You can check what is the output of `ldd mesos-docker-executor` to see if
> the libmesos-xxx is in the right location.
>
> [root@dcos001 mesosphere]# ldd
> ./packages/mesos--0335ca0d3700ea88ad8b808f3b1b84d747ed07f0/libexec/mesos/mesos-docker-executor
> | grep libmesos
> libmesos-0.28.1.so =>
> /opt/mesosphere/packages/mesos--0335ca0d3700ea88ad8b808f3b1b84d747ed07f0/lib/
> libmesos-0.28.1.so (0x00007f5cf1cb1000)
>
> Thanks,
>
> Guangya
>
> On Mon, Jun 6, 2016 at 6:38 PM, Kamil Wokitajtis <wo...@gmail.com>
> wrote:
>
>> Hi,
>>
>> I have upgraded my mesos env from 0.28.1 to 0.28.2.
>> On 0.28.1 everything worked just fine.
>> Now agents are unable to start docker images, mesos throws:
>>
>> mesos-docker-executor: error while loading shared libraries:
>> libmesos-0.28.2.so: cannot open shared object file: No such  file or
>> directory
>>
>> Just like for Mesos 0.28.1 where it works, libmesos-0.28.2 is in
>> /usr/local/lib
>> There is also symlink libmesos.so -> libmesos-0.28.2.
>> /etc/ld.so.conf.d/libc.conf contains /usr/local/lib entry.
>> I have also tried exporting LD_LIBRARY_PATH in startup scripts, no luck.
>>
>> Thanks,
>> Kamil
>>
>>
>

Re: 0.28.2 - mesos-docker-executor - libmesos not found

Posted by Guangya Liu <gy...@gmail.com>.
You can check what is the output of `ldd mesos-docker-executor` to see if
the libmesos-xxx is in the right location.

[root@dcos001 mesosphere]# ldd
./packages/mesos--0335ca0d3700ea88ad8b808f3b1b84d747ed07f0/libexec/mesos/mesos-docker-executor
| grep libmesos
libmesos-0.28.1.so =>
/opt/mesosphere/packages/mesos--0335ca0d3700ea88ad8b808f3b1b84d747ed07f0/lib/
libmesos-0.28.1.so (0x00007f5cf1cb1000)

Thanks,

Guangya

On Mon, Jun 6, 2016 at 6:38 PM, Kamil Wokitajtis <wo...@gmail.com>
wrote:

> Hi,
>
> I have upgraded my mesos env from 0.28.1 to 0.28.2.
> On 0.28.1 everything worked just fine.
> Now agents are unable to start docker images, mesos throws:
>
> mesos-docker-executor: error while loading shared libraries:
> libmesos-0.28.2.so: cannot open shared object file: No such  file or
> directory
>
> Just like for Mesos 0.28.1 where it works, libmesos-0.28.2 is in
> /usr/local/lib
> There is also symlink libmesos.so -> libmesos-0.28.2.
> /etc/ld.so.conf.d/libc.conf contains /usr/local/lib entry.
> I have also tried exporting LD_LIBRARY_PATH in startup scripts, no luck.
>
> Thanks,
> Kamil
>
>