SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.02k stars 1.23k forks source link

Deluge package not shown #3074

Closed tassadar81 closed 6 years ago

tassadar81 commented 6 years ago

For new Package Requests, see the guidelines

Setup

Package Name: Deluge Package Version: any

NAS Model: DS218play NAS Architecture: Realtek RTD1296 SoC DSM version: DSM 6.1.4-15217 Update 5

Expected behavior

I've added the http://packages.synocommunity.com/ as package source and enabled the beta versions but the deluge package doesn't shows on comunity section of packet manager

Package log

Check Package Center or /usr/local/{package}/var/

Insert the package log here

Other logs

E.g. /var/log/messages or /var/log/synopkg.log

Insert log here
kianrafiee commented 6 years ago

DSM6 hasn't been yet supported for our NAS. I have the same DS218play. You'll have to build the package yourself(which can be tedious your first time) or find someone that has built it. Also make sure there aren't any issues with Deluge in this repo as that may prevent you from even getting to use it. I don't have time to build it myself to let you try, sorry.

tassadar81 commented 6 years ago

Thanks, i could give it a try... but there's any guide to build the package myself?

kianrafiee commented 6 years ago

Your staring at it :) This repo's main page shows you how to build packages. Let me warn you, its going to take you a few hours so I'd advise to do it when you have lots of free time like on the weekend.

Safihre commented 6 years ago

Test-package available in #3138. In case of problems, please post: /volume1/@appstore/deluge/var/delug.log and /volume1/@appstore/deluge/var/delug_install.log

tassadar81 commented 6 years ago

Safihre, during install it ask me for python 2.7.6-8 but i've installed both python's packages from packet manager. I'm not sure how to reach the logs from file station... i'll check from ssh when i return home

Safihre commented 6 years ago

You should also install the Python listed in that post, it's a newer version.

tassadar81 commented 6 years ago

Ok i was able to install python and deluge but during deluge start at the end of installation i had a failure. Tried to watch on log centre but it doesn't show anything. Guess i've to check through ssh

tassadar81 commented 6 years ago

Safihre i guess there's something to fix here, the installation corrupted the permission over filesystem. Not only for the directories chosen for deluge but some system's too. Now i can't update any configuration on DSM control panel. Hope i can fix in someway otherwise i have to reinstall again

Safihre commented 6 years ago

Could you tell what's happening? As in what permissions were set on which folders? You should be able to see this through ssh. This is very unfortunate..

tassadar81 commented 6 years ago

Safihre i've investigated more and the my report about system permission is wrong. I was thinking about that because the permission of the working directories was corrupted (i choose /volume1/public/torrent where to move the complete file and /volumne1/public/download where to download the torrent files) and changes to configurations in DSM control panel didn't save with a generic error (can't save...). The real problem was the the connection to the VPN died and nothing notice that, even in the connections settings was reported as active.

Anyway i can confirm that the permissions on working directory were set with 000 preventing access to that files. I was able to change this with a sudo chmod 755. I'll check installations error log late today.

Sorry for the partial wrong report

tassadar81 commented 6 years ago

Here the logs

deluge.log deluge_install.log

Safihre commented 6 years ago

@tassadar81 I see in the logs that sc-download was given permissions on /volume1/public/downloads. But you found that Deluge was not able to access the data? (linux permissions are semi-separate from Synology permissions, which makes it very complicated)

tassadar81 commented 6 years ago

@Safihre honestly i didn't know that Synology permissions and linux are semi-separated... Can you explain this better or just link a url where this is explained? What i found after installation is that /volume1/public/ and all the sub-folders had the permissions set to 000

Safihre commented 6 years ago

That indeed sounds like Synology permissions doing their thing. I am myself not even sure how it works, but somewhere it stores the "ACL" information that links files/folders to Synology users and groups. What's more important for us is to know if it actually allows Deluge to touch the files? Or you only started Deluge after doing the chmod? In theory the Synology permissions should be more important than linux ones.

Safihre commented 6 years ago

This problem was indeed caused by our installer, the new installer in #3138 now handles permissions properly so it doesn't result in 000 anymore!