wget timeout errors on linux, help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spacemonk
    Confirmed User
    • Jul 2004
    • 969

    #1

    wget timeout errors on linux, help

    Im having problems connecting 2 of my servers.

    One is a thumb server and another is for php / mysql. The script syncs thumbs by itself every x minutes.

    It was all working fine untill a few hours ago, now its saying it cant connect to the thumb server.

    They are both with the same company. Both servers are up and working normaly but server 1 cant connect to server 2

    I tried to fetch a page from box2 via wget and it resolves the ip but then just hangs untill it times out....

    Any ideas how to fix?
    I sale fu-fme, hit me up for a killer deal!
  • Juicy D. Links
    So Fucking Banned
    • Apr 2001
    • 122992

    #2
    No clue but here is a bump and pic to cheer you up


    Comment

    • Spider Ninja
      Registered User
      • Nov 2005
      • 2051

      #3
      Originally posted by Juicy D. Links
      No clue but here is a bump and pic to cheer you up


      funny pic

      Comment

      • spacemonk
        Confirmed User
        • Jul 2004
        • 969

        #4
        Originally posted by Juicy D. Links
        No clue but here is a bump and pic to cheer you up


        lol juicy
        I sale fu-fme, hit me up for a killer deal!

        Comment

        • woj
          <&(©¿©)&>
          • Jul 2002
          • 47882

          #5
          Originally posted by Juicy D. Links
          No clue but here is a bump and pic to cheer you up


          Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
          Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
          Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

          Comment

          • spacemonk
            Confirmed User
            • Jul 2004
            • 969

            #6
            Originally posted by spacemonk
            I tried to fetch a page from box2 via wget and it resolves the ip but then just hangs untill it times out....

            Any ideas how to fix?
            Forgot to mention, wget works for other sites, just this one is timing out
            I sale fu-fme, hit me up for a killer deal!

            Comment

            • blazin
              Confirmed User
              • Aug 2002
              • 2781

              #7
              My colleague had a similar problem recently with wget... something to do with spawning processes... not sure what the solution was though so can't help..

              ..but an alternative is to use rsync.
              I don't endorse a god damn thing......

              Comment

              • spacemonk
                Confirmed User
                • Jul 2004
                • 969

                #8
                Originally posted by blazin
                My colleague had a similar problem recently with wget... something to do with spawning processes... not sure what the solution was though so can't help..

                ..but an alternative is to use rsync.
                thanks for the reply... rsync isnt an option unfortunately as I have no control over the script code which is zend encoded :\
                I sale fu-fme, hit me up for a killer deal!

                Comment

                • koreanbbque
                  Confirmed User
                  • Dec 2003
                  • 688

                  #9
                  things i would check
                  /etc/hosts ( make sure server2 or server2 aren't pointing to some random IP )

                  check your iptables ( if you're running red hat )
                  % iptables -L
                  make sure server2 IP isn't being blocked for some odd reason.

                  then try telneting directly to port 80
                  % telnet server2 80
                  if you get a response saying
                  Connected to server2
                  Escape Character is '^]'.

                  if that works.. then wget is probably feked.
                  KBBQ
                  2 3 1 6 1 8 8 1 6

                  Comment

                  • blazin
                    Confirmed User
                    • Aug 2002
                    • 2781

                    #10
                    Kill all the current processes and try increasing the time between syncs.
                    Just a wild guess but maybe its not completing the last one before the next one starts?!?
                    I don't endorse a god damn thing......

                    Comment

                    • spacemonk
                      Confirmed User
                      • Jul 2004
                      • 969

                      #11
                      Originally posted by koreanbbque
                      things i would check
                      /etc/hosts ( make sure server2 or server2 aren't pointing to some random IP )

                      check your iptables ( if you're running red hat )
                      % iptables -L
                      make sure server2 IP isn't being blocked for some odd reason.

                      then try telneting directly to port 80
                      % telnet server2 80
                      if you get a response saying
                      Connected to server2
                      Escape Character is '^]'.

                      if that works.. then wget is probably feked.
                      Thanks,

                      hosts is ok, im running fedora core 3 (iptables command not found), telnet hangs just like wget does after it resolves the ip..

                      Uh..
                      I sale fu-fme, hit me up for a killer deal!

                      Comment

                      • spacemonk
                        Confirmed User
                        • Jul 2004
                        • 969

                        #12
                        Originally posted by blazin
                        Kill all the current processes and try increasing the time between syncs.
                        Just a wild guess but maybe its not completing the last one before the next one starts?!?
                        Its not running at the moment, thanks though
                        I sale fu-fme, hit me up for a killer deal!

                        Comment

                        • spacemonk
                          Confirmed User
                          • Jul 2004
                          • 969

                          #13
                          8char bump
                          I sale fu-fme, hit me up for a killer deal!

                          Comment

                          • Fuckin Bill
                            Confirmed User
                            • Feb 2003
                            • 1020

                            #14
                            Do pages come up ok from machine 2 in a browser? Can you download just a thumb, and not a page, from machine 2?

                            Maybe load is too high and it just really is timing out. I would tend to think your problem is on the machine sending, not on the machine trying to pull. If wget works for other sites, you've either got a problem with the DNS where you are using wget, or a problem on the machine's response time you are trying to grab from.

                            You could also check to make sure there's nothing in any htaccess files or the apache config that might be blocking wget. Do wget --help at a prompt and use the switch to tell it to report itself as IE or Netscape and see if that works.

                            Comment

                            • sandman!
                              Icq: 14420613
                              • Mar 2001
                              • 15431

                              #15
                              im assuming yout talking about st5 you can use rsync and set paths to thumbs in your template for hotlinking if you dont get your server fixed hit me up and i will show you want you need to do and what you need to tell your tech to do when it comes to setting up rsync
                              Need WebHosting ? Email me for some great deals [email protected]

                              Comment

                              • spacemonk
                                Confirmed User
                                • Jul 2004
                                • 969

                                #16
                                Originally posted by Fuckin Bill
                                Do pages come up ok from machine 2 in a browser? Can you download just a thumb, and not a page, from machine 2?

                                Maybe load is too high and it just really is timing out. I would tend to think your problem is on the machine sending, not on the machine trying to pull. If wget works for other sites, you've either got a problem with the DNS where you are using wget, or a problem on the machine's response time you are trying to grab from.

                                You could also check to make sure there's nothing in any htaccess files or the apache config that might be blocking wget. Do wget --help at a prompt and use the switch to tell it to report itself as IE or Netscape and see if that works.
                                Yup everything works fine from a browser. Load is also normal...
                                Also.. If i try it the other way around (wget box1 from box2) same timeout happens...

                                Maybe some messed up firewall setup?
                                I sale fu-fme, hit me up for a killer deal!

                                Comment

                                • teksonline
                                  So Fucking Banned
                                  • Jan 2005
                                  • 2904

                                  #17
                                  tek

                                  I can look at it but I am not going to sit and play consultant for 3 hours
                                  icq 48721721
                                  aim freebsdteks

                                  Comment

                                  • toddler
                                    Confirmed User
                                    • Jun 2002
                                    • 1911

                                    #18
                                    Originally posted by teksonline
                                    I can look at it but I am not going to sit and play consultant for 3 hours
                                    icq 48721721
                                    aim freebsdteks

                                    your aim name can be misconstrued

                                    can you connect from A -> B || B <- A via other means? From the 'telnet hangs' I'm guessing not. Can you ping the other host? traceroute it? Nmap it?

                                    the fact the iptables isn't found certainly does not mean its not installed and running.

                                    look in /sbin...
                                    '
                                    http://www.flickr.com/photos/zoddler/

                                    Comment

                                    Working...