Skip to content
This repository was archived by the owner on Feb 19, 2026. It is now read-only.
This repository was archived by the owner on Feb 19, 2026. It is now read-only.

switch to Python3 yet? #179

Open
Open

Description

@misterhsp

Are there any plans to switch to Python3 yet? Or does the syncserver work with Python3? Python2 will soon be finished.

Activity

  1. ekohl commented on Aug 27, 2019

    @ekohl

    Duplicate of #165

  2. rfk commented on Aug 28, 2019

    @rfk
    Contributor

    I'm sorry to say, we don't have any specific plans to port this to Python3. For production use we are currently working on a re-write of the sync storage server in Rust, and I expect we will aim to deprecate the python versions of the servers once python3 reaches end of life.

  3. misterhsp commented on Aug 28, 2019

    @misterhsp
    Author

    What I want to know is if the syncserver already works with Python3?
    Can you already see the first results in rust somewhere?

  4. misterhsp commented on Aug 28, 2019

    @misterhsp
    Author

    @vladikoff Does it already work or is it still at an early stage?

  5. rfk commented on Aug 29, 2019

    @rfk
    Contributor

    The rust version is not yet ready for use.

  6. return42 commented on Aug 29, 2019

    @return42

    The rust version is not yet ready for use.

    OK, we have only a small gap closing py3 compatibility and what is mozilla's trendsetting decision: switching to another language? Throw away loyal developers and all community's know-how .. WTF is mozilla's intention? I'm so annoyed by mozilla arrogance.

  7. misterhsp commented on Aug 29, 2019

    @misterhsp
    Author

    ack.
    The syncserver doesn't work with Python3, it can't be built with it. Not here anyway.

  8. fireglow commented on Aug 29, 2019

    @fireglow

    I don't understand the anger here.
    Mozilla is free to develop a tool for which they are the primary and biggest user in any language they wish.
    To me as an end-user it matters very little which language the server is written in, I am in fact looking forward to the Rust version of syncserver.
    I am very grateful to Mozilla that there is the possibility to self-host syncserver.

  9. thomcc commented on Aug 29, 2019

    @thomcc
    Contributor

    OK, we have only a small gap closing py3 compatibility and what is mozilla's trendsetting decision: switching to another language?

    I probably shouldn't comment, but for what it's worth, the decision to rewrite in a new language is not motivated by a desire to avoid porting to Py3, there are a lot of other factors, such as improved performance, the ability to use the same language for the server and client, in addition to the normal benefits you get when rewriting something (the ability to avoid suboptimal design decisions made in the previous implementation, for example).

  10. rfk commented on Aug 30, 2019

    @rfk
    Contributor

    I do understand the frustration here, as @return42 has contributed several patches to try to move us towards python3 compatibility in the past. I apologize that my earlier comment didn't provide much context, and wanted to say a few more words.

    Reading back, it's easy to interpret my comment as "we'd rather rewrite in rust than bother with porting to python3" but that's not what's happening here.

    We have several large operational changes we want to make to the production sync storage service, most notably switching to a new storage backend that promises easier scalability and less chance of data loss. We opted to pursue this as a clean re-write in rust for a variety of reasons, some technical (e.g. substantially lower process overhead per box) and some organizational (e.g. the consolidation points that @thomcc made above).

    Given that active work, we don't have a lot of incentive to also spend time porting to python3. That may change if e.g. the rust work doesn't pan out for whatever reason., but it's not on our roadmap right now.

  11. fireglow commented on Aug 30, 2019

    @fireglow

    @return42 I wasn't aware that you've invested time to port the syncserver to python3, my apologies.

  12. misterhsp commented on Aug 30, 2019

    @misterhsp
    Author
  13. return42 commented on Aug 30, 2019

    @return42

    @thomcc and @rfk thanks for the clarifying and reconciling words. It helps me understand the decision of Mozilla better.

    @fireglow Don't take me wrong. I'am not talking about some languages pros and cons. My fear is, that the community loses itself in forks. With the words from @thomcc and @rfk / from a wider POV its comprehensibly to make such a hard stepover. But one should also know that it also will come with lose of community members, know-how and testing experience .. changing the language (or rewrites at all) means also to build up a new community. From my POV a good community has it value for a project.

  14. rfk commented on Aug 30, 2019

    @rfk
    Contributor

    One concrete action for me here, is to make sure that we have a more explicit conversation about how the Rust work affects our self-hosting community, since right now it's very focused on the production sync servers. Thanks for bringing this up.

  15. 15 remaining items

  16. uwedisch commented on Aug 22, 2020

    @uwedisch

    Security patches are rolled out on Ubuntu with some unspecific priority. But I don't know for example a written commitment that a specific Ubuntu version will receive security updates for all packages until end of maintenance updates.

    Example: Ubuntu 16.04 LTS receives maintenance updates until 2021, but dnsmasq is missing an update for Server Cache Snooping Remote Information Disclosure. DNSmasq 2.75 is shipped with some backported fixes, but this specific one is missing that is fixed with 2.79. But with our example DNSmasq is still supported from DNSmasq maintainers and fixes are still provided.

    Do we have a commitment of Canonical or RedHat that they are keeping Phyton 2.7 "alive" until 2023 or 2024?
    And what about the pinned requirements that are used from syncserver with versions as of 2018?

    From GDPR point of view the self-hosters are not the problem. The problem is with Mozilla itself that is serving Firefox Sync to a huge bunch of customers with outdated components.

  17. limolitz commented on Aug 22, 2020

    @limolitz

    We are going off topic now. This issue is about the self-hosted syncserver, and not about the hosted service.

  18. rfk commented on Aug 23, 2020

    @rfk
    Contributor

    From GDPR point of view the self-hosters are not the problem. The problem is with Mozilla itself that is serving
    Firefox Sync to a huge bunch of customers with outdated components.

    As noted above, this isn't really an appropriate thread for discussing broader service-security issues; I invite you to file a bug in bugzilla or even report a security issue if you believe there is a problem with how the production service is currently operating.

    Please do not comment further on the production sync system in this thread.

    I would expect a risk assesment and risk takeover from Mozilla management

    I appreciate that there is little public evidence of this assessment having taken place, especially when you approach the system starting from the (yes, sadly very under-maintained by Mozilla) self-hosting docs, but we have had these conversations and we have made deliberate decisions about how to manage the python2 end-of-life in a way that we believe to be appropriate. It's possible that we're wrong of course, and feedback/discussions are welcome! But they're going to be much more productive via one of the forums linked above.

    On a personal note I'd like to add: if you do intend to continue this discussion in a more appropriate forum, please approach it assuming some base level of competence and professionalism on behalf of the Mozilla staff involved. I assume it was not intentional, but it's easy to read some of the comments in this and related threads as assuming that we're too incompetent to have considered the basic security implications here, which makes it harder to engage with the discussion in a productive manner (especially at the moment when we're all a bit more emotionally frayed than usual).

  19. rfk commented on Aug 23, 2020

    @rfk
    Contributor

    Specifically regarding the future of self-hosting:

    So Mozilla will archive this project and put a warning on it not to use.

    I expect this is what will eventually happen to the syncserver repo, yes. Not as a result of any particular discussion in this or other threads, but because we're moving the production system to the rust codebase, and at some point that's almost certainly going to accumulate features/changes that diverge sufficiently from the python version that this repo ceases to be useful.

    How far is syncstorage-rs, is it usable yet? If so, do you have a Howto how to replace the syncserver in FXA-selfhosting?

    So, this is where we need to get to - revamping the self-hosting docs so that we guide folks over to the new rust codebases. The rust syncstorage server works and is in production use at Mozilla today, but there are probably a lot of rough edges around trying to run it in a self-hosted setup. The rust tokenserver, as noted above, is still in development.

    I'm curious to hear from the folks in this thread, what would be helpful to you in trying to move from the python-based self-hosting setup to the new rust code? Do you think you would try to build the servers from source, or prefer to run via a published docker image? Would a rust equivalent of this syncserver repo be valuable, combining the storage server and tokenserver into a single package that's easier to run?

    (I don't think we can promise anything in particular at this stage, but we can at least try to move the conversation towards a concrete picture of how we'd like things to be)

  20. chris42 commented on Aug 23, 2020

    @chris42

    Thanks for grounding this discussion back towards the community setup of the server.
    I personally prefer the Docker setup split into syncserver and tokenserver. Right now I only run the syncserver within a docker and still use Mozillas tokenserver (I always felt that the tokenserver setup is a bit big for a tiny userbase, that I have in private use).

    The provided docker helped to get a running setup fast and being able to test. If someone wants to go from scratch, the Dockerfile normally is a good howto as well (Two birds one stone ;-))

  21. uwedisch commented on Aug 23, 2020

    @uwedisch

    I'm curious to hear from the folks in this thread, what would be helpful to you in trying to move from the python-based self-hosting setup to the new rust code? Do you think you would try to build the servers from source, or prefer to run via a published docker image? Would a rust equivalent of this syncserver repo be valuable, combining the storage server and tokenserver into a single package that's easier to run?

    Thank you, that's the point. Personally I would vote for simplicity in administrative usage (to catch a much broader user base for self-hosting):

    • Using a set of various Debian packages (or snaps) for Syncserver and Accountsserver
    • Debian packages (or the snaps) should be included into the main distributions or at least distributed via a repository (but htis needs manual setup)
    • Debian packages (or the snaps via auto update or the like) are always current and working with the supported Firefox versions
    • Stripped down functionality of Syncserver, possibly without or with minimized Tokenserver
    • Heavily stripped down Accountserver that is focusing on authentication and authorization only (no additional functionality)
    • No need of installing an appliance or part of it (via Docker image or the like)
    • No need of compiling anything, distribution is done binary

    Personally I'm looking for a single server application that is doing password sync because I think it's the worst choice to give passwords (even in encrypted form) into hands of a third party. So, password sync should be simple in setup and usage. A solution that an advanced end user is able to setup and use.

  22. rfk commented on Aug 26, 2020

    @rfk
    Contributor

    Using a set of various Debian packages (or snaps) for Syncserver and Accountsserver

    I hear you re: the management aspect of having things available in a more standardized packaging format. But just in terms of setting expectations, I don't think this is something that's ever likely to be supported directly by Mozilla, as the way we deploy these things in production is very heavily based on docker.

  23. Findus23 commented on Aug 26, 2020

    @Findus23

    I guess one of the most popular self-hosted services based on a rust webservice with a database is https://github.com/dani-garcia/bitwarden_rs.
    So if the ways to self-host are similar (a docker container or building the binary oneself with cargo) then I think it should be pretty user-friendly (it is even easier as with bitwarden_rs as there is no webapp attached).
    With those two methods provided, others could then also create their own debian (or other package manager) packages.

  24. sbraz commented on Aug 31, 2020

    @sbraz
    Contributor

    Would a rust equivalent of this syncserver repo be valuable, combining the storage server and tokenserver into a single package that's easier to run?

    I agree with @chris42, separating syncserver and tokenserver would be easiest for small databases. In any case, Docker images seem like a very reasonable solution IMO.

  25. rfk commented on Sep 8, 2020

    @rfk
    Contributor

    Cross-linking #226 for future reference, which has some good comments on the rough edges of the current setup when it comes to staying up to date. Whatever we do for the new rust stuff, should take those considerations into account.

  26. fabianwenk commented on Sep 8, 2020

    @fabianwenk

    I'm curious to hear from the folks in this thread, what would be helpful to you in trying to move from the python-based self-hosting setup to the new rust code? Do you think you would try to build the servers from source, or prefer to run via a published docker image? Would a rust equivalent of this syncserver repo be valuable, combining the storage server and tokenserver into a single package that's easier to run?

    As I am running my servers with FreeBSD, Docker is not an option. So being able to build from source is preferred. A rust equivalent syncserver repo would be valuable, but I guess it would also be doable with two separate repos. The gold option of course would be if it is available as a FreeBSD Port, so the software itself and all the needed dependencies could be kept updated with the regular FreeBSD Ports updates I am doing.

  27. return42 commented on Sep 8, 2020

    @return42

    I'm curious to hear from the folks in this thread, what would be helpful to you in trying to move from the python-based self-hosting setup to the new rust code?

    Do you think you would try to build the servers from source, or prefer to run via a published docker image?

    Open-Source development needs "source" and a build workflow, at least described in a README.

    Would a rust equivalent of this syncserver repo be valuable, combining the storage server and tokenserver into a single package that's easier to run?

    if it offers any advantages both can be in one repo, but it does not really matter. only important is that both is really open-source (not a binary or container or ..) and can be easily build..

  28. Vertux commented on Jan 17, 2021

    @Vertux

    I'm curious to hear from the folks in this thread, what would be helpful to you in trying to move from the python-based self-hosting setup to the new rust code? Do you think you would try to build the servers from source, or prefer to run via a published docker image? Would a rust equivalent of this syncserver repo be valuable, combining the storage server and tokenserver into a single package that's easier to run?

    I would prefer to build the server from source and yes, it would be great if the syncserver and the tokenserver would be combined in one package. I am looking forward to try out the new rust version.

  29. immanuelfodor commented on Jan 17, 2021

    @immanuelfodor

    In the meantime, there is https://github.com/jackyzy823/fxa-selfhosting if you want to self-host not only the sync stack but also FXA itself. It's a bit rough at first look but the init script works fine and everything is dockerized.

  30. added a commit that references this issue on Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions