[SERVER-9985] wrong user and group on dirs created by upstart script Created: 21/Jun/13 Updated: 04/Nov/14 Resolved: 05/Jun/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Packaging, Tools |
| Affects Version/s: | 2.2.5, 2.4.4, 2.5.0 |
| Fix Version/s: | 2.7.2 |
| Type: | Bug | Priority: | Trivial - P5 |
| Reporter: | Idan Kamara | Assignee: | Ernie Hershey |
| Resolution: | Done | Votes: | 0 |
| Labels: | cap-ticket-needed, pull-request | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu |
||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | Linux | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
The upstart script creates dirs if /var/ {lib,log}/mongodb aren't there. These will be created by root which will cause mongodb to refuse to load since it runs with a different user. |
| Comments |
| Comment by Githook User [ 05/Jun/14 ] | ||
|
Author: {u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}Message: | ||
| Comment by Githook User [ 05/Jun/14 ] | ||
|
Author: {u'username': u'idank', u'name': u'Idan Kamara', u'email': u'idankk86@gmail.com'}Message: Usually these are created by the the post-install script that runs after installing the package, but if those were rm'ed later on and then created by this script, their permission would be most likely set to root, causing mongod to fail starting. Signed-off-by: Ernie Hershey <ernie.hershey@mongodb.com> | ||
| Comment by Ernie Hershey [ 04/Jun/14 ] | ||
|
I was just able to reproduce this. I used the enterprise build because I had it handy but the symptoms/fix should be identical -
| ||
| Comment by Idan Kamara [ 21/Jun/13 ] | ||
|
Pull request: https://github.com/mongodb/mongo/pull/443 |