Actual instructions to set up own sync server

Anything to do with the Pale Moon Sync service.
User avatar
sabretoothedhamster
Moongazer
Moongazer
Posts: 8
Joined: 2019-09-04, 11:45

Actual instructions to set up own sync server

Unread post by sabretoothedhamster » 2021-07-15, 09:09

Hello!

Would someone point me out to currently actual instructions on how to setup my own sync server for the latest PaleMoon (Basilisk) browser? I tried to search through the forum but without a clear outcome (many versions/variants were reported over the time but no clear indication which one is finally ok).

P.S. docker is the best, but other step by step descriptions are ok as well...

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 10260
Joined: 2012-10-09, 19:37
Location: Sector 001

Re: Actual instructions to set up own sync server

Unread post by New Tobin Paradigm » 2021-07-15, 09:26

Figure it out. Also no one here likes moron turnkey non-solutions like docker.
I'm sorry, my responses are limited. You must ask the right questions.
Image

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 30582
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Actual instructions to set up own sync server

Unread post by Moonchild » 2021-07-15, 12:02

Create a LEMP stack and use https://repo.palemoon.org/Moonchild/FSyncMS
I had 0 trouble figuring that out in less than an hour when I first set up Pale Moon Sync (and the Sync server code has since then improved too).
FSyncMS even comes with a setup php script that creates the database for you and everything.

And no, docker is terrible because it almost invariably (1) prevents admins from understanding what exactly they are running and therefore cannot maintain it, and (2) leads to insecure, vulnerable and exploited setups causing tons of grief for the Internet community at large.
So, no, I will never create docker images for any of the services I've created/set up. If you as an admin can't be bothered to spend an hour to set up your service and understand it, then IMO you do not deserve to be an admin of those services.
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 10260
Joined: 2012-10-09, 19:37
Location: Sector 001

Re: Actual instructions to set up own sync server

Unread post by New Tobin Paradigm » 2021-07-15, 12:05

Maybe when I am not busy with other things like skeeping I will go through the simple process and create a basic document. Or someone else can. The Selene git repo ain't difficult to use.
I'm sorry, my responses are limited. You must ask the right questions.
Image

User avatar
sabretoothedhamster
Moongazer
Moongazer
Posts: 8
Joined: 2019-09-04, 11:45

Re: Actual instructions to set up own sync server

Unread post by sabretoothedhamster » 2021-07-15, 15:58

I was (supposedly) able to install https://repo.palemoon.org/Moonchild/FSyncMS but then I get stuck at quite a strange point: at about:preferences#sync page I went "Set Up Pale Moon Sync" link, entered my e-mail and password but the 'Server' field does not accept my data (https://my.server.tld:1234/fsync) saying "Please enter a valid server URL".
I really can not figure out why my server URL is not valid. I tried various changes but with no luck. I can not even find what is particularly wrong since that error seemingly pops up at random.

P.S. https://pmsync.palemoon.org/sync/index.php/ within this field is accepted ok.

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 10260
Joined: 2012-10-09, 19:37
Location: Sector 001

Re: Actual instructions to set up own sync server

Unread post by New Tobin Paradigm » 2021-07-15, 17:04

You are on your own.
I'm sorry, my responses are limited. You must ask the right questions.
Image

User avatar
sabretoothedhamster
Moongazer
Moongazer
Posts: 8
Joined: 2019-09-04, 11:45

Re: Actual instructions to set up own sync server

Unread post by sabretoothedhamster » 2021-07-15, 17:42

Can't say that setup process is user-friendly (can't even say that it is admin-friendly) but I finally made it to the end.
Just a few postmortem notes (for those who will eventually got to this post googling the same receipt):
1. "Please enter a valid server URL" does not mean that your URL is not good itself (e.g. has wrong syntax), but that sync setup form checks given URL in realtime, posting API requests, and will not accept given URL unless it will receive appropriate response (so to look at apache's access.log and error.log during Basilisk sync setup is quite handy)
2. Beware, that that blog at www.ohnekontur.de that is supposed to be the source of installation instructions, is in German, and by fact is not an instruction. There is a setup.php in recent FSyncMS that have to be run first (and then removed), and an Alias, that should reflect your own local apache setup, together with FSYNCMS_ROOT (which setup.php may not discover correctly when your server runs on non-regular port).
2. Clean apache/php setup will certainly miss some components that should be installed in advance (in my case php7.2-sqlite3 and php-mbstring).

P.S. Anyway, it finally works almost as expected (no tabs synced), and I have to say Thank you @Moonchild! for the Basilisk development and your efforts to support Basilisk community.

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 10260
Joined: 2012-10-09, 19:37
Location: Sector 001

Re: Actual instructions to set up own sync server

Unread post by New Tobin Paradigm » 2021-07-15, 19:56

Heh, try Mozilla's original python implementation. It is superfucked :thumbup:
I'm sorry, my responses are limited. You must ask the right questions.
Image

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 30582
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Actual instructions to set up own sync server

Unread post by Moonchild » 2021-07-15, 21:00

sabretoothedhamster wrote:
2021-07-15, 17:42
1. "Please enter a valid server URL" does not mean that your URL is not good itself (e.g. has wrong syntax), but that sync setup form checks given URL in realtime, posting API requests, and will not accept given URL unless it will receive appropriate response (so to look at apache's access.log and error.log during Basilisk sync setup is quite handy)
It does mean that your URL is incorrect, because the sync client in the browser assumes you have already set up the server in a working fashion, and the sync client won't be able to troubleshoot your server or anyone else's. So if it doesn't work, it's assumed to be a wrong URL entered by the user.
sabretoothedhamster wrote:
2021-07-15, 17:42
2. Beware, that that blog at www.ohnekontur.de that is supposed to be the source of installation instructions
No, it is not. It is mentioned as the source of where the server implementation originated and has some additional background information - it is NOT an installation guide and not claimed to be. Please don't twist what I wrote in the readme to be something else.
How is "More information about the original implementation of this server, past versions, etc. can be found here:" in any way "a source of installation instructions"???
sabretoothedhamster wrote:
2021-07-15, 17:42
2. Clean apache/php setup
2 (bis)? :D
I did say install a LEMP stack. I am assuming you will install the full stack meaning a fully decked-out PHP (including the MySQL connector modules for PHP etc.), as well as nginx, not Apache. There are plenty of step-by-step guides on the net available for that. You could use LAMP but I have no experience with it and I advise against Apache if the primary task of the web server is to be a front-end for a proxied service as opposed to hosting websites.
You also don't need sqlite unless you choose to use sqlite as the back-end instead of MySQL (M in LEMP stands for MySQL, so assuming you are installing a full db server).

I think you may need to educate yourself a bit more about what I suggested and actually do some more research. Like I said before knowing what you run is important which is why I don't do docker. Don't expect a non-prechewed installation to be set up and understood in an hour, it won't happen. Take your time, understand what what you're doing, don't take shortcuts, understand what I said and feel free to ask -specific- questions if you really can't figure something out after exhausting the obvious self-help resources at your disposal.
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

Post Reply