logbot icon indicating copy to clipboard operation
logbot copied to clipboard

Stuck on Uploading to FTP...

Open JIRX opened this issue 12 years ago • 7 comments

Once the bot reaches the amount of messages where it's supposed to upload the logs it will get stuck on "Uploading to FTP..." until doing ctrl+c and then it will connect to the FTP and upload. I would appreciate if this could get looked into.

JIRX avatar Jan 11 '13 17:01 JIRX

Interesting. Have you verified your FTP credentials that you put in here? https://github.com/excid3/logbot/blob/master/logbot.py#L82

I haven't worked on this in a while, but it obviously needs to have the configuration pulled out into a file or arguments instead. :open_mouth:

excid3 avatar Jan 11 '13 18:01 excid3

Yes, once it reaches the Uploading part it will freeze until I do CTRL + C and then it uploads and continues logging perfectly fine till it gets to that part again. Meaning that the FTP credentials are correct.

JIRX avatar Jan 11 '13 18:01 JIRX

Oh you're right. It's connecting before the bot starts. How high did you set the upload message limit? Maybe the connection has disconnected because it's idle?

excid3 avatar Jan 11 '13 18:01 excid3

I have it on 35 but I have tested it with 5 and it does the same thing.

JIRX avatar Jan 11 '13 18:01 JIRX

Okay, I would haven't expected 35 to cause a problem. If you leave it going for a while as it's trying to upload, does it ever time out and throw an exception?

I get the feeling this is going to be pretty hard to replicate on my machine.

excid3 avatar Jan 11 '13 18:01 excid3

Odd, I just tested it again and the problem seems to have fixed itself. Sorry if I wasted your time or anything but it was doing this for a while earlier. Thanks anyway.

JIRX avatar Jan 11 '13 18:01 JIRX

No worries. It might just be some intermittent connection issues or something. Keep me posted on it, but hopefully it wasn't a bug in the bot. :smiley:

excid3 avatar Jan 11 '13 18:01 excid3