Vikunja upload file failed

Hi,

I try to upload attachment to note and got this error:

2023/09/13 11:46:27 [warn] 21#21: *4 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000001, client: 192.168.1.107, server: , request: "PUT /api/v1/tasks/17/attachments HTTP/1.1", host: "mydomain.com", referrer: "https://mydomain.com/tasks/17"

I’m using docker-compose version of Vikunja installation. Any help?

That’s a warning, not an error. What do you see in the api logs?

This is only log i see on console when running docker.

It doesn’t look like an error. What is the error message in the frontend?

This is the whole log from docker.

api_1       | info: creating the new user vikunja with 1000:1000
api_1       | usermod: no changes
api_1       | 2023/09/14 04:40:35 No config file found, using default or config from environment variables.
api_1       | 2023-09-14T04:40:35.789595947Z: CRITICAL  ▶ migration/Migrate 002 Migration failed: dial tcp 172.20.0.2:3306: connect: connection refused
db_1        | 2023-09-14 04:40:35+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.4+maria~ubu2204 started.
db_1        | 2023-09-14 04:40:35+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db_1        | 2023-09-14 04:40:35+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.4+maria~ubu2204 started.
db_1        | 2023-09-14 04:40:36+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
frontend_1  | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
frontend_1  | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
db_1        | 2023-09-14  4:40:36 0 [Note] Starting MariaDB 10.11.4-MariaDB-1:10.11.4+maria~ubu2204 source revision 4e2b93dffef2414a11ca5edc8d215f57ee5010e5 as process 1
frontend_1  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
db_1        | 2023-09-14  4:40:36 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
frontend_1  | 20-envsubst-on-templates.sh: Running envsubst on /etc/nginx/templates/default.conf.template to /etc/nginx/conf.d/default.conf
frontend_1  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
frontend_1  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/50-injector.sh
frontend_1  | info: API URL is /api/v1
frontend_1  | info: Sentry enabled: false
frontend_1  | info: started at 2023-09-14T04:40:35+00:00
frontend_1  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/60-ipv6-disable.sh
frontend_1  | /docker-entrypoint.sh: Configuration complete; ready for start up
db_1        | 2023-09-14  4:40:36 0 [Note] InnoDB: Number of transaction pools: 1
db_1        | 2023-09-14  4:40:36 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
db_1        | 2023-09-14  4:40:36 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
db_1        | 2023-09-14  4:40:36 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
db_1        | 2023-09-14  4:40:36 0 [Note] InnoDB: Completed initialization of buffer pool
db_1        | 2023-09-14  4:40:36 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
db_1        | 2023-09-14  4:40:36 0 [Note] InnoDB: 128 rollback segments are active.
db_1        | 2023-09-14  4:40:36 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
db_1        | 2023-09-14  4:40:36 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
db_1        | 2023-09-14  4:40:36 0 [Note] InnoDB: log sequence number 1773895; transaction id 4879
db_1        | 2023-09-14  4:40:36 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
db_1        | 2023-09-14  4:40:36 0 [Note] Plugin 'FEEDBACK' is disabled.
db_1        | 2023-09-14  4:40:36 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
db_1        | 2023-09-14  4:40:36 0 [Note] Server socket created on IP: '0.0.0.0'.
db_1        | 2023-09-14  4:40:36 0 [Note] Server socket created on IP: '::'.
proxy_1     | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
proxy_1     | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
proxy_1     | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
proxy_1     | 10-listen-on-ipv6-by-default.sh: info: can not modify /etc/nginx/conf.d/default.conf (read-only file system?)
proxy_1     | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
proxy_1     | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
proxy_1     | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
db_1        | 2023-09-14  4:40:36 0 [Note] mariadbd: ready for connections.
db_1        | Version: '10.11.4-MariaDB-1:10.11.4+maria~ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
proxy_1     | /docker-entrypoint.sh: Configuration complete; ready for start up
proxy_1     | 2023/09/14 04:40:36 [notice] 1#1: using the "epoll" event method
proxy_1     | 2023/09/14 04:40:36 [notice] 1#1: nginx/1.25.1
proxy_1     | 2023/09/14 04:40:36 [notice] 1#1: built by gcc 12.2.0 (Debian 12.2.0-14)
proxy_1     | 2023/09/14 04:40:36 [notice] 1#1: OS: Linux 5.15.0-83-generic
proxy_1     | 2023/09/14 04:40:36 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
proxy_1     | 2023/09/14 04:40:36 [notice] 1#1: start worker processes
proxy_1     | 2023/09/14 04:40:36 [notice] 1#1: start worker process 21
proxy_1     | 2023/09/14 04:40:36 [notice] 1#1: start worker process 22
db_1        | 2023-09-14  4:40:36 0 [Note] InnoDB: Buffer pool(s) load completed at 230914  4:40:36
frontend_1  | 172.20.0.5 - - [14/Sep/2023:04:41:43 +0000] "GET / HTTP/1.0" 200 3337 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:43 +0000] "GET / HTTP/1.1" 200 3337 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:43 +0000] "GET /api/v1/info HTTP/1.1" 200 609 "https://mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:43 +0000] "GET /manifest.webmanifest HTTP/1.1" 304 0 "https://mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
frontend_1  | 172.20.0.5 - - [14/Sep/2023:04:41:43 +0000] "GET /manifest.webmanifest HTTP/1.0" 304 0 "https://mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:43 +0000] "GET /api/v1/user HTTP/1.1" 200 562 "https://mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:43 +0000] "GET /api/v1/notifications?page=1 HTTP/1.1" 200 5 "https://mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:43 +0000] "GET /api/v1/labels?page=1 HTTP/1.1" 200 5 "https://mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:43 +0000] "GET /api/v1/projects?is_archived=true&page=1 HTTP/1.1" 200 6494 "https://mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:43 +0000] "GET /api/v1/tasks/all?sort_by[]=due_date&sort_by[]=id&order_by[]=asc&order_by[]=desc&filter_by[]=done&filter_value[]=false&filter_comparator[]=equals&filter_concat=and&filter_include_nulls=false&page=1 HTTP/1.1" 200 24923 "https://mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:43 +0000] "GET /api/v1/avatar/marko.kaariainen?size=50&=1694666503376 HTTP/1.1" 200 1097 "https://mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
frontend_1  | 172.20.0.5 - - [14/Sep/2023:04:41:45 +0000] "GET /sw.js HTTP/1.0" 304 0 "https://mydomain.com/sw.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:45 +0000] "GET /sw.js HTTP/1.1" 304 0 "https://mydomain.com/sw.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:48 +0000] "POST /api/v1/user/token HTTP/1.1" 200 329 "https://mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:48 +0000] "GET /api/v1/avatar/marko.kaariainen?size=50&=1694666508388 HTTP/1.1" 200 1097 "https://mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:48 +0000] "GET /api/v1/user HTTP/1.1" 200 562 "https://mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:48 +0000] "GET /api/v1/avatar/marko.kaariainen?size=50&=1694666508393 HTTP/1.1" 200 1097 "https://mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:48 +0000] "GET /api/v1/tasks/all?sort_by[]=due_date&sort_by[]=id&order_by[]=asc&order_by[]=desc&filter_by[]=done&filter_value[]=false&filter_comparator[]=equals&filter_concat=and&filter_include_nulls=false&page=1 HTTP/1.1" 200 24916 "https://mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:51 +0000] "GET /api/v1/tasks/76/comments?page=1 HTTP/1.1" 200 3 "https://mydomain.com/tasks/76" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:51 +0000] "GET /api/v1/tasks/76 HTTP/1.1" 200 726 "https://mydomain.com/tasks/76" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:51 +0000] "GET /api/v1/avatar/marko.kaariainen?size=48 HTTP/1.1" 200 1018 "https://mydomain.com/tasks/76" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:53 +0000] "GET /api/v1/notifications?page=1 HTTP/1.1" 200 5 "https://mydomain.com/tasks/76" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"
proxy_1     | 2023/09/14 04:41:58 [warn] 21#21: *1 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000001, client: 192.168.1.107, server: , request: "PUT /api/v1/tasks/76/attachments HTTP/1.1", host: "mydomain.com", referrer: "https://mydomain.com/tasks/76"
proxy_1     | 192.168.1.107 - - [14/Sep/2023:04:41:58 +0000] "PUT /api/v1/tasks/76/attachments HTTP/1.1" 404 24 "https://mydomain.com/tasks/76" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.76" "-"

Your api did not start because it could not connect to the database. Hence it can’t upload anything (let alone view tasks).

You should add a restart policy to your compose declaration so that it will automatically restart the container until the api is ready.