FTBTeam/FTB-App

Can't login on NixOS

firstdorsal opened this issue · 7 comments

What Operating System

Linux (Other)

Debug Code

FTB-DBGDEQADUNUPO

Describe the bug

While trying to login there is nothing running on port 7755 so the site can't reach it.

ss -tulpn | rg 7755 shows nothing

❯ curl http://localhost:7755/ -vvv
*   Trying [::1]:7755...
* connect to ::1 port 7755 failed: Connection refused
*   Trying 127.0.0.1:7755...
* connect to 127.0.0.1 port 7755 failed: Connection refused
* Failed to connect to localhost port 7755 after 0 ms: Couldn't connect to server
* Closing connection
curl: (7) Failed to connect to localhost port 7755 after 0 ms: Couldn't connect to server

Logs

❯ appimage-run ftb-app-1.25.10-x86_64.AppImage
ftb-app-1.25.10-x86_64.AppImage installed in /home/paul/.cache/appimage-run/b17c8a948231420c3a57b9ea38b4df723cc166ef00efd86a450fdf6a111023ef
[20:22:31][D][ftb-app::background.ts] App home is /home/paul/.ftba
20:22:32.413 › [20:22:32][D][ftb-app::background.ts] Lock found, let's try and focus the app
20:22:32.525 › [20:22:32][I][ftb-app::background.ts] App is ready
20:22:32.525 › [20:22:32][D][ftb-app::background.ts] Creating prelaunch window AppReady
20:22:32.610 › [20:22:32][D][ftb-app::background.ts] Loading app from built files
20:22:33.147 › APPIMAGE env is not defined, current application is not an AppImage
20:22:33.148 › [20:22:33][D][ftb-app::background.ts] Launching app
20:22:33.149 › [20:22:33][D][ftb-app::background.ts] Creating main window
20:22:33.157 › [20:22:33][D][ftb-app::background.ts] Loading app from built files
20:22:33.396 › [20:22:33][D][ftb-app::background.ts] Starting subprocess /home/paul/.ftba/runtime/bin/java obj([ '-jar', '/home/paul/.cache/appimage-run/b17c8a948231420c3a57b9ea38b4df723cc166ef00efd86a450fdf6a111023ef/resources/launcher-3fd58fbe04-all.jar' ])
20:22:33.397 › [20:22:33][D][ftb-app::background.ts] Mapped env obj({})
20:22:33.397 › [20:22:33][D][ftb-app::background.ts] Args list obj([ '-jar', '/home/paul/.cache/appimage-run/b17c8a948231420c3a57b9ea38b4df723cc166ef00efd86a450fdf6a111023ef/resources/launcher-3fd58fbe04-all.jar', '--pid', '71350' ])
20:22:33.443 › [20:22:33][D][ftb-app::background.ts] Subprocess stderr Picked up _JAVA_OPTIONS: -Dsun.java2d.uiScale=2
20:22:34.758 › [20:22:34][D][ftb-app::background.ts] Subprocess stdout [20:22:34] [main/INFO] [net.creeperhost.creeperlauncher.storage.CredentialStorage]: Loading credentials for user
20:22:34.759 › [20:22:34][D][ftb-app::background.ts] Subprocess stdout [20:22:34] [main/WARN] [net.creeperhost.creeperlauncher.storage.CredentialStorage]: Failed to load credentials, credentials file does not exist
20:22:34.765 › [20:22:34][D][ftb-app::background.ts] Subprocess stdout [20:22:34] [main/INFO] [net.creeperhost.creeperlauncher.util.ProxyUtils]: Loading proxy configuration. NONE  -1, Without Authentication.
20:22:34.768 › [20:22:34][D][ftb-app::background.ts] Subprocess stdout [20:22:34] [main/INFO] [net.creeperhost.creeperlauncher.Instances]: Reloading instances..
20:22:34.814 › [20:22:34][D][ftb-app::background.ts] Subprocess stdout [20:22:34] [main/INFO] [net.creeperhost.creeperlauncher.Instances]: Loaded 1 out of 1 instances in 44ms(44577213ns).
20:22:34.815 › [20:22:34][D][ftb-app::background.ts] Subprocess stdout [20:22:34] [main/INFO] [net.creeperhost.creeperlauncher.instance.cloud.CloudSaveManager]: Skipping loading cloud saves. Not configured.
[20:22:34] [main/INFO] [net.creeperhost.creeperlauncher.Instances]: Finished instance reload in 46ms(46995299ns)
20:22:34.823 › [20:22:34][D][ftb-app::background.ts] Subprocess stdout [20:22:34] [main/INFO] [net.creeperhost.creeperlauncher.CreeperLauncher]: Args: {pid=71350}
20:22:34.824 › [20:22:34][D][ftb-app::background.ts] Subprocess stdout [20:22:34] [main/INFO] [net.creeperhost.creeperlauncher.CreeperLauncher]: Electron integration mode
20:22:34.853 › [20:22:34][D][ftb-app::background.ts] Subprocess stdout [20:22:34] [main/INFO] [net.creeperhost.creeperlauncher.api.NanoHttpdWebsocketServer]: Starting websocket server on 127.0.0.1:36511
20:22:34.864 › [20:22:34][D][ftb-app::background.ts] Subprocess stdout [20:22:34] [main/INFO] [net.creeperhost.creeperlauncher.api.NanoHttpdWebsocketServer]: Websocket started!
20:22:34.864 › [20:22:34][D][ftb-app::background.ts] Subprocess stdout [20:22:34] [main/INFO] [net.creeperhost.creeperlauncher.CreeperLauncher]: {T:CI={p:36511;s:4e3ef058-fdc2-4a43-a966-aae8aafc7dad}}
20:22:34.864 › [20:22:34][D][ftb-app::background.ts] Found port and secret 36511 4e3ef058-fdc2-4a43-a966-aae8aafc7dad
20:22:34.865 › [20:22:34][D][ftb-app::background.ts] Cached process data obj({ pid: 71501, port: 36511, secret: '4e3ef058-fdc2-4a43-a966-aae8aafc7dad' })
20:22:34.874 › [20:22:34][D][ftb-app::background.ts] Subprocess stdout [20:22:34] [NanoHttpd Request Processor (#1)/INFO] [net.creeperhost.creeperlauncher.api.NanoHttpdWebsocketServer]: New connection to 127.0.0.1.
20:22:35.069 › Error occurred in handler for 'ow:cpm:is_required': TypeError: Cannot read properties of undefined (reading 'isCMPRequired')
    at /home/paul/.cache/appimage-run/b17c8a948231420c3a57b9ea38b4df723cc166ef00efd86a450fdf6a111023ef/resources/app.asar/background.js:2:495881
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:77976)
    at WebContents.emit (node:events:517:28)
20:22:35.114 › [20:22:35][D][ftb-app::background.ts] Subprocess stdout [20:22:35] [ForkJoinPool-1-worker-4/INFO] [net.creeperhost.creeperlauncher.Instances]: Reloading instances..
20:22:35.122 › [20:22:35][D][ftb-app::background.ts] Subprocess stdout [20:22:35] [ForkJoinPool-1-worker-4/INFO] [net.creeperhost.creeperlauncher.Instances]: Loaded 1 out of 1 instances in 7ms(7353939ns).
20:22:35.123 › [20:22:35][D][ftb-app::background.ts] Subprocess stdout [20:22:35] [ForkJoinPool-1-worker-4/INFO] [net.creeperhost.creeperlauncher.instance.cloud.CloudSaveManager]: Skipping loading cloud saves. Not configured.
20:22:35.123 › [20:22:35][D][ftb-app::background.ts] Subprocess stdout [20:22:35] [ForkJoinPool-1-worker-4/INFO] [net.creeperhost.creeperlauncher.Instances]: Finished instance reload in 8ms(8668107ns)
20:22:36.190 › [20:22:36][D][ftb-app::background.ts] Subprocess stdout [20:22:36] [DNS Report Executor 0/INFO] [net.creeperhost.creeperlauncher.util.DNSDebug]: DNS Report:
Chain:
CLOUDFLARE - ENABLED - Reports:

Steps to reproduce

  1. Try to login with mojang/microsoft on nixos with appimage-run ftb-app-1.25.10-x86_64.AppImage

Expected behaviour

It should start the webserver and log me in

Screenshots

No response

Additional information

No response

convenient timing for me that this issue is so new, I haven't written too many derivations yet, but I'll see if I can't write something to package this in nix at some point, hopefully then this local server issue would be resolved.

Hmm, this is weird. That local server shouldn't exist on linux...

Well if it shouldn't exist it may be another problem. I have no idea how the auth flow should work, but when clicking on the login where it should open my browser it does not, I then copied the url into the browser (tried brave without shields, and firefox)

image

When clicking "Continue" nothing happens.

image
This happens with Firefox and Brave. (Every tracking protection disabled)

It looks like this is a consistent issue with linux. There must be some old code still pushing users to the old login system... I'm gunna look into this on Monday

Yeah, so I've just checked, the app no longer opens that port and hasn't done for a long time... I think the short link on the app is referring to the wrong url.

https://msauth.feed-the-beast.com?useNew=true

Try this one.

I don't know what exactly changed, if there was a new appimage release that I downloaded this time. But the web browser opened up to the correct url this time and I was able to simply copy and paste the login code back to the application to finish login.

Strange... I'm glad it's working now. I've made some minor changes our end to try and protect against this in the future