-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
DS418 - DSM 7.2 last version - don´t work with CONTAINERMANAGER_FOR_ALL_ARMV8 #1
Comments
I have the same problem |
Same problem here |
I had a quick look at it the other day and could not see any reason for this error. But I can reproduce the error on an x86 NAS so at least I'll know when I've fixed it. |
Same problem here, hoping you'll be able to fix it! |
Same problem here - any solution so far? RS819 Invalid file format. Thanks |
Same problem here: |
@007revad idk if this helps but after install attempt
EDIT: some people say that many DSM7+ packages may have such error when they need to run as root. I cant find any information inside your spk file if this is the case. I've tried to play with INFO file, even totally replacing it with one that i gather from working spk package and still - file format error occurs. This must be something else. EDIT2: This repo: https://github.com/hbalint2100/Docker-ARM64-Synology seems to confirm that root things may cause problem, as this starts instalation properly. Same here:
EDIT4: Ok, removing EDIT5: i've added conf/privilege file :
I think we should find workaround for "use resource exclusively for |
@marmurek You are awesome! I'm getting the same log entries. I also came to the conclusion that it's not the INFO file itself but something else. Docker needing to have root privileges makes sense. DSM 7 makes it hard to install packages that need root privileges and most 3rd party packages that need root privileges instruct the user how to allow root privileges for their package after the package is installed. I believe installing a package with root privileges may be reserved for Synology's own, signed, packages. Nice find on that other Synology docker repo. I hadn't seen that one. To create the spk I'm using basically the same as your
EDIT3 I created an x86_64 package, got the same error, did the same steps as you, and got as far as the resource link... which I can now see takes you to https://help.synology.com/developer-guide/resource_acquisition/resources.html EDIT2 I assume the resource error relates to one of these resources in /config/resource
|
I just tried installing the package (without the resource file) via SSH as root but got an "invalid package privilege content" error 319
|
I just woke up and im happy to see you :) Im not sure this privilege file is valid. I copied it from another package and changed username to match ContainerManager. I was messing around with that resources file yesterday and seems that almost all of parameters need root. Edit: I have no idea what we can lose if we remove everything except |
I'll do a hyper backup full system backup of my DS720+ then try installing container manager with just |
Great! Looking forward to hear from you :) |
After stripping down resource to just The logs show: Full log: 2024/03/31 03:53:30 Failed to verify package, spk=[/volume1/@tmp/upload_tmp.156720] result=[{"action":"prepare","beta":false,"betaIncoming":false,"error":{"code":289,"description":"spk is not from synology"},"installReboot":false,"package":"ContainerManager","packageName":"Container Manager","stage":"prepare","success":false,"version":"20.10.23-1437"}] 2024/03/31 03:53:40 Failed to run preinst script for ContainerManager, 1 2024/03/31 03:53:41 Failed to install package, spk=[/volume1/@tmp/upload_tmp.156720] result=[{"action":"install","beta":false,"betaIncoming":false,"error":{"code":276,"description":"failed to run preinst script"},"finished":true,"installReboot":false,"installing":true,"language":"enu","last_stage":"preinstall","package":"ContainerManager","packageName":"Container Manager","pid":17166,"scripts":[{"code":1,"message":"","type":"preinst"}],"spk":"/volume1/@tmp/upload_tmp.156720","stage":"install_failed","status":"non_installed","status_code":255,"status_description":"failed to locate given package","success":false,"username":"Dave","version":"20.10.23-1437"}] So it looks like once it failed to verify package, spk was from synology it deleted the tmp files but continued trying to install the package. If I could have got to it to install the next step would have been trying to work out how to use SSH to add the necessary resources after the package was installed. |
Did u try to install via ssh as root as previously? Since it failed on preinst we should Look what it does - i saw it inside scripts folder |
Trying to install via SSH gives the errors as the log. The preinst script checks if /volume#/docker exists, and gets it ACLs The preinst script creates the /volume#/docker share if it doesn't exist, and creates a log entry if creating the docker share fails. It runs these commands:
I edited preinst so it only contained:
And I was able to install container manager, yay! So I deleted /var/packages/ContainerManager/startFailed and added the following line back to INFO
And Container Manager in Package Center changed from "Repair" to Stopped"... but clicking on Run resulted in same failed to start error with the repair button. Now I just have to figure out how to use SSH as sudo or root to add the resources I removed from the resource file. I should also run |
start-stop-status start does output this:
But it continues after that. And my DS1821+ does not have Apart from that it appears as if docker has started.
|
Wow, awesome findings! Grats! Propably of the script create missing directories, maybe we can add them later, after instalation manually using ssh? Does container manager expose configuration app into dsm website? Does it work? |
The Container Manager package is not running, so there's nothing in the DSM UI, apart from the damaged package that package center wants to repair. Via SSH, docker itself appears to be running.
But my 3 containers that were leftover from when I uninstalled the real DS720+ Container Manager version are not running.
NOTE Those 7 warnings are normal on a Synology NAS. But systemctl commands say it's not running:
|
I just remembered that a few months ago I managed to install the DVA1622's Surveillance Station with AI Deep Learning on my DS720+. Maybe what I did then would work for Container Manager. Can you try this:
If that works I'll write a script that does steps 1 to 9 to make it easy for other people. |
Ok, i will try after i return to home from easter vacation :) very interesting method! |
@baoshenti @buenpico @kaspar76 @Totix92 @santaklon @thorbeenwiedemann @AdrianCiobanu @marmurek I've created a pre-release script that downloads and installs Container Manager and instructs you how to prevent Container Manager from updating. https://github.com/007revad/ContainerManager_for_all_armv8/releases/tag/v1.2.4 I've tested as much as I can on my DS720+. It should work on a RS819, DS418, DS418j, DS218, DS218play, DS118 (and maybe DS119j). |
@007revad : Thank you 👍 . I think I get an error. Can you guide me through this? |
|
Sadly it looks like something in the container manager package is still stopping it from installing on a DS418. I just realized that because the script failed, it never restored your model number. Can you run the following 2 commands to fix it.
Can you run the following command and report back what it returns:
|
@007revad Big thanks for help! I can confirm it worked for my DS218 @ DSM 7.2.1-69057 Update 3 ! :) |
Did you use the script https://github.com/007revad/ContainerManager_for_all_armv8/releases/tag/v1.2.4 |
On sunday, after running the codes from above all my apps were unavailable. I have restarted the system and it required a DSM reinstall. After 10 min I was back again. |
@007revad i used the script |
@AdrianCiobanu Is your Synology actually a DS418? Or did it only say it was a DS418 after running the older script version that failed with an error? And what does the following command return?
|
|
What does the following command return?
|
The only difference between the script and those 10 steps are steps 4 and 5, Are you willing to uninstall Container Manager then repeat the 10 steps except replace steps 4 and 5 with:
And let me know if works. |
It not works and error message is
|
That would explain why the script is not working for many people. Maybe the I'll change the script to download the armv8 .spk then use |
Perhaps u can catch that error and fallback to instalation using file if user wanted |
Good idea. |
It's interesting, the failed installation is not listed in the log file. |
I now installed the Container Manager acc. to the 10 step procedure and it works! Unfortunately now some other packages (e.g. synology photos and storage manager) now need a repair but won't update when I click "repair". The description of the failure is "package does not support the current arch/model". But I changed the unique name back to my rs819. |
That could be because synopkg failed to query package list from server. |
Did you change it back in both synoinfo.conf files?
Then check with:
Also try closing and re-opening Package Center. |
Well, I guess the closing and re-opening did the job :-D Now everything is working just fine! Thank you very much for your support!! |
New version of the script: https://github.com/007revad/ContainerManager_for_all_armv8/releases Changes:
|
I can now confirm that it worked for me also! @007revad: Thank you very much for your patience and support! |
Hi everyone, I also confirm that the script is working smoothly:
Thanks for your work! Best, C. |
Hello, I have followed the steps and once you send it to install an error appears.
Invalid file format. Contact the package developer.
The text was updated successfully, but these errors were encountered: