Skip to content

[Bug]: Upgrade from 32.0.3 to 32.0.4 failed #2519

@isZYKerman

Description

@isZYKerman

⚠️ This issue respects the following points: ⚠️

Bug description

My 32.0.3 instance runs well. After pulling the 32.0.4 and firing the containers up I got errors and the container just restarted forever.

Steps to reproduce

  1. Find a running 32.0.3 instance
  2. Upgrade it to 32.0.4

Expected behavior

Upgrading process should be successfully finished.

Nextcloud Server version

32

Operating system

Other

PHP engine version

Other

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated from a MINOR version (ex. 32.0.1 to 32.0.2)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

N/A

List of activated Apps

N/A

Nextcloud Signing status

N/A

Nextcloud Logs

N/A

Additional info

I use docker for my services. The php engine, web server, etc. are shipped within in the image. The docker logs -f nextcloud-app-1 output:

Can't start Nextcloud because the version of the data (
Warning: Invalid "upload_max_filesize" setting. Invalid quantity "10240M": value is out of range, using overflow result for backwards compatibility in Unknown on line 0
Warning: Invalid "post_max_size" setting. Invalid quantity "10240M": value is out of range, using overflow result for backwards compatibility in Unknown on line 0
Warning: Invalid "memory_limit" setting. Invalid quantity "4096M": value is out of range, using overflow result for backwards compatibility in Unknown on line 0
Warning: Failed to set memory limit to 0 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0
32.0.3.2) is higher than the docker image version (
Warning: Invalid "upload_max_filesize" setting. Invalid quantity "10240M": value is out of range, using overflow result for backwards compatibility in Unknown on line 0
Warning: Invalid "post_max_size" setting. Invalid quantity "10240M": value is out of range, using overflow result for backwards compatibility in Unknown on line 0
Warning: Invalid "memory_limit" setting. Invalid quantity "4096M": value is out of range, using overflow result for backwards compatibility in Unknown on line 0
Warning: Failed to set memory limit to 0 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0
32.0.4.1) and downgrading is not supported. Are you sure you have pulled the newest image version?

Then the same content just repeats as the container restarts. It seems like a mixture of warnings for several "invalid" settings and a failure of upgrade because it thinks that 32.0.4 is a lower version than 32.0.3.🤣
For referrence, here is my compose file for the nextcloud-app-1 service:

  app:
    image: nextcloud:32.0.4
    container_name: nextcloud-app-1
    restart: unless-stopped
    ports:
      - 30030:80
    depends_on:
      - db
      - redis
      - onlyoffice
      - push
    volumes:
      - /mnt/Data/AppData/nextcloud/ncdata/:/var/www/html
      - /mnt/Data/TANK:/mnt/Data/TANK
      - ... # other external storages
    environment:
      - MYSQL_PASSWORD=***
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=db
      - PHP_MEMORY_LIMIT=4096M
      - PHP_UPLOAD_LIMIT=10240M
      - OPcache=1024M
      - APACHE_BODY_LIMIT=0
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:80"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 5s
    networks:
      - nc_net
    extra_hosts:
      - "host:host-gateway"

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions