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

Pathfinder database does not fully populate and leads to errors #158

Closed
Ulaxidor opened this issue May 17, 2016 · 14 comments
Closed

Pathfinder database does not fully populate and leads to errors #158

Ulaxidor opened this issue May 17, 2016 · 14 comments

Comments

@Ulaxidor
Copy link

Ulaxidor commented May 17, 2016

I’ve installed pathfinder using version 1.10.0 of the standard nginx without using the p5hb ( h5bp/server-configs-nginx ) repository because it simply does not work, as in it will not host any host file and will not listen on any port in my hosts file. The standard nginx is able to host pathfinder but my Pathfinder database is incomplete https://gyazo.com/d558566a28020d105cace7bf4cc1d103. It results in this https://gyazo.com/4a16bffc1f7cf47a5c7e693c90c820cc. A pop up error “Route not found” occurs when any kspace connection is clicked ( https://gyazo.com/59141af6bd6778fbe3bf5ddb8b3b0f37 ). It also will not load the system kills from zkill as it constantly loads as seen in the GIF. Here is error from the developer tools view ( https://gyazo.com/975b331f6d4a2c481d12f89b9be62a9f ).
Here is what my https://domain/setup looks like https://gyazo.com/e9120caf5b017957c8acf374181c261a and https://gyazo.com/243b11ff3f86454a4cc8ef402e10df4a.
In addition I get this perpetually loading page ( https://gyazo.com/79fc917cae72434ebeb3a46c6f59d09e ) each time I click on "Setup tables." This is the error in the developer tools view ( https://gyazo.com/21be08990c307dea1ba1a00ab2e0b5f2 ).

--Update--
After removing the database and repopulating it and installing a few java apps including oracles jdk 8.0, and Jquery, and requirejs, I am still getting the same errors ( https://gyazo.com/a53c9e1e6d19f933a73f3f29a197d883 ) cant path from kspace connections despite importing the pathfinder.sql database.

Am I getting these issues because I am not using the p5hb nginx repository? Any help would be greatly appreciated!

@Tupsi
Copy link
Contributor

Tupsi commented May 17, 2016

check the installation. There is a .sql file you need to manually import. This is missing in the wiki documentation.

@Ulaxidor
Copy link
Author

Ulaxidor commented May 17, 2016

Thanks for your reply Tupsi! I have tried to import that pathfinder.sql file from the repository into my pathfinder database several times, however that only allows me to see the wormhole information regarding their static connections. However I am still getting 4 "Route not found" errors every time i click on a kspace, and every time i use the "route search" module. In addition, the killboard portion still does not load ( https://gyazo.com/947666fa49d47f3af3abaf082c8bc3ed )

@Tupsi
Copy link
Contributor

Tupsi commented May 17, 2016

which pathfinder are we talking here? Are you using the master or develop branch?

@Ulaxidor
Copy link
Author

@exodus4d
Copy link
Owner

@Ulaxidor

  • Please clear your /cache dir afterwards. Routes that could not be found, were cached. This is a bug and is already fixed in in develop branch.
  • The zKillboard is also broken in the develop branch. This is because zKillbaord changed their CORS Headers (this is fixed in develop branch too).
  • If you want to check out the current develop branch. There is a fresh testing environment running it: https://www.dev.pathfinder-w.space/

@Ulaxidor
Copy link
Author

@exodus4d
Thank you! That worked!

@Ulaxidor Ulaxidor reopened this May 17, 2016
@Ulaxidor
Copy link
Author

@exodus4d
The kspace system statistics is the only portion that is not loading properly now other than the zkillboard portion that is. Instead of indicating the Jumps over a 24 hour period, Ship/POD kills and NPC Kills, there is simply a blank space (https://gyazo.com/77f04b410cb4e35b6b2c5c57f1433dca). Is there a fix for this or is this also related to the zkillboard issue?

@exodus4d
Copy link
Owner

@Ulaxidor This is not a bug, You don´t have any jump data in your database ;) This jump/kill data should be imported by a cronjob. Check the Wiki for more information.
If you have problems with setting up a cronjob ($ crontab -e ...) for this. I´ll try to help you. It should be done in 1min, it´s just a "one-liner".

@Ulaxidor
Copy link
Author

Ulaxidor commented May 17, 2016

@exodus4d
I would definitely appreciate your help with that! As per the wiki I have created the cron.phpx file, then placed it in my root installation directory.

cron.phpx contents, modified only the first line, the other 4 echo lines are exactly as they are in the wiki:
exec('wget -qO- /dev/null /opt/pathfinder/pathfinder/app/cron &> /dev/null', $out, $result);

then I’ve made cron.phpx executable by using the chmod 755 command on it.

crontab -e:

  • * * * * php /opt/pathfinder/pathfinder/cron.phpx

How does that look? In the first line of the cron.phpx file, should I add .ini to the word cron to specifically reference the cron.ini file or is “cron” sufficient? If that first line is referring to a cron directory should i make that directory in my installation root folder and then place cron.ini from the /app directory in it?

@exodus4d
Copy link
Owner

Yeah will copy my crontab -e line when I´m back home. But you don´t need the *.phpx file . This is just a "workaround" for those who have to specify a script that triggers the script.
You realy just need a single line in crontab -e ithat triggers the job.

@exodus4d
Copy link
Owner

exodus4d commented May 17, 2016

@Ulaxidor Just add the following line to $ crontab -e file (don´t forget to replace the project path!)

* * * * * cd /var/www/pathfinder.com/public_html; php index.php /cron >> /var/log/cron-www/pathfinder.log 2>&1

If crontab is not already installed, check this for more information: https://www.digitalocean.com/community/tutorials/how-to-use-cron-to-automate-tasks-on-a-vps

Hint: The log file path at the end is optional. This will log any output (e.g. errors) to a *.log file.

@exodus4d
Copy link
Owner

This information is now added to the wiki:

https://github.com/exodus4d/pathfinder/wiki/Cronjob

I have reworked the page, added some more information....

@Ulaxidor
Copy link
Author

Ulaxidor commented May 17, 2016

@exodus4d
Thanks! I had to tweek that command just a little to get it to output to the log file.
* * * * * php /opt/pathfinder/pathfinder/index.php /cron >> /opt/pathfinder/pathfinder/logs/pathfinder2.log 2>&1

However that log file now contains multiple copies of this line:
Class 'Controller\Controller' not found

The manual command "curl mydomain.com/cron" returns this:
`

<title>301 Moved Permanently</title>

301 Moved Permanently


nginx/1.10.0 (Ubuntu) `

The map will still not load the Jumps, Ship/POD Kills, NPC Kills section.

----update----

Manually navigating to mydomain.com/cron in google chrome has populated that section. Ok I believe I've got it. Just found out that the curl command must include the https portion of the address. However I am still not sure why cron returns those errors since it looks like a solid crontab command. I have worked around the php index.php /cron error by adding this command to crontab -e
* * * * * curl https://www.mydomain/cron >> /opt/pathfinder/pathfinder/logs/curlcron.log 2>&1

@exodus4d
Copy link
Owner

I have fixed a small issue on the develop branch, which belongs to this issue: 95ff8cd

exodus4d added a commit that referenced this issue Jun 20, 2016
…200 #105 #158

- added cache size information to /setup
- added current pathfinder  "VERSION" to /setup
- updated "requireJs" 2.1.20 ->2.2.0
- removed unnecessary page cache timings from static templates (page cache)
exodus4d added a commit that referenced this issue Jul 5, 2016
* fixed #194 PHP 5.6 error

* - closed #102 added "set waypoint/destination" context menu to route finder module
- update "Select2" 4.0.0 -> 4.0.3
- update "Font Awesome" 4.6.1 -> 4.6.3

* - added *.js files for develop branch

* - closed #195 fixed "BASE" dir for subDir installations
- fixed "Home" menu link

* -  #195 improved js load path

* - added "clear cache" function for manually cache clearing to /setup #200 #105 #158
- added cache size information to /setup
- added current pathfinder  "VERSION" to /setup
- updated "requireJs" 2.1.20 ->2.2.0
- removed unnecessary page cache timings from static templates (page cache)

* - added "document_root", "port", "protocol" and "PHP framework version" to /setup page
- added new "shattered" wormhole types to "signature table", closed #182, #179

* - added new "delete old signatures" option to "signature reader" dialog, closed #95

* - added new housekeeping cronjob für cached files, closed #200
- added new cache size information to /setup page

* - fixed signature groupId/typeId "overwriting" for already known signatures. closed #207
- improved system search dialog. Added trim(); before "api/signatures-> search" request

* updated README.me

* fixed PHP error "default object from empty value", closed #209

* reduced image file size

* - added local storage (IndexedDB)
- added local storage for map scroll position. closed #69

* - added "notice" panel for upcoming release information
- improved layout for "release dialog" (GitHub API)
- improved pagespeed (removed render blocking javascripts)
- improved map scrollbar configuration
- improved Chrome browser custom scrollbar layout
- removed "sign up" buttons from "map panels", closed #214

* - fixed some session and cookie  bugs

* - added new requirement check for `max_input_vars` to /setup URL, closed #224

* - fixed isWormhole(); bug

* -v1.1.1 added js build files
exodus4d added a commit that referenced this issue Jul 29, 2016
* fixed #194 PHP 5.6 error

* - closed #102 added "set waypoint/destination" context menu to route finder module
- update "Select2" 4.0.0 -> 4.0.3
- update "Font Awesome" 4.6.1 -> 4.6.3

* - added *.js files for develop branch

* - closed #195 fixed "BASE" dir for subDir installations
- fixed "Home" menu link

* -  #195 improved js load path

* - added "clear cache" function for manually cache clearing to /setup #200 #105 #158
- added cache size information to /setup
- added current pathfinder  "VERSION" to /setup
- updated "requireJs" 2.1.20 ->2.2.0
- removed unnecessary page cache timings from static templates (page cache)

* - added "document_root", "port", "protocol" and "PHP framework version" to /setup page
- added new "shattered" wormhole types to "signature table", closed #182, #179

* - added new "delete old signatures" option to "signature reader" dialog, closed #95

* - added new housekeeping cronjob für cached files, closed #200
- added new cache size information to /setup page

* - fixed signature groupId/typeId "overwriting" for already known signatures. closed #207
- improved system search dialog. Added trim(); before "api/signatures-> search" request

* updated README.me

* fixed PHP error "default object from empty value", closed #209

* reduced image file size

* - added local storage (IndexedDB)
- added local storage for map scroll position. closed #69

* - added "notice" panel for upcoming release information
- improved layout for "release dialog" (GitHub API)
- improved pagespeed (removed render blocking javascripts)
- improved map scrollbar configuration
- improved Chrome browser custom scrollbar layout
- removed "sign up" buttons from "map panels", closed #214

* - fixed some session and cookie  bugs

* - added new requirement check for `max_input_vars` to /setup URL, closed #224

* - fixed isWormhole(); bug

* -v1.1.1 added js build files

* - removed IGB support #206
- removed location tracking by IGB

* - added build files for upcoming version 1.1.2
- improved ajax authentication check and "logout" notification | closed #198
- improved logging, added missing log file configuration to pathfinder.ini
- added  logging for "unauthorized" requests | closed #198
- updated js "jQuery" 1.11.3 -> 3.0.0 | #206
- updated js "datatables" plugin 1.10.7 -> 1.10.12 | #206
- updated js "mCustomScrollbar" 3.1.14 -> 3.1.4 | #206

* - fixed some minor bugs in signature table module

* - fixed type "Cataclysmic", closed #241

* - added new setup DB indexing for "system_neighbour"  table to /setup route, #125
- fixed system "TrueSec" rounding in "routes module", closed #109

* - fixed system "TrueSec" rounding in "routes module", closed #109

* - added new wormhole statics for "Thera", closed #240

* - fixed missing statics for constellation "21000062" , closed #232

* - added "static" wormholes for "shattered" systems , closed #180
- added im/export function for "index" tables (*.csv import), as an alternative to the *.sql import, closed #125

* - added new system tooltip for "region name", closed #236
- updated "Bootstrap" JS-library 3.3.0 -> 3.3.5

* - removed console.log(),,,

* minor bugfixes in /setup page

* - added basic support for Russian signatures, closed #256
- added warning notification for invalid signature stings

* - added basic support for Russian signatures, closed #256

* - added requirement check for "PDO", "PDO_MYSQL" to "/setup" route
- imrpved DB PDO connection (added "TIMEOUT", forced "ERRMODE")
- fixed broken "system alias" renaming dialog

* - fixed "system graph" module rendering if there was no data available
- improved "image gallery" initialization on landing page
- added navigation to /setup page
- updated "blueImpGallery" (fixed some bugs after jQuery 3.0 upgrade) 1.15.2 -> 2.21.3
- updated "blueImpGalleryBootstrap"  (fixed some bugs after jQuery 3.0 upgrade)  3.1.1 -> 3.4.2

* - JS build files vor 1.1.2

* Updated pathfinder.css
no-dap pushed a commit to fish-vending-machine/pathfinder that referenced this issue May 21, 2023
Add esi-search.search_structures.v1 scope to environment.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants