Upload plugin jar to axon server se fails

I am running the axon server se via docker-compose

services:
  axon-server:
    image: axoniq/axonserver:4.5.4.1
    environment:
      - AXONIQ_AXONSERVER_DEVMODE_ENABLED=true
    ports:
      - "8024:8024"
      - "8124:8124"

When I upload a jar, I get:

{"timestamp":1625841932649,"status":500,"error":"Internal Server Error","message":"","path":"/v1/plugins","version":"4.5.2","product":"Axon Server"}

with log:

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.impl.FileSizeLimitExceededException: The field bundle exceeds its maximum permitted size of 1048576 bytes.] with root cause

can I configure this somewhere?

Turns out the upload size is not axon specific … so setting spring.servlet is enough:

services:
  axon-server:
    image: axoniq/axonserver:4.5.4.1
    environment:
      - AXONIQ_AXONSERVER_DEVMODE_ENABLED=true
      - SPRING_SERVLET_MULTIPART_MAX-FILE-SIZE=16MB
      - SPRING_SERVLET_MULTIPART_MAX-REQUEST-SIZE=16MB
    ports:
      - "8024:8024"
      - "8124:8124"
1 Like