{"action":"opened","issue":{"url":"https://api.github.com/repos/edwardspec/mediawiki-aws-s3/issues/13","repository_url":"https://api.github.com/repos/edwardspec/mediawiki-aws-s3","labels_url":"https://api.github.com/repos/edwardspec/mediawiki-aws-s3/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/edwardspec/mediawiki-aws-s3/issues/13/comments","events_url":"https://api.github.com/repos/edwardspec/mediawiki-aws-s3/issues/13/events","html_url":"https://github.com/edwardspec/mediawiki-aws-s3/issues/13","id":359708807,"node_id":"MDU6SXNzdWUzNTk3MDg4MDc=","number":13,"title":"Error on fresh install","user":{"login":"iantsmall","id":4554003,"node_id":"MDQ6VXNlcjQ1NTQwMDM=","avatar_url":"https://avatars0.githubusercontent.com/u/4554003?v=4","gravatar_id":"","url":"https://api.github.com/users/iantsmall","html_url":"https://github.com/iantsmall","followers_url":"https://api.github.com/users/iantsmall/followers","following_url":"https://api.github.com/users/iantsmall/following{/other_user}","gists_url":"https://api.github.com/users/iantsmall/gists{/gist_id}","starred_url":"https://api.github.com/users/iantsmall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iantsmall/subscriptions","organizations_url":"https://api.github.com/users/iantsmall/orgs","repos_url":"https://api.github.com/users/iantsmall/repos","events_url":"https://api.github.com/users/iantsmall/events{/privacy}","received_events_url":"https://api.github.com/users/iantsmall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-13T01:26:40Z","updated_at":"2018-09-13T01:26:40Z","closed_at":null,"author_association":"NONE","body":"We have a fresh mediawiki install that we've setup with docker. \r\nWhen s3 uploading is setup when uploading an image we see the following error: \r\n\r\n> Could not create directory \"mwstore://AmazonS3/local-public\".\r\n\r\nWe're not even sure how to debug past this point, as there appears to be nothing indicating the error in the debug log.\r\n\r\nEven a clearer error message would be more helpful. \r\n(Note, install was run today)\r\n\r\nWe are installing with the following code:\r\n\r\n``` dockerfile\r\nRUN cd $APP_DIR/extensions && \\\r\n    php -r \"readfile('https://getcomposer.org/installer');\" | php && \\\r\n    git clone --depth 1 https://github.com/edwardspec/mediawiki-aws-s3-stable-fork.git AWS && \\\r\n    cd $APP_DIR/extensions/AWS && \\\r\n    git submodule update --init && \\\r\n    php $APP_DIR/extensions/composer.phar install && \\\r\n    cd $APP_DIR/extensions\r\n```\r\n\r\nOur configuration looks like this:\r\n``` php\r\n$wgAWSRegion = 'us-east-1'; # Northern Virginia\r\n$wgAWSBucketPrefix = \"wiki.domain.name-images\";\r\n```\r\n\r\nWe've created buckets :\r\n\r\n- arn:aws:s3:::wiki.domain.name-images\r\n- arn:aws:s3:::wiki.domain.name-images-thumb\r\n- arn:aws:s3:::wiki.domain.name-images-deleted\r\n- arn:aws:s3:::wiki.domain.name-images-temp\r\n\r\n\r\nour IAM policy attached to the instance is:\r\n``` JSON\r\n{\r\n    \"Version\": \"2012-10-17\",\r\n    \"Statement\": [\r\n        {\r\n            \"Sid\": \"VisualEditor0\",\r\n            \"Effect\": \"Allow\",\r\n            \"Action\": \"s3:Get*\",\r\n            \"Resource\": [\r\n                \"arn:aws:s3:::wiki.domain.name-images/*\",\r\n                \"arn:aws:s3:::wiki.domain.name-images-thumb/*\",\r\n                \"arn:aws:s3::wiki.domain.name-images-temp/*\",\r\n                \"arn:aws:s3:::wiki.domain.name-images-deleted/*\"\r\n            ]\r\n        },\r\n        {\r\n            \"Sid\": \"VisualEditor1\",\r\n            \"Effect\": \"Allow\",\r\n            \"Action\": \"s3:*\",\r\n            \"Resource\": [\r\n                \"arn:aws:s3:::wiki.domain.name-images/*\",\r\n                \"arn:aws:s3:::wiki.domain.name-images-thumb/*\",\r\n                \"arn:aws:s3::wiki.domain.name-images-temp/*\",\r\n                \"arn:aws:s3:::wiki.domain.name-images-deleted/*\"\r\n            ]\r\n        },\r\n        {\r\n            \"Sid\": \"VisualEditor2\",\r\n            \"Effect\": \"Allow\",\r\n            \"Action\": \"s3:List*\",\r\n            \"Resource\": [\r\n                \"arn:aws:s3:::wiki.domain.name-images/*\",\r\n                \"arn:aws:s3:::wiki.domain.name-images-thumb/*\",\r\n                \"arn:aws:s3::wiki.domain.name-images-temp/*\",\r\n                \"arn:aws:s3:::wiki.domain.name-images-deleted/*\"\r\n            ]\r\n        }\r\n    ]\r\n}\r\n```"}}
{"actor":{"display_login":"iantsmall"}}