ESI Transition Test Release

Testing before new release
User avatar
edp
Someday Author
Posts: 95
Joined: Fri Sep 25, 2009 19:10

Re: ESI Transition Test Release

Post by edp » Tue Jun 06, 2017 16:23

Here's the log entry:

PHP Fatal error: Uncaught Error: Call to a member function getTicker() on boolean in /var/www/tiod.wtf/kbtest/common/corp_detail.php:215\nStack trace:\n#0 /var/www/tiod.wtf/kbtest/common/includes/class.pageassembly.php(70): pCorpDetail->stats(Object(pCorpDetail))\n#1 /var/www/tiod.wtf/kbtest/common/includes/class.pageassembly.php(37): pageAssembly->call('this->stats')\n#2 /var/www/tiod.wtf/kbtest/common/corp_detail.php(886): pageAssembly->assemble()\n#3 /var/www/tiod.wtf/kbtest/common/index.php(324): include('/var/www/tiod.w...')\n#4 /var/www/tiod.wtf/kbtest/index.php(25): include('/var/www/tiod.w...')\n#5 {main}\n thrown in /var/www/tiod.wtf/kbtest/common/corp_detail.php on line 215, referer: http://kbtest.tiod.wtf/

PHP Fatal error: Uncaught Error: Call to a member function getTicker() on boolean in /var/www/tiod.wtf/kbtest/common/corp_detail.php:215\nStack trace:\n#0 /var/www/tiod.wtf/kbtest/common/includes/class.pageassembly.php(70): pCorpDetail->stats(Object(pCorpDetail))\n#1 /var/www/tiod.wtf/kbtest/common/includes/class.pageassembly.php(37): pageAssembly->call('this->stats')\n#2 /var/www/tiod.wtf/kbtest/common/corp_detail.php(886): pageAssembly->assemble()\n#3 /var/www/tiod.wtf/kbtest/common/index.php(324): include('/var/www/tiod.w...')\n#4 /var/www/tiod.wtf/kbtest/index.php(25): include('/var/www/tiod.w...')\n#5 {main}\n thrown in /var/www/tiod.wtf/kbtest/common/corp_detail.php on line 215, referer: http://kbtest.tiod.wtf/?a=battles

PHP Fatal error: Uncaught Error: Call to a member function getTicker() on boolean in /var/www/tiod.wtf/kbtest/common/corp_detail.php:215\nStack trace:\n#0 /var/www/tiod.wtf/kbtest/common/includes/class.pageassembly.php(70): pCorpDetail->stats(Object(pCorpDetail))\n#1 /var/www/tiod.wtf/kbtest/common/includes/class.pageassembly.php(37): pageAssembly->call('this->stats')\n#2 /var/www/tiod.wtf/kbtest/common/corp_detail.php(886): pageAssembly->assemble()\n#3 /var/www/tiod.wtf/kbtest/common/index.php(324): include('/var/www/tiod.w...')\n#4 /var/www/tiod.wtf/kbtest/index.php(25): include('/var/www/tiod.w...')\n#5 {main}\n thrown in /var/www/tiod.wtf/kbtest/common/corp_detail.php on line 215, referer: http://kbtest.tiod.wtf/


PHP Fatal error: Uncaught phpFastCache\\Exceptions\\phpFastCacheIOException: Path "/cache/esi/kbtest.tiod.wtf/Files" is not writable, please set a chmod 0777 or any writable permission and make sure to make use of an absolute path ! in /var/www/tiod.wtf/kbtest/common/phpfastcache/src/phpFastCache/Core/Pool/IO/IOHelperTrait.php:122\nStack trace:\n#0 /var/www/tiod.wtf/kbtest/common/phpfastcache/src/phpFastCache/Drivers/Files/Driver.php(58): phpFastCache\\Drivers\\Files\\Driver->getPath()\n#1 /var/www/tiod.wtf/kbtest/common/phpfastcache/src/phpFastCache/Drivers/Files/Driver.php(48): phpFastCache\\Drivers\\Files\\Driver->driverCheck()\n#2 /var/www/tiod.wtf/kbtest/common/phpfastcache/src/phpFastCache/CacheManager.php(197): phpFastCache\\Drivers\\Files\\Driver->__construct(Array)\n#3 /var/www/tiod.wtf/kbtest/common/includes/esi/class.esi.php(334): phpFastCache\\CacheManager::getInstance('Files', Array)\n#4 /var/www/tiod.wtf/kbtest/common/includes/esi/class.esi.php(57): EDK\\ESI\\ESI->initCacheHandler()\n#5 /var/www/tiod.wtf/kbtest/common/includes/esi/c in /var/www/tiod.wtf/kbtest/common/phpfastcache/src/phpFastCache/Core/Pool/IO/IOHelperTrait.php on line 122, referer: http://kbtest.tiod.wtf/?a=post

User avatar
Salvoxia
Developer
Posts: 1591
Joined: Wed Feb 22, 2012 12:11

Re: ESI Transition Test Release

Post by Salvoxia » Tue Jun 06, 2017 16:26

Okay, maybe the relative path is the problem, as it states in the error. Let's try changing that to the absolute path.
Please open common/includes/esi/class.esi.php and find this line:

Code: Select all

"path" => KB_CACHEDIR . DIRECTORY_SEPARATOR . 'esi',
and replace it with

Code: Select all

"path" => getcwd() . DIRECTORY_SEPARATOR . KB_CACHEDIR . DIRECTORY_SEPARATOR . 'esi',
That makes the cache library use the absolute path to the caching folder.

User avatar
edp
Someday Author
Posts: 95
Joined: Fri Sep 25, 2009 19:10

Re: ESI Transition Test Release

Post by edp » Tue Jun 06, 2017 16:40

Bingo. Working now. :)

User avatar
Salvoxia
Developer
Posts: 1591
Joined: Wed Feb 22, 2012 12:11

Re: ESI Transition Test Release

Post by Salvoxia » Tue Jun 06, 2017 16:43

Great, I'll incorporate that change.

I'm interested in some numbers. How long does a single fetching "cycle" (e.g. from zKB) take, and how many kills are getting processed?

User avatar
edp
Someday Author
Posts: 95
Joined: Fri Sep 25, 2009 19:10

Re: ESI Transition Test Release

Post by edp » Tue Jun 06, 2017 16:44

The speed seems pretty much as before (maybe a tad slower, but not appreciably significant) - the pulls per cycle fetched are identical (200).

User avatar
edp
Someday Author
Posts: 95
Joined: Fri Sep 25, 2009 19:10

Re: ESI Transition Test Release

Post by edp » Tue Jun 06, 2017 16:51

New error being thrown, non-fatal:

PHP 2: reset() expects parameter 1 to be array, null given in /var/www/tiod.wtf/kbtest/common/includes/esi/class.helpers.php on line 187, referer: http://kbtest.tiod.wtf/index.php/pilot_ ... 671195541/

User avatar
edp
Someday Author
Posts: 95
Joined: Fri Sep 25, 2009 19:10

Re: ESI Transition Test Release

Post by edp » Tue Jun 06, 2017 16:55

Oops, a fatal error on a ZbFetch.

PHP Fatal error: Uncaught Swagger\\Client\\ApiException: API call to https://esi.tech.ccp.is/latest/characte ... ranquility failed: Resolving timed out after 3005 milliseconds in /var/www/tiod.wtf/kbtest/common/includes/esi/class.esi.php:217\nStack trace:\n#0 /var/www/tiod.wtf/kbtest/common/esi/lib/EsiClient/CharacterApi.php(192): EDK\\ESI\\ESI->callApi('/characters/671...', 'GET', Array, '', Array, '\\\\Swagger\\\\Client...', '/characters/{ch...')\n#1 /var/www/tiod.wtf/kbtest/common/includes/class.pilot.php(556): EsiClient\\CharacterApi->getCharactersCharacterIdWithHttpInfo(671195541, 'tranquility')\n#2 /var/www/tiod.wtf/kbtest/common/pilot_detail.php(155): Pilot->fetchPilot()\n#3 /var/www/tiod.wtf/kbtest/common/includes/class.pageassembly.php(70): pPilotDetail->stats(Object(pPilotDetail))\n#4 /var/www/tiod.wtf/kbtest/common/includes/class.pageassembly.php(37): pageAssembly->call('this->stats')\n#5 /var/www/tiod.wtf/kbtest/common/pilot_detail.php(465): pageAssembly->assemble()\n#6 /var/www/tiod.wtf/kbtest/common/index.ph in /var/www/tiod.wtf/kbtest/common/includes/esi/class.esi.php on line 217, referer: viewtopic.php?f=1034&p=50235

User avatar
Salvoxia
Developer
Posts: 1591
Joined: Wed Feb 22, 2012 12:11

Re: ESI Transition Test Release

Post by Salvoxia » Tue Jun 06, 2017 17:10

That last stack trace seems to belong to the error you reported in your post above, that was not triggered by zKBFetch.

User avatar
edp
Someday Author
Posts: 95
Joined: Fri Sep 25, 2009 19:10

Re: ESI Transition Test Release

Post by edp » Tue Jun 06, 2017 17:12

Hmm. They came up at two different fetches, about 4 min apart. I'm manually clicking on the "fetch" button to pull all the old KMs to get current with the stable board, then the cron jobs will be relatively in sync, and I can test the scheduled pulls too.

User avatar
Salvoxia
Developer
Posts: 1591
Joined: Wed Feb 22, 2012 12:11

Re: ESI Transition Test Release

Post by Salvoxia » Tue Jun 06, 2017 17:18

By the way: Since you are using a custom theme, you might want to update the corresponding line in your index.tpl. This will show the total time spent talking to ESI at the bottom of the page, if profiling is enabled (just like the time spent with database queries:
https://github.com/evekb/evedev-kb/blob ... ex.tpl#L58

Post Reply

Return to “Testing”

Who is online

Users browsing this forum: No registered users and 1 guest