How do I passthrough the host CPU to the Filecloud docker container?

I’m getting stuck on the admin login screen.

Originally, it said that MongoDB needed AVX support, so I changed the MongoDB from version 6.0.3 (I think) down to 4.4.16 (after googling it).

So my thinking right now is to go back to MongoDB 6.0.3 to see if that might help get me unstuck on said admin login screen.

When I go to the page http://<<my_host_ip>>/install; everything has a check mark there.

I am new to Docker, Docker-Compose, and Filecloud.

Here are the details for my environment:

Hardware:
2x Intel Xeon 2697A v4 (16-core/32-thread, AVX IS supported (according to wikipedia))
256 GB DDR4-2400 ECC Reg RAM
16x HGST 10 TB
16x HGST 6 TB
4x HGST 3 TB
Mellanox ConnectX-4 100 Gbps Infiniband NIC

OS:
Proxmox 7.4-3

VM:
Ubuntu 22.04 (CPU type is already set to “host”)
When I type in cat /proc/cpuinfo | grep avx, I can confirm that the Ubuntu VM does show avx present in said Ubuntu VM.

I’m using portainer to help manage the docker containers.

I’ve deployed filecloud via these instructions:

(I downloaded the docker-compose.yml and then pasted it into the portainer stack text editor, and then clicked deploy this stack.)

When I connect to the console on the filecloud.server container and then type cat /proc/cpuinfo | grep avx, that returns with nothing.

But when I type in cat /proc/cpuinfo, that’s when I find out that the cpu type that the docker container has been set up with is “Common KVM Processor”, which doesn’t have AVX support.

So, I am trying to figure out how I can change the CPU type, for a docker container.

Your help is greatly appreciated.

Thank you.

Hi @alpha754293,

Thank you for the details.

Just for clarification, are you experiencing issue while trying to login into Admin Portal? If yes,

Open the configuration file cloudconfig.php which will under the following path:

/var/www/html/config/cloudconfig.php

Check for the following line:

define(“TONIDOCLOUD_SECURE_COOKIE”, 1);
Please change the value to 0 and save the file.

Then you should be able to login to admin portal.

Then please check and confirm, if the Disable IP check option is disabled from your end. It can be checked as follows:

  1. Log into Admin Portal [ Can try to login through http://hostip/admin ]
  2. From the left navigation panel, select SETTINGS and then Misc and then General
  3. On the Settings screen, select the Misc. tab, and then the General sub tab.
  4. Check for Disable IP Check, select the checkbox to disable the IP check on every request. Then save the changes. This allows you to avoid IP comparison on cookies.

If you find any difficulty, kindly let us know.

Happy to help

Thank you.

In regards to the instructions re: Docker deployment – how do I pass the host CPU through to the docker container, so that the AVX instructions will also be passed through as well?

In its current state, following the migration of MongoDB to version 6+, where it needs the AVX instruction set from the CPU, the instructions for the docker deployment does not support nor enable this.

Being someone who is new to docker, docker-compose, and filecloud, my mental model goes towards that I am hoping/guessing that someone from the FileCloud development team (for the docker deployment instructions), might already have been made aware of this issue/compatibility between the MongoDB version and the AVX instruction set not getting passed through to the docker container where filecloud.server is getting deployed.

(Because the docker container has cpu-type = “Common KVM Processor”.)

I tried googling to see if there is a way to change the CPU type to “host”, but I haven’t been successful in locating documentation that provides the instructions on how to do that.

Your help is greatly appreciated.

Thank you.

So I edited /var/www/html/config/cloudconfig.php as instructed above, but it still doesn’t work.

Do I need to restart apache2? I tried running systemctl restart apache2 and it said that systemd wasn’t running on the docker container.

If I need to restart the docker container, how do I go about doing that if it didn’t use systemd?

My apologies for my stupid questions.

Your help is greatly appreciated.

Thank you.

Hi @alpha754293,

Thank you for the update.

No worries, we will check this for you.

Could you please give a try to install Docker Engine on your Ubuntu Operating System as guided below:
Install Docker Engine on Ubuntu | Docker Documentation followed by the FileCloud installation.

If the issue persists then to further troubleshoot kindly provide us with the Apache Webserver logs and FileCloud server logs from below location:

Linux: /var/log/apache2

You can find the FileCloud logs from here:

Linux: /var/www/scratch/logs/log_YYYY-MM-DD.txt (in Ubuntu 14.04 and later
/var/www/html/scratch/logs/log_YYYY_MM_DD.txt)

Kindly upload them here:

Happy to help

Thank you for your suggestions.

I’m actually in the process of getting a second Ubuntu VM set up to test this without portainer.

I would also like to bring it to the attention of the team that the docker instructions also state:
" If you do not want to start the optional containers filecloud.solr and filelcoud.preview, remove filecloud.solr and filecloud.preview from the command."

The issue with this is that in the docker-compose.yml, it states that filecloud.server depends on filecloud.preview.

Therefore; there is an inherent conflict between the instructions vs. what’s in the docker-compose.yml file.

With me being new to docker, docker-compose, and filecloud, this step in the instructions is confusing.

Thank you.

Hi @alpha754293,

Kindly apologies for the confusion caused.

Thank you for taking this to our notice. I will report and check this with our server team at the earliest.

I think that I got it working now.

It took a while for FileCloud to come up online after I restarted the container.

Thank you.

I also got it to work in docker, on a “standalone” Ubuntu VM (i.e. NOT deployed via portainer).

AVX passthrough worked using this second method.

Thank you for your help.

Hi @alpha754293,

Awesome! glad to know that it is working now.

If you find any difficulty, please do not hesitate to reach out to us. We are here to help you out.

Happy to help