yify-pop / yify-pop

Inspired by Popcorn Time, a node web server to stream torrents from YIFY. Built using Geddy and the peerflix library.
323 stars 78 forks source link

Cannot read property 'accessTime' of undefined #76

Closed nautik1 closed 9 years ago

nautik1 commented 10 years ago

Hello all,

Installed yify-pop a few days ago on my Raspberry pi. Worked great until now but I got this error message preventing me from using it: TypeError: Cannot read property 'accessTime' of undefined at get (/usr/local/lib/node_modules/geddy/lib/sessions/index.js:130:21) at isExpired (/usr/local/lib/node_modules/geddy/lib/sessions/index.js:108:36) at localCallback (/usr/local/lib/node_modules/geddy/lib/sessions/index.js:95:16) at /usr/local/lib/node_modules/geddy/lib/sessions/stores/filesystem.js:58:7 at /usr/local/lib/node_modules/geddy/lib/sessions/stores/filesystem.js:90:7 at fs.js:271:14 at Object.oncomplete (fs.js:107:15)

I could not find any thread about this until now and could not find how to solve this. Anyone would have a hint ? Thank you!

sudo-tee commented 9 years ago

I have the same issue on my server:

TypeError: Cannot read property 'accessTime' of undefined at get (/usr/local/lib/node_modules/geddy/lib/sessions/index.js:130:21) at isExpired (/usr/local/lib/node_modules/geddy/lib/sessions/index.js:108:36) at localCallback (/usr/local/lib/node_modules/geddy/lib/sessions/index.js:95:16) at /usr/local/lib/node_modules/geddy/lib/sessions/stores/filesystem.js:58:7 at /usr/local/lib/node_modules/geddy/lib/sessions/stores/filesystem.js:90:7 at fs.js:268:14 at Object.oncomplete (fs.js:107:15)

phanect commented 9 years ago

Hi, I experienced the same error in my own geddy based app, and google find this issue. (So I don't know about yify-pop)

accessTime property is stored in _session_store.json, so remove it and you can solve the problem.

Geddy, which yify-pop use as framework, seems to have bug to generate invalid _session_store.json occasionally.

iMilnb commented 9 years ago

Thanks @phanect, got that exact same issue, did what you wrote, fixed the issue :)

nautik1 commented 9 years ago

Yes ! That also resolves the issue for me. Thank you