FileCloud running in docker with mounted HDD

When creating a new FileCloud instance in docker, I run into some issues regarding where the data is stored.

I am trying to set up a FileCloud server and FileCloud mongoDB, almost identical to the example docker-compose.yml here, https://patch.codelathe.com/tonidocloud/live/scripts/fc/docker-compose.yml.
Currently, I have removed solr and preview since I don’t need those at the moment.
In my server I have 2 HDDs, one SSD 128GB and one mechanical HDD 3TB (/mnt/disk1). The OS (ubuntu-server 22.04.3 LTS) is installed on the SSD and I want to use the mechanical HDD for the actual storage of data.
The filecloud server runs version filecloud/filecloudserver23.1:latest and the mongoDB runs version mongo:4.4.18 (older version due to AVX).
I am trying to mount volumes from a folder on my mechanical HDD (/mnt/disk1/filecloud), e.g.:

  • /mnt/disk1/filecloud/cloud_data:/var/clouddata
  • /mnt/disk1/filecloud/var_html:/var/www/html
  • /mnt/disk1/filecloud/mongo_database:/data/db

When I launch my services filecloud.server and filecloud.mongodb, they seem to get stuck on some initial steps.

logs from filecloud.server:

Install cron driver...
*/5 * * * * php /var/www/html/src/Scripts/cron.php
Updating missing file/folder permissions...
chmod: cannot access '/var/www/html/thirdparty/prop/*': No such file or directory
chmod: cannot access '/var/www/html/config': No such file or directory
chmod: cannot access '/var/www/html/config/*': No such file or directory
cp: cannot stat '/var/www/html/config/cloudconfig-sample.php': No such file or directory
cp: cannot stat '/var/www/html/config/localstorageconfig-sample.php': No such file or directory
sed: can't read /var/www/html/config/localstorageconfig.php: No such file or directory
Starting Cron
 * Starting periodic command scheduler cron
   ...done.
Starting supervisord...
Starting memcached: memcached.
Starting Apache...
[Tue Nov 28 16:18:40.056120 2023] [proxy:warn] [pid 45] AH01146: Ignoring parameter 'max=100' for worker 'ws://localhost:9002/rtm' because of worker sharing
[Tue Nov 28 16:18:40.056297 2023] [proxy:warn] [pid 45] AH01146: Ignoring parameter 'acquire=2000' for worker 'ws://localhost:9002/rtm' because of worker sharing
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.30.0.3. Set the 'ServerName' directive globally to suppress this message
httpd (pid 23) already running
Starting port forwards...

logs from filecloud.mongodb:

WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!
  see https://jira.mongodb.org/browse/SERVER-54407
  see also https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610/2
  see also https://github.com/docker-library/mongo/issues/485#issuecomment-891991814

{"t":{"$date":"2023-11-28T16:42:27.208+00:00"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2023-11-28T16:42:27.211+00:00"},"s":"I",  "c":"NETWORK",  "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
{"t":{"$date":"2023-11-28T16:42:27.212+00:00"},"s":"I",  "c":"STORAGE",  "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":1,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"91c4a64b9db4"}}
{"t":{"$date":"2023-11-28T16:42:27.212+00:00"},"s":"I",  "c":"CONTROL",  "id":23403,   "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.18","gitVersion":"8ed32b5c2c68ebe7f8ae2ebe8d23f36037a17dea","openSSLVersion":"OpenSSL 1.1.1f  31 Mar 2020","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu2004","distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2023-11-28T16:42:27.212+00:00"},"s":"I",  "c":"CONTROL",  "id":51765,   "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"20.04"}}}
{"t":{"$date":"2023-11-28T16:42:27.212+00:00"},"s":"I",  "c":"CONTROL",  "id":21951,   "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"bindIp":"*"}}}}
{"t":{"$date":"2023-11-28T16:42:27.213+00:00"},"s":"I",  "c":"STORAGE",  "id":22270,   "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"/data/db","storageEngine":"wiredTiger"}}
{"t":{"$date":"2023-11-28T16:42:27.213+00:00"},"s":"I",  "c":"STORAGE",  "id":22297,   "ctx":"initandlisten","msg":"Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem","tags":["startupWarnings"]}
{"t":{"$date":"2023-11-28T16:42:27.213+00:00"},"s":"I",  "c":"STORAGE",  "id":22315,   "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=1378M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}}
{"t":{"$date":"2023-11-28T16:42:28.000+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1701189748:780][1:0x7fa5b4955cc0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 5 through 6"}}
{"t":{"$date":"2023-11-28T16:42:28.072+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1701189748:72640][1:0x7fa5b4955cc0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 6 through 6"}}
{"t":{"$date":"2023-11-28T16:42:28.189+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1701189748:189793][1:0x7fa5b4955cc0], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Main recovery loop: starting at 5/67712 to 6/256"}}
{"t":{"$date":"2023-11-28T16:42:28.328+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1701189748:328671][1:0x7fa5b4955cc0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 5 through 6"}}
{"t":{"$date":"2023-11-28T16:42:28.450+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1701189748:450301][1:0x7fa5b4955cc0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 6 through 6"}}
{"t":{"$date":"2023-11-28T16:42:28.515+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1701189748:515063][1:0x7fa5b4955cc0], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global recovery timestamp: (0, 0)"}}
{"t":{"$date":"2023-11-28T16:42:28.515+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1701189748:515108][1:0x7fa5b4955cc0], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global oldest timestamp: (0, 0)"}}
{"t":{"$date":"2023-11-28T16:42:28.516+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1701189748:516103][1:0x7fa5b4955cc0], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 1, snapshot max: 1 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 141"}}
{"t":{"$date":"2023-11-28T16:42:28.667+00:00"},"s":"I",  "c":"STORAGE",  "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":1454}}
{"t":{"$date":"2023-11-28T16:42:28.667+00:00"},"s":"I",  "c":"RECOVERY", "id":23987,   "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2023-11-28T16:42:28.672+00:00"},"s":"I",  "c":"STORAGE",  "id":22262,   "ctx":"initandlisten","msg":"Timestamp monitor starting"}
{"t":{"$date":"2023-11-28T16:42:28.760+00:00"},"s":"W",  "c":"CONTROL",  "id":22120,   "ctx":"initandlisten","msg":"Access control is not enabled for the database. Read and write access to data and configuration is unrestricted","tags":["startupWarnings"]}
{"t":{"$date":"2023-11-28T16:42:28.761+00:00"},"s":"W",  "c":"CONTROL",  "id":22184,   "ctx":"initandlisten","msg":"Soft rlimits too low","attr":{"currentValue":1024,"recommendedMinimum":64000},"tags":["startupWarnings"]}
{"t":{"$date":"2023-11-28T16:42:28.766+00:00"},"s":"I",  "c":"STORAGE",  "id":20536,   "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"}
{"t":{"$date":"2023-11-28T16:42:28.768+00:00"},"s":"I",  "c":"FTDC",     "id":20625,   "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"/data/db/diagnostic.data"}}
{"t":{"$date":"2023-11-28T16:42:28.769+00:00"},"s":"I",  "c":"REPL",     "id":6015317, "ctx":"initandlisten","msg":"Setting new configuration state","attr":{"newState":"ConfigReplicationDisabled","oldState":"ConfigPreStart"}}
{"t":{"$date":"2023-11-28T16:42:28.770+00:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"/tmp/mongodb-27017.sock"}}
{"t":{"$date":"2023-11-28T16:42:28.770+00:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"0.0.0.0"}}
{"t":{"$date":"2023-11-28T16:42:28.770+00:00"},"s":"I",  "c":"NETWORK",  "id":23016,   "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
{"t":{"$date":"2023-11-28T16:42:29.204+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.31.0.3:35972","connectionId":1,"connectionCount":1}}
{"t":{"$date":"2023-11-28T16:42:29.210+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1","msg":"client metadata","attr":{"remote":"172.31.0.3:35972","client":"conn1","doc":{"driver":{"name":"nodejs","version":"5.4.0"},"platform":"Node.js v18.17.1, LE","os":{"name":"linux","architecture":"x64","version":"5.15.0-89-generic","type":"Linux"}}}}

I have tried using a namned volume in docker-compose, without specifying any directory on the host. This works just fine, no other changes to the docker-compose file. (also add the top level volumes section…)

  • cloud_data:/var/clouddata
  • var_html:/var/www/html
  • mongo_database:/data/db
    So it is possible to rule out the versions of both mongoDB and filecloud. This is unfortunately not an option for me, since the OS is installed on a small SSD with only 128GB storage size and filecloud now shares the storage space on that disk. Volumes are stored by default on the host in /var.

I have not yet tried to run FileCloud on the host server yet, because I want the flexibilty of docker.

Anyone have any idea on how to solve this docker issue with FileCloud?
Best regards

Hi,

FileCloud versions 23.x require MongoDB version 6. To upgrade to MongoDB version 6, you must upgrade the Docker image to 23.x. MongoDB 6 requires use of the AVX instruction set, which is available on select Intel and AMD processors. If your CPU doesn’t have the AVX instruction set, MongoDB 6 will not run.