Skip to main content

SSH, mysqldump > gzip timing out

Comments

9 comments

  • GoWilkes
    I just now ran tmpwatch, using: tmpwatch --mtime --all 168 /tmp It finished running about 20 minutes ago but Putty still looks like it's running, so it's definitely not an issue with mysqldump or gzip! -03-28 235819.png">77025 Update: After that session finally timed out, I opened a new session and used "crontab -e" to add the tmpwatch cron. It went through without any delays, so I'm just guessing that it's only messing up when something takes awhile to process?
    0
  • cPRex Jurassic Moderator
    Are we sure it's even bubble gum some days? The best way to confirm if things are still happening would require two SSH sessions - one where you run your mysqldump command, and one where you watch the output with strace. Once you think it's done, you can run "strace -p XXXXX" where "XXXXX" is the PID of your dump command. That will show if anything is actively happening with that process. To verify the dump, the best way is to perform an import to a test database and ensure all data is there.
    0
  • GoWilkes
    Thanks, I'll try that next time. I've been creating a second session and using top to see if it's running, but not strace. It appears to be done at a normal time using top, though. The more I think about it, the more that I'm convinced that it's either an issue with Putty or with SSH getting hung up.
    Are we sure it's even bubble gum some days?

    Haha, I was being generous. At best, I'm pretty sure it's the cheap bubble gum, never the good stuff ;-P
    0
  • cPRex Jurassic Moderator
    If your host has a console option you could try running it through that instead, as that isn't something that should experience typical SSH timeouts.
    0
  • GoWilkes
    Thanks! I see "Terminal" under WHM, so I'll give that a shot tonight and see what happens. If it works properly then would it be safe to assume that the problem is with Putty?
    0
  • cPRex Jurassic Moderator
    That sounds right to me!
    0
  • GoWilkes
    Just ran a backup, it completed in 10 minutes via WHM > Terminal; faster than Putty and did not get hung up. So the problem appears to be with Putty :-/ I changed Putty's Keepalive setting from 0 to 180, I'll try again tomorrow and post back with an update.
    0
  • GoWilkes
    For the sake of posterity, the Keepalive setting seemed to fix the issue :-)
    0
  • cPRex Jurassic Moderator
    Nice - I'm glad that worked well!
    0

Please sign in to leave a comment.