CMK version: 2.1.0p10
OS version: RHEL 8.5
Error message: PermissionError: [Errno 13] Permission denied: ‘/omd/sites/cmk/tmp/apache’
Hi, I’m attempting to install CheckMK as a Podman container using RHEL. The commands are very similar (couple of syntax mismatches) to those presented in the manual but I seem to be having permission issues. Interestingly the scripts do not appear to be creating any folder structure in starting from /omd.
I’ve attempted to run this as both root and an administrator called admin. I’ve run it elevating using sudo from admin also and after manually creating the file structure. Each time presents the same apache error.
A full output of the logs is below:
[admin@localhost ~]$ sudo podman container run -dit -p 8080:5000 -p 8000:8000 --tmpfs /opt/omd/sites/cmk/tmp -v monitoring:/omd/sites --name monitoring2 -v /etc/localtime:/etc/localtime:ro --restart always localhost/checkmk/check-mk-raw:2.1.0p10
a95699f08ae2190a7ddda19c87a69de18b9b62786ff592ea863e11f95a59a61d
[admin@localhost ~]$ podman logs monitoring2
Error: no container with name or ID "monitoring2" found: no such container
[admin@localhost ~]$ sudo podman logs monitoring2
### STARTING XINETD
[ ok ] Starting internet superserver: xinetd.
### STARTING SITE
Temporary filesystem already mounted
Traceback (most recent call last):
File "/usr/bin/omd", line 63, in <module>
omdlib.main.main()
File "/omd/versions/2.1.0p10.cre/lib/python3/omdlib/main.py", line 4671, in main
command.handler(version_info, site, global_opts, args, command_options)
File "/omd/versions/2.1.0p10.cre/lib/python3/omdlib/main.py", line 4132, in <lambda>
handler=lambda version_info, site, global_opts, args_text, opts: main_init_action(
File "/omd/versions/2.1.0p10.cre/lib/python3/omdlib/main.py", line 3035, in main_init_action
exit_status = init_action(version_info, site, global_opts, command, args, options)
File "/omd/versions/2.1.0p10.cre/lib/python3/omdlib/main.py", line 1601, in init_action
prepare_and_populate_tmpfs(version_info, site)
File "/omd/versions/2.1.0p10.cre/lib/python3/omdlib/main.py", line 356, in prepare_and_populate_tmpfs
create_skeleton_files(site, "tmp")
File "/omd/versions/2.1.0p10.cre/lib/python3/omdlib/main.py", line 295, in create_skeleton_files
create_skeleton_file(skelroot, site.dir, dirpath + "/" + entry, replacements)
File "/omd/versions/2.1.0p10.cre/lib/python3/omdlib/main.py", line 335, in create_skeleton_file
os.makedirs(user_path)
File "/omd/versions/2.1.0p10.cre/lib/python3.9/os.py", line 225, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/omd/sites/cmk/tmp/apache'
If anyone can please present any pointers I’d very much appreciate it.
Thanks for your time!