Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.0.10] Webserver returns empty body after creating directory #4855

Closed
Tie-fighter opened this issue Sep 14, 2013 · 5 comments
Closed

[5.0.10] Webserver returns empty body after creating directory #4855

Tie-fighter opened this issue Sep 14, 2013 · 5 comments

Comments

@Tie-fighter
Copy link

Expected behaviour

The default owncloud interface should appear

Actual behaviour

Empty window

Steps to reproduce

  1. I created a directory called "Projekte" via interface or mkdir
  2. Webserver returns the following html for index.php (brackets replaced because github): (html) (head) (/head) (body style="zoom: 1;") (/body) (/html)
  3. "rm Projekte -R"
  4. Everything works again

Server configuration

Operating system:
Linux owncloud 3.2.0-4-686-pae #1 SMP Debian 3.2.41-2 i686 GNU/Linux

Web server:
nginx: Version: 1.2.1-2.2+wheezy1

Database:
postgresql: Version: 9.1+134wheezy3

PHP version:
php5-common: Version: 5.4.4-14+deb7u4
php5-pgsql: Version: 5.4.4-14+deb7u4
php5-fpm: Version: 5.4.4-14+deb7u4

ownCloud version:
5.0.10

Logs

Web server error log

[redacted] - - [14/Sep/2013:17:39:48 +0200] GET https://[redacted]/index.php HTTP/1.1 200 31 "https://[redacted]" [redacted]
[redacted] - - [14/Sep/2013:17:39:48 +0200] GET https://[redacted]/core/templates/404.php HTTP/1.1 200 763 "-" [redacted]

ownCloud log (data/owncloud.log)

{"app":"core","message":"include path for class "OC_External" starts with "apps/"","level":0,"time":"2013-09-14T15:40:24+00:00"}
{"app":"core","message":"include path for class "OC_External" starts with "apps/"","level":0,"time":"2013-09-14T15:40:24+00:00"}
{"app":"core","message":"include path for class "OC_External" starts with "apps/"","level":0,"time":"2013-09-14T15:40:24+00:00"}
{"app":"core","message":"include path for class "OC_External" starts with "apps/"","level":0,"time":"2013-09-14T15:40:24+00:00"}
{"app":"core","message":"include path for class "OC_External" starts with "apps/"","level":0,"time":"2013-09-14T15:40:24+00:00"}
{"app":"PHP","message":"json_encode(): Invalid UTF-8 sequence in argument at /var/www/[redacted]/lib/log/owncloud.php#58","level":2,"time":"2013-09-14T15:40:25+00:00"}
{"app":"core","message":null,"level":2,"time":"2013-09-14T15:40:25+00:00"}
{"app":"PHP","message":"json_encode(): Invalid UTF-8 sequence in argument at /var/www/[redacted]/lib/log/owncloud.php#58","level":2,"time":"2013-09-14T15:40:25+00:00"}
{"app":"core","message":null,"level":2,"time":"2013-09-14T15:40:25+00:00"}
{"app":"PHP","message":"SQLSTATE[22021]: Character not in repertoire: 7 ERROR: invalid byte sequence for encoding "UTF8": 0xe46e64 at /var/www/[redacted]/lib/db.php#1075","level":4,"time":"2013-09-14T15:40:25+00:00"}
{"app":"core","message":"include path for class "OC_External" starts with "apps/"","level":0,"time":"2013-09-14T15:40:25+00:00"}
{"app":"core","message":"include path for class "OC_External" starts with "apps/"","level":0,"time":"2013-09-14T15:40:28+00:00"}
{"app":"core","message":"include path for class "OC_External" starts with "apps/"","level":0,"time":"2013-09-14T15:40:28+00:00"}
{"app":"core","message":"include path for class "OC_External" starts with "apps/"","level":0,"time":"2013-09-14T15:40:29+00:00"}
{"app":"core","message":"include path for class "OC_External" starts with "apps/"","level":0,"time":"2013-09-14T15:40:29+00:00"}
{"app":"core","message":"include path for class "OC_External" starts with "apps/"","level":0,"time":"2013-09-14T15:40:29+00:00"}
{"app":"core","message":"include path for class "OC_External" starts with "apps/"","level":0,"time":"2013-09-14T15:40:29+00:00"}
{"app":"core","message":"include path for class "OC_External" starts with "apps/"","level":0,"time":"2013-09-14T15:40:30+00:00"}
{"app":"core","message":"include path for class "OC_External" starts with "apps/"","level":0,"time":"2013-09-14T15:40:30+00:00"}
{"app":"core","message":"include path for class "OC_External" starts with "apps/"","level":0,"time":"2013-09-14T15:40:34+00:00"}

Browser log

curl 'https://[redacted]/index.php/apps/files/ajax/newfolder.php' -H 'Pragma: no-cache' -H 'requesttoken: 1d1111762850b31a6045' -H 'Origin: https://[redacted]' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Host: [redacted]' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: [redacted]' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: /' -H 'Cache-Control: no-cache' -H 'X-Requested-With: XMLHttpRequest' -H 'Cookie: [redacted]; oc_username=[redacted]; oc_token=[redacted]; oc_remember_login=1' -H 'Connection: keep-alive' -H 'Referer: https://[redacted]' --data 'dir=%2F&foldername=Projekte' --compressed

then endless this:

curl 'https://[redacted]/index.php/apps/files/ajax/scan.php?force=false&dir=&requesttoken=1d1111762850b31a6045' -H 'Pragma: no-cache' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Host: [redacted]' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: [redacted]' -H 'Accept: text/event-stream' -H 'Referer: https://[redacted]/index.php' -H 'Cookie: [redacted]; oc_username=[redacted]; oc_token=[redacted]; oc_remember_login=1' -H 'Connection: keep-alive' -H 'Cache-Control: no-cache' --compressed

F5:

curl 'https://[redacted]/index.php' -H 'Pragma: no-cache' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Host: [redacted]' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: [redacted]' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8' -H 'Referer: https://[redacted]' -H 'Cookie: [redacted]; oc_username=[redacted]; oc_token=[redacted]; oc_remember_login=1' -H 'Connection: keep-alive' -H 'Cache-Control: no-cache' --compressed

(!) DATABASE:
2013-09-14 17:52:38 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:38 CEST STATEMENT: DEALLOCATE pdo_stmt_00000005
2013-09-14 17:52:38 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:38 CEST STATEMENT: DEALLOCATE pdo_stmt_00000007
2013-09-14 17:52:38 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:38 CEST STATEMENT: DEALLOCATE pdo_stmt_00000008
2013-09-14 17:52:38 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:38 CEST STATEMENT: DEALLOCATE pdo_stmt_00000009
2013-09-14 17:52:38 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:38 CEST STATEMENT: DEALLOCATE pdo_stmt_0000000a
2013-09-14 17:52:38 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:38 CEST STATEMENT: DEALLOCATE pdo_stmt_00000011
2013-09-14 17:52:38 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:38 CEST STATEMENT: DEALLOCATE pdo_stmt_00000017
2013-09-14 17:52:38 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:38 CEST STATEMENT: DEALLOCATE pdo_stmt_00000019
2013-09-14 17:52:38 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:38 CEST STATEMENT: DEALLOCATE pdo_stmt_0000001a
2013-09-14 17:52:38 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:38 CEST STATEMENT: DEALLOCATE pdo_stmt_0000001b
2013-09-14 17:52:38 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:38 CEST STATEMENT: DEALLOCATE pdo_stmt_0000001c
2013-09-14 17:52:38 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:38 CEST STATEMENT: DEALLOCATE pdo_stmt_0000001d
2013-09-14 17:52:41 CEST ERROR: invalid byte sequence for encoding "UTF8": 0xe46e64
2013-09-14 17:52:41 CEST STATEMENT: INSERT INTO "oc_filecache"("mimepart", "mimetype", "mtime", "size", "etag", "path_hash", "path", "parent", "name", "encrypted", "storage") VALUES($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11)
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000001
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000002
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000003
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000004
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000005
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000007
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000008
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000009
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_0000000a
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000011
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000017
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000019
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_0000001a
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_0000001b
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_0000001c
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_0000001d
2013-09-14 17:52:41 CEST ERROR: null value in column "unencrypted_size" violates not-null constraint
2013-09-14 17:52:41 CEST STATEMENT: INSERT INTO "oc_filecache"("mimepart", "mimetype", "mtime", "size", "etag", "path_hash", "path", "parent", "name", "encrypted", "storage") VALUES($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11)
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000001
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000002
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000003
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000004
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000005
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000007
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000008
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000009
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_0000000a
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000013
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000014
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000015
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000016
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000017
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000018
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_00000019
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_0000001a
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_0000001b
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_0000001c
2013-09-14 17:52:41 CEST ERROR: current transaction is aborted, commands ignored until end of transaction block
2013-09-14 17:52:41 CEST STATEMENT: DEALLOCATE pdo_stmt_0000001d

@Niduroki
Copy link
Member

{"app":"PHP","message":"json_encode(): Invalid UTF-8 sequence in argument at \/var\/www\/[redacted]\/lib\/log\/owncloud.php#58","level":2,"time":"2013-09-14T15:40:25+00:00"}
{"app":"core","message":null,"level":2,"time":"2013-09-14T15:40:25+00:00"}
{"app":"PHP","message":"json_encode(): Invalid UTF-8 sequence in argument at \/var\/www\/[redacted]\/lib\/log\/owncloud.php#58","level":2,"time":"2013-09-14T15:40:25+00:00"}
{"app":"core","message":null,"level":2,"time":"2013-09-14T15:40:25+00:00"}
{"app":"PHP","message":"SQLSTATE[22021]: Character not in repertoire: 7 ERROR: invalid byte sequence for encoding \"UTF8\": 0xe46e64 at \/var\/www\/[redacted]/lib\/db.php#1075","level":4,"time":"2013-09-14T15:40:25+00:00"}

@icewind1991 @bartv2 @DeepDiver1975

@Tie-fighter
Copy link
Author

It seems that for the "empty response" problem the log reads the following:

{"app":"PHP","message":"SQLSTATE[23502]: Not null violation: 7 ERROR:  null value in column \"unencrypted_size\" violates not-null constraint at \/var\/www\/[redacted]\/lib\/db.php#1075","level":4,"time":"2013-09-15T10:12:43+00:00"}

The UTF-8 error persists for a few releases now but never caused any trouble in my experience.

PS: Only the view for the directory containing the violating directory is affected.
PPS: I think this also breaks quotas: You have used 0 B of the available 1408.5 GB

@Tie-fighter
Copy link
Author

What is the correct way to fix/patch this quickly? This issue is very annoying :/

@cdsim
Copy link

cdsim commented Sep 15, 2013

check this Bug report #4087 and the forum https://forum.owncloud.org/viewtopic.php?f=23&t=11832

@karlitschek
Copy link
Contributor

Should work with ownCloud 6 or 5.0.13. Please reopen if problem still exists.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants