[2021-11-20 16:21:05 +0000] [7] [INFO] Starting gunicorn 19.10.0
[2021-11-20 16:21:05 +0000] [7] [INFO] Listening at: http://0.0.0.0:5000 (7)
[2021-11-20 16:21:05 +0000] [7] [INFO] Using worker: sync
[2021-11-20 16:21:05 +0000] [15] [INFO] Booting worker with pid: 15
docker run -d --name FirefoxSync --restart always -p 50000:5000 -e SYNCSERVER_PUBLIC_URL=<Öffentliche URL:Port> -e SYNCSERVER_SECRET=<Dein Secret> -e SYNCSERVER_SQLURI="pymysql://<DB User>:<DB Passwort>@<IP der Syno>:3307/<DB Name>" -e SYNCSERVER_BATCH_UPLOAD_ENABLED=true -e SYNCSERVER_FORCE_WSGI_ENVIRON=true -e PORT=5000 mozilla/syncserver:latest
OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on '192.168.178.21' (timed out)")
[2021-11-23 15:51:16 +0000] [9] [INFO] Reason: Worker failed to boot.,
[2021-11-23 15:51:58 +0000] [8] [INFO] Starting gunicorn 19.10.0,
[2021-11-23 15:51:58 +0000] [8] [INFO] Listening at: http://0.0.0.0:5000 (8),
[2021-11-23 15:51:58 +0000] [8] [INFO] Using worker: sync,
[2021-11-23 15:51:58 +0000] [16] [INFO] Booting worker with pid: 16,
[2021-11-23 15:52:11 +0000] [16] [ERROR] Exception in worker process,
Traceback (most recent call last):,
File "/usr/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 586, in spawn_worker,
worker.init_process(),
File "/usr/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 135, in init_process,
self.load_wsgi(),
File "/usr/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi,
self.wsgi = self.app.wsgi(),
File "/usr/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi,
self.callable = self.load(),
File "/usr/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load,
return self.load_wsgiapp(),
File "/usr/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp,
return util.import_app(self.app_uri),
File "/usr/local/lib/python2.7/site-packages/gunicorn/util.py", line 350, in import_app,
__import__(module),
File "/app/syncserver/wsgi_app.py", line 2, in <module>,
application = syncserver.main(),
File "/app/syncserver/__init__.py", line 281, in main,
config = get_configurator(global_config, **settings),
File "/app/syncserver/__init__.py", line 273, in get_configurator,
config.include(includeme),
File "/usr/local/lib/python2.7/site-packages/pyramid/config/__init__.py", line 676, in include,
c(configurator),
File "/app/syncserver/__init__.py", line 158, in includeme,
config.include("syncstorage", route_prefix="/storage"),
File "/usr/local/lib/python2.7/site-packages/pyramid/config/__init__.py", line 676, in include,
c(configurator),
File "/usr/local/lib/python2.7/site-packages/syncstorage/__init__.py", line 18, in includeme,
config.include("syncstorage.storage"),
File "/usr/local/lib/python2.7/site-packages/pyramid/config/__init__.py", line 676, in include,
c(configurator),
File "/usr/local/lib/python2.7/site-packages/syncstorage/storage/__init__.py", line 576, in includeme,
storage = load_storage_from_settings("storage", settings),
File "/usr/local/lib/python2.7/site-packages/syncstorage/storage/__init__.py", line 600, in load_storage_from_settings,
return klass(**section_settings),
File "/usr/local/lib/python2.7/site-packages/syncstorage/storage/sql/__init__.py", line 137, in __init__,
self.dbconnector = DBConnector(sqluri, **dbkwds),
File "/usr/local/lib/python2.7/site-packages/syncstorage/storage/sql/dbconnect.py", line 385, in __init__,
collections.create(self.engine, checkfirst=True),
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 860, in create,
bind._run_visitor(ddl.SchemaGenerator, self, checkfirst=checkfirst),
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2032, in _run_visitor,
with self._optional_conn_ctx_manager(connection) as conn:,
File "/usr/local/lib/python2.7/contextlib.py", line 17, in __enter__,
return self.gen.next(),
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2024, in _optional_conn_ctx_manager,
with self._contextual_connect() as conn:,
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2226, in _contextual_connect,
self._wrap_pool_connect(self.pool.connect, None),,
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2266, in _wrap_pool_connect,
e, dialect, self,
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1536, in _handle_dbapi_exception_noconnection,
util.raise_from_cause(sqlalchemy_exception, exc_info),
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 383, in raise_from_cause,
reraise(type(exception), exception, tb=exc_tb, cause=cause),
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2262, in _wrap_pool_connect,
return fn(),
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/pool/base.py", line 363, in connect,
return _ConnectionFairy._checkout(self),
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/pool/base.py", line 760, in _checkout,
fairy = _ConnectionRecord.checkout(pool),
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/pool/base.py", line 492, in checkout,
rec = pool._do_get(),
File "/usr/local/lib/python2.7/site-packages/mozsvc/metrics.py", line 183, in timed_func,
return func(*args, **kwds),
File "/usr/local/lib/python2.7/site-packages/syncstorage/storage/sql/dbconnect.py", line 305, in _do_get,
return QueuePool._do_get(self),
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/pool/impl.py", line 139, in _do_get,
self._dec_overflow(),
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 68, in __exit__,
compat.reraise(exc_type, exc_value, exc_tb),
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/pool/impl.py", line 136, in _do_get,
return self._create_connection(),
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/pool/base.py", line 308, in _create_connection,
return _ConnectionRecord(self),
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/pool/base.py", line 437, in __init__,
self.__connect(first_connect_check=True),
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/pool/base.py", line 639, in __connect,
connection = pool._invoke_creator(self),
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 114, in connect,
return dialect.connect(*cargs, **cparams),
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 453, in connect,
return self.dbapi.connect(*cargs, **cparams),
File "/usr/local/lib/python2.7/site-packages/pymysql/__init__.py", line 94, in Connect,
return Connection(*args, **kwargs),
File "/usr/local/lib/python2.7/site-packages/pymysql/connections.py", line 325, in __init__,
self.connect(),
File "/usr/local/lib/python2.7/site-packages/pymysql/connections.py", line 630, in connect,
raise exc,
OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on '192.168.178.21' (timed out)"),
(Background on this error at: http://sqlalche.me/e/e3q8),
[2021-11-23 15:52:11 +0000] [16] [INFO] Worker exiting (pid: 16),
[2021-11-23 15:52:11 +0000] [8] [INFO] Shutting down: Master,
[2021-11-23 15:52:11 +0000] [8] [INFO] Reason: Worker failed to boot.
docker run -d --name FirefoxSyncSQL --restart always -p 32777:5000 -e SYNCSERVER_PUBLIC_URL=https://ffsync.domain.tld -e SYNCSERVER_SECRET=mysecret -e SYNCSERVER_SQLURI="pymysql://root:"passwort"@192.168.178.21:3306/Firefox" -e SYNCSERVER_BATCH_UPLOAD_ENABLED=true -e SYNCSERVER_FORCE_WSGI_ENVIRON=true -e PORT=5000 mozilla/syncserver:latest
create user 'ffsync'@'localhost' identified by 'MeingeheimesPW';
grant all privileges on Firefox.* to 'ffsync'@'%' identified by 'MeingeheimesPW';
Hallo zusammen,Aber der Container startet jetzt sauber, also Du hast keine ungewöhnlichen Meldungen im Log?
Wenn der Container startet, sollte eigentlich nicht mehr als folgendes drin stehen:
Code:[2021-11-20 16:21:05 +0000] [7] [INFO] Starting gunicorn 19.10.0 [2021-11-20 16:21:05 +0000] [7] [INFO] Listening at: http://0.0.0.0:5000 (7) [2021-11-20 16:21:05 +0000] [7] [INFO] Using worker: sync [2021-11-20 16:21:05 +0000] [15] [INFO] Booting worker with pid: 15
Sprichst Du den Container über die Syno-Adresse an oder nutzt Du den Reverse Proxy?
sudo docker run -d --name ffsync -p 50000:5000 -e SYNCSERVER_PUBLIC_URL=https://192.168.1.xx:8132 -e SYNCSERVER_SECRET=xxxxxxx -e SYNCSERVER_SQLURI=sqlite:////data/syncserver.db -e SYNCSERVER_BATCH_UPLOAD_ENABLED=true -e SYNCSERVER_FORCE_WSGI_ENVIRON=true -e PORT=5000 -v /volume1/docker/ffsync:/data/ mozilla/syncserver:latest
4 Elemente.
[2021-11-28 12:35:19 +0000] [8] [INFO] Starting gunicorn 19.10.0
[2021-11-28 12:35:19 +0000] [8] [INFO] Listening at: http://0.0.0.0:5000 (8)
[2021-11-28 12:35:19 +0000] [8] [INFO] Using worker: sync
[2021-11-28 12:35:19 +0000] [16] [INFO] Booting worker with pid: 16
docker run -d --name ffsync -p 50000:5000 -e SYNCSERVER_PUBLIC_URL=http://Syno_IP:50000 -e SYNCSERVER_SECRET=secret -e SYNCSERVER_SQLURI=sqlite:////data/syncserver.db -e SYNCSERVER_BATCH_UPLOAD_ENABLED=true -e SYNCSERVER_FORCE_WSGI_ENVIRON=true -e PORT=5000 -v /volume1/docker/ffsync:/data/ mozilla/syncserver:latest
http://Syno_IP:50000/ffsync/token/1.0/sync/1.5
chown 1001:1001 /volume1/docker/ffsync/
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create?name=ffsync": dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
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.