[SERVER-9219] init script is not working after upgrade Created: 02/Apr/13 Updated: 09/Apr/13 Resolved: 05/Apr/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Packaging |
| Affects Version/s: | 2.4.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Luciano Issoe | Assignee: | Ernie Hershey |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | init, scripts | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu 12.04 LTS, mongodb 2.2.2 upgrade to 2.4.1 |
||
| Issue Links: |
|
||||||||
| Operating System: | Linux | ||||||||
| Steps To Reproduce: | apt-get update Tried both mongodb 2.4.1 init-script and older 2.2.2. Both fail. |
||||||||
| Participants: | |||||||||
| Description |
|
Installation fails. Then init scripts does not work anymore. The only way to restart is rebooting server. Then the secondary won´t catch up to the master, claiming it´s too far behind. Cleaned the data dir and then the secondary begins to do initial sync. |
| Comments |
| Comment by Ernie Hershey [ 05/Apr/13 ] |
|
That's great! I'm glad to hear it. I'll close this ticket and you can track the bug itself here: https://jira.mongodb.org/browse/SERVER-9032 |
| Comment by Luciano Issoe [ 05/Apr/13 ] |
|
Thanks, Ernie. Did that and also included LC_CTYPE=en_US.UTF-8 in ~/.bashrc. Now restarts are working. |
| Comment by Ernie Hershey [ 04/Apr/13 ] |
|
Hi Luciano, This may also be the issue from Also these steps may help correct the issue: Thanks, |
| Comment by Ernie Hershey [ 03/Apr/13 ] |
|
Hi, That doesn't look like an init script issue since it's occurring outside of the init script. Are you familiar with the considerations in our 2.4 upgrade documentation? (http://docs.mongodb.org/manual/release-notes/2.4-upgrade/) In particular, what are the versions of your other instances and did you shut down the running instance before upgrading? |
| Comment by Luciano Issoe [ 03/Apr/13 ] |
|
Hi Ernie, There´s almost nothing happening... 1- [Fail] port = 27017 But here is what happens when I try to run mongod in the shell without the init wrapper: ubuntu@rs3-ssd03:/data$ /usr/bin/mongod --dbpath /data/db --logpath /var/log/mongodb/mongodb2.log run --config /etc/mongodb2.conf Wed Apr 3 17:43:53.575 Backtrace: |
| Comment by Ernie Hershey [ 03/Apr/13 ] |
|
Hi Luciano, To help me diagnose the problem you're having, can you paste a few things here? 1) The output you get when you run /etc/init.d/mongodb restart and it doesn't work? Thanks, |