It could be many things. Passwords. FTP server configuration. DNS. Typo in your username/password. Many things.
I'd start with ensuring it works from the shell 'without' involving weewx. That will validate your os setup.
But if you don't tell us your os+configuration and provide some logs and shell session transcripts, nobody's going to be able to guess a solution.