syncstorage-rs
syncstorage-rs copied to clipboard
Update from 0.13.7 to 0.14.0 crashes container
Hi all,
after updating the syncstorage-rs container from 0.13.7 to 0.14.0 the container crashes.
The log is filled with this messages you see in the attached log. FirefoxSync_RS_logs.txt
┆Issue is synchronized with this Jira Task
Looking at the log, I see that the problem is that there's an invalid database URL being specified. specifically:
SLaka5upLEa2RfW4XNMkUrRihKQNJKQFqAzR5McFSRpWcnrD7hcYRtxh37T9+@MariaDB:3306/syncstorage_rs
What's also curious is the fact that you've specified the db in settings as mysql:
, but the code is trying to use spanner
.
Are you compiling with --no-default-features --features=mysql
?
Hi,
I'm just using the docker image you provide. This is my compose file and the env file:
--------------------- Start version: "3.8"
services: firefox-sync: image: mozilla/syncstorage-rs:0.14.0 container_name: ${CONTAINER_NAME} environment: SYNC_HOST: 0.0.0.0 SYNC_HUMAN_LOGS: 1 SYNC_MASTER_SECRET: ${SYNC_MASTER_SECRET} SYNC_SYNCSTORAGE__DATABASE_URL: mysql://${MYSQL_USER}:${MYSQL_PASS}@${DATABASE_SERVER}:${DATABASE_PORT}/${DATABASE_SYNC} SYNC_TOKENSERVER__ENABLED: "true" SYNC_TOKENSERVER__RUN_MIGRATIONS: "true" SYNC_TOKENSERVER__NODE_TYPE: mysql SYNC_TOKENSERVER__DATABASE_URL: mysql://${MYSQL_USER}:${MYSQL_PASS}@${DATABASE_SERVER}:${DATABASE_PORT}/${DATABASE_TOKEN} 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: ${METRICS_HASH_SECRET} SYNC_TOKENSERVER__ADDITIONAL_BLOCKING_THREADS_FOR_FXA_REQUESTS: 2 RUST_LOG: warn volumes: - /etc/localtime:/etc/localtime:ro
ports: - ${EXTERNAL_PORT}:8000 healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/heartbeat"] interval: 30s timeout: 10s retries: 5 restart: unless-stopped networks: - mariadb
networks: mariadb: external: true ------------------------- End
------------------------- Start
COMPOSE_PROJECT_NAME=ffsync_rs
CONTAINER_NAME=FirefoxSync_RS
MYSQL_USER=sync_rs
MYSQL_PASS=
I've tried it again, after it's officially released. The error is the same.
What I've not registered before: The image for 0.14.0 is quite larger than for 0.13.7, 2.2 GB to 1.4 GB. Is that normal?
I yesterday did also the update and I have the same problem, after updating the Container won't start anymore. I'm currently running the syncstorage on a Kubernetes cluster with this deployment:
apiVersion: apps/v1
kind: Deployment
metadata:
name: syncstorage
namespace: mozilla
labels:
app: syncstorage
spec:
replicas: 1
selector:
matchLabels:
app: syncstorage
template:
metadata:
labels:
app: syncstorage
spec:
containers:
- name: syncstorage
image: mozilla/syncstorage-rs:0.13.7
ports:
- containerPort: 8000
env:
- name: SYNC_HOST
value: 0.0.0.0
- name: SYNC_MASTER_SECRET
valueFrom:
secretKeyRef:
name: syncstorage
key: masterSecret
- name: SYNC_SYNCSTORAGE__DATABASE_URL
valueFrom:
secretKeyRef:
name: syncstorage
key: syncstorageDatabaseUrl
- name: SYNC_RUN_MIGRATIONS
value: "true"
- name: SYNC_TOKENSERVER__ENABLED
value: "true"
- name: SYNC_TOKENSERVER__RUN_MIGRATIONS
value: "true"
- name: SYNC_TOKENSERVER__NODE_TYPE
value: "mysql"
- name: SYNC_TOKENSERVER__DATABASE_URL
valueFrom:
secretKeyRef:
name: syncstorage
key: tokenserverDatabaseUrl
- name: SYNC_TOKENSERVER__FXA_EMAIL_DOMAIN
value: "api.accounts.firefox.com"
- name: SYNC_TOKENSERVER__FXA_OAUTH_SERVER_URL
value: "https://oauth.accounts.firefox.com/v1"
- name: SYNC_TOKENSERVER__FXA_METRICS_HASH_SECRET
valueFrom:
secretKeyRef:
name: syncstorage
key: fxaMetricsHashSecret
- name: SYNC_TOKENSERVER__ADDITIONAL_BLOCKING_THREADS_FOR_FXA_REQUESTS
value: "2"
tolerations:
- key: "architecture"
operator: "Equal"
value: "x86"
effect: "NoExecute"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
last night i finally got tired of the issues with this project and decided to move to vaultwarden instead, couldn't be happier so far
And what has Vaultwarden to do with Firefox Sync? You're talking about two different products, which are doing different things...
And what has Vaultwarden to do with Firefox Sync? You're talking about two different products, which are doing different things...
Not really, I used it to sync passwords which I don't want to be stored on Mozilla servers, for the other stuff like bookmarks and settings I really don't care if they are stored on Mozilla servers so for me that's all I need
But that's not the main goal of Firefox Sync. Otherwise Vaultwarden / Bitwarden is "only" a password safe.
And this helps not in this case.
Hi all, I have noticed the same thing. Update from 0.13.6 or even an update from 0.13.7 to 0.14.0 does not work. The container does not start anymore. Is there any news in the topic? I think the problem will still hit many users when they want to update.