btsync-deb icon indicating copy to clipboard operation
btsync-deb copied to clipboard

Cant start daemon

Open ivoryblade opened this issue 3 years ago • 3 comments

Hello! I've installed btsync on Ubuntu 20 but can't start daemon

`service btsync status ● btsync.service - LSB: btsync Service Loaded: loaded (/etc/init.d/btsync; generated) Active: active (exited) since Thu 2022-01-13 23:18:54 MSK; 2s ago Docs: man:systemd-sysv-generator(8) Process: 959 ExecStart=/etc/init.d/btsync start (code=exited, status=0/SUCCESS)

Jan 13 23:18:48 sync-srv systemd[1]: Starting LSB: btsync Service... Jan 13 23:18:48 sync-srv btsync[959]: * Autostarting btsync instance 'debconf-default' Jan 13 23:18:54 sync-srv btsync[959]: * Failed to start btsync instance debconf-default - please check the configuration file /etc/btsync/debconf-default.conf Jan 13 23:18:54 sync-srv btsync.debconf-default[1038]: Failed to start btsync instance debconf-default - please check the configuration file /etc/btsync/debconf-default.conf Jan 13 23:18:54 sync-srv systemd[1]: Started LSB: btsync Service.`

Here's my config { "storage_path" : "/var/lib/btsync/", "display_new_version": false, "disk_low_priority" : true, "lan_encrypt_data" : true, "rate_limit_local_peers" : false, "folder_rescan_interval" : 600, "folder_defaults.use_relay" : true, "folder_defaults.use_tracker" : true, "folder_defaults.known_hosts" : "", "webui" : { "listen" : "0.0.0.0:8888", "force_https" : true, "ssl_certificate" : "/etc/btsync/debconf-default.crt", "ssl_private_key" : "/etc/btsync/debconf-default.key" } }

And in /tmp/sync.log I found something 12:01:44 +0100) x86_64 version: 2.7.2.1375 [20220113 23:12:38.065] Debug log mask has been set to FFFFFFFF [20220113 23:12:38.065] Features mask has been set to 0 [20220113 23:12:38.066] ZIP: Can't locate [version] in zip, error -100. [20220113 23:12:38.066] Configuration from file "/etc/btsync/debconf-default.conf" has been applied [20220113 23:12:38.074] loaded history: 1000 events [20220113 23:12:38.076] test sha1: AE5BD8EFEA5322C4D9986D06680A781392F9A642 [20220113 23:12:38.076] test sha2: 630DCD2966C4336691125448BBB25B4FF412A49C732DB2C8ABC1B8581BD710DD [20220113 23:12:38.076] test aes: 0A940BB5416EF045F1C39458C653EA5A07FEEF74E1D5036E900EEE118E949293 [20220113 23:12:38.076] DISKIO[0x0000561a12f5aed0]: Create diskio pool for drive with id 18446744073709551614, path: , type: 0, size: 1 [20220113 23:12:38.076] WORKER[0x0000561a12f5b510]: created [20220113 23:12:38.076] Affinity masks: network=3F03F workers=FC0FC0 messagethread=FC0FC0 [20220113 23:12:38.076] assert failed /build/sync/util/posix/thrsync_posix.cpp:144 [20220113 23:13:53.023] Debug log mask has been set to FFFFFFFF [20220113 23:13:53.023] Features mask has been set to 0 [20220113 23:13:53.024] ZIP: Can't locate [version] in zip, error -100. [20220113 23:13:53.024] Configuration from file "/etc/btsync/debconf-default.conf" has been applied [20220113 23:13:53.032] loaded history: 1000 events [20220113 23:13:53.034] test sha1: AE5BD8EFEA5322C4D9986D06680A781392F9A642 [20220113 23:13:53.034] test sha2: 630DCD2966C4336691125448BBB25B4FF412A49C732DB2C8ABC1B8581BD710DD [20220113 23:13:53.034] test aes: 0A940BB5416EF045F1C39458C653EA5A07FEEF74E1D5036E900EEE118E949293 [20220113 23:13:53.034] DISKIO[0x000055a390944ec0]: Create diskio pool for drive with id 18446744073709551614, path: , type: 0, size: 1 [20220113 23:13:53.034] WORKER[0x000055a3909454d0]: created [20220113 23:13:53.034] Affinity masks: network=3F03F workers=FC0FC0 messagethread=FC0FC0 [20220113 23:13:53.034] assert failed /build/sync/util/posix/thrsync_posix.cpp:144 [20220113 23:18:48.257] Debug log mask has been set to FFFFFFFF [20220113 23:18:48.257] Features mask has been set to 0 [20220113 23:18:48.257] ZIP: Can't locate [version] in zip, error -100. [20220113 23:18:48.258] Configuration from file "/etc/btsync/debconf-default.conf" has been applied [20220113 23:18:48.265] loaded history: 1000 events [20220113 23:18:48.266] test sha1: AE5BD8EFEA5322C4D9986D06680A781392F9A642 [20220113 23:18:48.266] test sha2: 630DCD2966C4336691125448BBB25B4FF412A49C732DB2C8ABC1B8581BD710DD [20220113 23:18:48.266] test aes: 0A940BB5416EF045F1C39458C653EA5A07FEEF74E1D5036E900EEE118E949293 [20220113 23:18:48.266] DISKIO[0x00005652b82f4e80]: Create diskio pool for drive with id 18446744073709551614, path: , type: 0, size: 1 [20220113 23:18:48.266] WORKER[0x00005652b82f54c0]: created [20220113 23:18:48.266] Affinity masks: network=3F03F workers=FC0FC0 messagethread=FC0FC0 [20220113 23:18:48.266] assert failed /build/sync/util/posix/thrsync_posix.cpp:144

I've tried to update OS, reinstall and reconfigure btsync but nothing helps.

ivoryblade avatar Jan 13 '22 20:01 ivoryblade

I'm assuming the same issue as https://github.com/Silvenga/btsync-deb/issues/21 since Python 2 isn't installed by default anymore. 😭

Unformatately, we're going to see a lot of Python 2 apps start to die off over the next couple year, this project will likely be one of them. I'm not a python dev, so I can't do the upgrade. I come from .NET, and .NET can run 20 year old compiled binaries in the modern runtimes - so I'm used to (or spoiled of?) long term binary and behavior compatibility. This move by Python will fragment the ecosystem for many years to come, kind of sad. https://github.com/Silvenga/btsync-deb/issues/21#issuecomment-921829162

Silvenga avatar Jan 13 '22 20:01 Silvenga

The most strange thing about this is that on some hosts it works fine but on several of them I got this error.

ivoryblade avatar Jan 19 '22 07:01 ivoryblade

I'm assuming the same issue as #21 since Python 2 isn't installed by default anymore. 😭

Unformatately, we're going to see a lot of Python 2 apps start to die off over the next couple year, this project will likely be one of them. I'm not a python dev, so I can't do the upgrade. I come from .NET, and .NET can run 20 year old compiled binaries in the modern runtimes - so I'm used to (or spoiled of?) long term binary and behavior compatibility. This move by Python will fragment the ecosystem for many years to come, kind of sad. #21 (comment)

I've checked Python 2.7 is installed latest version.

ivoryblade avatar Jan 21 '22 19:01 ivoryblade