{"action":"created","issue":{"url":"https://api.github.com/repos/directus/directus/issues/2275","repository_url":"https://api.github.com/repos/directus/directus","labels_url":"https://api.github.com/repos/directus/directus/issues/2275/labels{/name}","comments_url":"https://api.github.com/repos/directus/directus/issues/2275/comments","events_url":"https://api.github.com/repos/directus/directus/issues/2275/events","html_url":"https://github.com/directus/directus/issues/2275","id":395244781,"node_id":"MDU6SXNzdWUzOTUyNDQ3ODE=","number":2275,"title":"docker-compose up  installation fails","user":{"login":"tvld","id":986182,"node_id":"MDQ6VXNlcjk4NjE4Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/986182?v=4","gravatar_id":"","url":"https://api.github.com/users/tvld","html_url":"https://github.com/tvld","followers_url":"https://api.github.com/users/tvld/followers","following_url":"https://api.github.com/users/tvld/following{/other_user}","gists_url":"https://api.github.com/users/tvld/gists{/gist_id}","starred_url":"https://api.github.com/users/tvld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvld/subscriptions","organizations_url":"https://api.github.com/users/tvld/orgs","repos_url":"https://api.github.com/users/tvld/repos","events_url":"https://api.github.com/users/tvld/events{/privacy}","received_events_url":"https://api.github.com/users/tvld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-01-02T13:15:23Z","updated_at":"2019-01-03T12:09:32Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n1. Do not delete this template or the issue will be closed\r\n2. Ensure you're using the latest version of Directus\r\n3. Post to the correct repo:\r\n    App:  https://github.com/directus/app/issues\r\n    API:  https://github.com/directus/api/issues (YOU ARE HERE)\r\n    Docs: https://github.com/directus/docs/issues\r\n-->\r\nFirst time heard of Directus thinking to use it for our new app development department... though to fire up Docker (as we only use Docker for all we do). \r\n\r\n# First Attempt Bug Report\r\n## Steps to Reproduce - First Attempt, with **api**\r\n\r\n1. Run ``git clone https://github.com/directus/api.git``\r\n2. Go to api folder ``cd api``\r\n3. Run ``docker-compose up``\r\n4. Containers seem to run and ``api-php-apache`` log works ...but...\r\n5. Visiting ``http://localhost:8080/`` gives:\r\n\r\n## Expected Behavior\r\nI expect to see the Directus installer?\r\n\r\n## Actual Behavior\r\n```\r\nWarning: require(/var/www/html/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/src/web.php on line 7\r\n\r\nFatal error: require(): Failed opening required '/var/www/html/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/html/src/web.php on line 7\r\n```\r\n# Second Attempt with **app**\r\n\r\nThis works, on ``http://localhost``, but app connects to the demo cloud database.. I assume I can change config parameters to connect to the api as above, but I decided to try suite first..\r\n\r\n# Third Attempt  with **suite**\r\nSame procedure as above with __api__ \r\n\r\n## Visiting http://localhost:8080\r\nbut now when I visit ``http://localhost`` I get an unfriendly and insecure, as too much info for hackers, error message:\r\n```\r\n\r\nFatal error: Uncaught UnexpectedValueException: The stream or file \"/var/www/html/logs/error.2019-01-02.log\" could not be opened: failed to open stream: Permission denied in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:107 Stack trace: #0 /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\\Handler\\StreamHandler->write(Array) #1 /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\\Handler\\AbstractProcessingHandler->handle(Array) #2 /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php(707): Monolog\\Logger->addRecord(400, 'Directus\\\\Except...', Array) #3 /var/www/html/src/core/Directus/Application/CoreServicesProvider.php(204): Monolog\\Logger->error('Directus\\\\Except...') #4 [internal function]: Directus\\Application\\CoreServicesProvider->Directus\\Application\\{closure}(Object(Directus\\Exception\\NotInstalledException)) #5 /var/www/html/src/core/Directus/Hook/Emitter.php(291): call_user_func_array(Object(Closure), Array) #6 in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 107\r\n```\r\n## Visiting http://localhost:8080/admin\r\nI get login prompt, but ``admins@example.com`` and ``password`` does not work and the login window shows in small red print: `` Unknown error. Try again later. ``\r\n### Expected\r\nI would have assumed to be able to set up first admin user... \r\n\r\n## Note\r\n[Installation manual](https://docs.directus.io/advanced/other-install-methods.html#manual) for Directus on Docker is missing, so I have no clue if I even got the right repository.... \r\n\r\n## Technical Details\r\n\r\n- Device: Dell XPS15-9560\r\n- OS: Ubuntu 18.04\r\n- Install Method: Docker\r\n\r\n### Some thoughts:\r\nFor first time user and experienced professional, two hours struggle to just fire up a simple docker container and no progress at all, is not encouraging )).... It's time for a coffee )))"},"comment":{"url":"https://api.github.com/repos/directus/directus/issues/comments/451126080","html_url":"https://github.com/directus/directus/issues/2275#issuecomment-451126080","issue_url":"https://api.github.com/repos/directus/directus/issues/2275","id":451126080,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTEyNjA4MA==","user":{"login":"shealavington","id":16869302,"node_id":"MDQ6VXNlcjE2ODY5MzAy","avatar_url":"https://avatars0.githubusercontent.com/u/16869302?v=4","gravatar_id":"","url":"https://api.github.com/users/shealavington","html_url":"https://github.com/shealavington","followers_url":"https://api.github.com/users/shealavington/followers","following_url":"https://api.github.com/users/shealavington/following{/other_user}","gists_url":"https://api.github.com/users/shealavington/gists{/gist_id}","starred_url":"https://api.github.com/users/shealavington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shealavington/subscriptions","organizations_url":"https://api.github.com/users/shealavington/orgs","repos_url":"https://api.github.com/users/shealavington/repos","events_url":"https://api.github.com/users/shealavington/events{/privacy}","received_events_url":"https://api.github.com/users/shealavington/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T12:09:32Z","updated_at":"2019-01-03T12:09:32Z","author_association":"CONTRIBUTOR","body":"I see, so the latest versions would've been fine to say 😋 \r\n\r\nI'm afraid I don't think there's anything I can do to help, sorry.\r\n\r\nThe best advice I can offer is to follow the manual install process to get your database working so you can link your API to it.\r\n\r\nSorry I can't be much more help."}}
{"actor":{"display_login":"shealavington"}}