[SERVER-31869] mongodb crashes on package upgrade on Xenial Created: 08/Nov/17 Updated: 07/Jan/18 Resolved: 08/Dec/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 3.2.17 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Fred Leeflang | Assignee: | Mark Agarunov |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Operating System: | ALL |
| Participants: |
| Description |
|
After a package upgrade on mongo2, mongodb crashes on startup:
|
| Comments |
| Comment by Fred Leeflang [ 08/Dec/17 ] |
|
Sorry about that Mark, I no longer work for that company. Thanks for your time though, |
| Comment by Mark Agarunov [ 08/Dec/17 ] |
|
Hello fredl We haven’t heard back from you for some time, so I’m going to mark this ticket as resolved. If this is still an issue for you, please provide additional information and we will reopen the ticket. Thanks, |
| Comment by Mark Agarunov [ 01/Dec/17 ] |
|
Hello fredl, We still need additional information to diagnose the problem. If this is still an issue for you, could you please provide the log files from the affected nodes? Thanks, |
| Comment by Mark Agarunov [ 09/Nov/17 ] |
|
Hello fredl, Thank you for the information. I'll set this ticket to "Waiting for User Input" until you have a chance to get this data. Thanks, |
| Comment by Fred Leeflang [ 09/Nov/17 ] |
|
Hi Mark, I will discuss with our team if this is possible over the weekend. These are production servers. It should not take more than a few minutes from the looks of it so I don't expect it to be a big issue. Thanks, |
| Comment by Mark Agarunov [ 08/Nov/17 ] |
|
Hello fredl, Thank you for the report. To get a better idea of what may be causing this behavior, could you please set the log verbosity to 5, attempt to start mongod with systemd, and provide the complete log file? If possible, please also provide systemd's log output via journalctl -u mongodb > mongodb.service.log. This should five some insight into why mongodb is not starting from systemd. Thanks, |
| Comment by Fred Leeflang [ 08/Nov/17 ] |
|
ARGH. ARGH. This is apparently caused by trying to start it through systemd. I finally ended up typing simply: root@mongo2 /var/log/mongodb # sudo -H -u mongodb bash -c "/usr/bin/mongod -f /etc/mongod.conf" Which works fine. HOW CAN THIS BE???? |
| Comment by Fred Leeflang [ 08/Nov/17 ] |
|
I see that bug has been closed but don't see the resolution |
| Comment by Fred Leeflang [ 08/Nov/17 ] |
|
Looks like it may be this bug: https://jira.mongodb.org/browse/SERVER-29850 |
| Comment by Fred Leeflang [ 08/Nov/17 ] |
|
I tried switching the user in the mongodb.service file to root again but output in log remains the same. |
| Comment by Fred Leeflang [ 08/Nov/17 ] |
|
The last lines in the mongod.log make it seem like it's running, however it's not. |
| Comment by Fred Leeflang [ 08/Nov/17 ] |
|
Another difference in the mongodb.service file was that the old one used User=root, something I want to prevent at all costs but which is probably the big showstopper for now. There were a few files in /var/lib/mongodb that were owned by root, I changed these all to mongodb:mongodb but that didn't fix the problem |
| Comment by Fred Leeflang [ 08/Nov/17 ] |
|
So I made the mongodb.service file look like:
|
| Comment by Fred Leeflang [ 08/Nov/17 ] |
|
The big difference is that yesterday I when it was still running there was another /etc/systemd/system/mongodb.service file. I made this new one from instructions on https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04 This one didn't have:
|