MYSQL_PASS=meinSQLpasswort
SYNC_MASTER_SECRET=meinMasterSyncPasswort
METRICS_HASH_SECRET=85a0d223f53279c995199ee770928f8623eb364b5895df80d5367ac39d57d532
Ja, sind beide da.Du scheinst meine Frage überlesen zu haben: Hast du beide Einträge in der "tokenserver_rs" angelegt?
In dem einen Screenshot sieht man nur einen der Beiden.
1699888686597 Sync.Service DEBUG User-Agent: Firefox/119.0.1 (Windows NT 10.0; Win64; x64) FxSync/1.121.0.20231106151204.desktop
1699888686597 Sync.Service INFO Starting sync at 2023-11-13 16:18:06 in browser session PjdnNZ4JqVkE
1699888686597 Sync.Service DEBUG In sync: should login.
1699888686597 Sync.RemoteTabs INFO Generating tab list with filter
1699888686597 Sync.Service DEBUG Exception calling WrappedLock: LockException: Could not acquire lock. Label: "service.js: login".(resource://services-sync/util.sys.mjs:43:5) JS Stack trace: LockException@util.sys.mjs:43:5
throwLockException@util.sys.mjs:127:11
WrappedLock@util.sys.mjs:141:15
WrappedCatch@util.sys.mjs:112:27
login@service.sys.mjs:1049:66
sync/<@service.sys.mjs:1327:26
WrappedCatch@util.sys.mjs:112:27
sync@service.sys.mjs:1335:7
1699888686597 Sync.Service INFO Cannot start sync: already syncing?
1699888686597 Sync.Service DEBUG Not syncing: login returned false.
1699888686606 Sync.RemoteTabs INFO Final tab list has 0 clients with 0 tabs.
1699888687778 Services.Common.RESTRequest DEBUG GET https://fxsync.meinserver.de/1.0/sync/1.5 503
1699888687779 Services.Common.TokenServerClient DEBUG Got token response: 503
1699888687779 Services.Common.TokenServerClient INFO Server-reported error: {"location":"body","name":"","description":"Resource is not available"}
1699888687779 Sync.SyncAuthManager ERROR Non-authentication error in _fetchTokenForUser: TokenServerClientServerError({"now":"2023-11-13T15:18:07.779Z","message":"Server error.","cause":"general","response_body":"{\"status\":\"error\",\"errors\":[{\"location\":\"body\",\"name\":\"\",\"description\":\"Resource is not available\"}]}","response_headers":{"server":"nginx","date":"Mon, 13 Nov 2023 15:18:07 GMT","content-type":"application/json","content-length":"101","x-weave-timestamp":"1699888677.77","x-firefox-spdy":"h2"},"response_status":503})(resource://services-common/tokenserverclient.sys.mjs:28:36) JS Stack trace: TokenServerClientServerError@tokenserverclient.sys.mjs:90:16
_processTokenResponse@tokenserverclient.sys.mjs:306:19
_tokenServerExchangeRequest@tokenserverclient.sys.mjs:239:19
1699888687780 Sync.Status DEBUG Status.login: success.status_ok => error.login.reason.network
1699888687780 Sync.Status DEBUG Status.service: success.status_ok => error.login.failed
1699888687780 Sync.SyncAuthManager INFO Failed to fetch the cluster URL: TokenServerClientServerError({"now":"2023-11-13T15:18:07.779Z","message":"Server error.","cause":"general","response_body":"{\"status\":\"error\",\"errors\":[{\"location\":\"body\",\"name\":\"\",\"description\":\"Resource is not available\"}]}","response_headers":{"server":"nginx","date":"Mon, 13 Nov 2023 15:18:07 GMT","content-type":"application/json","content-length":"101","x-weave-timestamp":"1699888677.77","x-firefox-spdy":"h2"},"response_status":503})(resource://services-common/tokenserverclient.sys.mjs:28:36) JS Stack trace: TokenServerClientServerError@tokenserverclient.sys.mjs:90:16
_processTokenResponse@tokenserverclient.sys.mjs:306:19
_tokenServerExchangeRequest@tokenserverclient.sys.mjs:239:19
1699888687781 Sync.Service DEBUG verifyLogin failed: TokenServerClientServerError({"now":"2023-11-13T15:18:07.779Z","message":"Server error.","cause":"general","response_body":"{\"status\":\"error\",\"errors\":[{\"location\":\"body\",\"name\":\"\",\"description\":\"Resource is not available\"}]}","response_headers":{"server":"nginx","date":"Mon, 13 Nov 2023 15:18:07 GMT","content-type":"application/json","content-length":"101","x-weave-timestamp":"1699888677.77","x-firefox-spdy":"h2"},"response_status":503})(resource://services-common/tokenserverclient.sys.mjs:28:36) JS Stack trace: TokenServerClientServerError@tokenserverclient.sys.mjs:90:16
_processTokenResponse@tokenserverclient.sys.mjs:306:19
_tokenServerExchangeRequest@tokenserverclient.sys.mjs:239:19
1699888687781 Sync.Status DEBUG Status.login: error.login.reason.network => error.login.reason.network
1699888687781 Sync.Status DEBUG Status.service: error.login.failed => error.login.failed
1699888687781 Sync.ErrorHandler ERROR Sync encountered a login error
Wenn du den User so eingerichtet hast, ist das ok. Aber die Verbindung des Containers zur DB geht doch nach deinen Worten. Sonst könnte er ja auch keine Tabellen anlegen.Wenn ich den User sync_rs@"%" verwende, sollte das doch ok sein, oder?
Naja, einfach Frage: Hat deine Syno Internetverbindung?Wie kann ich das testen?
Ich habe dieses hier gefunden.Ich habe ein Skript laufen, was mir regelmässig über den Docker-Befehl die Netzwerk- und Container-Werte exportiert. Da ich außerdem Portainer einsetze, sichert ein weiteres Skript die Portainer-Einstellungen, wie man es aus Portainer selber machen kann.
version: "3.8"
services:
firefoxsync:
container_name: firefoxsync
entrypoint:
- /app/bin/syncserver
environment:
- SYNC_HOST=0.0.0.0
- SYNC_HUMAN_LOGS=1
- SYNC_MASTER_SECRET=Kt6R2xJWTJh8Y5R+xL9I7fREXcpI0aB37MrS6ubyxkYbT6B6kQ9AwBiOFDKaMSD6
- SYNC_SYNCSTORAGE__DATABASE_URL=mysql://firefox:F1r€F0X@mariadb:3306/syncstorage_rs
- SYNC_TOKENSERVER__ENABLED=true
- SYNC_TOKENSERVER__RUN_MIGRATIONS=true
- SYNC_TOKENSERVER__NODE_TYPE=mysql
- SYNC_TOKENSERVER__DATABASE_URL=mysql://firefox:F1r€F0X@mariadb:3306/tokenserver_rs
- SYNC_TOKENSERVER__FXA_EMAIL_DOMAIN=api.accounts.firefox.com
- SYNC_TOKENSERVER__FXA_OAUTH_SERVER_URL=https://oauth.accounts.firefox.com/v1
- SYNC_TOKENSERVER__FXA_METRICS_HASH_SECRET=Kt6R2xJWTJh8Y5R+xL9I7fREXcpI0aB37MrS6ubyxkYbT6B6kQ9AwBiOFDKaMSD6
- SYNC_TOKENSERVER__ADDITIONAL_BLOCKING_THREADS_FOR_FXA_REQUESTS=2
hostname: ffsync
image: mozilla/syncstorage-rs:0.13.7
networks:
- sql
ports:
- 8000:8000/tcp
restart: always
networks:
sql:
external: true
cat .env
COMPOSE_PROJECT_NAME=firefoxsync
MYSQL_USER=firefox
MYSQL_PASS=F1r€F0X
SYNC_MASTER_SECRET=Kt6R2xJWTJh8Y5R+xL9I7fREXcpI0aB37MrS6ubyxkYbT6B6kQ9AwBiOFDKaMSD6
METRICS_HASH_SECRET=Kt6R2xJWTJh8Y5R+xL9I7fREXcpI0aB37MrS6ubyxkYbT6B6kQ9AwBiOFDKaMSD6
DATABASE_SERVER=mariadb
DATABASE_PORT=3306
EXTERNAL_PORT=8000
USE tokenserver_rs;
INSERT IGNORE INTO services (id, service, pattern) VALUES ('1', 'sync-1.5', '{node}/1.5/{uid}');
INSERT INTO nodes (id, service, node, available, current_load, capacity, downed, backoff) VALUES ('1', '1', 'http(s)://ffsync.meinedomain.de:port', '1', '0', '5', '0', '0');
Ah danke. Das werde ich mal machen.Hast du mal in about:config das Sync-Logging aktiviert? ("services.sync.log.appender.file.logOnError" / "services.sync.log.appender.file.logOnSuccess")
Error steht standardmässig auf True, der zweite nicht.
Ja genau.Healthcheck meinst du den Heartbeat
Was ist das? Sorry, falls ich was übersehen habob sich was bei der SQL/Spanner-Geschichte was tut...
Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.
Als Dankeschön schalten wir deinen Account werbefrei.