laravel-rollbar icon indicating copy to clipboard operation
laravel-rollbar copied to clipboard

Rollbar not working from AWS

Open MladenJanjetovic opened this issue 9 years ago • 4 comments

Hi,

I have issue only with my servers on AWS (EC2). When I want to log something from whatever environment (local, stage, production) on my local computer or on one shared hosting, it works.

But on AWS I have stage and production servers and none of them is passing the logs to Rollbar. I was on the email with Rollbar support and we did some pings, and it all looks ok. Can't find the source of the problem so if someone had the same issue it would be very helpful.

This stands for both, error handler in Laravel and just any other Log::error call in the app.

Here is services.php part:

'rollbar' => [
    'access_token'   => 'TAKEN FROM ROLLBAR ACCOUNT',
    'level'   => env('APP_ENV') == 'production' ? 'error' : 'debug',
],

Any ideas?

MladenJanjetovic avatar Apr 27 '16 12:04 MladenJanjetovic

  1. Are you reporting errors in the Exceptions\Handler.php?
  2. How are you throwing exceptions?

I'm on an AWS EC2 and with zero effort I have it all working as intended.

jeitnier avatar May 03 '16 14:05 jeitnier

I contacted Rollbar support and they told me that on some AWS they had issues with proxi or something like that. I had to send some ping results to find out what IP needs to be open.

These IPs needs to be reachable: 198.23.74.34 50.97.252.115 37.58.71.75 119.81.30.99 50.23.76.197 108.168.203.178 75.126.67.75 37.58.71.74 119.81.30.98

MladenJanjetovic avatar May 03 '16 15:05 MladenJanjetovic

Since moving our sites to AWS we have lost all rollbar logging. Im unaware of why maybe to do with proxy or something internal.

xitude avatar Aug 15 '16 08:08 xitude

I would check the vps config on AWS. If that's not the issue check your directory permissions

RudyJessop avatar May 31 '17 20:05 RudyJessop