rbrowning85 Posted August 25, 2023 Share Posted August 25, 2023 I have been using UnRaid for about a month now, and I was looking to start using my UnRaid server as an NVR for my security cameras. I followed SpaceInvaderOne's tutorial to setup Shinobi. However, the app in the Community Applications is very out of date. So I sought to install the latest version of Shinobi using their docker instructions. I tried running the command: bash <(curl -s https://gitlab.com/Shinobi-Systems/Shinobi-Installer/raw/master/shinobi-docker.sh) from https://docs.shinobi.video/installation/docker. It did not work initially. I was told that I had to install Docker Compose, so I did. I found a plugin in CA, then re-ran the command, and the previous command worked perfectly. I had Shinobi up and running as expected. During the setup process I attempted to change the folder where videos were to be stored. I changed the location to be: mnt/user/NVR/videos. However, after saving I could no longer access Shinobi. I found the following errors in the Shinobi docker logs: ERROR 1396 (HY000) at line 7 in file: '/home/Shinobi/sql/user.sql' : Operation CREATE USER failed for 'majesticflame'@'127.0.0.1' Error: ENOENT: no such file or directory, mkdir 'mnt/user/NVR/videos/' I tried uninstalling and reinstalling the docker container, but I received the same the errors after reinstalling the container. I assume that this is because there is a Docker template file somewhere that did not get removed when I uninstalled the container. I looked in /boot/config/plugins/dockerMan/templates-user/ but I did not see a template. I am also unable to locate the config.json file in order to manually reset or change the video directory. I assume it is buried within the docker image. Please help. I have been trying to Google everything I could think of to help me solve this problem, but this is where my knowledge of UnRaid, Docker, and command line prompts runs out. Short of completely formatting my server, I am open to doing whatever it takes to get this issue resolved. Again, since my server has only been up and running for about a month, I dont have that much installed and can recreate just about everything. Thanks in advance. Quote Link to comment
Michael_P Posted August 25, 2023 Share Posted August 25, 2023 Have you tried pruning the unused containers? Is it still listed in the docker tab if you enable the advanced view? Quote Link to comment
rbrowning85 Posted August 25, 2023 Author Share Posted August 25, 2023 Pardon my ignorance. How do i prune the unused containers? For some reason the Shinobi docker never shows up in the Appdata folder. That's part of my confusion/frustration. I am not sure where it was saved to be able to completely wipe it out and start fresh. No, it is not listed in the docker tab under advanced view. Quote Link to comment
Michael_P Posted August 25, 2023 Share Posted August 25, 2023 21 minutes ago, rbrowning85 said: How do i prune the unused containers? You can see what's laying around from the command line with docker ps -a and cleanup dangling with docker image prune -a More info here: https://docs.docker.com/config/pruning/#:~:text=The docker image prune command,%24 docker image prune WARNING! Quote Link to comment
rbrowning85 Posted August 26, 2023 Author Share Posted August 26, 2023 I ran both command lines. The first one only showed the dockers that were installed. Shinobi wasnt listed. I also ran the prune command and it cleaned 0B. Any other ideas? Quote Link to comment
rbrowning85 Posted August 26, 2023 Author Share Posted August 26, 2023 It appears that the Shinobi docker container is on network "root_default" instead of Bridge. I assume this makes a difference? If so, how do I correct it? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.