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

Connection timeout or connection closed. #5893

Closed
wxthss82 opened this issue Jul 26, 2017 · 2 comments
Closed

Connection timeout or connection closed. #5893

wxthss82 opened this issue Jul 26, 2017 · 2 comments

Comments

@wxthss82
Copy link

Steps to reproduce

1.using amazon EC2 m4.16xlarge machine, bandwidth as much as 20GB, setup nextcloud server 12 from zip packages. using S3 as external file storage, using http1.1 protocol not https
2.we have 7 clients to upload files, each day produce about 80GB image data. After upload finished, we assign those images folder to 80 clients, they download the images.
3.When the client try to connect the nextcloud server, it says connection timeout, sometimes says connection closed.

Expected behaviour

Since we use a powerful machine with 64 CPU cores and 256G ram, network performance is 20Gbps, it should successfully connected to the server. Our server is in Tokyo, while the clients which trying to connect is in Beijing, Shanghai, Nanchong in China.

Actual behaviour

Connection timeout or connection closed
bug1
bug2
bug3

Server configuration

Operating system: Linux ip-172-31-17-57 4.4.0-1026-aws #35-Ubuntu SMP Thu Jul 20 21:59:09 UTC 2017 x86_64

Web server: Apache/2.4.18 (Ubuntu) (apache2handler)

Database: mysql 5.7.19

PHP version: 7.0.18-0ubuntu0.16.04.1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, mysqlnd, PDO, xml, apcu, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, igbinary, json, exif, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache

Nextcloud version: 12.0.0 - 12.0.0.29

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from:

Signing status:

Signing status
[]

List of activated apps:

App list ``` Enabled: - activity: 2.5.2 - admin_audit: 1.2.0 - admin_notifications: 1.0.0 - announcementcenter: 3.1.0 - comments: 1.2.0 - dav: 1.3.0 - federatedfilesharing: 1.2.0 - federation: 1.2.0 - files: 1.7.2 - files_downloadactivity: 1.1.1 - files_pdfviewer: 1.1.1 - files_sharing: 1.4.0 - files_texteditor: 2.4.1 - files_trashbin: 1.2.0 - files_versions: 1.5.0 - files_videoplayer: 1.1.0 - gallery: 17.0.0 - impersonate: 1.0.1 - issuetemplate: 0.2.1 - logreader: 2.0.0 - lookup_server_connector: 1.0.0 - nextcloud_announcements: 1.1 - notifications: 2.0.0 - oauth2: 1.0.5 - onlyoffice: 1.1.3 - password_policy: 1.2.2 - provisioning_api: 1.2.0 - serverinfo: 1.2.0 - survey_client: 1.0.0 - systemtags: 1.2.0 - theming: 1.3.0 - twofactor_backupcodes: 1.1.1 - updatenotification: 1.2.0 - workflowengine: 1.2.0

Disabled:

  • audioplayer
  • bookmarks
  • calendar
  • checksum
  • contacts
  • deck
  • drawio
  • encryption
  • files_automatedtagging
  • files_external
  • files_markdown
  • files_reader
  • files_retention
  • files_snapshots
  • firstrunwizard
  • gpxedit
  • mail
  • news
  • notes
  • ocsms
  • ojsxc
  • ownbackup
  • passman
  • piwik
  • previewgenerator
  • richdocuments
  • sharebymail
  • spreed
  • spreedme
  • tasks
  • user_external
  • user_ldap
  • weather
  • workin2gether
</details>

**The content of config/config.php:**
<details>
	<summary>Config report</summary>

{
"instanceid": "ocja37f61s6y",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"htaccess.RewriteBase": "/nextcloud",
"trusted_domains": {
"1": "nc.yitunnel.com",
"0": "52.198.100.177"
},
"datadirectory": "/var/www/html/nextcloud/data",
"overwrite.cli.url": "http://52.198.100.177/nextcloud",
"auth.bruteforce.protection.enabled": false,
"dbtype": "mysql",
"version": "12.0.0.29",
"dbname": "nextcloud",
"dbhost": "localhost",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"objectstore": {
"class": "OC\Files\ObjectStore\S3",
"arguments": {
"bucket": "nextcloud-yi",
"autocreate": true,
"key": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"use_ssl": true
}
},
"installed": true,
"memcache.local": "\OC\Memcache\APCu",
"memcache.locking": "\OC\Memcache\Redis",
"filelocking.enabled": "true",
"redis": {
"host": "/var/run/redis/redis.sock",
"port": 0,
"timeout": 0
}
}

</details>

**Are you using external storage, if yes which one:** files_external is disabled S3

**Are you using encryption:** no

**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...

### Client configuration
**Browser:** Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

**Operating system:**

### Logs
#### Web server error log
<details>
	<summary>Web server error log</summary>
	```
	[Wed Jul 26 16:03:18.022632 2017] [core:notice] [pid 3011] AH00051: child pid 7441 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jul 26 16:03:18.022649 2017] [core:notice] [pid 3011] AH00051: child pid 3203 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jul 26 16:03:18.022673 2017] [core:notice] [pid 3011] AH00051: child pid 3225 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jul 26 16:03:18.022699 2017] [core:notice] [pid 3011] AH00051: child pid 3315 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jul 26 16:03:18.022735 2017] [mpm_prefork:notice] [pid 3011] AH00169: caught SIGTERM, shutting down
[Wed Jul 26 16:03:19.986512 2017] [mpm_prefork:notice] [pid 11866] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Wed Jul 26 16:03:19.986580 2017] [core:notice] [pid 11866] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jul 26 16:15:29.997227 2017] [autoindex:error] [pid 11990] [client 103.43.100.15:50576] AH01276: Cannot serve directory /var/www/html/nextcloud: No matching DirectoryIndex (none) found, and server-generated directory index forbidden by Options directive
[Wed Jul 26 16:18:04.060188 2017] [authz_core:error] [pid 12102] [client 103.43.100.15:50892] AH01630: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Wed Jul 26 16:18:06.349905 2017] [authz_core:error] [pid 11934] [client 103.43.100.15:50896] AH01630: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
	```
</details>

#### Nextcloud log (data/nextcloud.log)
<details>
	<summary>Nextcloud log</summary>
	```
	{"reqId":"NvMLFBYy7Pe0aaUfDzHD","level":3,"time":"2017-07-26T16:06:11+00:00","remoteAddr":"182.129.43.140","user":"E5","app":"PHP","method":"GET","url":"\/nextcloud\/remote.php\/dav\/files\/E5\/1217\/3\/ce0ecf12-7878-485e-8a1c-801912cd48a7.jpg","message":"fseek(): stream does not support seeking at \/var\/www\/html\/nextcloud\/3rdparty\/icewind\/streams\/src\/Wrapper.php#74","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"4Lwx0tHfsXPTBmmqnaCS","level":3,"time":"2017-07-26T16:09:31+00:00","remoteAddr":"182.129.7.180","user":"B4","app":"PHP","method":"GET","url":"\/nextcloud\/remote.php\/dav\/files\/B4\/1203\/0\/26d0303b-ddea-4c5b-84a0-5e3b71380f90.jpg","message":"fseek(): stream does not support seeking at \/var\/www\/html\/nextcloud\/3rdparty\/icewind\/streams\/src\/Wrapper.php#74","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"QoR9aH6IKWWDT3otvdoF","level":3,"time":"2017-07-26T16:09:31+00:00","remoteAddr":"182.129.7.180","user":"B4","app":"PHP","method":"GET","url":"\/nextcloud\/remote.php\/dav\/files\/B4\/1203\/0\/39d27125-6b17-4b7a-b912-ff22f9993ccd.jpg","message":"fseek(): stream does not support seeking at \/var\/www\/html\/nextcloud\/3rdparty\/icewind\/streams\/src\/Wrapper.php#74","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"rVu1JHaUG8jXk8GbX9pZ","level":3,"time":"2017-07-26T16:09:31+00:00","remoteAddr":"182.129.7.180","user":"B4","app":"PHP","method":"GET","url":"\/nextcloud\/remote.php\/dav\/files\/B4\/1203\/0\/41320629-0c7f-4da5-8eb3-c44854e28e76.jpg","message":"fseek(): stream does not support seeking at \/var\/www\/html\/nextcloud\/3rdparty\/icewind\/streams\/src\/Wrapper.php#74","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"eaRozTldBl3dJLTnKHdB","level":3,"time":"2017-07-26T16:10:11+00:00","remoteAddr":"182.129.43.140","user":"E5","app":"PHP","method":"GET","url":"\/nextcloud\/remote.php\/dav\/files\/E5\/1218\/3\/37566c7b-be9c-4ce2-8972-be1e7722eddd.jpg","message":"fseek(): stream does not support seeking at \/var\/www\/html\/nextcloud\/3rdparty\/icewind\/streams\/src\/Wrapper.php#74","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"W0wIv9B9PT4pjykLUhL1","level":3,"time":"2017-07-26T16:10:11+00:00","remoteAddr":"182.129.43.140","user":"E5","app":"PHP","method":"GET","url":"\/nextcloud\/remote.php\/dav\/files\/E5\/1218\/3\/3795269e-8796-4af5-8381-73bacdeb674b.jpg","message":"fseek(): stream does not support seeking at \/var\/www\/html\/nextcloud\/3rdparty\/icewind\/streams\/src\/Wrapper.php#74","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"aJm1hmj2LaXvOwtJb16J","level":3,"time":"2017-07-26T16:10:12+00:00","remoteAddr":"182.129.43.140","user":"E5","app":"PHP","method":"GET","url":"\/nextcloud\/remote.php\/dav\/files\/E5\/1218\/3\/37a58063-7222-4aec-97f9-eb1b74fca9b8.jpg","message":"fseek(): stream does not support seeking at \/var\/www\/html\/nextcloud\/3rdparty\/icewind\/streams\/src\/Wrapper.php#74","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"6H7PESe6Fb894UZHOuwX","level":3,"time":"2017-07-26T16:11:16+00:00","remoteAddr":"182.129.7.180","user":"B4","app":"PHP","method":"GET","url":"\/nextcloud\/remote.php\/dav\/files\/B4\/1203\/0\/26d0303b-ddea-4c5b-84a0-5e3b71380f90.jpg","message":"fseek(): stream does not support seeking at \/var\/www\/html\/nextcloud\/3rdparty\/icewind\/streams\/src\/Wrapper.php#74","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"BHYLFaf2cm9OjlArygjU","level":3,"time":"2017-07-26T16:11:16+00:00","remoteAddr":"182.129.7.180","user":"B4","app":"PHP","method":"GET","url":"\/nextcloud\/remote.php\/dav\/files\/B4\/1203\/0\/a46c7b2b-8589-4d28-a1d7-f6b5d34d770d.jpg","message":"fseek(): stream does not support seeking at \/var\/www\/html\/nextcloud\/3rdparty\/icewind\/streams\/src\/Wrapper.php#74","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"rBuHb8C7RMnBlI5OKcNk","level":3,"time":"2017-07-26T16:11:16+00:00","remoteAddr":"182.129.7.180","user":"B4","app":"PHP","method":"GET","url":"\/nextcloud\/remote.php\/dav\/files\/B4\/1203\/0\/a92d7278-91b2-4bff-ac9b-084bc23c424b.jpg","message":"fseek(): stream does not support seeking at \/var\/www\/html\/nextcloud\/3rdparty\/icewind\/streams\/src\/Wrapper.php#74","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
	```
</details>

#### Browser log
<details>
	<summary>Browser log</summary>
	```
	Insert your browser log here, this could for example include:

	a) The javascript console log
	b) The network log
	c) ...
	```
</details>
@MorrisJobke
Copy link
Member

Please try to fix the segfaults first, this looks like the root cause for this problem:

[Wed Jul 26 16:03:18.022649 2017] [core:notice] [pid 3011] AH00051: child pid 3203 exit signal Segmentation fault (11), possible coredump in /etc/apache2

As this seems to be more a problem with the setup, I would ask you to seek for further help in the forums: https://help.nextcloud.com

Thanks

@wxthss82
Copy link
Author

wxthss82 commented Sep 6, 2017

Thank you very much, I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants