ddvk / rmfakecloud

host your own cloud for the remarkable
GNU Affero General Public License v3.0
751 stars 61 forks source link

Tablet syncs but shows no connection to cloud #291

Open giovi321 opened 7 months ago

giovi321 commented 7 months ago

I'm trying to sync an existing rmfakecloud account with a new tablet, but I keep getting the following error when I issue systemctl status xochitl -l:

Mar 06 10:25:35 reMarkable xochitl[596]: 09:25:35.055 rm.network.notifications Notifications socket is not OK: UnconnectedState (checkIfShouldConnect /home/runner/work/xochitl/xochitl/src/notifications/src/notifications.cpp:190)

and the cloud icon shows that the server is offline. Everything was working with the previous tablet.

giovi321 commented 7 months ago

Ok, I managed to sync, but the cloud connection always appears as offline. I'm using a reverse proxy with Apache 2 on the server, could that be the cause? How is the connectivity checked by xochitl?

I see the following error on the proxy server:

192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "GET /integrations/v1/ HTTP/1.1" 200 4905 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "POST /v2/events HTTP/1.1" 404 4843 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "POST /v2/events HTTP/1.1" 404 4843 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "POST /v2/events HTTP/1.1" 404 4843 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "POST /v2/events HTTP/1.1" 404 4843 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "GET /integrations/v1/ HTTP/1.1" 200 4905 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "POST /v2/events HTTP/1.1" 404 4843 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "POST /v2/events HTTP/1.1" 404 136 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "POST /v2/events HTTP/1.1" 404 136 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "POST /v2/events HTTP/1.1" 404 136 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "POST /v2/events HTTP/1.1" 404 136 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "POST /v2/events HTTP/1.1" 404 136 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "POST /v2/events HTTP/1.1" 404 136 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "POST /v2/events HTTP/1.1" 404 136 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "POST /v2/events HTTP/1.1" 404 136 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "POST /v2/events HTTP/1.1" 404 136 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "POST /v2/events HTTP/1.1" 404 136 "-" "xochitl/3.9.5.837 (codex 4.0.367)"
192.168.1.1 - - [06/Mar/2024:15:11:46 +0100] "POST /v2/events HTTP/1.1" 404 136 "-" "xochitl/3.9.5.837 (codex 4.0.367)"

and the following on rmfakecloud server:

mar 06 14:56:09 GC01remarkableSRVR rmfakecloud[527]: time="2024-03-06T14:56:09+01:00" level=info msg="Requestng blob: root"
mar 06 14:56:09 GC01remarkableSRVR rmfakecloud[527]: time="2024-03-06T14:56:09+01:00" level=info msg="[GIN] 2024/03/06 - 14:57:11 | 200 |     189.011<C2><B5>s |  192.168.56.105 | GET      \"/blobstorage?blobid=root&exp=REDACTED&scope=read&signature=REDACTED>
mar 06 14:56:16 GC01remarkableSRVR rmfakecloud[527]: time="2024-03-06T14:56:16+01:00" level=info msg="[auth-middleware] UserId: giovi deviceId: RM110-325-38011 newSync: true"
mar 06 14:56:16 GC01remarkableSRVR rmfakecloud[527]: time="2024-03-06T14:56:16+01:00" level=info msg="connecting websocket from: giovi"
mar 06 14:56:16 GC01remarkableSRVR rmfakecloud[527]: time="2024-03-06T14:56:16+01:00" level=warning msg="can't upgrade websocket to ws websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header"
mar 06 14:56:16 GC01remarkableSRVR rmfakecloud[527]: time="2024-03-06T14:56:16+01:00" level=info msg="[GIN] 2024/03/06 - 14:57:17 | 400 |     170.506<C2><B5>s |  192.168.56.105 | GET      \"/notifications/ws/json/1\""
mar 06 14:56:16 GC01remarkableSRVR rmfakecloud[527]: time="2024-03-06T14:56:16+01:00" level=info msg="[auth-middleware] UserId: giovi deviceId: RM110-325-38011 newSync: true"
mar 06 14:56:16 GC01remarkableSRVR rmfakecloud[527]: time="2024-03-06T14:56:16+01:00" level=info msg="[GIN] 2024/03/06 - 14:57:31 | 200 |     296.412<C2><B5>s |  192.168.56.105 | POST     \"/sync/v2/signed-urls/downloads\""
mar 06 14:56:18 GC01remarkableSRVR rmfakecloud[527]: time="2024-03-06T14:56:18+01:00" level=info msg="[auth-middleware] UserId: giovi deviceId: RM110-325-38011 newSync: true"
mar 06 14:56:18 GC01remarkableSRVR rmfakecloud[527]: time="2024-03-06T14:56:18+01:00" level=info msg="[GIN] 2024/03/06 - 14:57:31 | 200 |     210.953<C2><B5>s |  192.168.56.105 | GET      \"/blobstorage?blobid=root&exp=REDACTED&scope=read&signature=REDACTED""