{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/13912","labels_url":"https://api.github.com/repos/owncloud/core/issues/13912/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/13912/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/13912/events","html_url":"https://github.com/owncloud/core/issues/13912","id":56597454,"number":13912,"title":"flock() expects parameter 1 to be resource","user":{"login":"Free16t","id":6240972,"avatar_url":"https://avatars.githubusercontent.com/u/6240972?v=3","gravatar_id":"","url":"https://api.github.com/users/Free16t","html_url":"https://github.com/Free16t","followers_url":"https://api.github.com/users/Free16t/followers","following_url":"https://api.github.com/users/Free16t/following{/other_user}","gists_url":"https://api.github.com/users/Free16t/gists{/gist_id}","starred_url":"https://api.github.com/users/Free16t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Free16t/subscriptions","organizations_url":"https://api.github.com/users/Free16t/orgs","repos_url":"https://api.github.com/users/Free16t/repos","events_url":"https://api.github.com/users/Free16t/events{/privacy}","received_events_url":"https://api.github.com/users/Free16t/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-04T22:26:17Z","updated_at":"2015-02-09T14:31:02Z","closed_at":null,"body":"Impossible to have the login page (and to make owncloud working)\r\n\r\n# Steps to reproduce\r\n\r\nDon't really know\r\n\r\n# Expected behaviour \r\nNo error and the login page\r\n\r\n# Actual behaviour\r\n\r\nI change from Apache to Nginx and I upgrade to the 8.0.0.5 (RC).\r\nWhen I go to xxx/owncloud, I have a blank page and those errors in the nginx-errors.log : \r\n\r\n`[error] 74886#0: *6 FastCGI sent in stderr: \"PHP message: PHP Warning:  flock() expects parameter 1 to be resource, boolean given in /home/www/owncloud/lib/private/config.php on line 178\r\nPHP message: PHP Fatal error:  Call to a member function getValue() on a non-object in /home/wwwowncloud/lib/private/legacy/config.php on line 46\" while reading response header from upstream, client: XXXXXXXXX, server: XXXXXXXXX, request: \"GET /owncloud/status.php HTTP/1.1\", upstream: \"fastcgi://127.0.0.1:9000\", host: \"XXXXXXX\" `\r\n\r\nHere is my configuration \r\n><?php\r\n$CONFIG = array (\r\n  'instanceid' => 'XXXXXX',\r\n  'passwordsalt' => 'XXXXXX',\r\n  'secret' => 'XXXXXX',\r\n  'trusted_domains' =>\r\n  array (\r\n    0 => 'XXXXXXX',\r\n  ),\r\n  'datadirectory' => '/home/www/owncloud/data',\r\n  'overwritewebroot' => '/owncloud',\r\n  'dbtype' => 'mysql',\r\n  'version' => '8.0.0.5',\r\n  'dbname' => 'owncloud',\r\n  'dbhost' => 'localhost',\r\n  'dbtableprefix' => 'oc_',\r\n  'dbuser' => 'oc_XXXX',\r\n  'dbpassword' => '',\r\n  'installed' => true,\r\n  'loglevel' => '3',\r\n  'maintenance' => false,\r\n  'theme' => '',\r\n>);\r\n\r\nAnd my Nginx config (the .conf is in the vhosts folder as Owncloud is at the point <ip>/owncloud. I have a fully operationnal wordpress at <ip>.\r\n\r\n>upstream php-handler {\r\n  server 127.0.0.1:9000;\r\n  #server unix:/var/run/php5-fpm.sock;\r\n  }\r\n\r\n  >root /home/www/owncloud/;\r\n  client_max_body_size 10G;\r\n  fastcgi_buffers 64 4K;\r\n\r\n  >rewrite ^/caldav(.*)$ /remote.php/caldav$1 redirect;\r\n  rewrite ^/carddav(.*)$ /remote.php/carddav$1 redirect;\r\n  rewrite ^/webdav(.*)$ /remote.php/webdav$1 redirect;\r\n\r\n  >index index.php;\r\n  error_page 403 /core/templates/403.php;\r\n  error_page 404 /core/templates/404.php;\r\n\r\n  >location = /robots.txt {\r\n    allow all;\r\n    log_not_found off;\r\n    access_log off;\r\n    }\r\n\r\n  >location ~ ^/(?:\\.htaccess|data|config|db_structure\\.xml|README){\r\n    deny all;\r\n    }\r\n\r\n  >location / {\r\n   # The following 2 rules are only needed with webfinger\r\n   rewrite ^/.well-known/host-meta /public.php?service=host-meta last;\r\n   rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;\r\n\r\n   >rewrite ^/.well-known/carddav /remote.php/carddav/ redirect;\r\n   rewrite ^/.well-known/caldav /remote.php/caldav/ redirect;\r\n   rewrite ^(/core/doc/[^\\/]+/)$ $1/index.html;\r\n\r\n>   try_files $uri $uri/ /index.php;\r\n   }\r\n\r\n  > location ~ \\.php(?:$|/) {\r\n   fastcgi_split_path_info ^(.+\\.php)(/.+)$;\r\n   include fastcgi_params;\r\n   fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n   fastcgi_param PATH_INFO $fastcgi_path_info;\r\n   fastcgi_param HTTPS on;\r\n   }\r\n\r\n>   # Optional: set long EXPIRES header on static assets\r\n   location ~* \\.(?:jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ {\r\n       expires 30d;\r\n       # Optional: Don't log access to assets\r\n         access_log off;\r\n>   }\r\n\r\n>  }\r\n>\r\n\r\n## Server configuration\r\n**Operating system**: FreeBSD 10.1\r\n**Database**: Mysql\r\n**PHP**: 5.5.19\r\n**Owncloud version**: 8.0.0.5 RC (updated but not by the updater)\r\n**Are you using external storage, if yes which one**: No\r\n**Are you using encryption**: Before I was using but I faced issues with the encryption so I stop it"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/73517144","html_url":"https://github.com/owncloud/core/issues/13912#issuecomment-73517144","issue_url":"https://api.github.com/repos/owncloud/core/issues/13912","id":73517144,"user":{"login":"PeterPablo","id":4340267,"avatar_url":"https://avatars.githubusercontent.com/u/4340267?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterPablo","html_url":"https://github.com/PeterPablo","followers_url":"https://api.github.com/users/PeterPablo/followers","following_url":"https://api.github.com/users/PeterPablo/following{/other_user}","gists_url":"https://api.github.com/users/PeterPablo/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterPablo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterPablo/subscriptions","organizations_url":"https://api.github.com/users/PeterPablo/orgs","repos_url":"https://api.github.com/users/PeterPablo/repos","events_url":"https://api.github.com/users/PeterPablo/events{/privacy}","received_events_url":"https://api.github.com/users/PeterPablo/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T14:31:02Z","updated_at":"2015-02-09T14:31:02Z","body":"When I delete the config.php, the newly generated one looks like this:\r\n`-rw-r-----  1 www-data www-data   61 Feb  9 15:28 config.php`\r\n(the same)\r\n\r\nManually deleting a key from the mysql database (#13980) at least makes a \"your instance is currently being upgraded\" appear, but unfortunately the system is idle and doesn't proceed (checked by htop and iotop).\r\nI am uncertain which issue is dominating in my case. Hopefully I don't clutter/mix the two issues."}}