Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fulltextsearch instructions to increase RAM size are no longer correct and causes crash if used. #6969

Answered by keonramses
braccae asked this question in Questions
Discussion options

Steps to reproduce

  1. Start mastercontainer with -e FULLTEXTSEARCH_JAVA_OPTIONS="-Xms1024M -Xmx1024M"
  2. Attempt to start containers
  3. issue occurs

Expected behavior

Fulltextsearch starts with 1GB of ram allocated

Actual behavior

Fulltextsearch contiainer bootloops with an error and prevents the aio from starting for awhile before it gets auto disabled.

the error:

Error: Could not find or load main class "-Xms1024M
Caused by: java.lang.ClassNotFoundException: "-Xms1024M

Other information

Host OS

Fedora 42 bootc (custom)
ghcr.io/braccae/coreos:dockerhost

Output of sudo docker info (click to expand)


sudo docker info
Client: Docker Engine - Community
 Version: 28.5.1
 Context: default
 Debug Mode: false
 Plugins:
 buildx: Docker Buildx (Docker Inc.)
 Version: v0.29.1
 Path: /usr/libexec/docker/cli-plugins/docker-buildx
 compose: Docker Compose (Docker Inc.)
 Version: v2.40.0
 Path: /usr/libexec/docker/cli-plugins/docker-compose

Server:
Containers: 17
Running: 1
Paused: 0
Stopped: 16
Images: 17
Server Version: 28.5.1
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
CDI spec directories:
/etc/cdi
/var/run/cdi
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: b98a3aace656320842a23f4a392a33f46af97866
runc version: v1.3.0-0-g4ca628d1
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.16.9-200.fc42.x86_64
Operating System: Fedora Linux 42 (Adams)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 30.27GiB
Name: likes-it-cold
ID: 145b6579-5e64-45d2-9158-bc9722f5b7e6
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
::1/128
127.0.0.0/8
Live Restore Enabled: false

Docker run command or docker-compose file that you used (click to expand)


services:
 nextcloud-aio-mastercontainer:
 image: nextcloud/all-in-one:latest
 init: true
 restart: always
 container_name: nextcloud-aio-mastercontainer
 volumes:
 - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
 - /var/run/docker.sock:/var/run/docker.sock:ro
 ports:
 - 8081:8080
 environment:
 - APACHE_PORT=11000
 - APACHE_IP_BINDING=0.0.0.0
 - BORG_RETENTION_POLICY=--keep-within=7d --keep-weekly=4 --keep-monthly=12 # Allows to adjust borgs retention policy. See https://github.com/nextcloud/all-in-one#how-to-adjust-borgs-retention-policy
 # - COLLABORA_SECCOMP_DISABLED=false # Setting this to true allows to disable Collabora's Seccomp feature. See https://github.com/nextcloud/all-in-one#how-to-disable-collaboras-seccomp-feature
 - NEXTCLOUD_DATADIR=/var/pants-place-cloud/data
 - NEXTCLOUD_MOUNT=/var/mnt/
 - NEXTCLOUD_UPLOAD_LIMIT=10G 
 - NEXTCLOUD_MAX_TIME=3600
 - NEXTCLOUD_MEMORY_LIMIT=2048M
 # - NEXTCLOUD_TRUSTED_CACERTS_DIR=/path/to/my/cacerts # CA certificates in this directory will be trusted by the OS of the nexcloud container (Useful e.g. for LDAPS) See See https://github.com/nextcloud/all-in-one#how-to-trust-user-defined-certification-authorities-ca
 # - NEXTCLOUD_STARTUP_APPS=deck twofactor_totp tasks calendar contacts notes
 - NEXTCLOUD_ADDITIONAL_APKS=imagemagick ffmpeg
 - NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS=imagick json simplexml xml dom curl iconv
 - NEXTCLOUD_ENABLE_DRI_DEVICE=true
 - NEXTCLOUD_KEEP_DISABLED_APPS=true
 - FULLTEXTSEARCH_JAVA_OPTIONS="-Xms1024M -Xmx2048M"
 security_opt: ["label:disable"]

volumes: # If you want to store the data on a different drive, see https://github.com/nextcloud/all-in-one#how-to-store-the-filesinstallation-on-a-separate-drive
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer # This line is not allowed to be changed as otherwise the built-in backup solution will not work

Other valuable info

It does seem like the variable FULLTEXTSEARCH_JAVA_OPTIONS is getting added to the java run command after the class, triggering the error.

You must be logged in to vote

@braccae To resolve this error, remove the quotation marks. So FULLTEXTSEARCH_JAVA_OPTIONS=-Xms1024M -Xmx1024M.

Replies: 2 comments

Comment options

I don't know what happened but it looks like my only options are to restore a backup or get rid of elasticsearch completely because I cannot get it to NOT use the environment variable now. I've tried removing the mastercontainer, the elasticsearch container and the elasticsearch volume and all combinations of those acts but it still tries to start with java options in the wrong place.

I'm gonna restore a backup, I'll check in in 12 hours when it completes, thanks.

You must be logged in to vote
0 replies
Comment options

@braccae To resolve this error, remove the quotation marks. So FULLTEXTSEARCH_JAVA_OPTIONS=-Xms1024M -Xmx1024M.

You must be logged in to vote
0 replies
Answer selected by szaimen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Converted from issue

This discussion was converted from issue #6960 on October 13, 2025 08:53.

AltStyle によって変換されたページ (->オリジナル) /