[5.0] Endless db-queries from oc_users
Expected behaviour
Only a couple of queries
Actual behaviour
A lot of queries (log files is >32MiB in less then five minutes) CPU time of MySQL is ~15% for >30sec
Steps to reproduce
- Do anything on OwnCloud
Server configuration
Operating system: Windows 2012 Server
Web server: Apache 2.4
Database: MySQL 5.6
PHP version: 5.4.13
ownCloud version: 5.0
Client configuration
Browser: Firefox, IE10
Operating system: Win7, Win2012
Logs
MySQL server log
15 Query SELECT COUNT(*) FROM `oc_users` WHERE LOWER(`uid`) = LOWER('testuser') LIMIT 3
15 Query SELECT * FROM `oc_users` WHERE LOWER(`uid`) = LOWER('testuser')
repeated a thousand times :/
ownCloud log (data/owncloud.log)
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363448283}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363541764}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363541767}
{"app":"PHP","message":"file_put_contents(upload\/owncloud-5144918f59a3f\/core.js-a196f0ec92412ef9d19f9c0fe6c378e1.gz): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#35","level":2,"time":1363541767}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363541800}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363541924}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363541924}
{"app":"PHP","message":"file_put_contents(upload\/owncloud-5144918f59a3f\/core.css-1310a86468f82ef5bec4e43d544ebd73.gz): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#35","level":2,"time":1363541924}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363541924}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363541927}
{"app":"PHP","message":"file_put_contents(upload\/owncloud-5144918f59a3f\/core.js-a196f0ec92412ef9d19f9c0fe6c378e1.gz): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#35","level":2,"time":1363541927}
{"app":"PHP","message":"opendir(d:\/owncloud\/testuser\\cache,d:\/owncloud\/testuser\\cache): Das System kann den angegebenen Pfad nicht finden. (code: 3) at C:\\inetpuba\\wwwroot\\owncloud\\lib\\files\\storage\\mappedlocal.php#47","level":2,"time":1363541959}
{"app":"PHP","message":"opendir(d:\/owncloud\/testuser\\cache): failed to open dir: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\files\\storage\\mappedlocal.php#47","level":2,"time":1363541959}
{"app":"PHP","message":"readdir() expects parameter 1 to be resource, boolean given at C:\\inetpuba\\wwwroot\\owncloud\\lib\\files\\storage\\mappedlocal.php#48","level":2,"time":1363541959}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363541960}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363541960}
{"app":"PHP","message":"file_put_contents(upload\/owncloud-5144918f59a3f\/_owncloud_apps_files_css_files.css-6e786d2a660d871c03d0e8ef955dc49f.gz): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#35","level":2,"time":1363541960}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363541960}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363541963}
{"app":"PHP","message":"file_put_contents(upload\/owncloud-5144918f59a3f\/core.js-8c11bb88ee5f1fbacda23fc4d5c1d2b1.gz): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#35","level":2,"time":1363541963}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363542144}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363542144}
{"app":"PHP","message":"file_put_contents(upload\/owncloud-5144918f59a3f\/core.css-1310a86468f82ef5bec4e43d544ebd73.gz): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#35","level":2,"time":1363542144}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363542144}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363542146}
{"app":"PHP","message":"file_put_contents(upload\/owncloud-5144918f59a3f\/core.js-a196f0ec92412ef9d19f9c0fe6c378e1.gz): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#35","level":2,"time":1363542146}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363542167}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363542172}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363542172}
{"app":"PHP","message":"file_put_contents(upload\/owncloud-5144918f59a3f\/_owncloud_apps_files_css_files.css-6e786d2a660d871c03d0e8ef955dc49f.gz): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#35","level":2,"time":1363542172}
{"app":"PHP","message":"filemtime(): stat failed for d:\/owncloud\/testuser\/files\\2012-03-23-headhair-l-oreal-fix-max-gel-tecni-art-pdf at C:\\inetpuba\\wwwroot\\owncloud\\lib\\files\\storage\\mappedlocal.php#113","level":2,"time":1363542178}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363542483}
{"app":"PHP","message":"filemtime(): stat failed for d:\/owncloud\/testuser\/files\\2012-03-23-headhair-l-oreal-fix-max-gel-tecni-art-pdf at C:\\inetpuba\\wwwroot\\owncloud\\lib\\files\\storage\\mappedlocal.php#113","level":2,"time":1363542486}
{"app":"PHP","message":"Allowed memory size of 134217728 bytes exhausted (tried to allocate 65488 bytes) at C:\\inetpuba\\wwwroot\\owncloud\\lib\\db.php#367","level":4,"time":1363542594}
{"app":"core","message":"unable to rename, file is not writable : files\/2012-03-23 Headhair L_Oreal Fix Max Gel tecni art (2).pdf","level":3,"time":1363543340}
{"app":"PHP","message":"filemtime(): stat failed for d:\/owncloud\/testuser\/files\\2012-03-23-headhair-l-oreal-fix-max-gel-tecni-art-pdf at C:\\inetpuba\\wwwroot\\owncloud\\lib\\files\\storage\\mappedlocal.php#113","level":2,"time":1363543353}
{"app":"PHP","message":"Allowed memory size of 134217728 bytes exhausted (tried to allocate 65488 bytes) at C:\\inetpuba\\wwwroot\\owncloud\\lib\\db.php#367","level":4,"time":1363543479}
{"app":"PHP","message":"fopen(d:\/owncloud\/testuser\/files\\2012-03-23-headhair-l-oreal-fix-max-gel-tecni-art-pdf): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\files\\storage\\mappedlocal.php#173","level":2,"time":1363544231}
PHP error log
[17-Mar-2013 17:46:42 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65488 bytes) in C:\inetpuba\wwwroot\owncloud\lib\db.php on line 698
[17-Mar-2013 17:49:54 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65488 bytes) in C:\inetpuba\wwwroot\owncloud\lib\db.php on line 367
[17-Mar-2013 18:01:57 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65488 bytes) in C:\inetpuba\wwwroot\owncloud\lib\db.php on line 698
[17-Mar-2013 18:04:39 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65488 bytes) in C:\inetpuba\wwwroot\owncloud\lib\db.php on line 367
@DeepDiver1975
Please use stable5 branch in windows server environment. Thx
I am - the problem occurs even with the newest stable5 branch...
Perhaps this may help: I dropped the owncloud-schema, reset owncloud to installed=false and created everything from scratch. Behaviour is the same though.
Results in owncloud.log (since installation):
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596513}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596513}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596517}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596518}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596530}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596531}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596563}
{"app":"PHP","message":"mysql_close(): 47 is not a valid MySQL-Link resource at C:\\inetpuba\\wwwroot\\owncloud\\lib\\setup.php#237","level":2,"time":1363596564}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596566}
{"app":"PHP","message":"Only variables should be passed by reference at C:\\inetpuba\\wwwroot\\owncloud\\core\\templates\\layout.user.php#4","level":2,"time":1363596566}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596566}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596566}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363596566}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596566}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363596566}
{"app":"PHP","message":"file_put_contents(upload\/owncloud-5144918f59a3f\/core.css-49bb0e6fb3331248b10b5cf6fd85a2bb.gz): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#35","level":2,"time":1363596566}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363596566}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363596566}
{"app":"PHP","message":"file_put_contents(upload\/owncloud-5144918f59a3f\/_owncloud_apps_files_css_files.css-cfd86b89ed4d1e8595960193f50acd8f.gz): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#35","level":2,"time":1363596566}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596566}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363596567}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363596570}
{"app":"PHP","message":"file_put_contents(upload\/owncloud-5144918f59a3f\/core.js-6984ece512cb590aa4c619795244d70d.gz): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#35","level":2,"time":1363596570}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596570}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363596570}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596570}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596571}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596571}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596571}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596571}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596571}
{"app":"PHP","message":"Only variables should be passed by reference at C:\\inetpuba\\wwwroot\\owncloud\\core\\templates\\layout.user.php#4","level":2,"time":1363596572}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596572}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596572}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596572}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596572}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596572}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596573}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596573}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596573}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596573}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596573}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596573}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596573}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596574}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596576}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596582}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596582}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596582}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596582}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596590}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596590}
{"app":"PHP","message":"Only variables should be passed by reference at C:\\inetpuba\\wwwroot\\owncloud\\core\\templates\\layout.user.php#4","level":2,"time":1363596590}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596591}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596591}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363596591}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363596591}
{"app":"PHP","message":"file_put_contents(upload\/owncloud-5144918f59a3f\/_owncloud_apps_files_css_files.css-cfd86b89ed4d1e8595960193f50acd8f.gz): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#35","level":2,"time":1363596591}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596591}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596591}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363596591}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363596591}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363596591}
{"app":"PHP","message":"file_put_contents(upload\/owncloud-5144918f59a3f\/core.css-49bb0e6fb3331248b10b5cf6fd85a2bb.gz): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#35","level":2,"time":1363596591}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363596594}
{"app":"PHP","message":"file_put_contents(upload\/owncloud-5144918f59a3f\/core.js-733ac684030d52000af3739097416437.gz): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#35","level":2,"time":1363596594}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596594}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596595}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596595}
It seems to me - IMHO - that there ist s.th. wrong with the determination of the root-path in windows.
Here we go, part ii:
On uploading this is logged. Upload finally fails w/o error:
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596595}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596595}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596595}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596629}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596629}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596895}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596928}
{"app":"PHP","message":"filemtime(): stat failed for d:\/owncloud\/var\/files\/dcpromo-infos-txt at C:\\inetpuba\\wwwroot\\owncloud\\lib\\files\\storage\\local.php#84","level":2,"time":1363596928}
{"app":"PHP","message":"file_get_contents(d:\/owncloud\/var\/files\/dcpromo-infos-txt): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\files\\storage\\local.php#102","level":2,"time":1363596928}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596928}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596931}
{"app":"PHP","message":"Only variables should be passed by reference at C:\\inetpuba\\wwwroot\\owncloud\\core\\templates\\layout.user.php#4","level":2,"time":1363596931}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596931}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596931}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596931}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596931}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363596931}
{"app":"PHP","message":"mkdir(): No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#14","level":2,"time":1363596934}
{"app":"PHP","message":"file_put_contents(upload\/owncloud-5144918f59a3f\/core.js-733ac684030d52000af3739097416437.gz): failed to open stream: No such file or directory at C:\\inetpuba\\wwwroot\\owncloud\\lib\\cache\\fileglobal.php#35","level":2,"time":1363596934}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596935}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596935}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596936}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596936}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596936}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596939}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596939}
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596939}
Hi,
Maybe the label "windows server" is not correct. I have the same issue with my server under Ubuntu 12.04. The only way to stop that hell fall is to restart the Web Server or the DB Server.
Here is my infinite repetition of query :
100 Query SELECT * FROM `oc_users` WHERE LOWER(`uid`) = LOWER('group-board')
100 Query SELECT COUNT(*) FROM `oc_users` WHERE LOWER(`uid`) = LOWER('group-board') LIMIT 3
100 Query SELECT `id` FROM `oc_mimetypes` WHERE `mimetype` = 'httpd/unix-directory'
100 Query SELECT `fileid`, `name`, `mimetype` FROM `oc_filecache` WHERE `parent` IN ('12')
100 Query SELECT `fileid`, `name`, `mimetype` FROM `oc_filecache` WHERE `parent` IN ('15')
100 Query SELECT `uid` FROM `oc_group_user` WHERE `gid` = 'group-board' AND `uid` LIKE '%'
100 Query SELECT `configvalue` FROM `oc_preferences` WHERE `userid` = 'user2' AND `appid` = 'files_sharing' AND `configkey` = 'etag'
100 Query UPDATE `oc_preferences` SET `configvalue` = '514849be3ae3b' WHERE `userid` = 'user2' AND `appid` = 'files_sharing' AND `configkey` = 'etag'
100 Query SELECT `configvalue` FROM `oc_appconfig` WHERE `appid` = 'core' AND `configkey` = 'shareapi_enabled'
100 Query SELECT `oc_share`.`id`, `item_type`, `oc_share`.`parent`, `share_type`, `share_with`, `file_source`, `path`, `permissions`, `stime`, `expiration`, `token`, `storage` FROM `oc_share` INNER JOIN `oc_filecache` ON `file_source` = `oc_filecache`.`fileid` AND `uid_owner` = 'user2' AND `share_type` != '2' AND ( `file_source` = '15' OR `item_type` IN ('folder'))
100 Query SELECT `configvalue` FROM `oc_preferences` WHERE `userid` = 'user3' AND `appid` = 'files_sharing' AND `configkey` = 'etag'
100 Query UPDATE `oc_preferences` SET `configvalue` = '514849be46df3' WHERE `userid` = 'user3' AND `appid` = 'files_sharing' AND `configkey` = 'etag'
100 Query SELECT `configvalue` FROM `oc_appconfig` WHERE `appid` = 'core' AND `configkey` = 'shareapi_enabled'
100 Query SELECT `oc_share`.`id`, `item_type`, `oc_share`.`parent`, `share_type`, `share_with`, `file_source`, `path`, `permissions`, `stime`, `expiration`, `token`, `storage` FROM `oc_share` INNER JOIN `oc_filecache` ON `file_source` = `oc_filecache`.`fileid` AND `uid_owner` = 'user3' AND `share_type` != '2' AND ( `file_source` = '15' OR `item_type` IN ('folder'))
100 Query SELECT `configvalue` FROM `oc_preferences` WHERE `userid` = 'user1' AND `appid` = 'files_sharing' AND `configkey` = 'etag'
100 Query UPDATE `oc_preferences` SET `configvalue` = '514849be61594' WHERE `userid` = 'user1' AND `appid` = 'files_sharing' AND `configkey` = 'etag'
100 Query SELECT `configvalue` FROM `oc_appconfig` WHERE `appid` = 'core' AND `configkey` = 'shareapi_enabled'
100 Query SELECT `oc_share`.`id`, `item_type`, `oc_share`.`parent`, `share_type`, `share_with`, `file_source`, `path`, `permissions`, `stime`, `expiration`, `token`, `storage` FROM `oc_share` INNER JOIN `oc_filecache` ON `file_source` = `oc_filecache`.`fileid` AND `uid_owner` = 'user1' AND `share_type` != '2' AND ( `file_source` = '15' OR `item_type` IN ('folder'))
100 Query SELECT `id` FROM `oc_storages` WHERE `numeric_id` = '2'
{"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596935} {"app":"core","message":"setting locale to en_US.UTF-8 failed. Support is probably not installed on your system","level":3,"time":1363596935}
There is something really broken on your server - this message is a pre OC5 message. Please make sure your installation is proper setup.
{"app":"PHP","message":"file_put_contents(upload/owncloud-5144918f59a3f/_owncloud_ap .....
This actually shows that the installation cannot proper detect your temp folder. Can you please double check your php settings if possible? THX
@jcdevaux I think your issue is a different one - please open a new issue - THX
Hi @DeepDiver1975 !
I changed the upload path to
upload_tmp_dir = "C:/Program Files (x86)/PHP/upload"
which seems to fix the lines in phplog like
{"app":"PHP","message":"file_put_contents(upload\/owncloud-5144918f59a3f\/_owncloud_ap
Afterwards I dropped owncloud's mysql schema, recreated it, set installed=false and set owncloud up again with the current core/apps/3rdparty-stable5-branch. After set up: owncloud-log:
{"app":"PHP","message":"mysql_close(): 47 is not a valid MySQL-Link resource at C:\\inetpuba\\wwwroot\\owncloud\\lib\\setup.php#273","level":2,"time":1363704503}
After uploading (better: ON uploading) cpu of apache AND mysql raises to ~17%, doing the same as mentioned above. Ages later php-log:
[19-Mar-2013 14:40:30 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 65488 bytes) in C:\inetpuba\wwwroot\owncloud\lib\db.php on line 700
Btw: 536870912 bytes = 512 MiB!!!
The file is created successfully, but it never stops showing the uploading behaviour.
I believe I just ran into this issue also...fresh 5.0 install on win2k8. Had to restart mysql for it to stop..
I have a folder with ~2GB of file and many sub-folders shared with a group.
Clicking on one of the nested sub-folders to share it causes this to happen every time.
I can provide more info/logs/etc. just let me know what to do.. removing the group share from the top folder prevents the endless db queries.
@DeepDiver1975 Just confirmed this still occurs with stable5 branch as well.
The db queries are as follows, with the groupmember being one of the members of the group the top folder is shared with and cycled through over and over, the configvalue changes each time. The mysql health monitor shows ~500 queries using ~1MB of traffic steadily
UPDATE'oc_preferences' SET'configvalue' = '5148c52acdbdd' WHERE 'userid' = 'groupmember' AND 'appid' = 'files_sharing' AND 'configkey' = 'etag'
@MTGap @icewind1991 @blizzz you guys know more on this I asume - THX
I believe this is a duplicate of #2559 and already fixed with #2474
If you have merged #2474 already to core-stable5, then: No, it's not fixed.