Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-2393

eups distrib install should not hold exclusive lock while compiling

    Details

    • Type: Bug
    • Status: Won't Fix
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: eups
    • Labels:
      None
    • Team:
      SQuaRE

      Description

      When running
      eups distrib install
      it holds an "exclusive lock" on the EUPS dir.

      Thus, trying to run 'setup' during this time results in the error message, e.g.,

      setup: Unable to take shared lock on /Users/wmwv/stackdir: an exclusive lock is held by [user=wmwv, pid=53146]

      I'm find with eups holding a lock when it's actually doing something to the EUPS directory, but it shouldn't hold a lock when it's compiling a particular package.

      I note that despite the repeated statements that "eups" and "eups distrib" are entirely different things, they do share the same EUPS variables, and the same component in Jira.

        Attachments

          Issue Links

            Activity

            Hide
            price Paul Price added a comment -

            The shortcomings of locking in eups are well-known; there's probably a ticket on it in Trac somewhere.

            I recommend you disable locking: put hooks.config.site.lockDirectoryBase = None in the site/startup.py . Theoretically, this may cause problems when multiple people attempt to install things at the same time, but we haven't seen any problems in practise.

            Show
            price Paul Price added a comment - The shortcomings of locking in eups are well-known; there's probably a ticket on it in Trac somewhere. I recommend you disable locking: put hooks.config.site.lockDirectoryBase = None in the site/startup.py . Theoretically, this may cause problems when multiple people attempt to install things at the same time, but we haven't seen any problems in practise.
            Hide
            tjenness Tim Jenness added a comment -

            I'm inclined to close this ticket since:

            1. It's not obvious anyone is going to fix this now (and it wouldn't be SQuaRE).
            2. There is a known problem with locking and the advice is to disable it.

            If it's still a problem that needs fixing then we may want to file an EUPS GitHub issue and have the discussion again over who really supports EUPS.

            Show
            tjenness Tim Jenness added a comment - I'm inclined to close this ticket since: 1. It's not obvious anyone is going to fix this now (and it wouldn't be SQuaRE). 2. There is a known problem with locking and the advice is to disable it. If it's still a problem that needs fixing then we may want to file an EUPS GitHub issue and have the discussion again over who really supports EUPS.
            Hide
            tjenness Tim Jenness added a comment -

            Michael Wood-Vasey please comment if you disagree with closing this.

            Show
            tjenness Tim Jenness added a comment - Michael Wood-Vasey please comment if you disagree with closing this.

              People

              • Assignee:
                frossie Frossie Economou
                Reporter:
                wmwood-vasey Michael Wood-Vasey
                Watchers:
                Gabriele Comoretto, John Swinbank, Michael Wood-Vasey, Paul Price, Tim Jenness, Wil O'Mullane
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel