Closed vmario89 closed 11 months ago
Hi @vmario89.
Can you try to run it prepending the command with RUST_LOG=trace
and see what it spits out to the console?
Also please look what versions of Synology Photos app you have installed in Package Manager on each device, are they the same?
Are you able to see the photo by opening the album's share link in an incognito window in a browser (i.e. without logging in to Synology Photo)?
Edit: Btw. your second curl request uses version 1 (the app uses version 2) and "sm" size (the app uses "xl"). Probably not the culprit though, since it doesn't work either way.
Hi,
thanks for your answer. I had a look at the packages
the systems i use have the following Synology Photos version
export XDG_RUNTIME_DIR=/home/himbeere/Downloads && ./syno-photo-frame/target/release/syno-photo-frame https://nas.stadtfabrikanten.org/photo/mo/sharing/RmncHcRjv
does not workas you can see i have 2 sytems with identical Photos version, but at one it does not work
The log with enabled trace flag:
2023-09-07T22:08:58.725Z TRACE [reqwest::blocking::wait] wait at most 20s
2023-09-07T22:08:58.725Z TRACE [reqwest::blocking::wait] (ThreadId(4)) park timeout 19.999999259s
2023-09-07T22:08:59.090Z TRACE [syno_photo_frame::logging] Ok(ReqwestResponse { response: Response { url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("nas.stadtfabrikanten.org")), port: None, path: "/photo/mo/sharing/webapi/entry.cgi", query: None, fragment: None }, status: 200, headers: {"server": "nginx", "date": "Thu, 07 Sep 2023 22:08:59 GMT", "content-type": "application/json; charset=\"UTF-8\"", "transfer-encoding": "chunked", "connection": "keep-alive", "x-content-type-options": "nosniff", "x-xss-protection": "1; mode=block", "cache-control": "max-age=0, no-cache, no-store, must-revalidate", "pragma": "no-cache", "expires": "0"} } })
2023-09-07T22:08:59.090Z TRACE [reqwest::blocking::wait] wait at most 20s
2023-09-07T22:08:59.090Z TRACE [reqwest::blocking::wait] (ThreadId(4)) park timeout 19.999989391s
2023-09-07T22:08:59.090Z TRACE [reqwest::blocking::wait] (ThreadId(4)) park timeout 19.999963891s
2023-09-07T22:08:59.090Z TRACE [syno_photo_frame::logging] POST https://nas.stadtfabrikanten.org/photo/mo/sharing/webapi/entry.cgi, form: [("api", "SYNO.Foto.Browse.Item"), ("method", "list"), ("version", "1"), ("additional", "[\"thumbnail\"]"), ("offset", "0"), ("limit", "1"), ("sort_by", "takentime"), ("sort_direction", "asc")], header: Some(("X-SYNO-SHARING", "RmncHcRjv"))
2023-09-07T22:08:59.090Z TRACE [reqwest::blocking::wait] wait at most 20s
2023-09-07T22:08:59.090Z TRACE [reqwest::blocking::wait] (ThreadId(4)) park timeout 19.99999927s
2023-09-07T22:08:59.578Z TRACE [syno_photo_frame::logging] Ok(ReqwestResponse { response: Response { url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("nas.stadtfabrikanten.org")), port: None, path: "/photo/mo/sharing/webapi/entry.cgi", query: None, fragment: None }, status: 200, headers: {"server": "nginx", "date": "Thu, 07 Sep 2023 22:08:59 GMT", "content-type": "application/json; charset=\"UTF-8\"", "transfer-encoding": "chunked", "connection": "keep-alive", "x-content-type-options": "nosniff", "x-xss-protection": "1; mode=block", "cache-control": "max-age=0, no-cache, no-store, must-revalidate", "pragma": "no-cache", "expires": "0"} } })
2023-09-07T22:08:59.578Z TRACE [reqwest::blocking::wait] wait at most 20s
2023-09-07T22:08:59.578Z TRACE [reqwest::blocking::wait] (ThreadId(4)) park timeout 19.999979243s
2023-09-07T22:08:59.578Z TRACE [syno_photo_frame::logging] GET https://nas.stadtfabrikanten.org/photo/mo/sharing/webapi/entry.cgi, query: [("api", "SYNO.Foto.Thumbnail"), ("method", "get"), ("version", "2"), ("_sharing_id", "RmncHcRjv"), ("id", "12058"), ("cache_key", "12052_1692879427"), ("type", "unit"), ("size", "xl")]
2023-09-07T22:08:59.578Z TRACE [reqwest::blocking::wait] wait at most 20s
2023-09-07T22:08:59.578Z TRACE [reqwest::blocking::wait] (ThreadId(4)) park timeout 19.999999258s
2023-09-07T22:09:00.015Z TRACE [syno_photo_frame::logging] Ok(ReqwestResponse { response: Response { url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("nas.stadtfabrikanten.org")), port: None, path: "/photo/mo/sharing/webapi/entry.cgi", query: Some("api=SYNO.Foto.Thumbnail&method=get&version=2&_sharing_id=RmncHcRjv&id=12058&cache_key=12052_1692879427&type=unit&size=xl"), fragment: None }, status: 404, headers: {"server": "nginx", "date": "Thu, 07 Sep 2023 22:09:00 GMT", "content-type": "text/html", "content-length": "11939", "connection": "keep-alive", "etag": "\"641d3d5e-2ea3\""} } })
2023-09-07T22:09:00.015Z TRACE [syno_photo_frame::logging] POST https://nas.stadtfabrikanten.org/photo/mo/sharing/webapi/entry.cgi, form: [("api", "SYNO.Foto.Browse.Album"), ("method", "get"), ("version", "1")], header: Some(("X-SYNO-SHARING", "RmncHcRjv"))
2023-09-07T22:09:00.015Z TRACE [reqwest::blocking::wait] wait at most 20s
2023-09-07T22:09:00.015Z TRACE [reqwest::blocking::wait] (ThreadId(4)) park timeout 19.99999932s
2023-09-07T22:09:00.491Z TRACE [syno_photo_frame::logging] Ok(ReqwestResponse { response: Response { url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("nas.stadtfabrikanten.org")), port: None, path: "/photo/mo/sharing/webapi/entry.cgi", query: None, fragment: None }, status: 200, headers: {"server": "nginx", "date": "Thu, 07 Sep 2023 22:09:00 GMT", "content-type": "application/json; charset=\"UTF-8\"", "transfer-encoding": "chunked", "connection": "keep-alive", "x-content-type-options": "nosniff", "x-xss-protection": "1; mode=block", "cache-control": "max-age=0, no-cache, no-store, must-revalidate", "pragma": "no-cache", "expires": "0"} } })
2023-09-07T22:09:00.491Z TRACE [reqwest::blocking::wait] wait at most 20s
2023-09-07T22:09:00.491Z TRACE [reqwest::blocking::wait] (ThreadId(4)) park timeout 19.999977846s
2023-09-07T22:09:00.491Z TRACE [syno_photo_frame::logging] POST https://nas.stadtfabrikanten.org/photo/mo/sharing/webapi/entry.cgi, form: [("api", "SYNO.Foto.Browse.Item"), ("method", "list"), ("version", "1"), ("additional", "[\"thumbnail\"]"), ("offset", "0"), ("limit", "1"), ("sort_by", "takentime"), ("sort_direction", "asc")], header: Some(("X-SYNO-SHARING", "RmncHcRjv"))
2023-09-07T22:09:00.491Z TRACE [reqwest::blocking::wait] wait at most 20s
2023-09-07T22:09:00.491Z TRACE [reqwest::blocking::wait] (ThreadId(4)) park timeout 19.999999243s
2023-09-07T22:09:01.075Z TRACE [syno_photo_frame::logging] Ok(ReqwestResponse { response: Response { url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("nas.stadtfabrikanten.org")), port: None, path: "/photo/mo/sharing/webapi/entry.cgi", query: None, fragment: None }, status: 200, headers: {"server": "nginx", "date": "Thu, 07 Sep 2023 22:09:01 GMT", "content-type": "application/json; charset=\"UTF-8\"", "transfer-encoding": "chunked", "connection": "keep-alive", "x-content-type-options": "nosniff", "x-xss-protection": "1; mode=block", "cache-control": "max-age=0, no-cache, no-store, must-revalidate", "pragma": "no-cache", "expires": "0"} } })
2023-09-07T22:09:01.075Z TRACE [reqwest::blocking::wait] wait at most 20s
2023-09-07T22:09:01.075Z TRACE [reqwest::blocking::wait] (ThreadId(4)) park timeout 19.99999296s
2023-09-07T22:09:01.075Z TRACE [syno_photo_frame::logging] GET https://nas.stadtfabrikanten.org/photo/mo/sharing/webapi/entry.cgi, query: [("api", "SYNO.Foto.Thumbnail"), ("method", "get"), ("version", "2"), ("_sharing_id", "RmncHcRjv"), ("id", "12058"), ("cache_key", "12052_1692879427"), ("type", "unit"), ("size", "xl")]
2023-09-07T22:09:01.075Z TRACE [reqwest::blocking::wait] wait at most 20s
2023-09-07T22:09:01.076Z TRACE [reqwest::blocking::wait] (ThreadId(4)) park timeout 19.999999266s
^[2023-09-07T22:09:01.519Z TRACE [syno_photo_frame::logging] Ok(ReqwestResponse { response: Response { url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("nas.stadtfabrikanten.org")), port: None, path: "/photo/mo/sharing/webapi/entry.cgi", query: Some("api=SYNO.Foto.Thumbnail&method=get&version=2&_sharing_id=RmncHcRjv&id=12058&cache_key=12052_1692879427&type=unit&size=xl"), fragment: None }, status: 404, headers: {"server": "nginx", "date": "Thu, 07 Sep 2023 22:09:01 GMT", "content-type": "text/html", "content-length": "11939", "connection": "keep-alive", "etag": "\"641d3d5e-2ea3\""} } })
2023-09-07T22:09:01.519Z TRACE [syno_photo_frame::logging] POST https://nas.stadtfabrikanten.org/photo/mo/sharing/webapi/entry.cgi, form: [("api", "SYNO.Foto.Browse.Album"), ("method", "get"), ("version", "1")], header: Some(("X-SYNO-SHARING", "RmncHcRjv"))
2023-09-07T22:09:01.519Z TRACE [reqwest::blocking::wait] wait at most 20s
2023-09-07T22:09:01.519Z TRACE [reqwest::blocking::wait] (ThreadId(4)) park timeout 19.999998915s
2023-09-07T22:09:02.069Z TRACE [syno_photo_frame::logging] Ok(ReqwestResponse { response: Response { url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("nas.stadtfabrikanten.org")), port: None, path: "/photo/mo/sharing/webapi/entry.cgi", query: None, fragment: None }, status: 200, headers: {"server": "nginx", "date": "Thu, 07 Sep 2023 22:09:02 GMT", "content-type": "application/json; charset=\"UTF-8\"", "transfer-encoding": "chunked", "connection": "keep-alive", "x-content-type-options": "nosniff", "x-xss-protection": "1; mode=block", "cache-control": "max-age=0, no-cache, no-store, must-revalidate", "pragma": "no-cache", "expires": "0"} } })
2023-09-07T22:09:02.069Z TRACE [reqwest::blocking::wait] wait at most 20s
2023-09-07T22:09:02.069Z TRACE [reqwest::blocking::wait] (ThreadId(4)) park timeout 19.999992462s
2023-09-07T22:09:02.069Z TRACE [syno_photo_frame::logging] POST https://nas.stadtfabrikanten.org/photo/mo/sharing/webapi/entry.cgi, form: [("api", "SYNO.Foto.Browse.Item"), ("method", "list"), ("version", "1"), ("additional", "[\"thumbnail\"]"), ("offset", "0"), ("limit", "1"), ("sort_by", "takentime"), ("sort_direction", "asc")], header: Some(("X-SYNO-SHARING", "RmncHcRjv"))
2023-09-07T22:09:02.069Z TRACE [reqwest::blocking::wait] wait at most 20s
2023-09-07T22:09:02.069Z TRACE [reqwest::blocking::wait] (ThreadId(4)) park timeout 19.999999272s
2023-09-07T22:09:02.572Z TRACE [syno_photo_frame::logging] Ok(ReqwestResponse { response: Response { url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("nas.stadtfabrikanten.org")), port: None, path: "/photo/mo/sharing/webapi/entry.cgi", query: None, fragment: None }, status: 200, headers: {"server": "nginx", "date": "Thu, 07 Sep 2023 22:09:02 GMT", "content-type": "application/json; charset=\"UTF-8\"", "transfer-encoding": "chunked", "connection": "keep-alive", "x-content-type-options": "nosniff", "x-xss-protection": "1; mode=block", "cache-control": "max-age=0, no-cache, no-store, must-revalidate", "pragma": "no-cache", "expires": "0"} } })
2023-09-07T22:09:02.573Z TRACE [reqwest::blocking::wait] wait at most 20s
2023-09-07T22:09:02.573Z TRACE [reqwest::blocking::wait] (ThreadId(4)) park timeout 19.999993536s
2023-09-07T22:09:02.573Z TRACE [syno_photo_frame::logging] GET https://nas.stadtfabrikanten.org/photo/mo/sharing/webapi/entry.cgi, query: [("api", "SYNO.Foto.Thumbnail"), ("method", "get"), ("version", "2"), ("_sharing_id", "RmncHcRjv"), ("id", "12058"), ("cache_key", "12052_1692879427"), ("type", "unit"), ("size", "xl")]
2023-09-07T22:09:02.573Z TRACE [reqwest::blocking::wait] wait at most 20s
2023-09-07T22:09:02.573Z TRACE [reqwest::blocking::wait] (ThreadId(4)) park timeout 19.999999247s
^C2023-09-07T22:09:03.212Z DEBUG [syno_photo_frame] ctrlc signal received, exiting
i don't see an error here.
Yeah it seems the Photos API on your NAS is responding without problems, so I suspect something is wrong on the client side. Are you running this on Raspberry Pi? If so, did you start with a clean OS or do you have some custom setup? What model of RPi is it? Does the same RPi work with the working NAS unit, and not with the others, or are they different RPis? Are you able to see the album contents from the not-working NAS on a PC via a browser?
If you have Rust installed on a PC somewhere you could also try to run the app there to see if it works, that would at least prove that it's a problem on the particular client device.
Edit: I tried your link and I can see the photo from my PC so it's definitely something on the RPi side (since you used the release file I assume you're running this on RPi with 64-bit OS). Maybe try with a fresh install of Raspbian OS on another SD card, follow the installation instructions and see if that works? If it doesn't, then maybe another RPi unit?
@vmario89 were you able to solve your issue?
hey. thanks for asking! not yet, as i am really busy at the moment. but the solution is still highly required and i want to find out whats the problem. please keep this open as i will continue finding out the root cause
Please reopen if still applicable. Closing due to lack of activity.
Hi there,
i just found this neat piece of software and was trying out a while, but i am not able to get it up running. I would be happy to be able to use it for our kiosk monitors in space.
the following command does not work correctly:
the program does not fetch images. it only shows the splash default image. No errors anywhere. The link is working correctly. If i trace the links then i get to the page which says 404 not found:
i have no idea why. i guess sth changed belonging to API? i already checked a lot of stuff like domain rebinding, portal short link /photo/, ports, etc. - also tried with local ip address. no difference.
i was able to get it running with 1 other NAS system and it failed also on another NAS. So i tried it out on three different systems.
The device where it is working:
can you maybe help out?