# Trying to log into EC2 instance, getting internal server error

**URL:** <https://community.wowza.com/t/trying-to-log-into-ec2-instance-getting-internal-server-error/42941>\
**Category:** Wowza Streaming Engine\
**Created:** [May 2, 2014, 12:05pm UTC](https://community.wowza.com/t/trying-to-log-into-ec2-instance-getting-internal-server-error/42941 "2014-05-02T12:05:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Brunette](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Andrew\_Brunette](https://community.wowza.com/u/Andrew_Brunette)\
**Post date:** [May 2, 2014, 12:05pm UTC](https://community.wowza.com/t/trying-to-log-into-ec2-instance-getting-internal-server-error/42941/1 "2014-05-02T12:05:26Z")

</div>

I am trying to run an EC2 instance, using the bring your own license AMI. When I try to log into the server webpage, I get an error message, “Internal Server Error (500) - Internal Server Error”. Does anyone know what to do to resolve this? Have searched here and on google, and nothing comes up.

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [May 2, 2014, 12:11pm UTC](https://community.wowza.com/t/trying-to-log-into-ec2-instance-getting-internal-server-error/42941/2 "2014-05-02T12:11:07Z")

</div>

Hi,

Did you start this with one of the Wowza pre-built AMIs? If so, which AMI exactly?

Daren

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 3, 2014, 10:54am UTC](https://community.wowza.com/t/trying-to-log-into-ec2-instance-getting-internal-server-error/42941/3 "2014-05-03T10:54:50Z")

</div>

The first thing I would do in this case is start another one, EC2 instances can fail on startup sometimes. Make sure you have all the required ports open in the EC2 Security Group, but a 500 error indicates a major malfunction. I would just start another one.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 3, 2014, 7:52pm UTC](https://community.wowza.com/t/trying-to-log-into-ec2-instance-getting-internal-server-error/42941/4 "2014-05-03T19:52:27Z")

</div>

One thing, don’t use service restart. Do service stop, then wait, then service start.

Otherwise, what you show is okay. You can ignore those two WARN lines, I know. Is that all the logging there is?

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 7, 2014, 2:46pm UTC](https://community.wowza.com/t/trying-to-log-into-ec2-instance-getting-internal-server-error/42941/5 "2014-05-07T14:46:17Z")

</div>

Where are you seeing 500 server error? Sounds like you are able to connect with SSH client to stop the service, and that it does stop and start (remember to avoid using restart). What does not work?

Richard

---

<div class="post-metadata">

**Author:** ![Andrew\_Brunette](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Andrew\_Brunette](https://community.wowza.com/u/Andrew_Brunette)\
**Post date:** [May 2, 2014, 5:46pm UTC](https://community.wowza.com/t/trying-to-log-into-ec2-instance-getting-internal-server-error/42941/6 "2014-05-02T17:46:42Z")

</div>

> Hi,
> 
> Did you start this with one of the Wowza pre-built AMIs? If so, which AMI exactly?
> 
> Daren

The prebuilt, bring your own license AMI. License key is a trial license.

---

<div class="post-metadata">

**Author:** ![Andrew\_Brunette](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Andrew\_Brunette](https://community.wowza.com/u/Andrew_Brunette)\
**Post date:** [May 3, 2014, 9:07am UTC](https://community.wowza.com/t/trying-to-log-into-ec2-instance-getting-internal-server-error/42941/7 "2014-05-03T09:07:58Z")

</div>

Have started a new instance 4 times. Each time, the same thing happens.

When I do a service restart of Wowza, I get these messages.

$ sudo service WowzaStreamingEngine restart

Restarting WowzaStreamingEngine …

WowzaStreamingEngine stopped [OK]

WowzaStreamingEngine: starting…

Wowza Streaming Engine 4 for Amazon EC2: Resize Boot Partition

resize2fs 1.42.8 (20-Jun-2013)

The filesystem is already 10485760 blocks long. Nothing to do!

Filesystem 1K-blocks Used Available Use% Mounted on

/dev/xvda1 41153856 1672016 39381572 5% /

devtmpfs 1906144 16 1906128 1% /dev

tmpfs 1921560 0 1921560 0% /dev/shm

/dev/xvda2 4122816 73796 3839588 2% /media/ephemeral0

Wowza Streaming Engine 4 for Amazon EC2: Initialize Content: /media/ephemeral0/WowzaStreamingEngine

mkdir: cannot create directory ‘/media/ephemeral0/WowzaStreamingEngine’: File exists

mkdir: cannot create directory ‘/media/ephemeral0/WowzaStreamingEngine/mediacache’: File exists

WowzaStreamingEngine started PID:(4609)

---

<div class="post-metadata">

**Author:** ![Andrew\_Brunette](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Andrew\_Brunette](https://community.wowza.com/u/Andrew_Brunette)\
**Post date:** [May 5, 2014, 9:29am UTC](https://community.wowza.com/t/trying-to-log-into-ec2-instance-getting-internal-server-error/42941/8 "2014-05-05T09:29:32Z")

</div>

Yes, no other messages in log file.
