Photoprism not starting

  • Hi all,


    I have installed Photoprism plugin via the webgui but when I configure it and apply the changes I get an Internal server error 500 and it fails to start.


    I have tried to look through the error log in "systemctl status pod-photoprism.service" and i can see an error adding network and error adding pod to CNI network.


    Can anyone suggest something to try to fix this.


    Thanks

    Karl

    photoprism error.txt

  • It does not recognize the iptables command


    Code
    Jun 21 22:58:17 WDMCH podman[191580]: time="2022-06-21T22:58:17Z" level=error msg="Error adding network: running [/usr/sbin/iptables -t nat -C CNI-9f8ef913347073b6da990210 -d 172.16.16.251/24 -j ACCEPT -m comment --comment name: \"podman\" id: \"a699007138644b0cc7d99becb703e13be01e7d37e9ebd49d7467d9335399cebc\" --wait]: exit status 2: iptables v1.8.7 (nf_tables): Couldn't load match `comment':No such file or directory\n\nTry `iptables -h' or 'iptables --help' for more information.\n"


    You may have to use itables-legacy


    Code
    update-alternatives --set iptables /usr/sbin/iptables-legacy
    update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Hi Zoki,


    I have entered the commands you gave and uninstalled and reinstalled the plugin after a reboot and I am still getting the same error.


    Code
    Jun 22 13:55:48 WDMCH systemd[1]: Starting Podman pod-photoprism.service...
    Jun 22 13:55:48 WDMCH podman[48373]: 2022-06-22 13:55:48.733108987 +0000 UTC m=+0.445162016 container create 8b93f4d1e737f81806497cd35fd585a529e7d61b4778a5490f075720bab6821d (image=k8s.gcr.io/pause:3.2, name=e56b57516bae-infra)
    Jun 22 13:55:48 WDMCH podman[48373]: 2022-06-22 13:55:48.753407732 +0000 UTC m=+0.465460724 pod create e56b57516baed27bfec12717c9e43db27fda334fa1a222b43866fa06a6e3cc10 (image=, name=photoprism)
    Jun 22 13:55:48 WDMCH podman[48373]: e56b57516baed27bfec12717c9e43db27fda334fa1a222b43866fa06a6e3cc10
    Jun 22 13:55:49 WDMCH podman[48409]: time="2022-06-22T13:55:49Z" level=error msg="Error adding network: running [/usr/sbin/iptables -t nat -C CNI-2cfe555848e14683301d62ec -d 172.16.16.125/24 -j ACCEPT -m comment --comment name: \"podman\" id: \"8b93f4d1e737f81806497cd35fd585a529e7d61b4778a5490f075720bab6821d\" --wait]: exit status 2: iptables v1.8.7 (legacy): Couldn't load match `comment':No such file or directory\n\nTry `iptables -h' or 'iptables --help' for more information.\n"
    Jun 22 13:55:49 WDMCH podman[48409]: time="2022-06-22T13:55:49Z" level=error msg="Error while adding pod to CNI network \"podman\": running [/usr/sbin/iptables -t nat -C CNI-2cfe555848e14683301d62ec -d 172.16.16.125/24 -j ACCEPT -m comment --comment name: \"podman\" id: \"8b93f4d1e737f81806497cd35fd585a529e7d61b4778a5490f075720bab6821d\" --wait]: exit status 2: iptables v1.8.7 (legacy): Couldn't load match `comment':No such file or directory\n\nTry `iptables -h' or 'iptables --help' for more information.\n"
    Jun 22 13:55:49 WDMCH podman[48409]: Error: error starting container 8b93f4d1e737f81806497cd35fd585a529e7d61b4778a5490f075720bab6821d: error configuring network namespace for container 8b93f4d1e737f81806497cd35fd585a529e7d61b4778a5490f075720bab6821d: running [/usr/sbin/iptables -t nat -C CNI-2cfe555848e14683301d62ec -d 172.16.16.125/24 -j ACCEPT -m comment --comment name: "podman" id: "8b93f4d1e737f81806497cd35fd585a529e7d61b4778a5490f075720bab6821d" --wait]: exit status 2: iptables v1.8.7 (legacy): Couldn't load match `comment':No such file or directory
    Jun 22 13:55:49 WDMCH podman[48409]: Try `iptables -h' or 'iptables --help' for more information.
    Jun 22 13:55:49 WDMCH systemd[1]: pod-photoprism.service: Control process exited, code=exited, status=125/n/a
  • OK, so it is not the problem I experienced once. You can switch back to nftables if you like and wait for someone who is more into podman and how it uses iptables.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!