{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/18755","labels_url":"https://api.github.com/repos/owncloud/core/issues/18755/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/18755/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/18755/events","html_url":"https://github.com/owncloud/core/issues/18755","id":104426468,"number":18755,"title":"Permission problem: Setting Strong Directory Permissions","user":{"login":"mislav-eu","id":14050585,"avatar_url":"https://avatars.githubusercontent.com/u/14050585?v=3","gravatar_id":"","url":"https://api.github.com/users/mislav-eu","html_url":"https://github.com/mislav-eu","followers_url":"https://api.github.com/users/mislav-eu/followers","following_url":"https://api.github.com/users/mislav-eu/following{/other_user}","gists_url":"https://api.github.com/users/mislav-eu/gists{/gist_id}","starred_url":"https://api.github.com/users/mislav-eu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mislav-eu/subscriptions","organizations_url":"https://api.github.com/users/mislav-eu/orgs","repos_url":"https://api.github.com/users/mislav-eu/repos","events_url":"https://api.github.com/users/mislav-eu/events{/privacy}","received_events_url":"https://api.github.com/users/mislav-eu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/enhancement","name":"enhancement","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-02T08:26:54Z","updated_at":"2015-11-20T21:15:14Z","closed_at":"2015-09-02T09:09:10Z","body":"### Steps to reproduce\r\n1. Check - 4.3.5 Setting Strong Directory Permissions from Administrator manual\r\n2. Everything is fine there (on page 18), but need to add one additional command:\r\n\r\n$ chown -R ${htuser}:${htgroup} ${ocpath}/assets/ (chmod's should remain as mentioned, no extra rights needed, so folder assets should have 0750 and all files within that folder 0640)\r\n\r\nWhy? Check below.\r\n\r\n### Expected behaviour\r\nAfter enabling the following option in config.php - 'asset-pipeline.enabled' => true, owncloud should be able to write in assets folder.\r\n\r\n### Actual behaviour\r\nOwncloud is not able to write in assets folder, thus is producing the error mentioned below (owncloud.log). After changing owner on the folder, errors were gone on next cron job.\r\n\r\n### Server configuration\r\n**Operating system**: Debian 8\r\n\r\n**Web server:** Apache\r\n\r\n**Database:** MariaDB\r\n\r\n**PHP version:** 5.6.12\r\n\r\n**ownCloud version:** (see ownCloud admin page) 8.1.1\r\n\r\n**Updated from an older ownCloud or fresh install:** fresh install\r\n\r\n**List of activated apps:**\r\nEnabled:\r\n - activity: 2.0.1\r\n - files: 1.1.10\r\n - files_antivirus: 0.7.0.1\r\n - files_locking: \r\n - files_pdfviewer: 0.7\r\n - files_sharing: 0.6.2\r\n - files_texteditor: 0.4\r\n - files_trashbin: 0.6.3\r\n - files_versions: 1.0.6\r\n - files_videoviewer: 0.1.3\r\n - firstrunwizard: 1.1\r\n - gallery: 0.6.0\r\n - provisioning_api: 0.2\r\n - templateeditor: 0.1\r\n\r\n```\r\nIf you have access to your command line run e.g.:\r\nsudo -u www-data php occ app:list\r\nfrom within your ownCloud installation folder\r\n```\r\n\r\n**The content of config/config.php:**\r\n\r\n```\r\nIf you have access to your command line run e.g.:\r\nsudo -u www-data php occ config:list system --public\r\nfrom within your ownCloud installation folder\r\n\r\n(side note)\r\n$ sudo -u www-data php occ config:list system --public\r\n  [InvalidArgumentException]                                \r\n  There are no commands defined in the \"config\" namespace.  \r\nor \r\n\r\nInsert your config.php content here\r\n(Without the database password, passwordsalt and secret)\r\n```\r\n<?php\r\n$CONFIG = array (\r\n  'instanceid' => '',\r\n  'passwordsalt' => '',\r\n  'secret' => '',\r\n  'trusted_domains' => \r\n  array (\r\n    0 => 'XX',\r\n  ),\r\n  'datadirectory' => '/opt/owncloud/data',\r\n  'overwrite.cli.url' => 'XX',\r\n  'dbtype' => 'mysql',\r\n  'version' => '8.1.1.3',\r\n  'dbname' => 'XX',\r\n  'dbhost' => 'localhost',\r\n  'dbtableprefix' => 'oc_',\r\n  'dbuser' => 'XX',\r\n  'dbpassword' => 'XX',\r\n  'logtimezone' => 'UTC',\r\n  'installed' => true,\r\n  'loglevel' => 2,\r\n  'asset-pipeline.enabled' => true,\r\n  'memcache.local' => '\\\\OC\\\\Memcache\\\\APCu',\r\n  'defaultapp' => 'files',\r\n  'theme' => '',\r\n  'maintenance' => false,\r\n  'mail_smtpmode' => 'php',\r\n  'mail_smtpauth' => 1,\r\n  'mail_smtpsecure' => 'ssl',\r\n  'appstore.experimental.enabled' => false,\r\n  'singleuser' => false,\r\n  'knowledgebaseenabled' => false,\r\n  'check_for_working_htaccess' => false,\r\n  'log_rotate_size' => 104857600,\r\n);\r\n\r\n**Are you using external storage, if yes which one:** local/smb/sftp/... - no external storage\r\n\r\n**Are you using encryption:** no\r\n\r\n**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/... - no external user-backend\r\n\r\n### Client configuration\r\n**Browser:** Mozilla Firefox\r\n\r\n**Operating system:** Ubuntu 14.04 LTS\r\n\r\n### Logs\r\n#### ownCloud log (data/owncloud.log)\r\n```\r\nInsert your ownCloud log here\r\n```\r\nError \tassets \tFolder </var/www/owncloud/assets> could not be accessed. \t2015-09-02T07:43:25+00:00\r\nError \tPHP \ttouch(): Unable to create file /var/www/owncloud/assets/.oc because Permission denied at /var/www/owncloud/lib/private/template.php#265 \t2015-09-02T07:43:25+00:00 \r\nLet me know if you need anything else!\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/158525133","html_url":"https://github.com/owncloud/core/issues/18755#issuecomment-158525133","issue_url":"https://api.github.com/repos/owncloud/core/issues/18755","id":158525133,"user":{"login":"Xenopathic","id":2016878,"avatar_url":"https://avatars.githubusercontent.com/u/2016878?v=3","gravatar_id":"","url":"https://api.github.com/users/Xenopathic","html_url":"https://github.com/Xenopathic","followers_url":"https://api.github.com/users/Xenopathic/followers","following_url":"https://api.github.com/users/Xenopathic/following{/other_user}","gists_url":"https://api.github.com/users/Xenopathic/gists{/gist_id}","starred_url":"https://api.github.com/users/Xenopathic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xenopathic/subscriptions","organizations_url":"https://api.github.com/users/Xenopathic/orgs","repos_url":"https://api.github.com/users/Xenopathic/repos","events_url":"https://api.github.com/users/Xenopathic/events{/privacy}","received_events_url":"https://api.github.com/users/Xenopathic/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T21:15:14Z","updated_at":"2015-11-20T21:15:14Z","body":"@lexpierce You are using a script designed for production environments and complaining it breaks your debug environment?"}}