[mongodb] Actual package version (2.0.7) doesn't start

Problems with packages? Post here, using [tags] of the package name.

[mongodb] Actual package version (2.0.7) doesn't start

Postby tombatossals » Fri Mar 08, 2013 8:35 am

Hi community,
I'm running ArchlinuxArm on 2 Raspberry Pi's and everything working like a charm, what a great combination.

I need to run a mongoDB database on a Pi that I'm going to make it work like a server (nginx+nodejs+mongodb), but I'm having problems running MongoDB with the actual version of the package.

The package of mongoDB is version 2.0.7, but seems it has been compiled depending on boost-libs-1.50, which actually goes on the version 1.52.

When you try to execute something like mongoimport this message appears:

Code: Select all
[root@djin boost]# mongoimport
mongoimport: error while loading shared libraries: libboost_system.so.1.50.0: cannot open shared object file: No such file or directory


I recompiled boost to the version (1.50), and mongoimport works, but now I have a problem running the mongo server:

Code: Select all
[root@djin boost]# mongod
mongod --help for help and startup options
Fri Mar  8 08:18:29
Fri Mar  8 08:18:29 warning: 32-bit servers don't have journaling enabled by default. Please use --journal if you want durability.
Fri Mar  8 08:18:29
Fri Mar  8 08:18:29 Invalid access at address: 0x2c7f6c3

Fri Mar  8 08:18:29 Got signal: 7 (Bus error).

Fri Mar  8 08:18:29 Backtrace:
0x1a3ea4 0x4a6a54 0x4a6c90 0xb6c96480 0x16e904 0x170848 0x4ab4ac 0x1591b4 0xb6c800f0
 mongod(_ZN5mongo15printStackTraceERSo+0x18) [0x1a3ea4]
 mongod(_ZN5mongo10abruptQuitEi+0xf4) [0x4a6a54]
 mongod(_ZN5mongo24abruptQuitWithAddrSignalEiP9siginfo_tPv+0xb0) [0x4a6c90]
 /usr/lib/libc.so.6(__default_rt_sa_restorer_v2+0) [0xb6c96480]
 mongod(_ZN5mongo14BSONObjBuilder6appendERKNS_10StringDataEd+0x88) [0x16e904]
 mongod(_ZN5mongo12BsonUnitTest3runEv+0x78) [0x170848]
 mongod(_ZN5mongo8UnitTest8runTestsEv+0x4c) [0x4ab4ac]
 mongod(main+0x20ac) [0x1591b4]
 /usr/lib/libc.so.6(__libc_start_main+0x110) [0xb6c800f0]

Fri Mar  8 08:18:29 dbexit:
Fri Mar  8 08:18:29 shutdown: going to close listening sockets...
Fri Mar  8 08:18:29 shutdown: going to flush diaglog...
Fri Mar  8 08:18:29 shutdown: going to close sockets...
Fri Mar  8 08:18:29 shutdown: waiting for fs preallocator...
Fri Mar  8 08:18:29 shutdown: closing all files...
Fri Mar  8 08:18:29 closeAllFiles() finished
Fri Mar  8 08:18:29 dbexit: really exiting now



Could anyone help?
tombatossals
 
Posts: 2
Joined: Fri Mar 08, 2013 8:21 am

Re: [mongodb] Actual package version (2.0.7) doesn't start

Postby gfvos » Sat Mar 23, 2013 12:56 pm

Same result here, unfortunately. Has anyone managed to package a version of mongodb that runs on ARM?

Code: Select all
[root@alarmpi]# mongod
mongod: error while loading shared libraries: libboost_system.so.1.50.0: cannot open shared object file: No such file or directory
[root@alarmpi]# pacman -U boost-libs-1.50.0-1-armv6h.pkg.tar.xz
loading packages...
warning: downgrading package boost-libs (1.52.0-1 => 1.50.0-1)
resolving dependencies...
looking for inter-conflicts...

Targets (1): boost-libs-1.50.0-1

Total Installed Size:   6.96 MiB
Net Upgrade Size:       -0.03 MiB

Proceed with installation? [Y/n]
(1/1) checking package integrity        [##########] 100%
(1/1) loading package files             [##########] 100%
(1/1) checking for file conflicts       [##########] 100%
(1/1) checking available disk space     [##########] 100%
(1/1) upgrading boost-libs              [##########] 100%
[root@alarmpi]# mongod
mongod --help for help and startup options
Sat Mar 23 12:53:22
Sat Mar 23 12:53:22 warning: 32-bit servers don't have journaling enabled by default. Please use --journal if you want durability.
Sat Mar 23 12:53:22
Sat Mar 23 12:53:22 Invalid access at address: 0x1bbf4db

Sat Mar 23 12:53:22 Got signal: 7 (Bus error).

Sat Mar 23 12:53:22 Backtrace:
0x1a3ea4 0x4a6a54 0x4a6c90 0xb6c48480 0x16e904 0x170848 0x4ab4ac 0x1591b4 0xb6c320f0
 mongod(_ZN5mongo15printStackTraceERSo+0x18) [0x1a3ea4]
 mongod(_ZN5mongo10abruptQuitEi+0xf4) [0x4a6a54]
 mongod(_ZN5mongo24abruptQuitWithAddrSignalEiP9siginfo_tPv+0xb0) [0x4a6c90]
 /usr/lib/libc.so.6(__default_rt_sa_restorer_v2+0) [0xb6c48480]
 mongod(_ZN5mongo14BSONObjBuilder6appendERKNS_10StringDataEd+0x88) [0x16e904]
 mongod(_ZN5mongo12BsonUnitTest3runEv+0x78) [0x170848]
 mongod(_ZN5mongo8UnitTest8runTestsEv+0x4c) [0x4ab4ac]
 mongod(main+0x20ac) [0x1591b4]
 /usr/lib/libc.so.6(__libc_start_main+0x110) [0xb6c320f0]

Sat Mar 23 12:53:22 dbexit:
Sat Mar 23 12:53:22 shutdown: going to close listening sockets...
Sat Mar 23 12:53:22 shutdown: going to flush diaglog...
Sat Mar 23 12:53:22 shutdown: going to close sockets...
Sat Mar 23 12:53:22 shutdown: waiting for fs preallocator...
Sat Mar 23 12:53:22 shutdown: closing all files...
Sat Mar 23 12:53:22 closeAllFiles() finished
Sat Mar 23 12:53:22 dbexit: really exiting now
[root@alarmpi]#
gfvos
 
Posts: 7
Joined: Fri Jun 22, 2012 9:47 am

Re: [mongodb] Actual package version (2.0.7) doesn't start

Postby tombatossals » Wed Mar 27, 2013 9:34 am

I'm really interested on getting MongoDB running on a Raspberry Pi with ArchLinuxArm.

I have tried compiling projects which seems that have accomplished this, but now they are not working:

https://github.com/RickP/mongopi
https://github.com/skrabban/mongo-nonx86


Any clues about this?
tombatossals
 
Posts: 2
Joined: Fri Mar 08, 2013 8:21 am

Re: [mongodb] Actual package version (2.0.7) doesn't start

Postby tamwind » Wed Apr 17, 2013 6:40 pm

Hi,

I tried to do the same thing this week. I finally succeeded (after compiling 3 or 4 times with different methods) with the mongo-nonx86 repo (at least the server starts normally and wait for connections, but I did not try something else than mongod for now).

I could not compile at first but it seems that there is a problem with the references to TIME_UTC (seen this here but I was not able make mongodb work this way). So if your problem with this repo is just the compilation a small script like this may do the trick :

for i in `grep -lr TIME_UTC`; do
sed -i s/TIME_UTC/TIME_UTC_/ $i;
done


this changes the references to TIME_UTC TO TIME_UTC_ (to solve a collision with the standard library). I could compile properly after that with scons and scons install.

I'm running on a 256MB raspberry pi. hope this helps.
tamwind
 
Posts: 1
Joined: Wed Apr 17, 2013 6:10 pm


Return to Packages

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests