Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-1475

need more graceful failure when running as root

    Details

    • Triage:
      Untriaged
    • Flagged:
      Release Note

      Description

      Due to some installation problems, the customer tried to run /opt/NorthScale/bin/northscale as root and things broke. The logs were spewing with memcached crash messages and it took a little while to diagnose.

      Assuming that someone is going to try and do that again, we should put in some better messaging saying that you can't do that.

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        perry@northscale.com Perry Krug created issue -
        Hide
        sean@northscale.com Sean Lynch (Inactive) added a comment -

        This definitely wont' be happening in beta2.

        Show
        sean@northscale.com Sean Lynch (Inactive) added a comment - This definitely wont' be happening in beta2.
        Hide
        sean@northscale.com Sean Lynch (Inactive) added a comment -

        This should be fixed in the init script.

        Show
        sean@northscale.com Sean Lynch (Inactive) added a comment - This should be fixed in the init script.
        Hide
        perry@northscale.com Perry Krug added a comment -

        I don't think the problem is within the init script. The problem here is when running the actual binary as root...the init script works just fine.

        Show
        perry@northscale.com Perry Krug added a comment - I don't think the problem is within the init script. The problem here is when running the actual binary as root...the init script works just fine.
        Hide
        sean@northscale.com Sean Lynch (Inactive) added a comment -

        /opt/northscale/bin/northscale is a script that's put there by the RPM installer.

        Reassigning back to the correct component.

        Show
        sean@northscale.com Sean Lynch (Inactive) added a comment - /opt/northscale/bin/northscale is a script that's put there by the RPM installer. Reassigning back to the correct component.
        Hide
        perry@northscale.com Perry Krug added a comment -

        Sean and I discussed the a bit and agreed that a simple check within the /opt/northscale/bin/northscale script to make sure that it's not being run as root is appropriate.

        Show
        perry@northscale.com Perry Krug added a comment - Sean and I discussed the a bit and agreed that a simple check within the /opt/northscale/bin/northscale script to make sure that it's not being run as root is appropriate.
        Hide
        perry@northscale.com Perry Krug added a comment -

        Created an attachment (id=418)
        logs

        Show
        perry@northscale.com Perry Krug added a comment - Created an attachment (id=418) logs
        Hide
        perry@northscale.com Perry Krug added a comment -

        (From update of attachment 418)
        Sorry, attached to wrong bug.

        Show
        perry@northscale.com Perry Krug added a comment - (From update of attachment 418) Sorry, attached to wrong bug.
        Hide
        sean@northscale.com Sean Lynch (Inactive) added a comment -

        Bumping all non-release-blocker bugs to P3 in preparation for removing the ReleaseBlocker keyword.

        Show
        sean@northscale.com Sean Lynch (Inactive) added a comment - Bumping all non-release-blocker bugs to P3 in preparation for removing the ReleaseBlocker keyword.
        Hide
        perry@northscale.com Perry Krug added a comment -

        Requested by FormSpring.

        Show
        perry@northscale.com Perry Krug added a comment - Requested by FormSpring.
        ingenthr Matt Ingenthron made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 1711 11484
        frank Frank Weigel (Inactive) made changes -
        Affects Version/s 1.6.0 beta1 [ 10050 ]
        Affects Version/s 1.6.0beta1 [ 10037 ]
        sean Sean Lynch (Inactive) made changes -
        Fix Version/s 1.6.1 [ 10059 ]
        perry Perry Krug made changes -
        Reporter Perry Krug [ perry@northscale.com ] Perry Krug [ perry ]
        Hide
        perry Perry Krug added a comment -

        tagged: releasenotes

        Show
        perry Perry Krug added a comment - tagged: releasenotes
        perry Perry Krug made changes -
        Assignee Steve Yen [ steve.yen@northscale.com ] Sean Lynch [ sean ]
        Priority Minor [ 4 ]
        sean Sean Lynch (Inactive) made changes -
        Fix Version/s Backlog [ 10090 ]
        perry Perry Krug made changes -
        Flagged [Release Note]
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        part of diagnostics improvements

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - part of diagnostics improvements
        alkondratenko Aleksey Kondratenko (Inactive) made changes -
        Assignee Sean Lynch [ sean ]
        Fix Version/s 1.7 Alpha 2 [ 10180 ]
        Fix Version/s Backlog [ 10090 ]
        Priority Minor [ 4 ] Critical [ 2 ]
        Component/s ns_server [ 10019 ]
        perry Perry Krug made changes -
        Assignee Steve Yen [ steve ]
        alkondratenko Aleksey Kondratenko (Inactive) made changes -
        Assignee Steve Yen [ steve ]
        farshid Farshid Ghods (Inactive) made changes -
        Fix Version/s 1.7 beta 1 [ 10110 ]
        Fix Version/s 1.7 alpha 2 [ 10180 ]
        Priority Critical [ 2 ] Major [ 3 ]
        farshid Farshid Ghods (Inactive) made changes -
        Fix Version/s 1.7 GA [ 10111 ]
        Fix Version/s 1.7 beta 1 [ 10110 ]
        Priority Major [ 3 ] Minor [ 4 ]
        farshid Farshid Ghods (Inactive) made changes -
        Labels 1.6.5.3-release-notes 1.7.0-release-notes
        ingenthr Matt Ingenthron made changes -
        Fix Version/s 1.7.1 [ 10183 ]
        Fix Version/s 1.7 GA [ 10111 ]
        farshid Farshid Ghods (Inactive) made changes -
        Labels 1.6.5.3-release-notes 1.7.0-release-notes 1.6.5.3-release-notes 1.7.0-release-notes 1.7.1-release-notes
        farshid Farshid Ghods (Inactive) made changes -
        Fix Version/s 2.0 Beta [ 10113 ]
        Fix Version/s 1.7.1 [ 10183 ]
        farshid Farshid Ghods (Inactive) made changes -
        Assignee Steve Yen [ steve ]
        peter peter made changes -
        Component/s installer [ 10221 ]
        Component/s linux_installer [ 10021 ]
        farshid Farshid Ghods (Inactive) made changes -
        Fix Version/s 2.0 [ 10114 ]
        Fix Version/s 2.0-beta [ 10113 ]
        farshid Farshid Ghods (Inactive) made changes -
        Fix Version/s .next [ 10342 ]
        Fix Version/s 2.0 [ 10114 ]
        perry Perry Krug made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        maria Maria McDuff (Inactive) made changes -
        Fix Version/s bug-backlog [ 11600 ]
        Fix Version/s feature-backlog [ 10342 ]
        Triage Untriaged [ 10351 ]

          People

          • Assignee:
            steve Steve Yen
            Reporter:
            perry Perry Krug
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes