1. Adam Ahmed [Atlassian]
  2. meat
Issue #13 resolved

Access problem

Anonymous created an issue

HI,

I've a problem when I launch MEAT : - start MEAT in terminal App (Mac OS) - I autorize MEAT at Google request - then, no access. The url http://localhost:60053/?state=0&code=4………… not respond.

Could you help me ?

Comments (8)

  1. Adam Ahmed [Atlassian] staff repo owner

    When you start meat the first time, it should listen on two ports. One port handles normal MEAT, and the goose port (60053) handles the Google callback.

    What do you mean when you say 60053 doesn't respond? Does anything appear in the terminal?

  2. cedricni

    Hi,

    that's what i have in terminal :

    MacBook-Pro-de-Cedric:~ cedric$ export MEAT_HOME=/Users/cedric/Documents/MEATMacBook-Pro-de-Cedric:~ cedric$ meat info: Updating room list. info: GCal requesting HTTP GET https://www.googleapis.com/calendar/v3/users/me/calendarList info: MEAT started. error: uncaughtException date=Wed Jul 10 2013 08:17:06 GMT+0200 (CEST), pid=590, uid=501, gid=20, cwd=/Users/cedric, execPath=/usr/local/bin/node, version=v0.10.12, argv=[node, /usr/local/bin/meat], rss=23687168, heapTotal=16571136, heapUsed=8459896, loadavg=[0.4697265625, 0.59228515625, 0.666015625], uptime=33915, trace=[column=11, file=net.js, function=errnoException, line=901, method=null, native=false, column=19, file=net.js, function=HTTPServer.Server._listen2, line=1020, method=Server._listen2, native=false, column=10, file=net.js, function=listen, line=1061, method=null, native=false, column=5, file=net.js, function=HTTPServer.Server.listen, line=1127, method=Server.listen, native=false, column=5, file=/usr/local/lib/node_modules/meat/lib/MEATIER.js, function=, line=67, method=null, native=false, column=26, file=module.js, function=Module._compile, line=456, method=_compile, native=false, column=10, file=module.js, function=Object.Module._extensions..js, line=474, method=Module._extensions..js, native=false, column=32, file=module.js, function=Module.load, line=356, method=load, native=false, column=12, file=module.js, function=Function.Module._load, line=312, method=Module._load, native=false, column=17, file=module.js, function=Module.require, line=364, method=require, native=false], stack=[Error: listen EACCES, at errnoException (net.js:901:11), at HTTPServer.Server._listen2 (net.js:1020:19), at listen (net.js:1061:10), at HTTPServer.Server.listen (net.js:1127:5), at Object.<anonymous> (/usr/local/lib/node_modules/meat/lib/MEATIER.js:67:5), at Module._compile (module.js:456:26), at Object.Module._extensions..js (module.js:474:10), at Module.load (module.js:356:32), at Function.Module._load (module.js:312:12), at Module.require (module.js:364:17)] info: GCal got response from https://www.googleapis.com/calendar/v3/users/me/calendarList info: Found 1 rooms. info: Enabling data updates. info: Loading new room events. info: Requesting events for Perso info: GCal requesting HTTP GET https://www.googleapis.com/calendar/v3/calendars/***@gmail.com/events?orderBy=startTime&singleEvents=true&timeMin=2013-07-10T06:17:06.761Z&timeMax=2013-07-11T06:17:06.761Z info: GCal got response from https://www.googleapis.com/calendar/v3/calendars/**@gmail.com/events?orderBy=startTime&singleEvents=true&timeMin=2013-07-10T06:17:06.761Z&timeMax=2013-07-11T06:17:06.761Z info: Got back 0 events for Perso. info: Finished loading events for all rooms. info: Queuing another event load in 600s info: MEAT stopped.

    Impossible to access my calendar with http://localhost

  3. Adam Ahmed [Atlassian] staff repo owner

    That EACCES means you don't have permission to start a web server on localhost. I would guess that the 60052 stuff succeeded though, because it's retrieving calendar information already.

    Try using sudo meat or try giving your user more permissions.

    Also you don't have any events being found - don't forget that for the rooms to show up in MEAT, Google requires that the calendars are enabled in the user's UI (i.e., go to calendar.google.com and make sure the rooms are in your list of calendars).

  4. cedricni

    thanks.

    When I launch sudo meat :

    variable containing a path to a directory for storing
    data and configuration Use
       set MEAT_HOME=C:\path\to\data (Windows)
    or
       export MEAT_HOME=/path/to/data (*nix)
    Exiting...
    

    but if I type just meat,

    I've the response that I note last time

    i'm lost ! ;-)

  5. Adam Ahmed [Atlassian] staff repo owner

    Right so when you sudo, it doesn't keep your environment variables. I mostly use Windows so Unix commands aren't my forte. But I believe you can do something like sudo meat MEAT_HOME=/path/to/data to specify it explicitly.

  6. Anonymous

    Hey Adam,

    I get the same error as Cedric. If I sudo (sudo MEAT_HOME=/Users/gjoseph/tmp/MEAT_DATA meat), I get this (see below) after a succesfull auth. Everytime. (which is odd, because Google knows I gave access to Meat, not sure why Meat asks every time), and info: MEAT stopped. EADDRINUSE is odd, netstat -a or ps don't show any running process that'd be using that port.

     stack=[Error: listen EADDRINUSE,     at errnoException (net.js:904:11),     at HTTPServer.Server._listen2 (net.js:1042:14),     at listen (net.js:1064:10),     at HTTPServer.Server.listen (net.js:1138:5),     at Object.<anonymous> (/opt/local/lib/node_modules/meat/lib/MEATIER.js:67:5),     at Module._compile (module.js:456:26),     at Object.Module._extensions..js (module.js:474:10),     at Module.load (module.js:356:32),     at Function.Module._load (module.js:312:12),     at Module.require (module.js:364:17)]
    

    edit: aghh! It actually default to :80, that's why it's in use ! No need to sudo, C9_PORT=60000 MEAT_HOME=/Users/gjoseph/tmp/MEAT_DATA meat works too. Or sudo and make sure nothing's running on :80 :D

  7. Log in to comment