[GH-ISSUE #521] Error with fresh install of v3.5.0 #369

Closed
opened 2026-02-26 02:32:58 +03:00 by kerem · 4 comments
Owner

Originally created by @grath90 on GitHub (Jan 17, 2017).
Original GitHub issue: https://github.com/koel/koel/issues/521

Trying to set up a fresh install of koel v3.5.0 on Ubuntu forge server. When I run 'php artisan koel:init' I get the following error:

PHP Fatal error: Uncaught ReflectionException: Class sentry does not exist

I've tried updating composer but still get the same results. Sentry is listed in the config/app.php file and in the config.json file so I'm really not sure what to do from here.

Thanks in advance!

Originally created by @grath90 on GitHub (Jan 17, 2017). Original GitHub issue: https://github.com/koel/koel/issues/521 Trying to set up a fresh install of koel v3.5.0 on Ubuntu forge server. When I run 'php artisan koel:init' I get the following error: PHP Fatal error: Uncaught ReflectionException: Class sentry does not exist I've tried updating composer but still get the same results. Sentry is listed in the config/app.php file and in the config.json file so I'm really not sure what to do from here. Thanks in advance!
kerem closed this issue 2026-02-26 02:32:58 +03:00
Author
Owner

@phanan commented on GitHub (Jan 18, 2017):

Can't reproduce this. What happens if you manually composer require sentry/sentry-laravel?

<!-- gh-comment-id:273371731 --> @phanan commented on GitHub (Jan 18, 2017): Can't reproduce this. What happens if you manually `composer require sentry/sentry-laravel`?
Author
Owner

@grath90 commented on GitHub (Jan 18, 2017):

It says it's using version ^0.5.0.

Here is the error and stack trace:

PHP Fatal error: Uncaught ReflectionException: Class sentry does not exist in /home/forge/jamshark.com/vendor/laravel/framework/src/Illuminate/Container/Container.php:749
Stack trace:
#0 /home/forge/jamshark.com/vendor/laravel/framework/src/Illuminate/Container/Container.php(749): ReflectionClass->__construct('sentry')
#1 /home/forge/jamshark.com/vendor/laravel/framework/src/Illuminate/Container/Container.php(644): Illuminate\Container\Container->build('sentry', Array)
#2 /home/forge/jamshark.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\Container\Container->make('sentry', Array)
#3 /home/forge/jamshark.com/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(106): Illuminate\Foundation\Application->make('sentry', Array)
#4 /home/forge/jamshark.com/app/Exceptions/Handler.php(38): app('sentry')
#5 /home/forge/jamshark.com/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(320): App\Exceptions\Handler->report(Object(Dotenv\Exception\InvalidFileException))
#6 in /home/forge/jamshark.com/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 749

It then repeats that stack trace and after that gives these errors:

Script php artisan clear-compiled handling the pre-update-cmd event returned with error code 255

Installation failed, reverting ./composer.json to its original content.

<!-- gh-comment-id:273519238 --> @grath90 commented on GitHub (Jan 18, 2017): It says it's using version ^0.5.0. Here is the error and stack trace: > PHP Fatal error: Uncaught ReflectionException: Class sentry does not exist in /home/forge/jamshark.com/vendor/laravel/framework/src/Illuminate/Container/Container.php:749 Stack trace: #0 /home/forge/jamshark.com/vendor/laravel/framework/src/Illuminate/Container/Container.php(749): ReflectionClass->__construct('sentry') #1 /home/forge/jamshark.com/vendor/laravel/framework/src/Illuminate/Container/Container.php(644): Illuminate\Container\Container->build('sentry', Array) #2 /home/forge/jamshark.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\Container\Container->make('sentry', Array) #3 /home/forge/jamshark.com/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(106): Illuminate\Foundation\Application->make('sentry', Array) #4 /home/forge/jamshark.com/app/Exceptions/Handler.php(38): app('sentry') #5 /home/forge/jamshark.com/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(320): App\Exceptions\Handler->report(Object(Dotenv\Exception\InvalidFileException)) #6 in /home/forge/jamshark.com/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 749 It then repeats that stack trace and after that gives these errors: > Script php artisan clear-compiled handling the pre-update-cmd event returned with error code 255 > Installation failed, reverting ./composer.json to its original content.
Author
Owner

@X-Ryl669 commented on GitHub (Jan 18, 2017):

Got this too.
I fixed it by

git checkout composer.json
git checkout composer.lock

Then I've edited composer.lock to remove all section concerning pusher (I'd installed it previously, it was a leftover):

git diff master composer.lock
diff --git a/composer.lock b/composer.lock
index 0592e13..42a6b84 100644
--- a/composer.lock
+++ b/composer.lock
@@ -1507,50 +1507,6 @@
             "time": "2017-01-15T17:54:13+00:00"
         },
         {
-            "name": "pusher/pusher-php-server",
-            "version": "2.6.3",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/pusher/pusher-http-php.git",
-                "reference": "7101edc482d1b1de027abadd7a80a0d00222ef08"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/pusher/pusher-http-php/zipball/7101edc482d1b1de027abadd7a80a0d00222ef08",
-                "reference": "7101edc482d1b1de027abadd7a80a0d00222ef08",
-                "shasum": ""
-            },
-            "require": {
-                "ext-curl": "*",
-                "php": ">=5.2"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "~4"
-            },
-            "type": "library",
-            "autoload": {
-                "classmap": [
-                    "lib/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "description": "Library for interacting with the Pusher REST API",
-            "homepage": "https://github.com/pusher/pusher-php-server",
-            "keywords": [
-                "events",
-                "php-pusher-server",
-                "publish",
-                "pusher",
-                "realtime",
-                "rest",
-                "trigger"
-            ],
-            "time": "2016-12-22T10:46:28+00:00"
-        },
-        {
             "name": "ramsey/uuid",
             "version": "3.5.2",
             "source": {

Then did a composer update
Then did a composer install

<!-- gh-comment-id:273593915 --> @X-Ryl669 commented on GitHub (Jan 18, 2017): Got this too. I fixed it by ``` git checkout composer.json git checkout composer.lock ``` Then I've edited composer.lock to remove all section concerning pusher (I'd installed it previously, it was a leftover): ``` git diff master composer.lock diff --git a/composer.lock b/composer.lock index 0592e13..42a6b84 100644 --- a/composer.lock +++ b/composer.lock @@ -1507,50 +1507,6 @@ "time": "2017-01-15T17:54:13+00:00" }, { - "name": "pusher/pusher-php-server", - "version": "2.6.3", - "source": { - "type": "git", - "url": "https://github.com/pusher/pusher-http-php.git", - "reference": "7101edc482d1b1de027abadd7a80a0d00222ef08" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/pusher/pusher-http-php/zipball/7101edc482d1b1de027abadd7a80a0d00222ef08", - "reference": "7101edc482d1b1de027abadd7a80a0d00222ef08", - "shasum": "" - }, - "require": { - "ext-curl": "*", - "php": ">=5.2" - }, - "require-dev": { - "phpunit/phpunit": "~4" - }, - "type": "library", - "autoload": { - "classmap": [ - "lib/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Library for interacting with the Pusher REST API", - "homepage": "https://github.com/pusher/pusher-php-server", - "keywords": [ - "events", - "php-pusher-server", - "publish", - "pusher", - "realtime", - "rest", - "trigger" - ], - "time": "2016-12-22T10:46:28+00:00" - }, - { "name": "ramsey/uuid", "version": "3.5.2", "source": { ``` Then did a `composer update` Then did a `composer install`
Author
Owner

@grath90 commented on GitHub (Jan 19, 2017):

I just deleted the repository from my server and reinstalled it. No issues the second time.

<!-- gh-comment-id:273819052 --> @grath90 commented on GitHub (Jan 19, 2017): I just deleted the repository from my server and reinstalled it. No issues the second time.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#369
No description provided.