Cannot connect to Wowza via Filezilla - ripping hair out!!!

Hi

trying to set up Wowza on EC2 and just trying to st up the HTTP caching. I cannot get Filezilla ftp to connect to change the required files. This is what I have done/get so far:

I am using a laptop via a wireless router.

Switched off AVG.

Switched off Windows Firewall

Set up Filezilla to Active Mode

Limited ports to 5000-5100

Set External IP address to mine (checked its correct with Google :slight_smile: )

Set up Security Group as per instructed via Wowza tutorial

This is what I get when trying to connect:

Status: Resolving address of ec2----*.eu-west-1.compute.amazonaws.com

Status: Connecting to 54.194.219.114:21…

Status: Connection established, waiting for welcome message…

Response: 220 (vsFTPd 2.2.2)

Command: USER wowza

Response: 331 Please specify the password.

Command: PASS **********

Response: 230 Login successful.

Command: SYST

Response: 215 UNIX Type: L8

Command: FEAT

Response: 211-Features:

Response: EPRT

Response: EPSV

Response: MDTM

Response: PASV

Response: REST STREAM

Response: SIZE

Response: TVFS

Response: UTF8

Response: 211 End

Command: OPTS UTF8 ON

Response: 200 Always in UTF8 mode.

Status: Connected

Status: Retrieving directory listing…

Command: PWD

Response: 257 “/home/wowza”

Command: TYPE I

Response: 200 Switching to Binary mode.

Command: PORT 82,21,166,201,19,220

Response: 200 PORT command successful. Consider using PASV.

Command: LIST

Error: Connection timed out

Error: Failed to retrieve directory listing

PLEASE can anyone help???

In FileZilla settings under Connection SFTP add your keypair file (.pem) associated with your instance. FileZilla will offer to convert it for you, say yes.

Now, in site manager make sure that you connect using the SFTP protocol and not the standard FTP protocol. Remove port number.

Make sure that your EC2 security group allows inbound connections on port 22.

This was helpful to me, and timely. I will suggest adding it to our EC2 Guide.

Thanks,

Richard

What kind of Amazon Machine Image (AMI) are you using?

And what do you provide for “User” and “Password”? For Amazon Linux the user name is ec2-user and blank password.

Connect using SSH. Terminal on OSX, Putty on Windows.

sudo chmod 777 /path/filename.xml

I’m glad I could help you butchx5.

When it comes to EC2 and Linux in general there are many subjects it would be great to cover in the Wowza User’s Guide. But it is important to remember that the scope of the User’s Guide is - and should be, quite narrow.

With that said I agree that some more essential how to’s could be included in the WowzaMediaServerForEC2_UsersGuide and in the WOWZA FOR AMAZON EC2 articles.

I think serverfault.com would be a great place to ask generic Linux questions. Technical support from the Amazon Web Service support team is great, but it will cost you at least $49.00 / month.

Various posts and commands you might find useful at some point

http://blog.ianbeyer.com/2013/02/10/wowza-ec2-qa-session/

http://blog.ianbeyer.com/2013/07/05/hls-distribution-with-amazon-cloudfront/

http://blog.ianbeyer.com/2013/02/26/wowza-ec2-capacity-update/

http://sharadchhetri.com/2013/03/08/how-to-mount-s3-bucket-in-linux-ec2-instance/

http://devnumbertwo.com/mounting-an-amazon-s3-bucket-into-a-linux-ec2-instance/

http://serverfault.com/questions/570879/1-73-gbps-at-best-on-an-amazon-ec2-10-gigabit-instance

http://alestic.com/2009/06/ec2-user-data-scripts

Set time zone at start-up (so the time in the Wowza logs is not completely off)

nano /etc/sysconfig/clock

Then write:

ZONE='Europe/Copenhagen'

Substitute Europe/Copenhagen with your own zone.

Output logs realtime (the name of the logs has changed in Wowza ver. 4)

tail -f /usr/local/WowzaMediaServer/logs/wowzamediaserver_access.log
tail -f /usr/local/WowzaMediaServer/logs/wowzamediaserver_error.log

Run wowza service on startup (the name of the service has changed in Wowza ver. 4)

chkconfig WowzaMediaServer on

Wowza service commands (the name of the service has changed in Wowza ver. 4)

service WowzaMediaServer status
service WowzaMediaServer stop
service WowzaMediaServer start
service WowzaMediaServer restart

Check disk usage

df -h

Delete folder

rm -r -f /folderpath

How to reboot Linux (not the same as restarting instance)

reboot

Wowza interfaces

http://serveripaddress:8086/streammanager

http://serveripaddress:8086/livestreamrecord/index.html

Thanks for your quick reply

Tried that - also added in as logging in with password added user wowza and password (instance ID) got this:

Status: Connecting to ec2----*.eu-west-1.compute.amazonaws.com…

Response: fzSftp started

Command: keyfile “C:\Downloads\Keypair file CW.ppk”

Command: open “wowza@ec2----*.eu-west-1.compute.amazonaws.com” 22

Error: Disconnected: No supported authentication methods available (server sent: publickey)

Error: Could not connect to server

Any ideas?

YAAAAAYYYYYY!!!

I am using ami-eaf01a9d

BUT what solved it was using your system and changing user and password as you said - THANK YOU xxxxxxxxx

Spoke too soon :rolleyes:

Managed to download and make adjustments to application.xml BUT can’t upload it with changes to overight existing file. :frowning: Tried changing file permissions from 775 to 777 in Filezilla but unable to - how and where can I change file permissions please?

Hi

Phew!!!

Got there … in the end!!! Also downloaded WinSCP and used file transfer this way rather than Filezilla.

For someone new to all this I have no idea how others manage this without your help niemion - THANK YOU xxx and rrlanham I agree this needs to be added to your EC2 guide. I am not stupid but the guide just didn’t work for me - surely, I can’t be the only one unable to get this done by following the guide???

Off to work on the next stage now - thank you again