Posts by MIkey6283

    Hi Soma

    The latest script worked , however i don't have any logs at all but the ports are registered. I installed it twice both times no logs. I checked with an app mqtt fx and and test it and it publish & subscribed to hello world. I am not 100 % sure with out the logs.

    Can you explain when you have time as to why i ended up installing onto the ssd card and not as we trying to do on /home/docker?


    Code
    <img src="https://forum.openmediavault.org/wsc/index.php?attachment/19722-screenshot-2021-05-05-at-20-24-35-png/&thumbnail=1" class="woltlabAttachment" data-attachment-id="19722" id="wcfImgAttachment0">



    I have a user name as well as pi and mike was how i logged into pi this is what i thought i was logging into my home/username in steps 20 as could not cd into /home/username., perhaps if i can install it on this directory it will work correctly.


    I really appreciated the time and effort you have put into helping.

    error in nano Permission denied


    Code
    <img src="https://forum.openmediavault.org/wsc/index.php?attachment/19720-screenshot-2021-05-05-at-16-20-13-png/&thumbnail=1" class="woltlabAttachment" data-attachment-id="19720" id="wcfImgAttachment0">

    I checked to make sure to see which directory i was in and this is mike on my external ssd ?? Does this mean that i have the files on the ssd ?


    $ pwd

    /srv/dev-disk-by-uuid-e67cf220-d53c-4dfc-85db-41d8d6db235c/one/mike/docker-mosquitto

    $

    Somo


    Tried Cat no such file or directory see below



    Code
    $ cat /home/mike/docker-mosquitto/mosquitto/config/mosquitto.conf
    cat: /home/mike/docker-mosquitto/mosquitto/config/mosquitto.conf: No such file or directory
    $ docker run -it --name mosquitto -p 1883:1883 -v /home/mike/docker-mosquitto/mosquitto/config:/mosquitto/config/ -v /home/mike/docker-mosquitto/mosquitto/data:/mosquitto/data/ -v /home/mike/docker-mosquitto/mosquitto/log:/mosquitto/log/ eclipse-mosquitto
    1620222691: Error: Unable to open config file /mosquitto/config/mosquitto.conf.
    $ docker stop mosquitto && docker rm mosquitto
    mosquitto
    mosquitto

    Soma

    sorry but i have an error Unable to open Mosquitto config / mosquitto.conf



    Code
    $ docker run -it --name mosquitto -p 1883:1883 -v/home/mike/docker-mosquitto/mosquitto/config:/mosquitto/config/ -v /home/mike/docker-mosquitto/mosquitto/data:/mosquitto/data/ -v /home/mike/docker-mosquitto/mosquitto/log:/mosquitto/log/ eclipse-mosquitto
    1620220756: Error: Unable to open config file /mosquitto/config/mosquitto.conf.
    $ nano
    $ nano mosquitto/config/mosquitto.conf
    $ docker run -it --name mosquitto -p 1883:1883 -v/home/mike/docker-mosquitto/mosquitto/config:/mosquitto/config/ -v /home/mike/docker-mosquitto/mosquitto/data:/mosquitto/data/ -v /home/mike/docker-mosquitto/mosquitto/log:/mosquitto/log/ eclipse-mosquitto
    docker: Error response from daemon: Conflict. The container name "/mosquitto" is already in use by container "793027bfd1ca8cea6a4d33f71aee6985f8bd5d21cf49d972e44320b2024398b6". You have to remove (or rename) that container to be able to reuse that name.
    See 'docker run --help'.
    $

    I checked the nano mosquitto./config/mosquitto.conf it is fine, as you can see i tried again to load it?

    I check the nano conf it was

    Hi

    I have followed the install steps to create a user in docker group. this i found already exist, so i added my user name. Then logged out of Terminal to log back in for step to to go to /home/user. this is were the confusion sets in.

    I ssh into OMV thru PI or Mike @192.168 ( relevant password) i would normally cd to the relevant file , however this has proved to be incorrect.


    I am struggling on how to get to the docker cd /home/ user to complete the process. Again after looking thru countless pages on the web & docker i am afraid i am getting nowhere. I know that username is registered in sudo.docker group see below.


    I appreciate that i will be frustrating for you to after nurse me thru this but once it in its in? ( well this procedure anyway).



    Code
    <img src="https://forum.openmediavault.org/wsc/index.php?attachment/19714-screenshot-2021-05-05-at-09-56-05-png/&thumbnail=1" class="woltlabAttachment" data-attachment-id="19714" id="wcfImgAttachment0">

    I have tried for days now to solve it on my own , but there comes a point when you need guidance from the experts . I followed yours and i have the same result . This time i installed the 3 volumes manually. It showed that it connected to the ports then when off.


    1620144194: Error: Config file /mosquitto/config/mosquitto.conf is a directory.

    1620144208: Error: Config file /mosquitto/config/mosquitto.conf is a directory.

    1620144235: Error: Config file /mosquitto/config/mosquitto.conf is a directory.

    1620144287: Error: Config file /mosquitto/config/mosquitto.conf is a directory.

    HannesJo


    I am trying to resolve error , this was my original question, I am new to all this, the only way to learn is to as ask for guidance on what has to be done. You say my conf is a file and is bound to config so why is not being read ?

    What do i have to do to fix the error if script for the dat, log and config are correct so that i can move on ?

    Below is the command to download the image , I have stop and restarted several time with the same error. Is it possible for me to delete the container only keep the image and insert all the correct parameters( what every they are ) manually ?



    root@raspberrypi:/var/lib/docker/mqtt/config# sudo docker run --name=mqtt -itd --restart=always --net=host -v /volume1/docker/mqtt/config:/mosquitto/config -v /volume1/docker/mqtt/data:/mosquitto/data -v /volume1/docker/mqtt/log:/mosquitto/log -v /volume1/docker/mqtt/config/mosquitto.conf:/mosquitto/config/mosquitto.conf eclipse-mosquitto


    Unable to find image 'eclipse-mosquitto:latest' locally

    latest: Pulling from library/eclipse-mosquitto

    b452d2916bdf: Pull complete

    862b9e7501b2: Pull complete

    db1bede1c78a: Pull complete

    Digest: sha256:683189aaaf01240fe4ba3c0b3262704c4a3910c7293162e22e8f43a319fc9ed8

    Status: Downloaded newer image for eclipse-mosquitto:latest

    cb54d7ad925e812f4f26083b8bfa4c75ab8e6ff508cd1b7c00de5ca8f186d037


    This is what are the details in portainer.


    I really appreciated you help

    Code
    <img src="https://forum.openmediavault.org/wsc/index.php?attachment/19703-screenshot-2021-05-04-at-14-59-59-png/&thumbnail=1" class="woltlabAttachment" data-attachment-id="19703" id="wcfImgAttachment0">

    Hi


    I did understand the error message just didn't understand why container is not reading the file.

    I changed the volume directories as suggested and i am still getting the error message. The question is how do i insert these details into config for the container


    persistence true

    persistence_location /mosquitto/data/

    log_dest file /mosquitto/log/mosquitto.log

    #password_file /mosquitto/config/pwfile

    allow_anonymous true

    listener 1883 192.168.x.xxx

    Hi Soma


    Thanks for you quick response. I created the file below on VIM attached it to the Mosquitto/config directory , thinking that it would be read by the container. I am novice with docker & docker compose at the moment been using Home assistant mainly. i suppose i need need to learn more and create a docker compose yaml file ?


    Mqtt Conf File

    persistence true

    persistence_location /mosquitto/data/

    log_dest file /mosquitto/log/mosquitto.log

    #password_file /mosquitto/config/pwfile

    allow_anonymous true

    listener 1883 192.168.x.xxx


    i await your comments,

    Hi


    I have tried to installed Mosquitto into Docker again fresh install OMV , however i have the following error as i am new to Docker and OMV , could someone advise how i can install the Mosquitto.conf file into the container the most simple and easy ways. I need this file for MQTT to run. (i have the file in Visual Studio code )


    Any help would really be appreciated.


    thanks in advance



    Code
    <img src="https://forum.openmediavault.org/wsc/index.php?attachment/19701-screenshot-2021-05-04-at-08-21-44-png/&thumbnail=1" class="woltlabAttachment" data-attachment-id="19701" id="wcfImgAttachment0">