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

    Solved SnipeIT - Connection Refused

    IT Discussion
    snipe-it access denied
    6
    56
    6.7k
    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.
    • coliverC
      coliver
      last edited by coliver

      Firewalld and SELinux can both cause this type of behavior. As can permissions on the www folder.

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

        @coliver said in SnipeIT - Connection Refused:

        Firewalld and SELinux can both cause this type of behavior.

        Out of the blue though?

        No changes have been made to the system, and I was using it just Friday.

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

          @dustinb3403 said in SnipeIT - Connection Refused:

          @coliver said in SnipeIT - Connection Refused:

          Firewalld and SELinux can both cause this type of behavior.

          Out of the blue though?

          No changes have been made to the system, and I was using it just Friday.

          Can you curl it from the local prompt?

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

            @coliver

            Yeah.

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

              I disabled firewalld with no resulting change.

              It's like the services are just stopped, hrm. . .

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

                I can ping both to and from the system.

                black3dynamiteB 1 Reply Last reply Reply Quote 0
                • black3dynamiteB
                  black3dynamite @DustinB3403
                  last edited by

                  @dustinb3403 said in SnipeIT - Connection Refused:

                  I can ping both to and from the system.

                  Ping via ip and dns?

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

                    @black3dynamite said in SnipeIT - Connection Refused:

                    @dustinb3403 said in SnipeIT - Connection Refused:

                    I can ping both to and from the system.

                    Ping via ip and dns?

                    Yep.

                    1 Reply Last reply Reply Quote 0
                    • JaredBuschJ
                      JaredBusch
                      last edited by

                      Are httpd and mariadb running?

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

                        @jaredbusch said in SnipeIT - Connection Refused:

                        Are httpd and mariadb running?

                        httpd isn't.

                        WTF. . .

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

                          OK so why is httpd not starting. . .

                          black3dynamiteB 1 Reply Last reply Reply Quote 0
                          • black3dynamiteB
                            black3dynamite @DustinB3403
                            last edited by

                            @dustinb3403 said in SnipeIT - Connection Refused:

                            OK so why is httpd not starting. . .

                            Have you try investigating the issue with these commands?

                            systemctl status httpd
                            journalctl -xe
                            1 Reply Last reply Reply Quote 0
                            • DustinB3403D
                              DustinB3403
                              last edited by

                              I'm looking at the logs, and the only thing of interest is

                              [Mon Aug 07 03:14:01.725621 2017] [auth_digest:notice] [pid 920] AH01757: generating secret for digest authentication ...
                              [Mon Aug 07 03:14:01.726484 2017] [lbmethod_heartbeat:notice] [pid 920] AH02282: No slotmem from mod_heartmonitor
                              [Mon Aug 07 03:14:01.751367 2017] [mpm_prefork:notice] [pid 920] AH00163: Apache/2.4.6 (CentOS) PHP/5.6.30 configured -- resuming normal operations
                              [Mon Aug 07 03:14:01.751385 2017] [core:notice] [pid 920] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
                              [Sun Aug 13 03:32:01.788305 2017] [mpm_prefork:notice] [pid 920] AH00171: Graceful restart requested, doing restart
                              [Sun Aug 13 03:32:01.909526 2017] [so:warn] [pid 920] AH01574: module rewrite_module is already loaded, skipping
                              AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
                              
                              1 Reply Last reply Reply Quote 0
                              • DustinB3403D
                                DustinB3403
                                last edited by

                                The host name is set. . .

                                GNU nano 2.3.1                             File: /etc/hosts
                                
                                127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
                                ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                127.0.0.1   localhost.localdomain snipeit.OURDOMAIN.com
                                
                                black3dynamiteB 1 Reply Last reply Reply Quote 0
                                • black3dynamiteB
                                  black3dynamite @DustinB3403
                                  last edited by

                                  @dustinb3403 said in SnipeIT - Connection Refused:

                                  The host name is set. . .

                                  GNU nano 2.3.1                             File: /etc/hosts
                                  
                                  127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
                                  ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                  127.0.0.1   localhost.localdomain snipeit.OURDOMAIN.com
                                  

                                  What's up with the duplicate entry for localhost?

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

                                    @black3dynamite said in SnipeIT - Connection Refused:

                                    @dustinb3403 said in SnipeIT - Connection Refused:

                                    The host name is set. . .

                                    GNU nano 2.3.1                             File: /etc/hosts
                                    
                                    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
                                    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                    127.0.0.1   localhost.localdomain snipeit.OURDOMAIN.com
                                    

                                    What's up with the duplicate entry for localhost?

                                    Ask the co-worker. . . I've cleaned that up so it's just the one. And have just used

                                    hostnamectl set-hostname to set the name, rebooting

                                    black3dynamiteB 1 Reply Last reply Reply Quote 1
                                    • black3dynamiteB
                                      black3dynamite @DustinB3403
                                      last edited by

                                      @dustinb3403 Might also want to check out your httpd.conf and snipeit.conf file too.

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

                                        @black3dynamite

                                        [root@snipeit conf.d]# cat snipeit.conf
                                        ##  Creating the new virtual host in Apache.
                                        
                                        
                                        LoadModule rewrite_module modules/mod_rewrite.so
                                        
                                        <VirtualHost *:80>
                                        ServerAdmin webmaster@localhost
                                        	<Directory /var/www/html/snipeit/public>
                                        		Allow From All
                                        		AllowOverride All
                                        		Options +Indexes
                                           </Directory>
                                        	DocumentRoot /var/www/html/snipeit/public
                                        	ServerName snipeit.domain.com
                                        		ErrorLog /var/log/httpd/snipeIT.error.log
                                        		CustomLog /var/log/access.log combined
                                        </VirtualHost>
                                        

                                        And httpd.conf is set to the same fqdn

                                        black3dynamiteB 1 Reply Last reply Reply Quote 0
                                        • black3dynamiteB
                                          black3dynamite @DustinB3403
                                          last edited by black3dynamite

                                          @dustinb3403 said in SnipeIT - Connection Refused:

                                          @black3dynamite

                                          [root@snipeit conf.d]# cat snipeit.conf

                                          Creating the new virtual host in Apache.

                                          LoadModule rewrite_module modules/mod_rewrite.so

                                          <VirtualHost *:80>
                                          ServerAdmin webmaster@localhost
                                          <Directory /var/www/html/snipeit/public>
                                          Allow From All
                                          AllowOverride All
                                          Options +Indexes
                                          </Directory>
                                          DocumentRoot /var/www/html/snipeit/public
                                          ServerName snipeit.domain.com
                                          ErrorLog /var/log/httpd/snipeIT.error.log
                                          CustomLog /var/log/access.log combined
                                          </VirtualHost>

                                          And httpd.conf is set to the same fqdn

                                          Did the httpd.service startup successfully?

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

                                            @black3dynamite No it failed.

                                            [root@snipeit ~]# systemctl status httpd
                                            ā— httpd.service - The Apache HTTP Server
                                               Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
                                               Active: failed (Result: exit-code) since Mon 2017-08-14 16:29:45 EDT; 5min ago
                                            	 Docs: man:httpd(8)
                                            		   man:apachectl(8)
                                              Process: 1326 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
                                              Process: 896 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
                                             Main PID: 896 (code=exited, status=1/FAILURE)
                                            
                                            Aug 14 16:29:43 snipeit.domain.com systemd[1]: Starting The Apache HTTP Server...
                                            Aug 14 16:29:45 snipeit.domain.com httpd[896]: [Mon Aug 14 16:29:45.339624 2017] [so:warn] [pid 896] AH01574...ping
                                            Aug 14 16:29:45 snipeit.domain.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
                                            Aug 14 16:29:45 snipeit.domain.com kill[1326]: kill: cannot find process ""
                                            Aug 14 16:29:45 snipeit.domain.com systemd[1]: httpd.service: control process exited, code=exited status=1
                                            Aug 14 16:29:45 snipeit.domain.com systemd[1]: Failed to start The Apache HTTP Server.
                                            Aug 14 16:29:45 snipeit.domain.com systemd[1]: Unit httpd.service entered failed state.
                                            Aug 14 16:29:45 snipeit.domain.com systemd[1]: httpd.service failed.
                                            Hint: Some lines were ellipsized, use -l to show in full.
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post