Skip to content

Can't login to server #155

@bvogel

Description

@bvogel

Hi,

I have a server up and running I see my profile in the web interface on localhost:3333, however when trying to log in the server from the App it will report in the server log:

2025-08-11 08:44:17.707 | {"level":50,"time":1754894657707,"pid":92,"hostname":"0148d06d7632","name":"ferdium-server","err":{"type":"Error","message":"ENOENT: no such file or directory, open ''","stack":"Error: ENOENT: no such file or directory, open ''\n    at Object.openSync (node:fs:573:18)\n    at readFileSync (node:fs:452:35)\n    at JWTGuard.getPrivateKey (/app/node_modules/.pnpm/adonis5-jwt@https+++codeload.github.com+SpecialAro+adonis5-jwt+tar.gz+34941c10adcf89583a40767_yily6ts5fypbej2istskugbl7y/node_modules/adonis5-jwt/build/lib/Guards/JwtGuard.js:313:62)\n    at JWTGuard.generateTokenForPersistance (/app/node_modules/.pnpm/adonis5-jwt@https+++codeload.github.com+SpecialAro+adonis5-jwt+tar.gz+34941c10adcf89583a40767_yily6ts5fypbej2istskugbl7y/node_modules/adonis5-jwt/build/lib/Guards/JwtGuard.js:350:70)\n    at JWTGuard.login (/app/node_modules/.pnpm/adonis5-jwt@https+++codeload.github.com+SpecialAro+adonis5-jwt+tar.gz+34941c10adcf89583a40767_yily6ts5fypbej2istskugbl7y/node_modules/adonis5-jwt/build/lib/Guards/JwtGuard.js:219:38)\n    at UsersController.login (/app/app/Controllers/Http/UserController.ts:143:19)\n    at Object.PreCompiler.runRouteHandler [as fn] (/app/node_modules/.pnpm/@adonisjs+http-server@5.12.0_@adonisjs+application@5.3.0_@adonisjs+encryption@4.0.8_@adonisjs+application@5.3.0_/node_modules/@adonisjs/http-server/build/src/Server/PreCompiler/index.js:47:31)\n    at GuestMiddleware.handle (/app/app/Middleware/AllowGuestOnly.ts:54:5)\n    at ShieldMiddleware.handle (/app/node_modules/.pnpm/@adonisjs+shield@7.1.1_@adonisjs+core@5.9.0_@adonisjs+session@6.4.0_@adonisjs+core@5.9.0__@ad_raeykcyd7yk5hmis7vmskptdla/node_modules/@adonisjs/shield/build/src/ShieldMiddleware/index.js:80:9)\n    at Server.handleRequest (/app/node_modules/.pnpm/@adonisjs+http-server@5.12.0_@adonisjs+application@5.3.0_@adonisjs+encryption@4.0.8_@adonisjs+application@5.3.0_/node_modules/@adonisjs/http-server/build/src/Server/index.js:108:13)","errno":-2,"code":"ENOENT","syscall":"open","path":"","status":500},"msg":"ENOENT: no such file or directory, open ''"}

Registration does work, however my profile won't load. I tried this on the last outage of api.ferdium.org but it came back in time, now facing another one I want to fix this for good.

Thank you for your help

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