amazon web services – Owncloud: "Error assembling blocks" when uploading large files to the S3 folder

I installed OwnCloud on an EC2 instance and then created a folder pointing to an S3 bucket.

The installation seems to work well.
Whenever I try to upload a large file (> ~ 120 MB), I get the error message "Error assembling blocks".
Smaller files work well and larger files work in other folders as well.

The offer of the user is unlimited

When I review the requests, the request that has a problem contains the following information:

URL: https: ///remote.php/dav/uploads// web file upload/.File
Method: MOVE
Status: 500
header:
Goal: https: ///remote.php/dav/files///

Expected behavior

The file should be uploaded successfully

Actual behavior

Instead I get an error 500 "Blocks assembling error"

server configuration

Ubuntu 18.04

server:
Apache

Database:
MySQL

PHP version:
07/02/10

ownCloud Version:
10.0.10 (stable)

Updated from an older ownCloud or reinstall:
Fresh

Where did you install ownCloud:
Ubuntu repository

Edition of the current http: ///index.php/settings/integrity/failed

https://gist.github.com/danielfranca/8af8d65061e89e343d2e7aa434964b85

The contents of config / config.php:

not correct,
& # 39; # 39 & instanceid; => & # 39;& # 39 ;,
& # 39; password salt & # 39; => & # 39;& # 39 ;,
& # 39; secret & # 39; => & # 39;& # 39 ;,
& # 39; # 39 & TRUSTED_DOMAINS; =>
Array (
0 => & # 39;& # 39 ;,
1 => & # 39;& # 39 ;,
)
& # 39; # 39 & directory data; => & # 39; / var / www / owncloud / data & # 39 ;,
& # 39; # 39 & overwrite.cli.url; => & # 39; http: //& # 39 ;,
& # 39; # 39 & dbtype; => & # 39; mysql & # 39 ;,
& # 39; version & # 39; => & # 39; 10 .0.10.4 & # 39 ;,
& # 39; # 39 & dbname; => & Owncloud & # 39 ;,
& # 39; # 39 & dbhost; => & # 39;& # 39 ;,
& # 39; # 39 & dbtableprefix; => & # 39; oc _ & # 39 ;,
& # 39; # 39 & dbuser; => & Cir; oc_admin & # 39 ;,
& # 39; # 39 & dbpassword; => & # 39;& # 39 ;,
& # 39; # 39 & logtimezone; => & UTCTC,
& # 39; installed & # 39; => true,
);

sudo -u www-data php occ config: list system
{
"System": {
"Update Checker": false,
"instanceid": ""
Passwaltalt: REMOVED SENSITIVE VALUE ***
secret: REMOVED SENSITIVE VALUE
"TRUSTED_DOMAINS":[
""
""
],
"Data directory": " / var / www / owncloud / data",
"overwrite.cli.url": "http: / /"
"dbtype": "mysql",
"Version": "10.0.10.4",
"dbname": "owncloud",
"dbhost": ""
"dbtableprefix": "oc_",
dbuser: REMOTE SENSITIVE VALUE
dbpassword: REMOVED SENSITIVE VALUE
"logtimezone": "UTC",
"installed": true
}
}

List of activated apps:

enabled:
- Comments: 0.3.0
- configreport: 0.1.1
- dav: 0,4,0
- federated file sharing: 0.3.1
- Federation: 0,1,0
- Files: 1.5.1
- files_external: 0.7.1
- files_sharing: 0.11.0
- files_trashbin: 0.9.1
- File versions: 1.3.0
- files_videoplayer: 0.9.8
- firstrunwizard: 1.1
- Market: 0,2,5
- Notifications: 0.3.5
- Provisioning_api: 0.5.0
- system tags: 0.3.0
- Update notification: 0.2.1
disabled:
- Encryption
- externally
- user_external

Do you use an external memory, if so what? local / smb / sftp / …

s3

Use the encryption: Yes No
No

Do you use an external user backend, if so what: LDAP / ActiveDirectory / Webdav / …
No

Client Configuration

browser:
Tried in several: Chrome, Brave, Vivaldi, Firefox

Operating system:

logs

ownCloud protocol (data / owncloud.log)

That's the important part, I think

{"reqId": "fsFwhOqJnBqtvKfbTPzq", "level": 3, "time": "2018-11-21T15: 30: 16 + 00: 00", "remoteAddr": "213.127.78.59", "user": ""," app ":" PHP "," method ":" MOVE "," url ":"  / remote.php  / webdav  /"," message ":" Exhausted memory size of 134217728 bytes exhausted (trying to map 992957192 bytes) under  / var  / www  / owncloud  / lib  / composer  / guzzle  / stream  / guzzle  / stream  / Stream.php # 71 "}

mysql – OwnCloud error when deploying to AWS: The username is already in use (not WebDAV-related)

I have an instance of Owncloud running on AWS Elastic Beanstalk
I'm just setting it up from the docker, so I have a very simple Dockerrun.aws.json

{
"AWSEBDockerrunVersion": "1",
"Image": {
"Name": "owncloud / server: latest",
"Update": "true"
},
"Ports" [
    {
      "ContainerPort": "8080",
      "hostPort": "80"
    }
  ],
"Volumes": []
}

I first set it up with SQLite and it ran a few days
Now I try to set it up with a MariaDB backup.

To do this, I'll just add environment variables to my Elastic Beanstalk environment:

OWNCLOUD_ADMIN_PASSWORD = 
OWNCLOUD_ADMIN_USERNAME = admin
OWNCLOUD_DB_HOST = 
OWNCLOUD_DB_NAME = owncloud
OWNCLOUD_DB_PASSWORD = 
OWNCLOUD_DB_TYPE = MySQL
OWNCLOUD_DB_USERNAME = owncloud
OWNCLOUD_DOMAIN = cloud.mydomain.com
OWNCLOUD_MYSQL_UTF8MB4 = true
OWNCLOUD_REDIS_ENABLED = false

Then I just made that available and received this log:

Docker container quit unexpectedly after startup: move configuration folder ...
Link configuration folder ...
Write configuration file ...
Definitions for perms ...
Setting Data Perms ...
Fixing hooks Perm ...
Install server database ...
The username is already in use. Review the snapshot logs for details.

I checked the database and the username does not exist.
I tried using other OWNCLOUD_ADMIN_USERNAME, no success.

If I run the docker locally, it will work fine and I can access it normally. This error message appeared only once during local execution, but I just had to change the username and it worked.
However, the EB version can not be accessed and the instance remains in the "SEVERE / FAILURE" state.

I've also tried restarting the app server and even rebuilding the environment …

I've seen similar issues, but they always referred to using WebDAV as an authentication backend, which is not my case. In all cases, I have seen that this error occurred while creating a new user through the admin interface. This is not my case because the admin interface is not even accessible to me.

Any idea, what else can I do?

Expected behavior

Owncloud should be up and running and connected to the right database

Actual behavior

Elastic Beanstalk fails with the above error when deploying

server configuration

Most of the configuration comes from the Docker image: owncloud / server: latest