exodus4d / pathfinder

Mapping tool for EVE ONLINE
https://www.pathfinder-w.space
MIT License
382 stars 250 forks source link

Constant Error 403: Forbidden #954

Open MartinVanzyl opened 4 years ago

MartinVanzyl commented 4 years ago

I can log in no problem, I can view the overall map no problem.

The moment I try to interact with the elements on the map, I feel like I'm playing RNG, where it'll either work or I'll get Error 403: Forbidden, Access Denied: User not found and auto logs me out. It forces me to log in, and then back to the map.

Trying to use it with Firefox is even worse, I can't even look at the map for a moment before the same thing happens.

tjerge commented 4 years ago

Having the exact same problem here is the only logged error I've found so far. Let me know if you need any further information.

2020/05/02 16:05:10 [error] 11893#11893: *2507 connect() failed (111: Connection refused) while connecting to upstream, client: <snip>, server: wh.fatalix.com, request: "GET /ws/map/update HTTP/1.1", upstream: "http://127.0.0.1:8030/ws/map/update", host: "wh.fatalix.com" 2020/05/02 16:17:19 [error] 11893#11893: *2727 FastCGI sent in stderr: "PHP message: HTTP 403 (POST /api/Map/updateData)PHP message: [vendor/bcosca/fatfree-core/db/sql/session.php:77] Base->error()PHP message: [app/Controller/Controllerr.php:448] Base->exists()PHP message: [app/Controller/Controllerr.php:410] Exodus4D\Pathfinder\Controller\Controller->getUser()PHP message: [app/Controller/Controllerr.php:436] Exodus4D\Pathfinder\Controller\Controller->getSessionCharacter()PHP message: [app/Controller/AccessController.php:47] Exodus4D\Pathfinder\Controller\Controller->getCharacter()PHP message: [app/Controller/AccessController.php:27] Exodus4D\Pathfinder\Controller\AccessController->isLoggedIn()PHP message: [index.php:27] Base->run()PHP message: session_start(): Failed to read session data: user (path: /var/lib/php/sessions)PHP message: [app/Controller/Controllerr.php:448] Base->exists()PHP message: [app/Controller/Controllerr.php:410] Exodus4D\Pathfinder\Controller\Controller->getUser()PHP message: [app/Controller/Controllerr.php:436] Exodus4D\Pathfinder\Controller\Controller->getSessionCharacter()PHP message: [app/Controller/AccessController.php:47] Exodus4D\Pathfinder\Controller\Controller->getCharacter()PHP message: [app/Controller/AccessController.php:27] Exodus4D\Pathfinder\Controller\AccessController->isLoggedIn()PHP message: [index.php:27] Base->run()" while reading response header from upstream, client: <snip>, server: wh.fatalix.com, request: "POST /api/Map/updateData HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.3-fpm.sock:", host: "wh.fatalix.com", referrer: "https://wh.fatalix.com/map/MQ%3D%3D" 2020/05/02 16:20:03 [error] 11893#11893: *2813 connect() failed (111: Connection refused) while connecting to upstream, client: <snip>, server: wh.fatalix.com, request: "GET /ws/map/update HTTP/1.1", upstream: "http://127.0.0.1:8030/ws/map/update", host: "wh.fatalix.com"

verunightscout commented 4 years ago

Try to clear authentication data on setup page.

MartinVanzyl commented 4 years ago

Hi there, This issue has gotten worse with the latest update to Pathfinder.

Now I can't even see the map before it 403 forbidden's me. I relog multiple times, feeling like I'm bashing my head against a wall, and after the 5th or so time, I'll see the map!

For about 5 seconds, then it'll give a message, 403, Thera connections data error Forbidden.

I've had our Corps IT Director, delete and reinstate my account, and it has had no effect. I've checked my own webshields, firewalls, in PC, Router etc, no problem there. I've cleared cache, and refreshed everything. Still no cigar.

Something somewhere, where its pulling with either zkill or evescout is making Pathfinder go berserk for me. Please help. I'm down to having to ask corpmates for freaking screenshots of the map or taking screenshots in the scant seconds I have to see it.

DestroyFX commented 3 years ago

The issue seam to be from fat-free.

They detect people that use multi IP (ip changing during same session) and kill the session then twart a 403 That affect people with multi-wan (depending of the load balancing algo)

https://fatfreeframework.com/3.7/session#onsuspect

f0rkz commented 3 years ago

I suspect this is causing issues with cloudflare's CDN services. Any time the CDN changes IP addresses at the origin, the connection is terminated.

faket91 commented 3 years ago

Is there anything that a person can do to fix this? A corpmate has the same issue as MartinVanzyl above. He needs to ask for screenshots of the map because he has at most a couple of seconds before the 403 Error appears.

EDIT: changing /app/Controller/Controllerr.php:159 from return false; to return true; fixed the issue.