{"action":"created","issue":{"url":"https://api.github.com/repos/tunapanda/swag/issues/8","labels_url":"https://api.github.com/repos/tunapanda/swag/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/tunapanda/swag/issues/8/comments","events_url":"https://api.github.com/repos/tunapanda/swag/issues/8/events","html_url":"https://github.com/tunapanda/swag/issues/8","id":75710196,"number":8,"title":"Automate setup of LRS, store valid credentials in config.ini","user":{"login":"usernamenumber","id":188349,"avatar_url":"https://avatars.githubusercontent.com/u/188349?v=3","gravatar_id":"","url":"https://api.github.com/users/usernamenumber","html_url":"https://github.com/usernamenumber","followers_url":"https://api.github.com/users/usernamenumber/followers","following_url":"https://api.github.com/users/usernamenumber/following{/other_user}","gists_url":"https://api.github.com/users/usernamenumber/gists{/gist_id}","starred_url":"https://api.github.com/users/usernamenumber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usernamenumber/subscriptions","organizations_url":"https://api.github.com/users/usernamenumber/orgs","repos_url":"https://api.github.com/users/usernamenumber/repos","events_url":"https://api.github.com/users/usernamenumber/events{/privacy}","received_events_url":"https://api.github.com/users/usernamenumber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-05-12T19:25:02Z","updated_at":"2015-05-13T10:11:11Z","closed_at":null,"body":"***Update:*** This issue was initially created for what turned out to be a symptom of incomplete configuration. The issue has been re-purposed to track automating those configuration tasks.\r\n\r\n---\r\n\r\nMy guess is that we have the wrong credentials in swagportal's config.ini, but I don't have time to troubleshoot now, so here's what's going on:\r\n\r\nWhen I try to load the example swagmap it hangs, while the JS console gets 64 messages like this:\r\n\r\n```\r\nFailed to load resource: the server responded with a status of 401 (Unauthorized)\r\nswagmap.min.js:9 Uncaught TypeError: Cannot read property 'length' of undefined\r\nhttp://learninglocker.dev.swag.tunapanda.org/data/xAPI/statements?agent=%7B…D&activity=http%3A%2F%2Fktouch.tunapanda.org%2FTunapandaEn.ktouch.xml%2314 \r\n```\r\n\r\nFollowing that url returns the following JSON:\r\n\r\n```\r\n{\"error\":true,\"success\":false,\"message\":\"Unauthorized request.\",\"code\":401,\"trace\":[{\"function\":\"{closure}\",\"args\":[{},{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}}]},{\"file\":\"\\/usr\\/local\\/tunapanda\\/provision\\/modules\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Events\\/Dispatcher.php\",\"line\":199,\"function\":\"call_user_func_array\",\"args\":[{},[{},{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}}]]},{\"file\":\"\\/usr\\/local\\/tunapanda\\/provision\\/modules\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Events\\/Dispatcher.php\",\"line\":154,\"function\":\"fire\",\"class\":\"Illuminate\\\\Events\\\\Dispatcher\",\"type\":\"->\",\"args\":[\"router.filter: auth.statement\",[{},{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}}],true]},{\"file\":\"\\/usr\\/local\\/tunapanda\\/provision\\/modules\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Router.php\",\"line\":1470,\"function\":\"until\",\"class\":\"Illuminate\\\\Events\\\\Dispatcher\",\"type\":\"->\",\"args\":[\"router.filter: auth.statement\",[{},{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}}]]},{\"file\":\"\\/usr\\/local\\/tunapanda\\/provision\\/modules\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Router.php\",\"line\":1432,\"function\":\"callRouteFilter\",\"class\":\"Illuminate\\\\Routing\\\\Router\",\"type\":\"->\",\"args\":[\"auth.statement\",[],{},{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}}]},{\"file\":\"\\/usr\\/local\\/tunapanda\\/provision\\/modules\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Router.php\",\"line\":1319,\"function\":\"callAttachedBefores\",\"class\":\"Illuminate\\\\Routing\\\\Router\",\"type\":\"->\",\"args\":[{},{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}}]},{\"file\":\"\\/usr\\/local\\/tunapanda\\/provision\\/modules\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Router.php\",\"line\":1024,\"function\":\"callRouteBefore\",\"class\":\"Illuminate\\\\Routing\\\\Router\",\"type\":\"->\",\"args\":[{},{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}}]},{\"file\":\"\\/usr\\/local\\/tunapanda\\/provision\\/modules\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Routing\\/Router.php\",\"line\":996,\"function\":\"dispatchToRoute\",\"class\":\"Illuminate\\\\Routing\\\\Router\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}}]},{\"file\":\"\\/usr\\/local\\/tunapanda\\/provision\\/modules\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Foundation\\/Application.php\",\"line\":776,\"function\":\"dispatch\",\"class\":\"Illuminate\\\\Routing\\\\Router\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}}]},{\"file\":\"\\/usr\\/local\\/tunapanda\\/provision\\/modules\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Foundation\\/Application.php\",\"line\":746,\"function\":\"dispatch\",\"class\":\"Illuminate\\\\Foundation\\\\Application\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}}]},{\"file\":\"\\/usr\\/local\\/tunapanda\\/provision\\/modules\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Session\\/Middleware.php\",\"line\":72,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Application\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}},1,true]},{\"file\":\"\\/usr\\/local\\/tunapanda\\/provision\\/modules\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Cookie\\/Queue.php\",\"line\":47,\"function\":\"handle\",\"class\":\"Illuminate\\\\Session\\\\Middleware\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}},1,true]},{\"file\":\"\\/usr\\/local\\/tunapanda\\/provision\\/modules\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Cookie\\/Guard.php\",\"line\":51,\"function\":\"handle\",\"class\":\"Illuminate\\\\Cookie\\\\Queue\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}},1,true]},{\"file\":\"\\/usr\\/local\\/tunapanda\\/provision\\/modules\\/learninglocker\\/vendor\\/stack\\/builder\\/src\\/Stack\\/StackedHttpKernel.php\",\"line\":23,\"function\":\"handle\",\"class\":\"Illuminate\\\\Cookie\\\\Guard\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}},1,true]},{\"file\":\"\\/usr\\/local\\/tunapanda\\/provision\\/modules\\/learninglocker\\/vendor\\/laravel\\/framework\\/src\\/Illuminate\\/Foundation\\/Application.php\",\"line\":642,\"function\":\"handle\",\"class\":\"Stack\\\\StackedHttpKernel\",\"type\":\"->\",\"args\":[{\"attributes\":{},\"request\":{},\"query\":{},\"server\":{},\"files\":{},\"cookies\":{},\"headers\":{}}]},{\"file\":\"\\/usr\\/local\\/tunapanda\\/provision\\/modules\\/learninglocker\\/public\\/index.php\",\"line\":49,\"function\":\"run\",\"class\":\"Illuminate\\\\Foundation\\\\Application\",\"type\":\"->\",\"args\":[]}]}\r\n```"},"comment":{"url":"https://api.github.com/repos/tunapanda/swag/issues/comments/101609273","html_url":"https://github.com/tunapanda/swag/issues/8#issuecomment-101609273","issue_url":"https://api.github.com/repos/tunapanda/swag/issues/8","id":101609273,"user":{"login":"limikael","id":902911,"avatar_url":"https://avatars.githubusercontent.com/u/902911?v=3","gravatar_id":"","url":"https://api.github.com/users/limikael","html_url":"https://github.com/limikael","followers_url":"https://api.github.com/users/limikael/followers","following_url":"https://api.github.com/users/limikael/following{/other_user}","gists_url":"https://api.github.com/users/limikael/gists{/gist_id}","starred_url":"https://api.github.com/users/limikael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limikael/subscriptions","organizations_url":"https://api.github.com/users/limikael/orgs","repos_url":"https://api.github.com/users/limikael/repos","events_url":"https://api.github.com/users/limikael/events{/privacy}","received_events_url":"https://api.github.com/users/limikael/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T10:11:11Z","updated_at":"2015-05-13T10:11:11Z","body":"I did:\r\n\r\n````\r\ngit pull\r\nvagrant destroy\r\nrm -rf modules\r\ngit checkout usernamenumber/ll_automation\r\nvagrant up\r\n````\r\n\r\nWill try with a fresh clone..."}}