Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1624

Ensure the lock file integrity is correct

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.1.3
    • Component/s: Packaging / Build
    • Environment:
      Windows

      Description

      Error

      Command line arguments:

      nxdrive://token/6f37e4a0-ae31-411a-aa54-ae1c28a517e8/user/Administrator
      

      Exception:

      Traceback (most recent call last):
       File "C:\Users\Windows10\Desktop\nxdrive.dist\__main__.py", line 236, in main
       File "C:\Users\Windows10\Desktop\nxdrive.dist\nxdrive\commandline.py", line 503, in handle
       File "C:\Users\Windows10\Desktop\nxdrive.dist\nxdrive\commandline.py", line 528, in launch
       File "C:\Users\Windows10\Desktop\nxdrive.dist\nxdrive\utils.py", line 986, in lock
       File "C:\Users\Windows10\Desktop\nxdrive.dist\nxdrive\utils.py", line 949, in check_running
      ValueError: invalid literal for int() with base 10: 'Windows fatal exception: access violation\n\nCurrent thread 0x00001dd0 (most recent call first):\n File "C:\\Users\\Windows10\\Desktop\\nxdrive.dist\\pathlib.py", line 387 in wrapped\n File "C:\\Us
      

      Logs before the crash:

      2019-04-10 17:20:22 7596 6008 INFO nxdrive.options Option 'protocol_url' updated: None -> 'nxdrive://token/6f37e4a0-ae31-411a-aa54-ae1c28a517e8/user/Administrator' [cli]
      2019-04-10 17:20:24 7596 6008 INFO nxdrive.commandline Command line: argv=['nxdrive://token/6f37e4a0-ae31-411a-aa54-ae1c28a517e8/user/Administrator'], options=Namespace(channel='release', debug=False, debug_pydev=False, delay=30, force_locale=None, handshake_timeout=60, locale='en', log_filename=None, log_level_console='WARNING', log_level_file='INFO', max_errors=3, max_sync_step=10, nofscheck=False, nxdrive_home=WindowsPath('C:/Users/Windows10/.nuxeo-drive'), proxy_server=None, ssl_no_verify=False, timeout=30, update_check_delay=3600, update_site_url='https://community.nuxeo.com/static/drive-updates')
      2019-04-10 17:20:24 7596 6008 INFO nxdrive.commandline Running on version 4.1.3
      2019-04-10 17:20:34 7596 6008 INFO nxdrive.commandline SSL support: True
      2019-04-10 17:20:34 7596 6008 INFO nxdrive.commandline Enabling faulthandler in WindowsPath('C:/Users/Windows10/.nuxeo-drive/logs/segfault.log')
      2019-04-10 17:20:36 7596 6008 INFO nxdrive.engine.dao.sqlite Create ManagerDAO on WindowsPath('C:/Users/Windows10/.nuxeo-drive/manager.db')
      2019-04-10 17:20:36 7596 6008 INFO nxdrive.engine.dao.utils Checking database integrity: WindowsPath('C:/Users/Windows10/.nuxeo-drive/manager.db')
      2019-04-10 17:20:36 7596 6008 INFO nxdrive.engine.dao.sqlite Create main connexion on WindowsPath('C:/Users/Windows10/.nuxeo-drive/manager.db') (dir_exists=True, file_exists=True)
      2019-04-10 17:20:37 7596 6008 INFO nxdrive.manager OS integration type: Windows
      2019-04-10 17:20:37 7596 6008 INFO nxdrive.manager Proxy configuration is NoProxy<>
      

      Content of $HOME/.nuxeo-drive/nxdrive_qt.pid

      Current thread 0x00001dd0 (most recent call first):
       File "C:\Users\Windows10\Desktop\nxdrive.dist\pathlib.py", line 387 in wrapped
       File "C:\Users\Windows10\Desktop\nxdrive.dist\pathlib.py", line 1037 in _opener
       File "C:\Users\Windows10\Desktop\nxdrive.dist\pathlib.py", line 1183 in open
       File "C:\Users\Windows10\Desktop\nxdrive.dist\pathlib.py", line 1215 in write_text
      Windows fatal exception: access violation
      
      ...
      

      Fix

      I have no idea as of now, but we have to ensure that the content writen to nxdrive_qt.pid is an integer.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h