# Docker Installation: Upload File Size smaler then 500kb?

**URL:** <https://forum.xwiki.org/t/docker-installation-upload-file-size-smaler-then-500kb/7628>\
**Category:** Help / Discuss\
**Tags:** docker, letsencrypt\
**Created:** [October 21, 2020, 12:52pm UTC](https://forum.xwiki.org/t/docker-installation-upload-file-size-smaler-then-500kb/7628 "2020-10-21T12:52:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![steffenrehfuss](https://forum.xwiki.org/user_avatar/forum.xwiki.org/steffenrehfuss/32/9514_2.png) [@steffenrehfuss](https://forum.xwiki.org/u/steffenrehfuss)\
**Post date:** [October 21, 2020, 12:52pm UTC](https://forum.xwiki.org/t/docker-installation-upload-file-size-smaler-then-500kb/7628/1 "2020-10-21T12:52:37Z")

</div>

Hello everyone, i have a new docker installation (Version (mysql-xwiki xwiki) 12.5.1) on a Ubuntu Server 18 LTS (RAM 8GB).  
Everything works, but i can only upload files (docx, pdf) smaller than 500kb. Then I installed version (mysql-xwiki xwiki) 12.6.3. Same Problem. The server is secured with letsencrypt certificate. The Apache service is stopped. The Docker container is started like this:

docker run --net=xwiki-nw --name xwiki -p 443:8443 -v /wiki/xwiki:/usr/local/xwiki -v /root/apps/server.xml:/usr/local/tomcat/conf/server.xml -v /etc/letsencrypt/live/wiki.xxxxx.de./cert.pem:/usr/local/tomcat/conf/cert.pem -v /etc/letsencrypt/live/wiki.xxxxx.de./privkey.pem:/usr/local/tomcat/conf/privkey.pem -v /etc/letsencrypt/live/wiki.xxxxx.de/chain.pem:/usr/local/tomcat/conf/chain.pem -e DB\_USER=xwikiuser -e DB\_PASSWORD=xxxxx -e DB\_DATABASE=xwiki -e DB\_HOST=mysql-xwiki xwiki:12.5.1

I have already tested the user rights.  
Does anyone have any idea what I can do?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![ilie.andriuta](https://forum.xwiki.org/user_avatar/forum.xwiki.org/ilie.andriuta/32/916_2.png) [@ilie.andriuta](https://forum.xwiki.org/u/ilie.andriuta)\
**Post date:** [October 21, 2020, 2:36pm UTC](https://forum.xwiki.org/t/docker-installation-upload-file-size-smaler-then-500kb/7628/2 "2020-10-21T14:36:55Z")

</div>

Hi, @steffenrehfuss

I’ve tested now on a XWiki 12.6.3 Docker instance with MySQL 8 and I could not reproduce the issue. I’ve been able to upload successfully large attachments (tested with files from 500 KB up to 512 MB included).

I started the container with:

`docker run --net=xwiki-nw --name xwiki-12.6.3-w-mysql -p 1111:8080 -v /home/ilieandriuta/docker/xwiki-mysql:/usr/local/xwiki -e DB_USER=xwiki -e DB_PASSWORD=xwiki -e DB_DATABASE=xwiki -e DB_HOST=mysql-for-xwiki-12.6.3 xwiki:12.6.3-mysql-tomcat`

Thanks!

---

<div class="post-metadata">

**Author:** ![steffenrehfuss](https://forum.xwiki.org/user_avatar/forum.xwiki.org/steffenrehfuss/32/9514_2.png) [@steffenrehfuss](https://forum.xwiki.org/u/steffenrehfuss)\
**Post date:** [October 21, 2020, 3:29pm UTC](https://forum.xwiki.org/t/docker-installation-upload-file-size-smaler-then-500kb/7628/3 "2020-10-21T15:29:18Z")

</div>

Hello Ilie, I am currently testing with postgres 9.5. maybe it is due to mysql 5.7. I will get back to you later. Thank you for the hint

---

<div class="post-metadata">

**Author:** ![steffenrehfuss](https://forum.xwiki.org/user_avatar/forum.xwiki.org/steffenrehfuss/32/9514_2.png) [@steffenrehfuss](https://forum.xwiki.org/u/steffenrehfuss)\
**Post date:** [October 21, 2020, 3:44pm UTC](https://forum.xwiki.org/t/docker-installation-upload-file-size-smaler-then-500kb/7628/4 "2020-10-21T15:44:55Z")

</div>

Hello Ilie, same problem with postgres 9.5. I test with -p 80:8080.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [October 21, 2020, 4:12pm UTC](https://forum.xwiki.org/t/docker-installation-upload-file-size-smaler-then-500kb/7628/5 "2020-10-21T16:12:21Z")

</div>

@steffenrehfuss the issue is most likely in your setup. The only cap we put on the file size is way larger than that (100GB by default, see [https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Attachments](https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Attachments)).

---

<div class="post-metadata">

**Author:** ![steffenrehfuss](https://forum.xwiki.org/user_avatar/forum.xwiki.org/steffenrehfuss/32/9514_2.png) [@steffenrehfuss](https://forum.xwiki.org/u/steffenrehfuss)\
**Post date:** [October 21, 2020, 4:19pm UTC](https://forum.xwiki.org/t/docker-installation-upload-file-size-smaler-then-500kb/7628/6 "2020-10-21T16:19:24Z")

</div>

Hello, I think so too. But I can’t explain it to myself. It is a new Ubuntu 18.04 LTS server only with Docker and Apache 2. The Apache 2 service is stopped. I have no more ideas.

![image](https://discourse.xwiki.org/uploads/default/original/2X/2/262be32dbe9e98f418503e738a8a38d5dab154ec.png)

---

<div class="post-metadata">

**Author:** ![steffenrehfuss](https://forum.xwiki.org/user_avatar/forum.xwiki.org/steffenrehfuss/32/9514_2.png) [@steffenrehfuss](https://forum.xwiki.org/u/steffenrehfuss)\
**Post date:** [October 21, 2020, 4:23pm UTC](https://forum.xwiki.org/t/docker-installation-upload-file-size-smaler-then-500kb/7628/7 "2020-10-21T16:23:08Z")

</div>

I did that. Now I am examining the server.xml file.

docker run --net=xwiki-nw --name postgres-xwiki -v /wiki/postgres:/var/lib/postgresql/data -e POSTGRES\_ROOT\_PASSWORD=xxx -e POSTGRES\_USER=xwiki -e POSTGRES\_PASSWORD=xxx -e POSTGRES\_DB=xwiki -e POSTGRES\_INITDB\_ARGS="–encoding=UTF8" -d postgres:9.5

docker run --net=xwiki-nw --name xwiki -p 443:8443 -v /wiki/xwiki:/usr/local/xwiki -v /root/apps/server.xml:/usr/local/tomcat/conf/server.xml -v /etc/letsencrypt/live/wiki.xxx.de/cert.pem:/usr/local/tomcat/conf/cert.pem -v /etc/letsencrypt/live/wiki.xxx.de/privkey.pem:/usr/local/tomcat/conf/privkey.pem -v /etc/letsencrypt/live/wiki.xxx.de/chain.pem:/usr/local/tomcat/conf/chain.pem -e DB\_USER=xwiki -e DB\_PASSWORD=xxx -e DB\_DATABASE=xwiki -e DB\_HOST=postgres-xwiki xwiki:12.6.3-postgres-tomcat

---

<div class="post-metadata">

**Author:** ![ilie.andriuta](https://forum.xwiki.org/user_avatar/forum.xwiki.org/ilie.andriuta/32/916_2.png) [@ilie.andriuta](https://forum.xwiki.org/u/ilie.andriuta)\
**Post date:** [October 26, 2020, 11:51am UTC](https://forum.xwiki.org/t/docker-installation-upload-file-size-smaler-then-500kb/7628/10 "2020-10-26T11:51:57Z")

</div>

Hi!

I’ve just tested on a XWiki 12.6.3 Docker instance with PostgreSQL 12.3 and I couldn’t reproduce the issue (I also tested the upload after changing the language), the files were uploaded successfully.
