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 <stephen.g...@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 <gyliu...@gmail.com > > <mailto:gyliu...@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 > > <wokitaj...@gmail.com <mailto:wokitaj...@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 >