-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ID and Password #4
Comments
admin account I figured from the Dockerhub tags, the password is administrator [https://hub.docker.com/r/migoller/shinobi/~/dockerfile/] But in the admin interface, I am unable to create any further users. |
Hey guys. I'm sorry for being offline so long. If you do not set any environment variables running a container based on my Shinobi Docker images you should be able to access the corresponding web UIs: How to access the different UIsAs far as I know it's not possible to login to the admin UI or the default web UI with the super admin account! I struggled a long time with those issues when I started to set up Shinobi. So, please add at least a regular admin account to your installation first, right? If you want to integrate any LDAP accounts, please let me know. The Super Admin UITry to open
After the login succeeded you should get a screen like this. Hit "+" on the right side of "Account" to enter a new regular admin account. The Admin UIOpen The (default) Web UINow try to open Here we go ...Please let me know, if you're able to login now. @todvndvn : You say
To which admin interface do you login: Super admin UI or admin UI? Best Regards, |
Except for the initial login on IPADDRESS/super URL, nothing is working. Unable to create any users in IPADDRESS/admin page or on the IPADDRESS:PORT page. Upon further digging I found that mysql did not create database. I logged into the container tried to start mysql and failed. So I uninstalled and reinstalled mysql but it still stuck the same sock error as below.
Appreciate your inputs. Thanks. |
Ah, ok. Looks like I have to update the readme files. I'm sorry for that. I've stripped down the image for micro-services environments; so MySQL or MariaDB are missing at all. The images support existing MySQL oder MariaDB servers. You'll have to set the following environment variables to accomplish that:
If you set these environment variables the container will check upon every start if the database exists. If not, the container will create the database even on a remote host, creates the user account, sets it's password and grants access to the Shinobi database. So, do you have an existing MySQL or MariaDB server? If not I'll supply instruction on how to set up a dedicated MySQL server on Docker; another way is to run docker stack or compose to create the corresponding containers. I'll provide that szenario within my upcoming commits. For easier use I'll add another flavour of images with already installed MySQL servers. Would the be helpfull to you? Regards, |
Hey all, thank you for your feedback. I've setup an environment for this issue and I'm able to reproduce a stable workaround as long as none of my images ships with MySQL. Ok, let's go. Please follow the instructions to get it up and running, hopefully. The following steps will pull my latest Alpine-based Shinobi image and the latest MariaDB image from Docker Hub. I encountered many problems setting up the environment with the latest MySQL image. Docker-ComposeInstall docker-compose if it's not installed. A dedicated directory for the Shinobi instanceCreate a directory for this workaround to keep Shinobi's database, configuration files and video files. Let's say we name it Change into that freshly created directory. Now create the the subdirectories for database, configuration files and video files. Create the environment filesYou will create environment files now for Shinobi and MariaDB settings, so we do not have to pass the environment variables to each container for every variable. Shinoni.env : Shinobi settingsCreate a file named
MySQL.env : Database settingsCreate a file named
Creating and running a stack of Shinobi web app and MariaDB serverNext we will use The docker-compose.yml fileCreate a file named
This file instructs
We will persist the data with volume mounts to the directories created earlier. Create the stackOk, now let's see if the stack's containers will be created as expected. Finally the output should show that the containers have been created. The output must not show errors creating the containers.
If you have named the directory differently the containers will have different names. Run the stackWe have successfully created the containers. Now start the stack for the very first time. The
The first start will take a few moments because the MariaDB server environment and the Shinobi database have to be set up first. Look for
Login to the web UIsNow you should be able to login to the super admin dashboard at If you're able to login as the super admin with the credentials found in the Now login Finally login to the users dashboard Please let me know if you get it up and running. Regards, |
@MiGoller Oh Boy!! what a guide.. kudos for a great writeup. Its successfully up and running.........just like that.
|
You're welcome. I'm happy about you get it up and running successfully. Thank you for your feedback. I'll modify my docs and publish them later. I will close this issue, right? Btw: Do your run Docker CE on a Linux distro? If so, did you follow the installation on Get Docker CE for Ubuntu? Docker privides Post-installation steps for Linux including a section on how to manage Docker as a non-root user. You'd just have to create a group named Regards, |
This is very helpful. I think that an older Docker solution for shinobi managed to have the mysql database inside the container, rather than in external volumes on persistent storage. I would really like to be able to re-create the containers to get later versions without having to worry about all that state disappearing. |
Hey Imamakos. I'm sorry for comming back to you so lately. I still provide "official" Docker images for Shinobi including MariaDB server as well. It's up to you. Please have a look at the "offical"-tagged images on https://cloud.docker.com/repository/docker/migoller/shinobidocker/tags . To persist your data using the "official" images you have to bind or mount the container's data directory |
Hey Imamakos. I'll close this issue if my hint did the trick to you. |
Sure, thanks for the pointer. |
Hi,
I'm trying to log into the admin account
Web Address : http://xxx.xxx.xxx.xxx:8080/super
Username : admin@shinobi.video
Password : admin
but it won't accept the password. Any suggestions?
The text was updated successfully, but these errors were encountered: