Firefox Sync Server


Recommended Posts

Excuse my nooobness to unRAID, I do more searching than posting ;-)

 

FireFox Sync Server with MariaDB I assume is OK to use.  I don't see a password field in docker settings.  Seems it is only for SQLlite.

 

Or do I build MariaDB and not use a password for the FireFox database?

 

Thanks.

 

 

Edited by Joc
Link to comment
  • 3 months later...
  • 4 weeks later...

Hi,

 

I have a question before installing. Looking at the template I understand that I should open a port for Syncserver Public URL.

 

Can I use it with swag reverse proxy instead?

 

Basically I have a custom domain. I can set a subdomain like firefox.customdomain.it and let nginx in swag do the proxy from external to localhost:5000 (even I don't found any proxy conf in swag folders...).

 

What do you kindly suggest?

 

Thank you in advance!

Link to comment
  • 4 weeks later...

Hi Jflo,

 

you have an error in your template. It is not possible to disable new user account creation, which may be crucial functionality if you want to make your SyncServer available from the internet.

 

The problem is in docker variable SYNCSERVER_ALLOW_NEW_USER, it should be SYNCSERVER_ALLOW_NEW_USERS

see: https://github.com/mozilla-services/syncserver/blob/master/syncserver/__init__.py#L188

 

Please fix it, it may save some debugging why the account creation is not disabled, for people who are using your template :)

I can create pull request in your repository if you want.

 

Thanks!

  • Thanks 1
Link to comment
  • 2 months later...
  • 2 months later...

I installed the container, set-it up, forwarded port from router, etc, all works fine from what I can tell. If I navigate to the page i created, says "it works!" . In firefox about:config I changed identity.sync.tokenserver.uri value to http://mysubdomain.mydomain.com/token/1.0/sync/1.5 . From here, I'm lost ... when I try to sign up from firefox menu I land on mozilla account page. I created an account, to see what happens. Seems that it's not working, no idea how to use the docker sync I run. Any help please?

Link to comment
  • 4 weeks later...
  • 10 months later...
  • 7 months later...
  • 2 months later...
  • 1 month later...

I just installed the docker container and got an error.

Any ideas to try?

 

[2023-11-07 06:08:02 +0000] [15] [INFO] Booting worker with pid: 15
[2023-11-07 06:08:05 +0000] [15] [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)
OperationalError: (sqlite3.OperationalError) unable to open database file
(Background on this error at: http://sqlalche.me/e/e3q8)
[2023-11-07 06:08:05 +0000] [15] [INFO] Worker exiting (pid: 15)
[2023-11-07 06:08:05 +0000] [7] [INFO] Shutting down: Master
[2023-11-07 06:08:05 +0000] [7] [INFO] Reason: Worker failed to boot.

 

Link to comment
  • 1 month later...
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.