linuxserver / docker-nextcloud

GNU General Public License v3.0
677 stars 128 forks source link

[BUG] Nextcloud Hub 7 (28.0.1) slow performance #412

Closed simpleacc closed 3 months ago

simpleacc commented 5 months ago

Is there an existing issue for this?

Current Behavior

I am trying to run Nextcloud (Docker) but it is extremely slow, it is empty, does not have files yet. For example, it needs 28s to load the profile page.

Expected Behavior

It should go faster or so

Steps To Reproduce

1 - create the following docker-compose.yml

version: "3"
services:
    nextcloud:
        image: lscr.io/linuxserver/nextcloud:latest
        container_name: NEXTCLOUD
        environment:
            - TZ=Etc/UTC
        volumes:
            - ./config:/config
            - ./data:/data
        ports:
            - 443:443
        restart: unless-stopped
        networks:
            VLAN14:
                ipv4_address: 10.0.14.100
networks:
    VLAN14:
        external: true

2 - Configure Nextcloud DB connection with the browser and http://10.0.14.100 3 - Wait, wait, wait and wait until the pages load.

Environment

- OS Debian 12 (bookworm)
- CPU: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz (8 cores)
- Memory: 32GB RAM
- Network: 500mbps (upload/download)
- Docker installation: apt install docker docker-compose -y

CPU architecture

x86-64

Docker creation

version: "3"
services:
    nextcloud:
        image: lscr.io/linuxserver/nextcloud:latest
        container_name: NEXTCLOUD
        environment:
            - TZ=Etc/UTC
        volumes:
            - ./config:/config
            - ./data:/data
        ports:
            - 443:443
        restart: unless-stopped
        networks:
            VLAN14:
                ipv4_address: 10.0.14.100
networks:
    VLAN14:
        external: true

Container logs

[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] 02-default-location: skipped
[migrations] done
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    911
User GID:    911
───────────────────────────────────────

using keys found in /config/keys
Initializing nextcloud 28.0.1.1 (this can take a while) ...
Setting permissions
Initializing finished
[custom-init] No custom files found, skipping...
[ls.io-init] done.
github-actions[bot] commented 5 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

simpleacc commented 5 months ago

Maybe I have missed something in the configuration side? Like php-local.ini, www2.conf, nginx.conf or default.conf?

Dexus commented 4 months ago

no same here, looks like we have here a problem with php or nextcloud at all...

carlinux commented 4 months ago

I'm experiencing the same, after the upgrade to 28 it is somehow laggy, no matter what cache or config I try. And some icons look bad and the theme colours are off.. not sure if it's related or related to the container at all but .. It is happening.

Dexus commented 3 months ago

This should be fixed via Nextcloud Server 28.0.3.

homerr commented 3 months ago

As we're now on 28.0.4 I'm closing this off.