Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build neighbour index and systems index #666

Closed
Flevity opened this issue Aug 2, 2018 · 13 comments
Closed

Can't build neighbour index and systems index #666

Flevity opened this issue Aug 2, 2018 · 13 comments
Assignees
Milestone

Comments

@Flevity
Copy link

Flevity commented Aug 2, 2018

structures and ships build succesfuly
Building neighbour index process is stucking on wait..
Bulding systems index return an error 500
env:
clean pathfinder install
ubuntu 18.04
nginx 1.14.0
php-fpm 7.2.7
nginx_error.log
image

@Slivo-fr
Copy link

Slivo-fr commented Aug 2, 2018

Same here, tried about 50 time to build system index over 48h without any success

@Derjyn
Copy link

Derjyn commented Aug 3, 2018

I third this. Glad I'm not the only one, was starting to drive me mad.

Ubuntu 16.04
Nginx 1.10.3
PHP 7.1.20

@exodus4d
Copy link
Owner

exodus4d commented Aug 4, 2018

I know :( there is some kind of "race condition" between the Ajax build on /setup page and a Cronjob that runs every 60s und tries to update the static eve_universe DB.

  1. Please comment out L60 https://github.com/exodus4d/pathfinder/blob/develop/app/cron.ini#L60
  2. Wait 2min (makes sure there is no cronjob running for update)
  3. Clear cache dir or Redis DB
  4. Go back to /setup page and retry building the systems index
  5. Please let the cronjob (L60) deactivated until I fixed it in the next release. This is not a problem because CCP does not update static data that often

Hint: Having the system index build up is not a must have its just a performance boost. Pathinder automatically build the index for a system if it is missing in the index und requested for the first time.

@exodus4d exodus4d added this to the v1.4.1 milestone Aug 4, 2018
@exodus4d exodus4d self-assigned this Aug 4, 2018
@exodus4d
Copy link
Owner

exodus4d commented Aug 4, 2018

If you get other problems in 1.4.0 please read this issue and check out my fix (develop branch):
#658 (comment)

@Flevity
Copy link
Author

Flevity commented Aug 4, 2018

I commented L60 and still cant build system indexes =/ error 500 and same error on nginx log.
I've tried to login into my pathfinder and after creating corp map there is an error 500 too =/ (mapmodel.php already replaced)

building indexs error:

2018/08/04 17:12:52 [error] 1167#1167: *9 FastCGI sent in stderr: "PHP message: HTTP 404 (GET /ws/map/update)
PHP message: [index.php:23] Base->run()" while reading response header from upstream, client: 2a02:2698:4c25:5392:9968:afa8:6097:7ef7, server: achtung-wh.tk, request: "GET /ws/map/update HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "achtung-wh.tk"
2018/08/04 17:13:08 [error] 1167#1167: *1 FastCGI sent in stderr: "PHP message: Call to a member function getAll() on boolean [/home/flevity/pathfinder/app/main/controller/ccp/universe.php:142]
PHP message: [app/main/controller/api/setup.php:64] Controller\Ccp\Universe->buildSystemsIndex()
PHP message: [index.php:23] Base->run()" while reading response header from upstream, client: 2a02:2698:4c25:5392:9968:afa8:6097:7ef7, server: achtung-wh.tk, request: "POST /api/setup/buildIndex HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "achtung-wh.tk", referrer: "https://achtung-wh.tk/setup"

after login error:

2018/08/04 17:14:13 [error] 1167#1167: *1 FastCGI sent in stderr: "PHP message: Validation failed: "systemId" = "31000713" [/home/flevity/pathfinder/app/main/model/basicmodel.php:463]
PHP message: [app/main/model/systemmodel.php:242] Model\BasicModel->throwValidationException()
PHP message: [app/main/model/basicmodel.php:311] Model\SystemModel->validate_systemId()
PHP message: [app/main/model/basicmodel.php:184] Model\BasicModel->validateField()
PHP message: [app/lib/magic.php:73] Model\BasicModel->set()
PHP message: [app/lib/magic.php:117] Magic->offsetset()
PHP message: [app/main/model/mapmodel.php:481] Magic->__set()
PHP message: [app/main/controller/api/map.php:993] Model\MapModel->getNewSystem()
PHP message: [app/main/controller/api/map.php:893] Controller\Api\Map->updateMapData()

@Derjyn
Copy link

Derjyn commented Aug 7, 2018

Any updates on this? A bit hard to use this without this functionality.

@alewis-isc
Copy link

I'm having exactly this issue as well right now.

@justindh
Copy link

justindh commented Aug 16, 2018

Figured out the issue with some trial and error, it looks like the eve_universe cache is struggling to build a system list from scratch. Dunno why, but this fixed it for me.

  • In mysql, drop the eve_universe database drop database eve_universe; (your db name may very, checked environment.ini if you are unsure)
  • Now create a blank database create database eve_universe;
  • Import the eve_universe seeder wiki This step is still required!
  • login to /setup and hit the setup tables button on eve-online universe section
  • login to /setup and hit the fix Columns/Keys button on eve-online universe section
  • clear cache
  • login to /setup and hit build system index build button
  • login to /setup and hit rest of the index data buttons after each finishes
  • profit?

@alewis-isc
Copy link

The above worked for me. Good work Sir!

@Flevity
Copy link
Author

Flevity commented Aug 17, 2018

yeah it is work, tnx

@Flevity Flevity closed this as completed Aug 17, 2018
@Tupsi
Copy link
Contributor

Tupsi commented Aug 28, 2018

tried this a few times now, no dice. still get the wrong counting and the counter never finishes

exodus4d added a commit that referenced this issue Sep 15, 2018
@exodus4d exodus4d mentioned this issue Sep 17, 2018
This was referenced Oct 25, 2018
@lord-carlos
Copy link

lord-carlos commented Nov 28, 2018

Running latest /develop branch and still got this problem. (No redis)

Not sure how it should work, but apparently it did not import any systems via ESI. I had to import the .sql file.
Now when I build system index it just stops with server error 500.
/api/setup/buildIndex 500 (Internal Server Error)

2018/11/28 14:02:48 [error] 20441#20441: *21899 FastCGI sent in stderr: "PHP message: session_start(): Failed to decode session object. Session has been destroyed

I'm gonna try it justindh way.

Edit: Ah, updateUniverseSystem and setup cron job are disabled by default.

@exodus4d
Copy link
Owner

exodus4d commented Dec 2, 2018

@lord-carlos I was able to reproduce your error. This just happens if "MySQL Sessions" are set in config.ini (which is the default). Installations with" Redis" configured instead of "MySQL Sessions" are not affected.

2018/11/28 14:02:48 [error] 20441#20441: *21899 FastCGI sent in stderr: "PHP message: session_start(): Failed to decode session object. Session has been destroyed

The problem

Building the "system Index" throws a huge amount of temp data into the users Session. The default column type in sessions.data is TEXT which can not handle all and cuts off data ON INSERT... Next time Session data gets accessed fails because of invalid format -> decode failed

Fix

Session DB table now has MEDIUMTEXT instead of TEXT as type for sessions.data column

@exodus4d exodus4d reopened this Dec 2, 2018
@exodus4d exodus4d modified the milestones: v1.4.1, v1.4.4 Dec 2, 2018
@exodus4d exodus4d mentioned this issue Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants