Thank you, Roberto! It worked!

On 20.03.2013, at 19:48, "Roberto De Ioris" <[email protected]> wrote:

> 
>> Hi All!
>> 
>> I have a problem that emperor_mongodb_plugin and
>> stats_pusher_mongodb_plugin don't work together. Individually, each of
>> these plug-ins work well.
>> 
>> Starting uwsgi: [uWSGI] parsing config file /etc/uwsgi.xml
>> Wed Mar 20 19:07:58 Assertion: 10352:Security is a singleton class
>> 0x7f303bb79e33 0x7f303bb72954 0x7f303bb92f52 0x7f303ac14d8b 0x7f303e1d0306
>> 0x7f303e1d03df 0x7f303e1d4ada 0x7f303e1d0176 0x7f303e1d431a 0x7f303daa4f26
>> 0x7f303e1d0176 0x7f303daa552f 0x7f303daa4fc1 0x443649 0x451507 0x41ddf9
>> 0x45b469 0x41ddf9 0x43f8ea 0x41a3ef
>> /opt/uwsgi_plugins/emperor_mongodb_plugin.so(_ZN5mongo15printStackTraceERSo+0x23)
>> [0x7f303bb79e33]
>> /opt/uwsgi_plugins/emperor_mongodb_plugin.so(_ZN5mongo11msgassertedEiPKc+0x94)
>> [0x7f303bb72954]
>> /opt/uwsgi_plugins/emperor_mongodb_plugin.so(+0xd3f52) [0x7f303bb92f52]
>> /opt/uwsgi_plugins/stats_pusher_mongodb_plugin.so(+0x5ad8b)
>> [0x7f303ac14d8b]
>> /lib64/ld-linux-x86-64.so.2(+0xf306) [0x7f303e1d0306]
>> /lib64/ld-linux-x86-64.so.2(+0xf3df) [0x7f303e1d03df]
>> /lib64/ld-linux-x86-64.so.2(+0x13ada) [0x7f303e1d4ada]
>> /lib64/ld-linux-x86-64.so.2(+0xf176) [0x7f303e1d0176]
>> /lib64/ld-linux-x86-64.so.2(+0x1331a) [0x7f303e1d431a]
>> /lib/x86_64-linux-gnu/libdl.so.2(+0xf26) [0x7f303daa4f26]
>> /lib64/ld-linux-x86-64.so.2(+0xf176) [0x7f303e1d0176]
>> /lib/x86_64-linux-gnu/libdl.so.2(+0x152f) [0x7f303daa552f]
>> /lib/x86_64-linux-gnu/libdl.so.2(dlopen+0x31) [0x7f303daa4fc1]
>> /usr/bin/uwsgi(uwsgi_load_plugin+0x2d9) [0x443649]
>> /usr/bin/uwsgi(uwsgi_opt_load_plugin+0x37) [0x451507]
>> /usr/bin/uwsgi(add_exported_option+0x2d9) [0x41ddf9]
>> /usr/bin/uwsgi(uwsgi_xml_config+0x249) [0x45b469]
>> /usr/bin/uwsgi(add_exported_option+0x2d9) [0x41ddf9]
>> /usr/bin/uwsgi(uwsgi_commandline_config+0x4a) [0x43f8ea]
>> /usr/bin/uwsgi(main+0x7ef) [0x41a3ef]
>> terminate called after throwing an instance of
>> 'mongo::MsgAssertionException'
>>  what():  Security is a singleton class
>> Aborted (core dumped)
>> uwsgi.
>> 
>> My config:
>> <uwsgi>
>>        <plugin-dir>/opt/uwsgi_plugins</plugin-dir>
>>        <plugin>emperor_mongodb,stats_pusher_mongodb</plugin>
>>        <daemonize>/var/log/uwsgi.log</daemonize>
>>        
>> <emperor>mongodb://127.0.0.1:27017,emperor.vassals,{enabled:1}</emperor>
>>        
>> <stats-push>mongodb:addr=127.0.0.1:27017,collection=uwsgi.stats,freq=4</stats-push>
>>        <uid>uwsgi</uid>
>>        <gid>uwsgi</gid>
>> </uwsgi>
>> 
>> I use:
>> uWSGI 1.9,all  plugins compiled headers mongodb 2.2.3
>> cpp (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
>> Boost 1.48
>> Ubuntu 12.04 amd64
>> 
>> Is this some kind BUG?
>> 
> 
> If i remember correctly this happens when your system uses a static
> libmongoclient.so (you should note a libmongoclient.a file instead).
> 
> To fix this modify uwsgiplugin.py of one of the two plugin to set LIBS = []
> (empty).
> 
> After this, be sure to load the plugin with non-empty LIBS before.
> 
> 
> 
> -- 
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to