-
-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transmission fails to start #2484
Comments
Many thanks for the report 👍 Test RPi 3B+:
Unable to replicate our end. Lets fix the file manually:
|
Humm that's strange, just to put in context after the error i uninstall transmission via dietpi software and delete the folder /var/lib/transmission-daemon/ just to make sure i search for the file settings.json and none was found, after i installed again transmission and it failed again, already solved on my end i just delete the file and let transmission recreate it again and change the value from there. If you guys can reproduce it maybe we can close the issue. Thanks for this. Did a new reinstall and had the same error again: root@blacksun:/# dietpi-services status DietPi-Services [ OK ] DietPi-Services | avahi-daemon active (running) since Fri 2019-02-01 19:53:37 WET; 1min 47s ago Feb 01 19:53:38 blacksun systemd[1]: Starting Transmission BitTorrent Daemon... Again if you cant replicate it just close the issue. |
Please can you send me a bug report? I'd like to check the
|
Absolutely, here you have the reference code 0f9fd083-6309-4a19-8582-bdea43b3c0b9. |
Many thanks, apologies for delay, will check when I can. |
@Fourdee if you need anything more just ask, like i said before, on my side is already solved, running and backed up. 👍 |
Very stange, code in your bug report matches current install code. I was unable to find any reason why this occurring, however, I did find a potential hardware failure with your external harddrive:
You can use The only thing it may be, is a failed update, where the |
Thanks for the tip... Already did a drive check and it looks everything is OK now... Do you guys have anything baked in dietpi to check logs? Something like drive manager or dietpi software? I'm gonna skip this update it breaks a kodi addon for me and it doesn't add anything important. |
Nope,
You mean v6.21 does this?? Then it must be some APT package update, since really v6.21 does not change more than fixing a update bug, introduced with v6.20 in some cases. |
PVR IPTV simple client... Yeah dmseg is pretty solid... Started using on my early days of Linux... Thanks for the tip journalctl ready found some more things to tweak. I did some digging and the addon as updated for a new version and to support kodi 18... Updating kodi now... |
The comma is missing in the line before this solves the issue. |
Good point. The json parser is very strict. All lines in
@GulyFMG
On fresh install the error does not show up (Stretch) since the touched/changed settings are not the last line and are all added with comma. But I enhance the way we add these settings. If they do not exist, they should be added to the top (after |
@MichaIng
and still had a failure with the transmission-daemon. I then tried what what GulyFMG had done
Deleting the file did solve my issue and I am sorry I did not create a bug report so I am not even sure it is completely the same issue. However I did noice there were some permission changes from the file that was installed to the file that was recreated after I deleted the first file. Permissions from dietpi-software install
I then made a backup of the settings.json file, removed the old file and then restarted dietpi-services and the new settings.json file was created with different user and group and permissions. Maybe something is messed up in the dietpi-software changing it over. I have no clue, but I thought it may still be causing grief somewhere along the line. Here's my code start to finish
As you can see the user, group and permission on the settings.json file have all be changed. I also checked this after all of that too...
The I changed that to For comparison here are my stats on my board. This is a fresh install of everything
Power Supply - 5v 2a Hope this can fix the issue. |
@Drew80 Hmm install works well here. We do not change anything about file permissions or locations from the default APT install. Failing service can have many reasons, in this case either syntax or content of the config files. Can you please paste the output of:
About permissions note that:
So everything as expected, permissions are all fine 😉. |
First I'll have to apologize for my lack of Linux knowledge. I know enough to get stuff done, but it may not be done correctly. Thanks for the clarification on a few things. Here is the output you've requested
If you need anything let me know |
@Drew80 Okay going through the individual settings:
Further:
Okay now I think I found the reason why your daemon failed to start: Jep could replicate. Adding the password as Actually it would be best if we hash the password ourself or tell Transmission to do so. This would prevent any special character issue as well. From what I read it should hash the password automatically, but it doesn't: https://superuser.com/a/113652 PR up and merged: #2706 |
ADMIN EDIT
Solution: #2484 (comment)
Required Information:
Additional Information (if applicable):
Steps to reproduce:
Fresh install of transmission
Expected behaviour:
after boot transmission daemon should start
Actual behaviour:
Transmission daemon Fails
Extra details:
[FAILED] DietPi-Services | transmission-daemon failed (Result: exit-code) since Fri 2019-02-01 03:06:47 WET; 9s ago
● transmission-daemon.service - Transmission BitTorrent Daemon
Loaded: loaded (/lib/systemd/system/transmission-daemon.service; disabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/transmission-daemon.service.d
└─dietpi-group.conf
Active: failed (Result: exit-code) since Fri 2019-02-01 03:06:47 WET; 9s ago
Process: 1486 ExecStop=/bin/kill -s STOP $MAINPID (code=exited, status=1/FAILURE)
Process: 1484 ExecStart=/usr/bin/transmission-daemon -f --log-error (code=exited, status=1/FAILURE)
Main PID: 1484 (code=exited, status=1/FAILURE)
Feb 01 03:06:47 blacksun systemd[1]: Starting Transmission BitTorrent Daemon...
Feb 01 03:06:47 blacksun transmission-daemon[1484]: [2019-02-01 03:06:47.957] JSON parse failed in /var/lib/transmission-daemon/.config/transmission-daemon/settings.json at pos 468: STRAY_TOKEN -- remaining text ""cache-size-mb":"
Feb 01 03:06:47 blacksun transmission-daemon[1484]: [2019-02-01 03:06:47.957] transmission-daemon Error loading config file -- exiting. (daemon.c:693)
Feb 01 03:06:47 blacksun systemd[1]: transmission-daemon.service: Main process exited, code=exited, status=1/FAILURE
Feb 01 03:06:47 blacksun systemd[1]: transmission-daemon.service: Control process exited, code=exited status=1
Feb 01 03:06:47 blacksun systemd[1]: Failed to start Transmission BitTorrent Daemon.
Feb 01 03:06:47 blacksun systemd[1]: transmission-daemon.service: Unit entered failed state.
Feb 01 03:06:47 blacksun systemd[1]: transmission-daemon.service: Failed with result 'exit-code'.
The text was updated successfully, but these errors were encountered: