Open mdefende opened 1 year ago
Are you by chance running the container on a host with SELinux enabled? If so, you will want to mount the volume with the archive data with the :z
flag.
I do not have any SELinux packages installed on the host so I don't think that would be a problem. Just to give a bit more explanation, I ran the following steps:
docker build --build-arg SLURM_TAG="slurm-18-08-6-1" -t slurm-docker-cluster:18.08.6 .
IMAGE_TAG=18.08.6 docker-compose up -d
./register_cluster.sh
docker cp slurm_archive slurmdbd:/data/slurm_archive
. slurmdbd
container using docker exec -it slurmdbd bash
. I can see the archive file was successfully transferred to the /data
directory in the containersacctmgr archive load file=/data/slurm_archive
which gave the error aboveThe host VM I'm running is Ubuntu 22.04
if that helps
Hi,
Firstly, thanks for creating the docker images for Slurm, it was much easier to set up this way. The main reason I wanted to set up Slurm is to read in some job archive data from my university's cluster for some metrics. I went through your instructions and everything ran well, I was able to copy the archive data to the
slurmdbd
container. I then accessed it usingdocker exec -it slurmdbd bash
. From there, I tried to load the archive data using the commandsacctmgr archive load file=/data/slurm_archive
. However, this gave me the following error:I'm running as root so I didn't figure there would be any permission errors. Just wondering if there was some setup I was missing if you knew anything offhand. Thanks