Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help with Shinobi Docker Compose config.json file

Featured Replies

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.

Have you tried pruning the unused containers? Is it still listed in the docker tab if you enable the advanced view?

  • Author

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.

 

 

  • Author

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?

  • Author

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?

  • 1 year later...

Did you ever get this to work? I am also looking to upgrade to the latest shinobi version...

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.