Discussion:
yum updates to mongo-2.0.7
George Niculae
2012-09-12 11:34:55 UTC
Permalink
All,

If you have 4.6 installed from RPMs / ISO and yum upgrade please mind
that it will upgrade MongoDB as well (from 2.0.2 within sipxecs repo
to 2.0.7 published in epel-release). While mongo 2.0.2 stores data in
/var/lib/mongod the new one will store it in /var/lib/mongodb.
So if you want to preserve data after yum update, you just have to
copy files from /var/lib/mongod to /var/lib/mongodb and change
permissions to mongodb:mongodb then restart mongo

George
Tony Graziano
2012-09-12 12:05:29 UTC
Permalink
I did that, in my case I moved the files, not copied them which if the DB
resides in mongodb directory we shouldn't have to leave a trail of files
all over I would assume. I get mongo dead but subsys locked now when
restarting mongo. What gives?
Post by George Niculae
All,
If you have 4.6 installed from RPMs / ISO and yum upgrade please mind
that it will upgrade MongoDB as well (from 2.0.2 within sipxecs repo
to 2.0.7 published in epel-release). While mongo 2.0.2 stores data in
/var/lib/mongod the new one will store it in /var/lib/mongodb.
So if you want to preserve data after yum update, you just have to
copy files from /var/lib/mongod to /var/lib/mongodb and change
permissions to mongodb:mongodb then restart mongo
George
_______________________________________________
sipx-users mailing list
List Archive: http://list.sipfoundry.org/archive/sipx-users/
--
~~~~~~~~~~~~~~~~~~
Tony Graziano, Manager
Telephone: 434.984.8430
sip: ***@voice.myitdepartment.net
Fax: 434.465.6833
~~~~~~~~~~~~~~~~~~
Linked-In Profile:
http://www.linkedin.com/pub/tony-graziano/14/4a6/7a4
Ask about our Internet Fax services!
~~~~~~~~~~~~~~~~~~

Using or developing for sipXecs from SIPFoundry? Ask me about sipX-CoLab
2013!
<http://sipxcolab2013.eventbrite.com/?discount=tony2013>
--
LAN/Telephony/Security and Control Systems Helpdesk:
Telephone: 434.984.8426
sip: ***@voice.myitdepartment.net

Helpdesk Customers: http://myhelp.myitdepartment.net
Blog: http://blog.myitdepartment.net
George Niculae
2012-09-12 12:10:37 UTC
Permalink
Post by Tony Graziano
I did that, in my case I moved the files, not copied them which if the DB
resides in mongodb directory we shouldn't have to leave a trail of files
all over I would assume. I get mongo dead but subsys locked now when
restarting mongo. What gives?
Can you check /var/log/mongodb/mongodb.log for errors?

George
Tony Graziano
2012-09-12 12:30:04 UTC
Permalink
Ha. Thanks.

/usr/bin/mongod: error while loading shared libraries: libjs.so.1: cannot
open shared object file: No such file or directory

you also need to install js

yum install js

in order to get mongo working again. IMO that should be called from the
update. Now it works.

Is there a way that it could be made a dependency from the sipx repo so
this does not bite a lot of folks?
On Wed, Sep 12, 2012 at 3:05 PM, Tony Graziano <
Post by Tony Graziano
I did that, in my case I moved the files, not copied them which if the DB
resides in mongodb directory we shouldn't have to leave a trail of files
all over I would assume. I get mongo dead but subsys locked now when
restarting mongo. What gives?
Can you check /var/log/mongodb/mongodb.log for errors?
George
_______________________________________________
sipx-dev mailing list
List Archive: http://list.sipfoundry.org/archive/sipx-dev/
--
~~~~~~~~~~~~~~~~~~
Tony Graziano, Manager
Telephone: 434.984.8430
sip: ***@voice.myitdepartment.net
Fax: 434.465.6833
~~~~~~~~~~~~~~~~~~
Linked-In Profile:
http://www.linkedin.com/pub/tony-graziano/14/4a6/7a4
Ask about our Internet Fax services!
~~~~~~~~~~~~~~~~~~

Using or developing for sipXecs from SIPFoundry? Ask me about sipX-CoLab
2013!
<http://sipxcolab2013.eventbrite.com/?discount=tony2013>
--
LAN/Telephony/Security and Control Systems Helpdesk:
Telephone: 434.984.8426
sip: ***@voice.myitdepartment.net

Helpdesk Customers: http://myhelp.myitdepartment.net
Blog: http://blog.myitdepartment.net
George Niculae
2012-09-12 12:31:33 UTC
Permalink
Post by Tony Graziano
Ha. Thanks.
/usr/bin/mongod: error while loading shared libraries: libjs.so.1: cannot
open shared object file: No such file or directory
you also need to install js
yum install js
in order to get mongo working again. IMO that should be called from the
update. Now it works.
Is there a way that it could be made a dependency from the sipx repo so
this does not bite a lot of folks?
Yes, I committed a fix for so we should be good from now on

George
Douglas Hubler
2012-09-12 13:13:30 UTC
Permalink
Post by Tony Graziano
I did that, in my case I moved the files, not copied them which if the DB
resides in mongodb directory we shouldn't have to leave a trail of files
all over I would assume.
move is fine
Post by Tony Graziano
I get mongo dead but subsys locked now when restarting mongo. What gives?
check permissions on /var/lib/mongodb and all files within

[***@openuc lib]# ls -alh /var/lib/mongodb
total 3.8G
drwxr-xr-x 3 mongodb root 4.0K Sep 12 05:35 .
drwxr-xr-x 28 root root 4.0K Sep 12 08:54 ..
-rw------- 1 mongodb mongodb 64M Sep 12 05:36 imdb.0
-rw------- 1 mongodb mongodb 128M Aug 7 05:50 imdb.1
-rw------- 1 mongodb mongodb 16M Sep 12 05:36 imdb.ns
drwxr-xr-x 2 mongodb mongodb 4.0K Sep 12 08:12 journal
...

Barring that, check for errors in
/var/log/mongodb/mongodb.log
Tony Graziano
2012-09-12 13:25:10 UTC
Permalink
I did a move. I made sure the folder and file were set for mongodb:mongodb
and the files were 0600 while the directory was 0755. The issue I had was
not having js installed which is a lately introduced dependency.

Would be nice if the directory were auto renamed/ownership before mongo
updates somehow.
On Wed, Sep 12, 2012 at 8:05 AM, Tony Graziano <
Post by Tony Graziano
I did that, in my case I moved the files, not copied them which if the DB
resides in mongodb directory we shouldn't have to leave a trail of files
all over I would assume.
move is fine
Post by Tony Graziano
I get mongo dead but subsys locked now when restarting mongo. What gives?
check permissions on /var/lib/mongodb and all files within
total 3.8G
drwxr-xr-x 3 mongodb root 4.0K Sep 12 05:35 .
drwxr-xr-x 28 root root 4.0K Sep 12 08:54 ..
-rw------- 1 mongodb mongodb 64M Sep 12 05:36 imdb.0
-rw------- 1 mongodb mongodb 128M Aug 7 05:50 imdb.1
-rw------- 1 mongodb mongodb 16M Sep 12 05:36 imdb.ns
drwxr-xr-x 2 mongodb mongodb 4.0K Sep 12 08:12 journal
...
Barring that, check for errors in
/var/log/mongodb/mongodb.log
_______________________________________________
sipx-users mailing list
List Archive: http://list.sipfoundry.org/archive/sipx-users/
--
~~~~~~~~~~~~~~~~~~
Tony Graziano, Manager
Telephone: 434.984.8430
sip: ***@voice.myitdepartment.net
Fax: 434.465.6833
~~~~~~~~~~~~~~~~~~
Linked-In Profile:
http://www.linkedin.com/pub/tony-graziano/14/4a6/7a4
Ask about our Internet Fax services!
~~~~~~~~~~~~~~~~~~

Using or developing for sipXecs from SIPFoundry? Ask me about sipX-CoLab
2013!
<http://sipxcolab2013.eventbrite.com/?discount=tony2013>
--
LAN/Telephony/Security and Control Systems Helpdesk:
Telephone: 434.984.8426
sip: ***@voice.myitdepartment.net

Helpdesk Customers: http://myhelp.myitdepartment.net
Blog: http://blog.myitdepartment.net
Douglas Hubler
2012-09-12 13:35:41 UTC
Permalink
Post by Tony Graziano
I did a move. I made sure the folder and file were set for mongodb:mongodb
and the files were 0600 while the directory was 0755. The issue I had was
not having js installed which is a lately introduced dependency.
Would be nice if the directory were auto renamed/ownership before mongo
updates somehow.
Interesting how this manifested. CentOS 6 decided to add mongo, which is
great, now we don't have to build it. Problem is CentOS team (really
fedora team) builds things slightly different then how 10gen builds it.
10gen hasn't accepted Fedora's patches yet. Because we started with
10gens that's how we hit this.

CentOS package team has a real bug that js is not installed, we easily have
work around already implemented so this is not an issue going forward.
Someone at CentOS will catch this soon I'm sure.

So for posterity, if you ever had to install mongo from 10gen's repo, it
would be possible by simply moving database as this thread describes.

There is another issue w/arbiter for those using that, I'm looking into
that now.
http://track.sipfoundry.org/browse/XX-10433
but we plan to keep compatibility w/10gen's file structure as it's not that
difficult and may come in handy again some day.
Post by Tony Graziano
On Wed, Sep 12, 2012 at 8:05 AM, Tony Graziano <
Post by Tony Graziano
I did that, in my case I moved the files, not copied them which if the
DB resides in mongodb directory we shouldn't have to leave a trail of files
all over I would assume.
move is fine
Post by Tony Graziano
I get mongo dead but subsys locked now when restarting mongo. What gives?
check permissions on /var/lib/mongodb and all files within
total 3.8G
drwxr-xr-x 3 mongodb root 4.0K Sep 12 05:35 .
drwxr-xr-x 28 root root 4.0K Sep 12 08:54 ..
-rw------- 1 mongodb mongodb 64M Sep 12 05:36 imdb.0
-rw------- 1 mongodb mongodb 128M Aug 7 05:50 imdb.1
-rw------- 1 mongodb mongodb 16M Sep 12 05:36 imdb.ns
drwxr-xr-x 2 mongodb mongodb 4.0K Sep 12 08:12 journal
...
Barring that, check for errors in
/var/log/mongodb/mongodb.log
_______________________________________________
sipx-users mailing list
List Archive: http://list.sipfoundry.org/archive/sipx-users/
--
~~~~~~~~~~~~~~~~~~
Tony Graziano, Manager
Telephone: 434.984.8430
Fax: 434.465.6833
~~~~~~~~~~~~~~~~~~
http://www.linkedin.com/pub/tony-graziano/14/4a6/7a4
Ask about our Internet Fax services!
~~~~~~~~~~~~~~~~~~
Using or developing for sipXecs from SIPFoundry? Ask me about sipX-CoLab
2013!
<http://sipxcolab2013.eventbrite.com/?discount=tony2013>
Telephone: 434.984.8426
Helpdesk Customers: http://myhelp.myitdepartment.**net<http://myhelp.myitdepartment.net>
Blog: http://blog.myitdepartment.net
_______________________________________________
sipx-users mailing list
List Archive: http://list.sipfoundry.org/archive/sipx-users/
Loading...