ElectricBadger

Members
  • Posts

    107
  • Joined

  • Last visited

Report Comments posted by ElectricBadger

  1. 22 hours ago, Squid said:

    Couple of comments.

     

    Any error in the docker run command (and after editing and apply with your changes)

    root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='GitLab-CE' --net='bridge' -e TZ="America/New_York" -e HOST_OS="Unraid" -e HOST_HOSTNAME="unRaidB" -e HOST_CONTAINERNAME="GitLab-CE" -l net.unraid.docker.managed=dockerman -l net.unraid.docker.webui='http://[IP]:[PORT:9080]' -l net.unraid.docker.icon='https://raw.githubusercontent.com/tynor88/docker-templates/master/images/gitlab_small.png' -p '9080:9080/tcp' -p '9443:9443/tcp' -p '9022:22/tcp' -v '/mnt/cache/appdata/gitlab-ce/config':'/etc/gitlab':'rw' -v '/mnt/cache/appdata/gitlab-ce/data':'/var/opt/gitlab':'rw' -v '/mnt/cache/appdata/gitlab-ce/log':'/var/log/gitlab':'rw' --env GITLAB_OMNIBUS_CONFIG="external_url 'https://git.example.com';nginx['custom_gitlab_server_config'] = "location /-/plantuml/ { \n proxy_cache off; \n proxy_pass http://plantuml:8080/; \n}\n";prometheus_monitoring['enable']=false;" 'gitlab/gitlab-ce'
    sh: line 1: n}n;prometheus_monitoring['enable']=false;: command not found
    
    The command failed.

    Results in the container "disappearing".  This is because for all intents and purposes it does NOT exist anymore because the installation (ie: the docker run command) failed

     

    The appropriate method to get the app back installed is via Apps - Previous Apps and then it would show up the template with the changes you had made so that you can edit them appropriately to fix the error.  

     

    Doing a search in Apps for it would also give you the option to either Reinstall from Previous or Install -> Install sets the template back to defaults and depending upon what paths etc you had made would result in data loss

     

    Technically the appropriate method to add an envronment variable is via the Add Another Path / Port / Variable and enter in the appropriate entry there.  The system will automatically escape everything accordingly.  Adding variables via the Extra Parameters does work however

     

    Thanks — I had forgotten about Previous Apps. That would probably have saved a lot of time 🤦‍♂️

     

    For some reason I didn't get the Reinstall from Previous option. I don't have a different version of the GitLab container in Previous Apps, so I'm guessing I did click on the same one that I was using previously, but it's probably too late to find out what happened there…

     

    I'm not even sure why that environment variable is added via Extra Parameters (I suspect I was following a set of install instructions that were incorrect) but I'll try adding it in the correct way when I have a bit more time. Not having to deal with the escaping is reason enough to make the switch 🙂

  2. After reinstalling the container, it seemed to zero the databases and start afresh, even though it was pointed at the same appdata locations. It's a good job I had a backup, even though it took two tries to restore the user database and I still don't have the projects restored!

     

    Mismatching quotes in an environment variable absolutely should not cause this level of data loss.