ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Fedora Salt Master - New installation

    IT Discussion
    salt salt master setup error
    6
    56
    4.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JaredBuschJ
      JaredBusch @scottalanmiller
      last edited by

      @scottalanmiller said in Fedora Salt Master - New installation:

      @DustinB3403 said in Fedora Salt Master - New installation:

      @coliver yea, it's running, but it can't use the ports it automatically setup to run. .

      Which is why I'm asking if I've missed something. .

      We just determined that it is using those ports.

      It wasn't starting because SELinux. it seems as it started after he disabled it.
      63821419-7754-4c2d-a2b7-9d2cab47e71b-image.png

      So now it is starting, but if it is still not tlaking, then that is likely because of the firewall as @Curtis said

      scottalanmillerS 1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller @DustinB3403
        last edited by

        @DustinB3403 said in Fedora Salt Master - New installation:

        I just did pkill salt-master and am checking salt-master --log-level=debug and have more output this time.

        You should not be killing or starting Salt manually. Use systemctl to start and stop. I think that's what is confusing you.

        DustinB3403D 1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @JaredBusch
          last edited by

          @JaredBusch said in Fedora Salt Master - New installation:

          @scottalanmiller said in Fedora Salt Master - New installation:

          @DustinB3403 said in Fedora Salt Master - New installation:

          @coliver yea, it's running, but it can't use the ports it automatically setup to run. .

          Which is why I'm asking if I've missed something. .

          We just determined that it is using those ports.

          It wasn't starting because SELinux. it seems as it started after he disabled it.
          63821419-7754-4c2d-a2b7-9d2cab47e71b-image.png

          So now it is starting, but if it is still not tlaking, then that is likely because of the firewall as @Curtis said

          Okay, so it is all fixed now?

          1 Reply Last reply Reply Quote 0
          • DustinB3403D
            DustinB3403 @scottalanmiller
            last edited by

            @scottalanmiller said in Fedora Salt Master - New installation:

            @DustinB3403 said in Fedora Salt Master - New installation:

            I just did pkill salt-master and am checking salt-master --log-level=debug and have more output this time.

            You should not be killing or starting Salt manually. Use systemctl to start and stop. I think that's what is confusing you.

            I just tried that as a step because the dev github recommended it for another person who is having the same exact issue.

            Literally brand new install of Fed 30 Server.

            @JaredBusch, the service was always running, the ports have never worked.

            scottalanmillerS 1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @DustinB3403
              last edited by

              @DustinB3403 said in Fedora Salt Master - New installation:

              @JaredBusch, the service was always running, the ports have never worked.

              Something is wrong there. The thing that is determing that the "ports do not work" was based on trying to start the Salt Master, but it was already running. That tells us that the ports were working.

              Other than that, why do you feel that the ports are not working?

              1 Reply Last reply Reply Quote 1
              • DustinB3403D
                DustinB3403
                last edited by

                firewall-cmd --list-ports
                4505/tcp 4506/tcp
                
                1 Reply Last reply Reply Quote 0
                • DustinB3403D
                  DustinB3403
                  last edited by

                   firewall-cmd --list-ports
                  4505/tcp 4506/tcp
                  [root@localhost ~]# systemctl stop salt-master
                  [root@localhost ~]# systemctl stop salt-master.service
                  [root@localhost ~]# systemctl start salt-master.service
                  [root@localhost ~]# systemctl status salt-master.service
                  ● salt-master.service - The Salt Master Server
                     Loaded: loaded (/usr/lib/systemd/system/salt-master.service; enabled; vendor preset: disabled)
                     Active: active (running) since Wed 2019-05-08 16:31:42 EDT; 5s ago
                  	 Docs: man:salt-master(1)
                  		   file:///usr/share/doc/salt/html/contents.html
                  		   https://docs.saltstack.com/en/latest/contents.html
                   Main PID: 3121 (salt-master)
                  	Tasks: 27 (limit: 2350)
                     Memory: 387.5M
                     CGroup: /system.slice/salt-master.service
                  		   ├─3121 /usr/bin/python2.7 /usr/bin/salt-master
                  		   ├─3128 /usr/bin/python2.7 /usr/bin/salt-master
                  		   ├─3130 /usr/bin/python2.7 /usr/bin/salt-master
                  		   ├─3131 /usr/bin/python2.7 /usr/bin/salt-master
                  		   ├─3134 /usr/bin/python2.7 /usr/bin/salt-master
                  		   ├─3135 /usr/bin/python2.7 /usr/bin/salt-master
                  		   ├─3136 /usr/bin/python2.7 /usr/bin/salt-master
                  		   ├─3137 /usr/bin/python2.7 /usr/bin/salt-master
                  		   ├─3139 /usr/bin/python2.7 /usr/bin/salt-master
                  		   ├─3145 /usr/bin/python2.7 /usr/bin/salt-master
                  		   ├─3146 /usr/bin/python2.7 /usr/bin/salt-master
                  		   ├─3147 /usr/bin/python2.7 /usr/bin/salt-master
                  		   ├─3150 /usr/bin/python2.7 /usr/bin/salt-master
                  		   ├─3333 /usr/bin/python2.7 /usr/bin/salt-master
                  		   ├─3334 /usr/bin/python2.7 /usr/bin/salt-master
                  		   ├─3335 /usr/bin/python2.7 /usr/bin/salt-master
                  		   ├─3336 /usr/bin/python2.7 /usr/bin/salt-master
                  		   └─3339 /usr/bin/python2.7 /usr/bin/salt-master
                  
                  May 08 16:31:41 localhost.localdomain systemd[1]: Starting The Salt Master Server...
                  May 08 16:31:41 localhost.localdomain salt-master[3121]: /usr/lib/python2.7/site-packages/salt/scripts.py:102: DeprecationWarning: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 >
                  May 08 16:31:42 localhost.localdomain systemd[1]: Started The Salt Master Server.
                  [root@localhost ~]# salt-master --log-level=debug
                  /usr/lib/python2.7/site-packages/salt/scripts.py:102: DeprecationWarning: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date.  Salt will drop support for Python 2.7 in the Sodium release or later.
                  [DEBUG   ] Reading configuration from /etc/salt/master
                  [DEBUG   ] Configuration file path: /etc/salt/master
                  [WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
                  [INFO    ] Setting up the Salt Master
                  [WARNING ] Unable to bind socket master-ip:4505, error: [Errno 98] Address already in use; Is there another salt-master running?
                  [INFO    ] The Salt Master is shut down
                  [DEBUG   ] Stopping the multiprocessing logging queue listener
                  [DEBUG   ] closing multiprocessing queue
                  [DEBUG   ] joining multiprocessing queue thread
                  [DEBUG   ] Stopped the multiprocessing logging queue listener
                  The salt master is shutdown. The ports are not available to bind
                  
                  coliverC 1 Reply Last reply Reply Quote 0
                  • DustinB3403D
                    DustinB3403
                    last edited by

                    firewall-cmd --list-all
                    FedoraServer (active)
                      target: default
                      icmp-block-inversion: no
                      interfaces: enp0s3
                      sources:
                      services: cockpit dhcpv6-client ssh
                      ports: 4505/tcp 4506/tcp
                      protocols:
                      masquerade: no
                      forward-ports:
                      source-ports:
                      icmp-blocks:
                      rich rules:
                    
                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller
                      last edited by

                      Do a netstat -tulpn again. Anytime you see that those ports are in use, that means that Salt-Master is running. Not sure what is starting it, but there is no question that it is being started somewhere. Only one copy can bind to the ports.

                      DustinB3403D DashrenderD 2 Replies Last reply Reply Quote 0
                      • DustinB3403D
                        DustinB3403 @scottalanmiller
                        last edited by DustinB3403

                        @scottalanmiller said in Fedora Salt Master - New installation:

                        Do a netstat -tulpn again.

                        netstat -tulpn
                        Active Internet connections (only servers)
                        Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
                        tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      803/sshd
                        tcp        0      0 master-ip:4505     0.0.0.0:*               LISTEN      1019/python2.7
                        tcp        0      0 master-ip:4506     0.0.0.0:*               LISTEN      1025/python2.7
                        tcp6       0      0 :::22                   :::*                    LISTEN      803/sshd
                        tcp6       0      0 :::9090                 :::*                    LISTEN      1/systemd
                        udp        0      0 127.0.0.1:323           0.0.0.0:*                           749/chronyd
                        udp        0      0 0.0.0.0:68              0.0.0.0:*                           916/dhclient
                        udp6       0      0 ::1:323                 :::*                                749/chronyd
                        
                        1 Reply Last reply Reply Quote 0
                        • DustinB3403D
                          DustinB3403
                          last edited by

                          Finally!

                          salt-key -A
                          The following keys are going to be accepted:
                          Unaccepted Keys:
                          admins-MacBook-Air.local
                          
                          1 Reply Last reply Reply Quote 0
                          • coliverC
                            coliver @DustinB3403
                            last edited by coliver

                            @DustinB3403 said in Fedora Salt Master - New installation:

                            [root@localhost ~]# salt-master --log-level=debug

                            Doesn't this mean that you are starting the salt-master via the CLI and setting the log-level to debug? Stop the salt-master service with systemctl and rerun this command. I bet the output will be different.

                            JaredBuschJ scottalanmillerS 2 Replies Last reply Reply Quote 0
                            • JaredBuschJ
                              JaredBusch @coliver
                              last edited by

                              @coliver said in Fedora Salt Master - New installation:

                              @DustinB3403 said in Fedora Salt Master - New installation:

                              [root@localhost ~]# salt-master --log-level=debug

                              Doesn't this mean that you are starting the salt-master via the CLI and setting the log-level to debug? Stop the salt-master service with systemctl and rerun this command. I be the output will be different.

                              Correct. He is trying to start a second instance.

                              DustinB3403D 1 Reply Last reply Reply Quote 1
                              • DustinB3403D
                                DustinB3403 @JaredBusch
                                last edited by

                                @JaredBusch said in Fedora Salt Master - New installation:

                                Correct. He is trying to start a second instance.

                                Technically just following the official documentation. If it starts a second instance shame on them for not clarifying that point.

                                As the documentation reads, it's just to pull detailed logs.

                                scottalanmillerS 1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @coliver
                                  last edited by

                                  @coliver said in Fedora Salt Master - New installation:

                                  Doesn't this mean that you are starting the salt-master via the CLI

                                  That's what I kept saying 🙂

                                  1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller @DustinB3403
                                    last edited by

                                    @DustinB3403 said in Fedora Salt Master - New installation:

                                    @JaredBusch said in Fedora Salt Master - New installation:

                                    Correct. He is trying to start a second instance.

                                    Technically just following the official documentation. If it starts a second instance shame on them for not clarifying that point.

                                    As the documentation reads, it's just to pull detailed logs.

                                    I read the doc, I don't see it ever saying to do that. Where did you get that command from?

                                    DustinB3403D 1 Reply Last reply Reply Quote 0
                                    • DustinB3403D
                                      DustinB3403 @scottalanmiller
                                      last edited by

                                      @scottalanmiller said in Fedora Salt Master - New installation:

                                      Where did you get that command from?

                                      https://docs.saltstack.com/en/2015.8/ref/configuration/index.html

                                      1 Reply Last reply Reply Quote 0
                                      • coliverC
                                        coliver
                                        last edited by

                                        Literally says: 82015c6d-e3d1-4de5-98fc-beb4b824c96b-image.png

                                        It's pretty clear.

                                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                                        • scottalanmillerS
                                          scottalanmiller @coliver
                                          last edited by

                                          @coliver said in Fedora Salt Master - New installation:

                                          Literally says: 82015c6d-e3d1-4de5-98fc-beb4b824c96b-image.png

                                          It's pretty clear.

                                          Ah, not part of the installation docs. That's why I didn't see it. Going through the installation, it is all set by the end of it, not sure where this configuration page pops in, but that's causing the problem. It was all installed and configured previously by following the installation guide.

                                          1 Reply Last reply Reply Quote 0
                                          • DashrenderD
                                            Dashrender @scottalanmiller
                                            last edited by

                                            @scottalanmiller said in Fedora Salt Master - New installation:

                                            Do a netstat -tulpn again. Anytime you see that those ports are in use, that means that Salt-Master is running. Not sure what is starting it, but there is no question that it is being started somewhere. Only one copy can bind to the ports.

                                            I was wondering if this was the issue - that Dustin is trying to start a second copy.

                                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post