-
AutorBeiträge
-
-
6. Dezember 2024 um 15:17 Uhr - Views: 222 #33570
After a successful migration, I got an „Internal Server Error“ in any ticket I entered.
Docker containers are healthy.
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
otobo-daemon-1 rotheross/otobo:latest-10_1 "/opt/otobo_install/…" daemon 4 hours ago Up About an hour (healthy)
otobo-db-1 mariadb:10.5 "docker-entrypoint.s…" db 4 hours ago Up 3 hours (healthy) 3306/tcp
otobo-elastic-1 rotheross/otobo-elasticsearch:latest-10_1 "/bin/tini -- /usr/l…" elastic 4 hours ago Up 3 hours (healthy) 9200/tcp, 9300/tcp
otobo-redis-1 redis:6.0-alpine "docker-entrypoint.s…" redis 4 hours ago Up 3 hours (healthy) 6379/tcp
otobo-web-1 rotheross/otobo:latest-10_1 "/opt/otobo_install/…" web 4 hours ago Up 3 hours (healthy) 0.0.0.0:80->5000/tcp
-
Dieses Thema wurde geändert vor 8 Monaten, 3 Wochen von
AnteIde Marić.
-
Dieses Thema wurde geändert vor 8 Monaten, 3 Wochen von
-
6. Dezember 2024 um 15:21 Uhr #33571
n the log of the otobo-web-1 container I see the following:
-
11. Dezember 2024 um 8:32 Uhr #33740
For testing, I set the directory _/opt/otobo/var/article/2024 and all its subdirectories in the Docker container to 777 permissions:
chmod -R 777 2024
After which all the tickets are properly opened.
At the suggestion of the logs, I tried to run the otobo.SetPermissions.pl script, but I got an error that it should be run as root:otobo@b087f8829d05:~/bin$ ./otobo.SetPermissions.pl
ERROR: Please run this script as superuser (root).If I run it as root I get an error that I don’t have permission to run the script:
[root@otobo-test bin]# docker exec -ti –user root otobo-web-1 /bin/bash
root@b087f8829d05:/opt/otobo# cd bin
root@b087f8829d05:/opt/otobo/bin# ./otobo.SetPermissions.pl
Can’t open perl script „./otobo.SetPermissions.pl“: Permission denied
I changed the permissions as owner (otobo) inside the container, set it to permission 775 file ./otobo.SetPermissions.pl and ran the script, but now the following errors occur:
….
ERROR: could not change /var/article/2024/06/13/699801 permissions 777 -> 2775: Operation not permitted
ERROR: could not change /var/article/2024/06/13/699801/file-2 permissions 777 -> 660: Operation not permitted
ERROR: could not change /var/article/2024/06/13/699801/file-2.content_type permissions 777 -> 660: Operation not permitted
ERROR: could not change /var/article/2024/06/10 permissions 777 -> 2775: Operation not permitted
ERROR: could not change /Kernel/Config.under permissions 640 -> 660: Operation not permitted
ERROR: could not change /Kernel/Config/Files/User permissions 2770 -> 2775: Operation not permitted
Can’t opendir(/opt/otobo/Kernel/Config/Files/User): Permission denied
at ./otobo.SetPermissions.pl line 198.
ERROR: could not change /bin/otobo.SetPermissions.pl permissions 755 -> 770: Operation not permitted
because root is not the owner of articles and other files listed here.I run the script as user otobo but it doesn’t work. It still appears that I ran the script as root:
. /otobo.SetPermissions.pl –otobo-user=otobo
and I get the same errors.How to run this script? :O
-
13. Dezember 2024 um 13:54 Uhr #33791
Hi AnteIde,
just an idea by myself – are you able to run the script with sudo? (perhaps this doesn’t make any difference, but it may be worth a try).
Kind regards,
Stefan -
24. Dezember 2024 um 9:05 Uhr #33866
Hi,
Thank you Stefan, but I don’t know the root password of docker container otobo-web-1.
Can you please help?
-
19. August 2025 um 9:54 Uhr #35862
We have exactly the same issue.
No way to run the permission script. I know that in a non docker installation the script runs fine as we were using it when doing OTRS upgrade but within docker I’m a bit stuck.
I’ll see if the script can be modified to ignore the root user check
-
20. August 2025 um 10:05 Uhr #35864
Looks like the script is not completely adapted for containerization.
The line
sub Run {
if ( $> != 0 ) { # $EFFECTIVE_USER_ID
print STDERR „ERROR: Please run this script as superuser (root).\n“;exit 1;
}Search for the ID of the user but oboto user is 1000 hence the script wont run.
You just need to remove the exit 1; or change the line $>!=0 to $>!=1000
-
-
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.