No package available
brandt71 opened this issue · 2 comments
Hello,
I've installed gosspks with Docker on my Synology and I have no error :
ubuntu:~$ curl -i reposyno.mydomain.com:9999/about
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json; charset=UTF-8
Date: Mon, 18 Jan 2021 11:47:33 GMT
Content-Length: 93
{"name":"gosspks","version":"v0.3.1","maintainer":"jdel","license":"GNU GPL v3","year":2021}
ubuntu:~$ curl -i reposyno.mydomain.com:9999/v1/packages
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json; charset=UTF-8
Date: Mon, 18 Jan 2021 11:47:36 GMT
Content-Length: 645
[{"package":"Plex Media Server","version":"1.21.1.3876-3c3adfcb4","firmware":"6.0-7321","desc":"Plex organizes all of your personal media so you can easily access and enjoy it.","arch":"x86_64","maintainer":"Plex Inc","adminport":"32400","adminurl":"web","helpurl":"https://plex.tv/","start":true,"link":"http://reposyno.mydomain.com:9999/download/PlexMediaServer-1.21.1.3876-3c3adfcb4-x86_64.spk","size":"111687680","qinst":true,"qstart":true,"qupdate":true,"thumbnail":["http://reposyno.mydomain.com:9999/static/PlexMediaServer-1.21.1.3876-3c3adfcb4-x86_64.spk/PACKAGE_ICON.PNG"],"thumbnail_retina":["http://reposyno.mydomain.com:9999/static/default.png"]}]
ubuntu:~$ curl -i reposyno.mydomain.com:9999/v1/models
HTTP/1.1 200 OK
Access-Control-Allow-Methods: GET, OPTIONS
Access-Control-Allow-Origin: *
Content-Type: application/json; charset=UTF-8
Date: Mon, 18 Jan 2021 11:49:18 GMT
Transfer-Encoding: chunked
[ .... {"name":"DS218+","cpu":"Intel Celeron J3355","cores":"Dual Core","threads":"2","fpu":"Yes","arch":"Apollolake","ram":"DDR3L SODIMM 2GB"},{"name":"DS218","cpu":"Realtek RTD1296","cores":"Quad Core","threads":"4","fpu":"Yes","arch":"rtd1296","ram":"DDR4 2GB"},{"name":"DS218play","cpu":"Realtek RTD1296","cores":"Quad Core","threads":"4","fpu":"Yes","arch":"rtd1296","ram":"DDR4 1GB"},{"name":"DS218j","cpu":"Marvell Armada 385 88F6820","cores":"Dual Core","threads":"2","fpu":"Yes","arch":"Armada38x","ram":"DDR3 512MB"} .... ]
But on my Synology DS218+ I added the repo in my package center and I don't see my package (Plex), I have a blank page.
Any idea? Thanks.
Hello, it seems that your Syno's architecture is "arch": "Apollolake"
and your package is built for arch":"x86_64"
So it is expected that your NAS won't show the package.
Perfect thanks, so I am trying to modify the models.yml file (to replace Apollolake by x86_64), but I really don't understand why it is ignored.
ash-4.3# docker exec -i gosspks gosspks config --yaml
time="21/01/19 11:44:47.692" level=info msg="Using config file: /home/user/gosspks/gosspks.yml" module=/src/cfg/cfg.go
time="21/01/19 11:44:47.693" level=info msg="Home is: /home/user/gosspks" module=/src/cfg/cfg.go
time="21/01/19 11:44:47.693" level=info msg="Cache directory is: /home/user/gosspks/cache" module=/src/cfg/cfg.go
time="21/01/19 11:44:47.693" level=info msg="Packages directory is: /home/user/gosspks/packages" module=/src/cfg/cfg.go
time="21/01/19 11:44:47.696" level=info msg="Found 0 GPG key(s)" module=/src/cfg/cfg.go
gosspks:
cache:
models:
duration: 7d
refresh: 1d
packages:
count: 15
duration: 5m
refresh: 1m
debug-package: false
filesystem:
cache: cache
models: /home/user/gosspks/models/models.yml
packages: packages
hostname: reposyno.mydomain.com
log-level: Debug
md5: false
port: 8080
router:
download: /download
static: /static
scheme: http
ash-4.3# docker exec -i gosspks ls -lh /home/user/gosspks/models/models.yml
-rwxrwxrwx 1 root root 0 Jan 19 11:13 /home/user/gosspks/models/models.yml
Thanks.
Edit :
In the logs :
time="21/01/19 12:03:10.434" level=debug msg="Fetching models from the internet"