-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 4.0.0
-
Fix Version/s: 4.1.3
-
Component/s: Commandline
-
Sprint:nxDrive 11.1.7
-
Story Points:1
We cannot bind an account without the --password argument. But this should be possible.
Error 1
Command line arguments:
bind-server Administrator http://localhost:8080/nuxeo
Exception:
Traceback (most recent call last): File "Y:\nxdrive\__main__.py", line 236, in main return CliHandler().handle(sys.argv[1:]) File "Y:\nxdrive\commandline.py", line 496, in handle self.manager = self.get_manager() File "Y:\nxdrive\commandline.py", line 503, in get_manager return Manager() File "Y:\nxdrive\manager.py", line 165, in __init__ self.load() File "Y:\nxdrive\manager.py", line 364, in load self._engines[engine.uid] = self._engine_types[engine.engine](self, engine) File "Y:\nxdrive\engine\engine.py", line 131, in __init__ self.remote = self.init_remote() File "Y:\nxdrive\engine\engine.py", line 791, in init_remote return self.remote_cls(*args, **kwargs) File "Y:\nxdrive\client\remote_client.py", line 72, in __init__ **kwargs, File "C:\Users\Windows10\Desktop\deploy-dir\3.6.8\lib\site-packages\nuxeo\client.py", line 326, in __init__ version=version, **kwargs) File "C:\Users\Windows10\Desktop\deploy-dir\3.6.8\lib\site-packages\nuxeo\client.py", line 75, in __init__ if not self.host.endswith('/'): AttributeError: 'NoneType' object has no attribute 'endswith'
Logs before the crash:
2019-04-16 17:13:30 4172 8580 INFO nxdrive.commandline Enabling faulthandler in WindowsPath('C:/Users/Windows10/.nuxeo-drive/logs/segfault.log') 2019-04-16 17:13:30 4172 8580 INFO nxdrive.engine.dao.sqlite Create ManagerDAO on WindowsPath('C:/Users/Windows10/.nuxeo-drive/manager.db') 2019-04-16 17:13:30 4172 8580 INFO nxdrive.engine.dao.utils Checking database integrity: WindowsPath('C:/Users/Windows10/.nuxeo-drive/manager.db') 2019-04-16 17:13:30 4172 8580 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-16 17:13:30 4172 8580 INFO nxdrive.manager OS integration type: Windows 2019-04-16 17:13:30 4172 8580 INFO nxdrive.manager Proxy configuration is ManualProxy<url='https://Alice:password@example.org:8888'> 2019-04-16 17:13:30 4172 8580 INFO nxdrive.options Option 'log_level_file' updated: 'INFO' -> 'DEBUG' [manual] 2019-04-16 17:13:30 4172 8580 INFO nxdrive.options Option 'channel' updated: 'release' -> 'beta' [local] 2019-04-16 17:13:30 4172 8580 INFO nxdrive.engine.dao.sqlite Create EngineDAO on WindowsPath('C:/Users/Windows10/.nuxeo-drive/ndrive_079c730c605111e9b78d080027a1b76a.db') 2019-04-16 17:13:30 4172 8580 INFO nxdrive.engine.dao.utils Checking database integrity: WindowsPath('C:/Users/Windows10/.nuxeo-drive/ndrive_079c730c605111e9b78d080027a1b76a.db') 2019-04-16 17:13:30 4172 8580 INFO nxdrive.engine.dao.sqlite Create main connexion on WindowsPath('C:/Users/Windows10/.nuxeo-drive/ndrive_079c730c605111e9b78d080027a1b76a.db') (dir_exists=True, file_exists=True) 2019-04-16 17:13:30 4172 8580 WARNING nxdrive.engine.engine Setting invalid credentials, reason is: found no password nor token in engine configuration 2019-04-16 17:13:30 4172 8580 DEBUG nxdrive.engine.engine Engine 079c730c605111e9b78d080027a1b76a stopping 2019-04-16 17:13:30 4172 8580 INFO nxdrive.engine.dao.utils Checking database integrity: WindowsPath('C:/Users/Windows10/.nuxeo-drive/ndrive_079c730c605111e9b78d080027a1b76a.db') 2019-04-16 17:13:30 4172 8580 INFO nxdrive.engine.dao.utils Creating backup C:\Users\Windows10\.nuxeo-drive\backups\ndrive_079c730c605111e9b78d080027a1b76a.db_1555427610 2019-04-16 17:13:30 4172 8580 INFO nxdrive.engine.dao.utils Dumping the database WindowsPath('C:/Users/Windows10/.nuxeo-drive/ndrive_079c730c605111e9b78d080027a1b76a.db') into WindowsPath('C:/Users/Windows10/.nuxeo-drive/backups/ndrive_079c730c605111e9b78d080027a1b76a.db_1555427610')... 2019-04-16 17:13:30 4172 8580 INFO nxdrive.engine.dao.utils Dump finished with success. 2019-04-16 17:13:30 4172 8580 DEBUG nxdrive.engine.engine Engine 079c730c605111e9b78d080027a1b76a stopped
Error 2
When fixing the error 1, we have this second error:
Exception:
Traceback (most recent call last): File "Y:\nxdrive\__main__.py", line 236, in main return CliHandler().handle(sys.argv[1:]) File "Y:\nxdrive\commandline.py", line 498, in handle return handler(options) File "Y:\nxdrive\commandline.py", line 532, in launch app = self._get_application(console=console) File "Y:\nxdrive\commandline.py", line 516, in _get_application return Application(self.manager) File "Y:\nxdrive\gui\application.py", line 122, in __init__ self.init_checks() File "Y:\nxdrive\gui\application.py", line 721, in init_checks self.show_settings("Accounts_" + engine.uid) File "Y:\nxdrive\gui\application.py", line 551, in show_settings self._window_root(self.settings_window).setSection.emit(sections[section]) KeyError: 'Accounts_01213a1860ef11e9b342080027a1b76a'
Logs before the crash:
2019-04-17 10:59:25 8288 3848 DEBUG nxdrive.engine.engine Engine 01213a1860ef11e9b342080027a1b76a stopping 2019-04-17 10:59:25 8288 3848 INFO nxdrive.engine.dao.utils Checking database integrity: WindowsPath('C:/Users/Windows10/.nuxeo-drive/ndrive_01213a1860ef11e9b342080027a1b76a.db') 2019-04-17 10:59:25 8288 3848 INFO nxdrive.engine.dao.utils Creating backup C:\Users\Windows10\.nuxeo-drive\backups\ndrive_01213a1860ef11e9b342080027a1b76a.db_1555491565 2019-04-17 10:59:25 8288 3848 INFO nxdrive.engine.dao.utils Dumping the database WindowsPath('C:/Users/Windows10/.nuxeo-drive/ndrive_01213a1860ef11e9b342080027a1b76a.db') into WindowsPath('C:/Users/Windows10/.nuxeo-drive/backups/ndrive_01213a1860ef11e9b342080027a1b76a.db_1555491565')... 2019-04-17 10:59:25 8288 3848 INFO nxdrive.engine.dao.utils Dump finished with success. 2019-04-17 10:59:25 8288 3848 DEBUG nxdrive.engine.engine Engine 01213a1860ef11e9b342080027a1b76a stopped 2019-04-17 10:59:25 8288 3848 DEBUG nuxeo.client Calling 'http://localhost:8080/nuxeo/login.jsp' with headers={'Content-Type': 'application/json', 'X-NXDocumentProperties': '*', 'X-NXRepository': 'default', 'X-Application-Name': 'Nuxeo Drive', 'X-Client-Version': '4.1.3', 'User-Agent': 'Nuxeo Drive/4.1.3', 'Accept': 'application/json, */*', 'X-User-Id': 'Administrator', 'X-Device-Id': '1991474c60ef11e9bdf0080027a1b76a', 'Cache-Control': 'no-cache'}, params=None and cookies=<RequestsCookieJar[]> 2019-04-17 10:59:25 8288 3848 DEBUG urllib3.connectionpool Starting new HTTP connection (1): localhost:8080 2019-04-17 10:59:27 8288 3848 DEBUG nuxeo.client Calling 'http://localhost:8080/nuxeo/json/cmis' with headers={'Content-Type': 'application/json', 'X-NXDocumentProperties': '*', 'X-NXRepository': 'default', 'X-Application-Name': 'Nuxeo Drive', 'X-Client-Version': '4.1.3', 'User-Agent': 'Nuxeo Drive/4.1.3', 'Accept': 'application/json, */*', 'X-User-Id': 'Administrator', 'X-Device-Id': '1991474c60ef11e9bdf0080027a1b76a', 'Cache-Control': 'no-cache'}, params=None and cookies=<RequestsCookieJar[]> 2019-04-17 10:59:27 8288 3848 DEBUG urllib3.connectionpool Starting new HTTP connection (2): localhost:8080 2019-04-17 10:59:29 8288 3848 INFO nxdrive.engine.watcher.local_watcher Windows detected so delete event will be delayed by 2000 ms 2019-04-17 10:59:30 8288 3848 INFO nxdrive.osi.windows.windows Registering contextual menu 2019-04-17 10:59:30 8288 3848 INFO nxdrive.osi.windows.registry Wrote 'Software\\Classes\\*\\shell\\Nuxeo Drive': {'Icon': '"C:\\Users\\Windows10\\Desktop\\ndrive\\ndrive.exe",0', 'MUIVerb': 'Nuxeo Drive', 'ExtendedSubCommandsKey': '*\\shell\\Nuxeo Drive\\'} 2019-04-17 10:59:30 8288 3848 INFO nxdrive.osi.windows.registry Wrote 'Software\\Classes\\directory\\shell\\Nuxeo Drive': {'Icon': '"C:\\Users\\Windows10\\Desktop\\ndrive\\ndrive.exe",0', 'MUIVerb': 'Nuxeo Drive', 'ExtendedSubCommandsKey': '*\\shell\\Nuxeo Drive\\'} 2019-04-17 10:59:30 8288 3848 INFO nxdrive.osi.windows.registry Wrote 'Software\\Classes\\*\\shell\\Nuxeo Drive\\shell\\item1': {'MUIVerb': 'Access online', 'Icon': 'shell32.dll,17'} 2019-04-17 10:59:30 8288 3848 INFO nxdrive.osi.windows.registry Wrote 'Software\\Classes\\*\\shell\\Nuxeo Drive\\shell\\item1\\command': {None: '"C:\\Users\\Windows10\\Desktop\\ndrive\\ndrive.exe" access-online --file "%1"'} 2019-04-17 10:59:30 8288 3848 INFO nxdrive.osi.windows.registry Wrote 'Software\\Classes\\*\\shell\\Nuxeo Drive\\shell\\item2': {'MUIVerb': 'Copy share-link', 'Icon': 'shell32.dll,134'} 2019-04-17 10:59:30 8288 3848 INFO nxdrive.osi.windows.registry Wrote 'Software\\Classes\\*\\shell\\Nuxeo Drive\\shell\\item2\\command': {None: '"C:\\Users\\Windows10\\Desktop\\ndrive\\ndrive.exe" copy-share-link --file "%1"'} 2019-04-17 10:59:30 8288 3848 INFO nxdrive.osi.windows.registry Wrote 'Software\\Classes\\*\\shell\\Nuxeo Drive\\shell\\item3': {'MUIVerb': 'Edit metadata', 'Icon': 'shell32.dll,269'} 2019-04-17 10:59:30 8288 3848 INFO nxdrive.osi.windows.registry Wrote 'Software\\Classes\\*\\shell\\Nuxeo Drive\\shell\\item3\\command': {None: '"C:\\Users\\Windows10\\Desktop\\ndrive\\ndrive.exe" edit-metadata --file "%1"'}
And in the console:
QString::arg: Argument missing: "EXTRA_FILE_COUNT" , -10 data/qml/Systray.qml:205: TypeError: Cannot read property 'tr' of null
Error 3
Fixing the error 2 leads to another error.
Exception:
Traceback (most recent call last): File "Y:\nxdrive\__main__.py", line 236, in main return CliHandler().handle(sys.argv[1:]) File "Y:\nxdrive\commandline.py", line 496, in handle self.manager = self.get_manager() File "Y:\nxdrive\commandline.py", line 503, in get_manager return Manager() File "Y:\nxdrive\manager.py", line 165, in __init__ self.load() File "Y:\nxdrive\manager.py", line 364, in load self._engines[engine.uid] = self._engine_types[engine.engine](self, engine) File "Y:\nxdrive\engine\engine.py", line 143, in __init__ self._queue_manager = self._create_queue_manager(processors) File "Y:\nxdrive\engine\engine.py", line 499, in _create_queue_manager return QueueManager(self, self._dao, **kwargs) File "Y:\nxdrive\engine\queue_manager.py", line 99, in __init__ self._dao.register_queue_manager(self) File "Y:\nxdrive\engine\dao\sqlite.py", line 922, in register_queue_manager if self._queue_manager and pair.local_parent_path not in folders: File "Y:\nxdrive\objects.py", line 334, in __getattr__ return Path(self[name].lstrip("/")) AttributeError: 'NoneType' object has no attribute 'lstrip'
Logs before the crash:
2019-04-17 11:40:49 6624 3136 INFO nxdrive.engine.dao.utils Checking database integrity: WindowsPath('C:/Users/Windows10/.nuxeo-drive/manager.db') 2019-04-17 11:40:49 6624 3136 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-17 11:40:49 6624 3136 INFO nxdrive.manager OS integration type: Windows 2019-04-17 11:40:49 6624 3136 INFO nxdrive.manager Proxy configuration is SystemProxy<> 2019-04-17 11:40:49 6624 3136 INFO nxdrive.engine.dao.sqlite Create EngineDAO on WindowsPath('C:/Users/Windows10/.nuxeo-drive/ndrive_01213a1860ef11e9b342080027a1b76a.db') 2019-04-17 11:40:49 6624 3136 INFO nxdrive.engine.dao.utils Checking database integrity: WindowsPath('C:/Users/Windows10/.nuxeo-drive/ndrive_01213a1860ef11e9b342080027a1b76a.db') 2019-04-17 11:40:49 6624 3136 INFO nxdrive.engine.dao.sqlite Create main connexion on WindowsPath('C:/Users/Windows10/.nuxeo-drive/ndrive_01213a1860ef11e9b342080027a1b76a.db') (dir_exists=True, file_exists=True) 2019-04-17 11:40:49 6624 3136 DEBUG nxdrive.engine.dao.sqlite Cache Syncing count incorrect should be 1 was 0 2019-04-17 11:40:49 6624 3136 WARNING nxdrive.engine.engine Setting invalid credentials, reason is: found no password nor token in engine configuration 2019-04-17 11:40:49 6624 3136 DEBUG nxdrive.engine.engine Engine 01213a1860ef11e9b342080027a1b76a stopping 2019-04-17 11:40:49 6624 3136 INFO nxdrive.engine.dao.utils Checking database integrity: WindowsPath('C:/Users/Windows10/.nuxeo-drive/ndrive_01213a1860ef11e9b342080027a1b76a.db') 2019-04-17 11:40:49 6624 3136 INFO nxdrive.engine.dao.utils Creating backup C:\Users\Windows10\.nuxeo-drive\backups\ndrive_01213a1860ef11e9b342080027a1b76a.db_1555494049 2019-04-17 11:40:49 6624 3136 INFO nxdrive.engine.dao.utils Dumping the database WindowsPath('C:/Users/Windows10/.nuxeo-drive/ndrive_01213a1860ef11e9b342080027a1b76a.db') into WindowsPath('C:/Users/Windows10/.nuxeo-drive/backups/ndrive_01213a1860ef11e9b342080027a1b76a.db_1555494049')... 2019-04-17 11:40:49 6624 3136 INFO nxdrive.engine.dao.utils Dump finished with success. 2019-04-17 11:40:49 6624 3136 DEBUG nxdrive.engine.engine Engine 01213a1860ef11e9b342080027a1b76a stopped 2019-04-17 11:40:49 6624 3136 DEBUG nuxeo.client Calling 'http://localhost:8080/nuxeo/login.jsp' with headers={'Content-Type': 'application/json', 'X-NXDocumentProperties': '*', 'X-NXRepository': 'default', 'X-Application-Name': 'Nuxeo Drive', 'X-Client-Version': '4.1.3', 'User-Agent': 'Nuxeo Drive/4.1.3', 'Accept': 'application/json, */*', 'X-User-Id': 'Administrator', 'X-Device-Id': '1991474c60ef11e9bdf0080027a1b76a', 'Cache-Control': 'no-cache'}, params=None and cookies=<RequestsCookieJar[]> 2019-04-17 11:40:49 6624 3136 DEBUG urllib3.connectionpool Starting new HTTP connection (1): localhost:8080 2019-04-17 11:40:51 6624 3136 DEBUG nuxeo.client Calling 'http://localhost:8080/nuxeo/json/cmis' with headers={'Content-Type': 'application/json', 'X-NXDocumentProperties': '*', 'X-NXRepository': 'default', 'X-Application-Name': 'Nuxeo Drive', 'X-Client-Version': '4.1.3', 'User-Agent': 'Nuxeo Drive/4.1.3', 'Accept': 'application/json, */*', 'X-User-Id': 'Administrator', 'X-Device-Id': '1991474c60ef11e9bdf0080027a1b76a', 'Cache-Control': 'no-cache'}, params=None and cookies=<RequestsCookieJar[]> 2019-04-17 11:40:51 6624 3136 DEBUG urllib3.connectionpool Starting new HTTP connection (2): localhost:8080 2019-04-17 11:40:53 6624 3136 INFO nxdrive.engine.watcher.local_watcher Windows detected so delete event will be delayed by 2000 ms
- is required by
-
NXDRIVE-1623 [Windows] Add CLI sub-commands tests: clean-folder, console, bind-server and unbind-server
- Resolved