502 error with Firefox Sync

Hi,

I get a “502 Bad Gateway” error when I try to visit Firefox Sync web page.

Logs contain errors like these:

2017/07/05 08:32:44 [error] 16815#0: *38806 connect() failed (111: Connection refused) while connecting to upstream, client: 5.51.170.4, server: ms.10qt.net, request: "GET /token/1.0/sync/1.5 HTTP/1.1", upstream: "http://127.0.0.1:5000/token/1.0/sync/1.5", host: "ms.10qt.net"
2017/07/05 08:33:15 [error] 16815#0: *38818 connect() failed (111: Connection refused) while connecting to upstream, client: 5.51.170.4, server: ms.10qt.net, request: "GET /token/1.0/sync/1.5 HTTP/1.1", upstream: "http://127.0.0.1:5000/token/1.0/sync/1.5", host: "ms.10qt.net"
2017/07/05 08:33:16 [error] 16815#0: *38818 connect() failed (111: Connection refused) while connecting to upstream, client: 5.51.170.4, server: ms.10qt.net, request: "GET /token/1.0/sync/1.5 HTTP/1.1", upstream: "http://127.0.0.1:5000/token/1.0/sync/1.5", host: "ms.10qt.net"
2017/07/05 08:33:19 [error] 16815#0: *38818 connect() failed (111: Connection refused) while connecting to upstream, client: 5.51.170.4, server: ms.10qt.net, request: "GET /token/1.0/sync/1.5 HTTP/1.1", upstream: "http://127.0.0.1:5000/token/1.0/sync/1.5", host: "ms.10qt.net"
2017/07/05 08:34:29 [error] 16814#0: *38843 connect() failed (111: Connection refused) while connecting to upstream, client: 5.51.170.4, server: ms.10qt.net, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "ms.10qt.net", referrer: "https://10qt.net/yunohost/sso/"
2017/07/05 08:34:29 [error] 16814#0: *38843 open() "/usr/share/nginx/html/ynhpanel.js" failed (2: No such file or directory), client: 5.51.170.4, server: ms.10qt.net, request: "GET /ynhpanel.js HTTP/1.1", host: "ms.10qt.net", referrer: "https://ms.10qt.net/"
2017/07/05 08:34:30 [error] 16814#0: *38843 connect() failed (111: Connection refused) while connecting to upstream, client: 5.51.170.4, server: ms.10qt.net, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:5000/favicon.ico", host: "ms.10qt.net"
2017/07/05 08:34:30 [error] 16814#0: *38843 connect() failed (111: Connection refused) while connecting to upstream, client: 5.51.170.4, server: ms.10qt.net, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:5000/favicon.ico", host: "ms.10qt.net"
2017/07/05 08:34:33 [error] 16814#0: *38843 connect() failed (111: Connection refused) while connecting to upstream, client: 5.51.170.4, server: ms.10qt.net, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "ms.10qt.net", referrer: "https://10qt.net/yunohost/sso/"
2017/07/05 08:34:33 [error] 16814#0: *38843 open() "/usr/share/nginx/html/ynhpanel.js" failed (2: No such file or directory), client: 5.51.170.4, server: ms.10qt.net, request: "GET /ynhpanel.js HTTP/1.1", host: "ms.10qt.net", referrer: "https://ms.10qt.net/"
2017/07/05 08:34:33 [error] 16814#0: *38849 connect() failed (111: Connection refused) while connecting to upstream, client: 207.241.225.226, server: ms.10qt.net, request: "GET /robots.txt HTTP/1.1", upstream: "http://127.0.0.1:5000/robots.txt", host: "ms.10qt.net"

Thanks for your help!

Same issue here. Or did you solve the problem?

For now this app is a little bit broken. I really need to find a time to fix it but for know I’m just too busy.
I hope in 1 month I might find some time to fix it.

Hello,

I fixed the app on the new version package. Could you try this branch https://github.com/Jibec/ffsync_ynh/tree/master

Dear @Josue,
thanks a million for investing your time to work on this app. Unfortunately I’m unable to install it. Yunohost returns the following during installation and does not continue anything for more than 15 minutes:

dpkg-preconfigure: unable to re-open stdin:
debconf: falling back to frontend: Teletype
debconf: (This frontend requires a controlling tty.)
debconf: unable to initialize frontend: Readline
debconf: falling back to frontend: Readline
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: unable to initialize frontend: Dialog

Hope this helps!

EDIT: I’m so sorry, I was impatient! The installation continued and was successfully completed. Now ffsync works perfectly again. Thanks a lot and all the best!

No,

If could you share me your log with theses command :

# show the list of actions : 
yunohost log list
# share the log
yunohost log display --share  YOUR-LOG-NAME

Hi,
as I added, the installation took a while, but then went smoothly.
Please find my log here:
args:
app: https://github.com/Jibec/ffsync_ynh/
args: domain=XXX&path=%2Fffsync
label: Firefox Sync Server
no_remove_on_failure: false
ended_at: 2018-12-03 11:34:55.164875
env:
YNH_APP_ARG_DOMAIN: XXX
YNH_APP_ARG_PATH: /ffsync
YNH_APP_ID: ffsync
YNH_APP_INSTANCE_NAME: ffsync
YNH_APP_INSTANCE_NUMBER: ‘1’
YNH_CWD: /var/cache/yunohost/from_file/ffsync_ynh-master/scripts
YNH_STDINFO: /tmp/tmpLHo0j4/stdinfo
error: null
operation: app_install
related_to:

    • app
    • ffsync
      started_at: 2018-12-03 11:29:26.718110
      success: true

============

2018-12-03 11:30:24,169: WARNING - debconf: unable to initialize frontend: Dialog
2018-12-03 11:30:24,185: WARNING - debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
2018-12-03 11:30:24,200: WARNING - debconf: falling back to frontend: Readline
2018-12-03 11:30:24,307: WARNING - debconf: unable to initialize frontend: Readline
2018-12-03 11:30:24,311: WARNING - debconf: (This frontend requires a controlling tty.)
2018-12-03 11:30:24,314: WARNING - debconf: falling back to frontend: Teletype
2018-12-03 11:30:24,328: WARNING - dpkg-preconfigure: unable to re-open stdin:
2018-12-03 11:34:37,058: WARNING - Created symlink /etc/systemd/system/multi-user.target.wants/uwsgi-app@ffsync.service → /etc/systemd/system/uwsgi-app@.service.
2018-12-03 11:34:55,156: SUCCESS - Die Konfiguration von SSOwat war erfolgreich
2018-12-03 11:34:55,161: SUCCESS - Installation vollständig

Well,

I don’t really understand what it hapend. Does firefox sync work ? And if not, could you share me the complete log with this command : yunohost log display --share YOUR-LOG-NAME

With your last log I can’t see any problem…

Indeed, there is no problem. FFsync works perfectly fine.
Thank you!

Ok Happy to know that,

I didn’t understand what you said… :wink: