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

Install on OSX with OSX Server running? #21

Open
jjpeet opened this issue Aug 13, 2016 · 5 comments
Open

Install on OSX with OSX Server running? #21

jjpeet opened this issue Aug 13, 2016 · 5 comments

Comments

@jjpeet
Copy link

jjpeet commented Aug 13, 2016

Hi,
I've just installed CodeJS and itunes-api and it doesn't seem t be working.
When I hit localhost:8181 from a browser (to check it's working) I get nothing... Should I be getting anything.

I'm running Mavericks & OSX Server with Web sites enabled in the server console.

Also, where might I find the logs?

Thx
JP

@maddox
Copy link
Owner

maddox commented Aug 18, 2016

try running with just script/server to get logs. Also if you script/install, you should find logs in the logs directory.

@jjpeet
Copy link
Author

jjpeet commented Aug 20, 2016

Thanks for that - when I run script/server (with and without sudo) I get the following;

jjpeet:iTunes-API james$ sudo script/server
Password:
warn:    --minUptime not set. Defaulting to: 1000ms
warn:    --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
error: Could not read .foreverignore file.
error: ENOENT: no such file or directory, open '/Users/james/iTunes-API/.foreverignore'
module.js:327
    throw err;
    ^

Error: Cannot find module 'express'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/Users/james/iTunes-API/app.js:4:15)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
error: Forever detected script exited with code: 1

Also, I found the log file in ~/.forever/itunes-api.log and it has this in it;

jjpeet:.forever james$ tail itunes-api.log 
      ^

Error: ENOENT: no such file or directory, open 'log/logs.log'
    at Error (native)
events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, open 'log/logs.log'
    at Error (native)

Any thoughts?
JP

@maddox
Copy link
Owner

maddox commented Aug 20, 2016

Is there a logs dir in the itunes-api dir?

If not, try making one first and then starting the server.

On August 19, 2016 at 10:05:16 PM, James Peet (notifications@github.com)
wrote:

Thanks for that - when I run script/server (with and without sudo) I get
the following;

jjpeet:iTunes-API james$ sudo script/server
Password:
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
error: Could not read .foreverignore file.
error: ENOENT: no such file or directory, open '/Users/james/iTunes-API/.foreverignore'
module.js:327
throw err;
^

Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/Users/james/iTunes-API/app.js:4:15)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
error: Forever detected script exited with code: 1

Also, I found the log file in ~/.forever/itunes-api.log and it has this in
it;

jjpeet:.forever james$ tail itunes-api.log
^

Error: ENOENT: no such file or directory, open 'log/logs.log'
at Error (native)
events.js:141
throw er; // Unhandled 'error' event
^

Error: ENOENT: no such file or directory, open 'log/logs.log'
at Error (native)

Any thoughts?
JP


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#21 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAABBOP_NRJskzd_Vd1gmm5Bg1_BdTUrks5qhmDcgaJpZM4Jjkz_
.

@sudarshan367
Copy link

hi,
Is there an itunes api to use on windows ??

@maddox
Copy link
Owner

maddox commented Dec 15, 2016

Is there an itunes api to use on windows ??

Sorry no, iTunes API uses AppleScript, which isn't available on Windows.

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