Closed mariusft closed 2 years ago
Cannot reproduce this issue.
I see a new image was pushed couple of hours back, let me test that one:
sha256:016162bf39d8486d5710b4ae5bcaaebd8bd60b55db6cf468b8f720b526bd68b7
Previous image was:
sha256:74b3ebb68b4c591a70221255d4e26be67b7ecc87d95395f3cd82de4f9713b74a
# docker image inspect mozilla/syncserver
[
{
"Id": "sha256:a61ad35f05cabf9ad4d46ee817b70ce8f52844329d319386ff31562f62af5e05",
"RepoTags": [
"mozilla/syncserver:latest"
],
"RepoDigests": [
"mozilla/syncserver@sha256:016162bf39d8486d5710b4ae5bcaaebd8bd60b55db6cf468b8f720b526bd68b7"
],
# docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8b3f31a51bc8 mozilla/syncserver:latest "/usr/bin/dumb-init …" About a minute ago Up About a minute 0.0.0.0:45000->5000/tcp, :::45000->5000/tcp
# docker exec -u 0 -it 8b3f31a51bc8 /bin/sh
/app # vi syncserver/tests.ini
[server:main]
use = egg:gunicorn
host = 0.0.0.0
port = 5001
workers = 1
timeout = 30
[app:main]
use = egg:SyncServer
[syncserver]
# This must be edited to point to the public URL of your server.
public_url = http://localhost:5001/
# This defines the database in which to store all server data.
sqluri = sqlite:///:memory:
# This is a secret key used for signing authentication tokens.
#secret = INSERT_SECRET_KEY_HERE
/app # export SYNCSERVER_PUBLIC_URL="http://localhost:5001"
/app # gunicorn --threads 4 --paste syncserver/tests.ini &
/app # [2022-02-17 07:46:39 +0000] [48] [INFO] Starting gunicorn 19.10.0
[2022-02-17 07:46:39 +0000] [48] [INFO] Listening at: http://0.0.0.0:5001 (48)
[2022-02-17 07:46:39 +0000] [48] [INFO] Using worker: threads
[2022-02-17 07:46:39 +0000] [55] [INFO] Booting worker with pid: 55
/app # /usr/local/bin/python -m syncstorage.tests.functional.test_storage --use-token-server http://localhost:5001/token/1.0/sync/1.5
Truncated a little bit the output, but the same errors are reported with the latest image as well:
ERROR:mozsvc:Uncaught exception while processing request:
GET http://localhost:5001/token/1.0/sync/1.5
Uncaught exception:
...
File "/usr/local/lib/python2.7/site-packages/pyramid/tweens.py", line 41, in excview_tween
response = handler(request)
...
cursor.execute(statement, parameters)
OperationalError: (sqlite3.OperationalError) no such column: keys_changed_at
[SQL: select
uid, generation, client_state, created_at, replaced_at,
keys_changed_at, node
from
users
...
File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:5001/token/1.0/sync/1.5
tested with mozilla/syncserver:feature.update-sqlalchemy which by the way is missing 'futures' package, installed missing package and is working:
/usr/local/bin/python -m syncstorage.tests.functional.test_storage --use-token-server http://localhost:5001/token
/1.0/sync/1.5
s.....s..........................s..................s...s..s
----------------------------------------------------------------------
Ran 60 tests in 99.852s
OK (skipped=6)
So it appears this started from: mozilla/syncserver:1.9.0 mozilla/syncserver:1.9.1 Is failing since then, just tested all those images.
I only came here because I tried updating my docker image for mozilla/syncserver from an image created October of 2021. I updated and while the logs didn't appear to show error, I could no longer sync. For example, on FF desktop, the page that listed all the things to sync (such as Bookmarks, History, Open Tabs) showed only Logins. Syncing no longer worked and I could no longer see open tabs on other synced devices.
Is this really being deprecated? I see https://github.com/mozilla-services/syncstorage-rs is mentioned, but is this safe to start using? Any additional info is appreciated. Thanks!
Internal sync test still didn't work but I've figure it out what that error means, apparently with the new release sqlite database changed and is no longer compatible, this will require old db removal
my secrets have been broken for so long and i didnt notice until today - when will this be fixed?
OperationalError('(sqlite3.OperationalError) no such column: keys_changed_at',
Running inside docker:
Server launched successfully:
Issuing the test procedure:
/app # /usr/local/bin/python -m syncstorage.tests.functional.test_storage --use-token-server http://localhost:5001/token/1.0/sync/1.5
Fails: