Trying to run odriveagent via systemd fails with the newest version of odriveagent with the following errors:
Jan 26 16:31:41 media systemd[1]: Started odrive Sync Agent.
Jan 26 16:31:42 media odriveagent[24228]: Traceback (most recent call last):
Jan 26 16:31:42 media odriveagent[24228]: File "<string>", line 52, in <module>
Jan 26 16:31:42 media odriveagent[24228]: File "<string>", line 49, in main
Jan 26 16:31:42 media odriveagent[24228]: File "<string>", line 42, in launch
Jan 26 16:31:42 media odriveagent[24228]: File "/home/ubuntu/hudson/workspace/Odrive_Lnx_Agent_64/deploy/output/artifacts/build/odriveagent/LinuxOdriveAgent/out00-PYZ.pyz/src.odrive_app.OdriveSyncAgent", line 268, in construct
Jan 26 16:31:42 media odriveagent[24228]: File "/home/ubuntu/hudson/workspace/Odrive_Lnx_Agent_64/deploy/output/artifacts/build/odriveagent/LinuxOdriveAgent/out00-PYZ.pyz/src.odrive_app.OdriveSyncAgent", line 730, in _get_odrive_fs_service
Jan 26 16:31:42 media odriveagent[24228]: File "/home/ubuntu/hudson/workspace/Odrive_Lnx_Agent_64/deploy/output/artifacts/build/odriveagent/LinuxOdriveAgent/out00-PYZ.pyz/src.odrive_app.OdriveSyncAgent", line 710, in _get_database_key
Jan 26 16:31:42 media odriveagent[24228]: File "/home/ubuntu/hudson/workspace/Odrive_Lnx_Agent_64/deploy/output/artifacts/build/odriveagent/LinuxOdriveAgent/out00-PYZ.pyz/src.utility.KeyChainService", line 66, in set_user_key
Jan 26 16:31:42 media odriveagent[24228]: File "/home/ubuntu/hudson/workspace/Odrive_Lnx_Agent_64/deploy/output/artifacts/build/odriveagent/LinuxOdriveAgent/out00-PYZ.pyz/keyring.core", line 45, in set_password
Jan 26 16:31:42 media odriveagent[24228]: File "/home/ubuntu/hudson/workspace/Odrive_Lnx_Agent_64/deploy/output/artifacts/build/odriveagent/LinuxOdriveAgent/out00-PYZ.pyz/src.utility.KeyChainService", line 38, in set_password
Jan 26 16:31:42 media odriveagent[24228]: File "/home/ubuntu/hudson/workspace/Odrive_Lnx_Agent_64/deploy/output/artifacts/build/odriveagent/LinuxOdriveAgent/out00-PYZ.pyz/src.file_system.implementation.NativeFileSystemService", line 70, in wrapper
Jan 26 16:31:42 media odriveagent[24228]: File "/home/ubuntu/hudson/workspace/Odrive_Lnx_Agent_64/deploy/output/artifacts/build/odriveagent/LinuxOdriveAgent/out00-PYZ.pyz/src.file_system.implementation.NativeFileSystemService", line 306, in make_directories
Jan 26 16:31:42 media odriveagent[24228]: File "/home/ubuntu/hudson/workspace/Odrive_Lnx_Agent_64/deploy/output/artifacts/build/odriveagent/LinuxOdriveAgent/out00-PYZ.pyz/os", line 150, in makedirs
Jan 26 16:31:42 media odriveagent[24228]: File "/home/ubuntu/hudson/workspace/Odrive_Lnx_Agent_64/deploy/output/artifacts/build/odriveagent/LinuxOdriveAgent/out00-PYZ.pyz/os", line 150, in makedirs
Jan 26 16:31:42 media odriveagent[24228]: File "/home/ubuntu/hudson/workspace/Odrive_Lnx_Agent_64/deploy/output/artifacts/build/odriveagent/LinuxOdriveAgent/out00-PYZ.pyz/os", line 157, in makedirs
Jan 26 16:31:42 media odriveagent[24228]: src.file_system.interface.AbstractFileSystemService.FileSystemServiceException: code 2 - fn: make_directories, args: (<src.file_system.implementation.NativeFileSystemService.NativeFileSystemService object at 0x7f1624050850>, '/home/odrive/.odrive-agent/db') [] caused by OSError([Errno 13] Permission denied: '/home/odrive')
Jan 26 16:31:42 media systemd[1]: odrive.service: Main process exited, code=exited, status=255/EXCEPTION
Jan 26 16:31:42 media systemd[1]: odrive.service: Failed with result 'exit-code'.
Could it have something to do with the fact that you guys hard-code all kinds of paths into your scripts?