Nextcloud 30.0.4: User Creation API Pending for Over 5 Minutes – Any Solutions?

I currently have a new Nextcloud server set up with Docker, reconfigured with Apache2 for trusted domains and SSL/TLS. There’s also a reverse proxy server pointing to the Nextcloud domain (version 30.0.4). Everything runs perfectly, but when the admin account creates a new user, the API script for this action remains pending for over 5 minutes. Does anyone know what might be causing this issue?

Are you referring to a custom script of your own or when adding a user via the Web UI?

And when you say “for over 5 minutes” does it finish that point? Or are you saying appears to just never finish at all?

What do your logs say?

I was referring to the process of creating a user through the GUI. It does eventually finish, but the “create account” session takes about 5 minutes to complete.

Let’s start by posting some basics about your setup:

  • config (occ config:list system)
  • installed apps (occ app:list
  • Docker Compose file

Any clues in your browser inspector under the Console and Network tabs when you reproduce this problem?

Docker-compose
version: “3.8”
services:
db16:
image: postgres:16
container_name: postgres_db16
restart: unless-stopped
environment:
POSTGRES_DB: “nextcloud_db”
POSTGRES_USER: “nextcloud”
POSTGRES_PASSWORD: “@”
volumes:
- db16:/var/lib/postgresql/data
ports:
- 5432:5432
networks:
nextcloud:
ipv4_address: 192.168.254.2
mynextcloud:
image: nextcloud
container_name: nextcloud_app
depends_on:
redis:
condition: service_healthy
links:
- db16
- redis
volumes:
- nextcloud:/var/www/html
- apache2:/etc/apache2
- php_init:/usr/local/etc/php/conf.d
environment:
NEXTCLOUD_ADMIN_USER: “admin”
NEXTCLOUD_ADMIN_PASSWORD: “@”
POSTGRES_HOST: “db16”
POSTGRES_DB: “nextcloud_db”
POSTGRES_USER: “nextcloud”
POSTGRES_PASSWORD: “@”
PHP_MEMORY_LIMIT: “4G”
PHP_UPLOAD_LIMIT: “10G”
PHP_POST_MAX_SIZE: “4G”
ports:
- “5644:443”
restart: unless-stopped
networks:
nextcloud:
ipv4_address: 192.168.254.3
redis:
image: redis:latest
container_name: redis-nc
restart: unless-stopped
volumes:
- redis:/data
healthcheck:
test: [“CMD”, “redis-cli”, “ping”]
interval: 10s
timeout: 5s
retries: 5
networks:
nextcloud:
ipv4_address: 192.168.254.4
volumes:
nextcloud:
driver: local
driver_opts:
type: none
device: /root/mnt/data/nextcloud
o: bind
php_init:
driver: local
driver_opts:
type: none
device: /root/mnt/data/php_init
o: bind
apache2:
driver: local
driver_opts:
type: none
device: /root/mnt/data/apache2
o: bind
db16:
driver: local
driver_opts:
type: none
device: /root/mnt/data/db16
o: bind
redis:
driver: local
driver_opts:
type: none
device: /root/mnt/data/redis
o: bind
networks:
nextcloud:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.254.0/24
gateway: 192.168.254.1
I implemented HTTPS inside the nextcloud_app container. Is there any way to fix or resolve this issue, or is there an issue that can help me avoid the pending state during user creation when deploying?