Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different types of errors depending on config and version #387

Open
MatheoAtche opened this issue Aug 10, 2020 · 1 comment
Open

Different types of errors depending on config and version #387

MatheoAtche opened this issue Aug 10, 2020 · 1 comment

Comments

@MatheoAtche
Copy link

Hi !

I am trying to deploy Cachet on an Openshift Cluster using this docker image. And no matter what type of config I try or what version I try, there is always an error somewhere or a feature not working.

Maybe I am doing something wrong in my deployment, but I tried to follow documentation and to do a deployment similar to the docker-compose one.

I am open to any suggestions to have a working deployement on an Openshift cluster.

Here is all the things I tried and the corresponding errors (I haven't tried everything because it takes time) :

Image from dockerhub

memcached is not available in this image and there is no variable to configure connection to anoher memcached instance, hence I have not tested with memcached for cache or sessions.

Image latest

updated 3 months ago, digest : sha256:1b1bcb00e588c6b43249a3a875140ecedca189c5a38f1b72593eb7415c1efde6

queue: Redis

session / cache apc array database file memcached redis
apc error 1
array error 1
database error 1
file error 1
memcached
redis error 1 error 1 error 1 error 1 error 1

queue: database

session / cache apc array database file memcached redis
apc error 1 error 1 error 1 error 1 error 1
array error 6 error 6 error 6 error 6 error 6
database error 1 error 1
file error 1
memcached
redis error 1 error 1

Image 2.3.15

most recent tag other than latest, updated 3 months ago, digest : sha256:c09a0e3ef78a88f7c1be8e67cc81545d13ff08b112fc54bf2e08c26af3e297a8

Little bug with this image, sometimes even if we are not logged in, there is a link logout at the bottom of the page with no effect when we click on it. And as soon as we leave the dashboard we are logged out. But sometimes this link is not present and we are not logged out when leaving the dashboard to see the status page for example. I have not diagnosed why and when this happens. There is some logs when clicking Dashboard in this situation : error 5
With this image when APP_DEBUG is set to true, the debug bar is not enabled.

queue: Redis

session / cache apc array database file memcached redis
apc error 2
array error 4
database error 4
file error 2
memcached
redis error 2 and error 3

queue: database

session / cache apc array database file memcached redis
apc error 2
array error 4
database error 2 [error 2][#2]
file error 2
memcached
redis error 2 and error 3

My own build (using gitlab)

I used the dockerfile from this repo to build this image. What I call latest is the image without changing the version build arg, so it builds the dev version of Cachet on branch 2.4. And the v2.3.18 is based on the v2.3.18 tag from the Cachet repository.

Image latest

queue: Redis

session / cache apc array database file memcached redis
apc error 1
array error 6
database error 1
file error 1
memcached
redis error 1 error 1

queue: database

session / cache apc array database file memcached redis
apc error 1
array error 6
database error 1
file error 1
memcached
redis error 1

image v2.3.18

queue: redis

session / cache apc array database file memcached redis
apc error 7
array error 4
database error 7
file
memcached error 7
redis error 7

queue: database

session / cache apc array database file memcached redis
apc error 7
array error 4
database error 7 error 7
file error 7
memcached
redis error 7
Error 1 : Happens when editing a subscribtion if a component has been created
ErrorException thrown with message "Undefined variable: componentGroup (View: /var/www/html/resources/views/subscribe/manage.blade.php)"

Stacktrace:
#66 Illuminate\View\Engines\CompilerEngine:handleViewException in /var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:45
#65 ErrorException in /var/www/html/storage/framework/views/01d9882a55d2483ff43d71a5718dcd19bcc868f8.php:46
#64 Illuminate\Foundation\Bootstrap\HandleExceptions:handleError in /var/www/html/storage/framework/views/01d9882a55d2483ff43d71a5718dcd19bcc868f8.php:46
#63 include in /var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:43
#62 Illuminate\View\Engines\PhpEngine:evaluatePath in /var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:59
#61 Illuminate\View\Engines\CompilerEngine:get in /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:142
#60 Illuminate\View\View:getContents in /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:125
#59 Illuminate\View\View:renderContents in /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:90
#58 Illuminate\View\View:render in /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php:42
#57 Illuminate\Http\Response:setContent in /var/www/html/vendor/symfony/http-foundation/Response.php:202
#56 Symfony\Component\HttpFoundation\Response:__construct in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:750
#55 Illuminate\Routing\Router:toResponse in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:722
#54 Illuminate\Routing\Router:prepareResponse in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:682
#53 Illuminate\Routing\Router:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30
#52 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ValidateSignature.php:22
#51 Illuminate\Routing\Middleware\ValidateSignature:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#50 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#49 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/app/Http/Middleware/SubscribersConfigured.php:55
#48 CachetHQ\Cachet\Http\Middleware\SubscribersConfigured:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#47 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#46 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/app/Http/Middleware/Localize.php:68
#45 CachetHQ\Cachet\Http\Middleware\Localize:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#44 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#43 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/app/Http/Middleware/ReadyForUse.php:60
#42 CachetHQ\Cachet\Http\Middleware\ReadyForUse:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#41 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#40 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41
#39 Illuminate\Routing\Middleware\SubstituteBindings:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#38 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#37 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:75
#36 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#35 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#34 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49
#33 Illuminate\View\Middleware\ShareErrorsFromSession:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#32 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#31 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:63
#30 Illuminate\Session\Middleware\StartSession:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#29 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#28 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37
#27 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#26 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#25 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:66
#24 Illuminate\Cookie\Middleware\EncryptCookies:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#23 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#22 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104
#21 Illuminate\Pipeline\Pipeline:then in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:684
#20 Illuminate\Routing\Router:runRouteWithinStack in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:659
#19 Illuminate\Routing\Router:runRoute in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:625
#18 Illuminate\Routing\Router:dispatchToRoute in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:614
#17 Illuminate\Routing\Router:dispatch in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176
#16 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30
#15 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:65
#14 Barryvdh\Debugbar\Middleware\InjectDebugbar:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#12 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:62
#11 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#9 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/fideloper/proxy/src/TrustProxies.php:57
#8 Fideloper\Proxy\TrustProxies:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#6 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/barryvdh/laravel-cors/src/HandlePreflight.php:29
#5 Barryvdh\Cors\HandlePreflight:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#4 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#3 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104
#2 Illuminate\Pipeline\Pipeline:then in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151
#1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116
#0 Illuminate\Foundation\Http\Kernel:handle in /var/www/html/public/index.php:54

Error 2 : when trying to update a subscription, changes are not taken into account and there is an insecure connection alert from firefox (request is sent through http and not https), no errors logged and the subscribtions table in database is empty

Error 3 : dashboard menu not working (error 500) (but others menus work, settings, subscribers, components...)
2020/08/06 14:17:16 [error] 70#70: *91 FastCGI sent in stderr: "PHP message: [2020-08-06 14:17:16] production.ERROR: ErrorException: Trying to get property of non-object in /var/www/html/app/Http/Controllers/Dashboard/DashboardController.php:88
Stack trace:
#0 /var/www/html/app/Http/Controllers/Dashboard/DashboardController.php(88): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Trying to get p...', '/var/www/html/a...', 88, Array)
#1 [internal function]: CachetHQ\Cachet\Http\Controllers\Dashboard\DashboardController->showDashboard()
#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(80): call_user_func_array(Array, Array)
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(146): Illuminate\Routing\Controller->callAction('showDashboard', Array)
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(94): Illuminate\Routing\ControllerDispatcher->call(Object(CachetHQ\Cachet\Http\Controllers\Dashboard\DashboardController), Object(Illuminate\Routing\Rout" while reading response header from upstream, client: X.X.X.X, server: localhost, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "ww.example.com"
X.X.X.X - - [06/Aug/2020:14:17:16 +0000] "GET /dashboard HTTP/1.1" 500 3195 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0" "Y.Y.Y.Y"
Error 4 : at first page of setup, popup : CSRF token validation failed
X.X.X.X - - [06/Aug/2020:14:37:04 +0000] "GET /setup HTTP/1.1" 200 8051 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0" "Y.Y.Y.Y"
2020/08/06 14:37:26 [error] 121#121: *11 FastCGI sent in stderr: "PHP message: [2020-08-06 14:37:26] production.NOTICE: Illuminate\Session\TokenMismatchException in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:67
Stack trace:
#0 [internal function]: Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(136): call_user_func_array(Array, Array)
#2 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#5 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession->handle(Objec" while reading response header from upstream, client: X.X.X.X, server: localhost, request: "POST /setup/step1 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.example.com", referrer: "https://www.example.com/setup "
X.X.X.X - - [06/Aug/2020:14:37:26 +0000] "POST /setup/step1 HTTP/1.1" 400 145 "https://cachet.apps.wok.in2p3.fr/setup " "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0" "Y.Y.Y.Y"
Error 5 : little authentication problem whith version 2.3.15
2020/08/06 14:52:41 [error] 123#123: *126 FastCGI sent in stderr: "PHP message: [2020-08-06 14:52:41] production.WARNING: Symfony\Component\HttpKernel\Exception\HttpException in /var/www/html/app/Http/Middleware/Authenticate.php:51
Stack trace:
#0 [internal function]: CachetHQ\Cachet\Http\Middleware\Authenticate->handle(Object(Illuminate\Http\Request), Object(Closure))
#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(136): call_user_func_array(Array, Array)
#2 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(64): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#5 [internal function]: Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Clos" while reading response header from upstream, client: 172.19.16.1, server: localhost, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.example.com", referrer: "https://www.example.com/ "
Error 6 : error 400 after setup when trying to login

The status page is working, if we try to subscribe, the error happens too.

Symfony\Component\HttpKernel\Exception\BadRequestHttpException thrown with message "CSRF token validation failed."

Stacktrace:
#42 Symfony\Component\HttpKernel\Exception\BadRequestHttpException in /var/www/html/vendor/graham-campbell/exceptions/src/Transformers/CsrfTransformer.php:37
#41 GrahamCampbell\Exceptions\Transformers\CsrfTransformer:transform in /var/www/html/vendor/graham-campbell/exceptions/src/ExceptionHandler.php:253
#40 GrahamCampbell\Exceptions\ExceptionHandler:getTransformed in /var/www/html/vendor/graham-campbell/exceptions/src/ExceptionHandler.php:181
#39 GrahamCampbell\Exceptions\ExceptionHandler:render in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:83
#38 Illuminate\Routing\Pipeline:handleException in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:55
#37 Illuminate\Session\TokenMismatchException in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:82
#36 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#35 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#34 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49
#33 Illuminate\View\Middleware\ShareErrorsFromSession:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#32 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#31 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:63
#30 Illuminate\Session\Middleware\StartSession:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#29 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#28 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37
#27 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#26 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#25 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:66
#24 Illuminate\Cookie\Middleware\EncryptCookies:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#23 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#22 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104
#21 Illuminate\Pipeline\Pipeline:then in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:684
#20 Illuminate\Routing\Router:runRouteWithinStack in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:659
#19 Illuminate\Routing\Router:runRoute in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:625
#18 Illuminate\Routing\Router:dispatchToRoute in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:614
#17 Illuminate\Routing\Router:dispatch in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176
#16 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30
#15 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:65
#14 Barryvdh\Debugbar\Middleware\InjectDebugbar:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#12 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:62
#11 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#9 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/fideloper/proxy/src/TrustProxies.php:57
#8 Fideloper\Proxy\TrustProxies:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#6 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/barryvdh/laravel-cors/src/HandlePreflight.php:29
#5 Barryvdh\Cors\HandlePreflight:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#4 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#3 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104
#2 Illuminate\Pipeline\Pipeline:then in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151
#1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116
#0 Illuminate\Foundation\Http\Kernel:handle in /var/www/html/public/index.php:54
Error 7 : happens right after setup when we click on "go to dashboard"

And then there is only error 500, even on status page, hence Openshift tries to kill and restart the pod indefinetly.

ErrorException thrown with message "count(): Parameter must be an array or an object that implements Countable"

Stacktrace:
#72 ErrorException in /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:1161
#71 count in /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:1161
#70 Illuminate\Database\Eloquent\Builder:callScope in /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:1192
#69 Illuminate\Database\Eloquent\Builder:applyScopes in /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:314
#68 Illuminate\Database\Eloquent\Builder:get in /var/www/html/app/Http/Controllers/Dashboard/DashboardController.php:79
#67 CachetHQ\Cachet\Http\Controllers\Dashboard\DashboardController:showDashboard in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:80
#66 call_user_func_array in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:80
#65 Illuminate\Routing\Controller:callAction in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:146
#64 Illuminate\Routing\ControllerDispatcher:call in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:94
#63 Illuminate\Routing\ControllerDispatcher:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:52
#62 call_user_func in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:52
#61 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102
#60 call_user_func in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102
#59 Illuminate\Pipeline\Pipeline:then in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:96
#58 Illuminate\Routing\ControllerDispatcher:callWithinStack in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:54
#57 Illuminate\Routing\ControllerDispatcher:dispatch in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:174
#56 Illuminate\Routing\Route:runController in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:140
#55 Illuminate\Routing\Route:run in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:724
#54 Illuminate\Routing\Router:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:52
#53 call_user_func in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:52
#52 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/app/Http/Middleware/Authenticate.php:54
#51 CachetHQ\Cachet\Http\Middleware\Authenticate:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:136
#50 call_user_func_array in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:136
#49 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32
#48 call_user_func in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32
#47 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:64
#46 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:136
#45 call_user_func_array in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:136
#44 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32
#43 call_user_func in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32
#42 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49
#41 Illuminate\View\Middleware\ShareErrorsFromSession:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:136
#40 call_user_func_array in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:136
#39 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32
#38 call_user_func in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32
#37 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:62
#36 Illuminate\Session\Middleware\StartSession:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:136
#35 call_user_func_array in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:136
#34 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32
#33 call_user_func in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32
#32 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37
#31 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:136
#30 call_user_func_array in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:136
#29 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32
#28 call_user_func in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32
#27 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:59
#26 Illuminate\Cookie\Middleware\EncryptCookies:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:136
#25 call_user_func_array in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:136
#24 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32
#23 call_user_func in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32
#22 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102
#21 call_user_func in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102
#20 Illuminate\Pipeline\Pipeline:then in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:726
#19 Illuminate\Routing\Router:runRouteWithinStack in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:699
#18 Illuminate\Routing\Router:dispatchToRoute in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:675
#17 Illuminate\Routing\Router:dispatch in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:246
#16 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:52
#15 call_user_func in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:52
#14 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:44
#13 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:136
#12 call_user_func_array in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:136
#11 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32
#10 call_user_func in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32
#9 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/fideloper/proxy/src/TrustProxies.php:56
#8 Fideloper\Proxy\TrustProxies:handle in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:136
#7 call_user_func_array in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:136
#6 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32
#5 call_user_func in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32
#4 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102
#3 call_user_func in /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102
#2 Illuminate\Pipeline\Pipeline:then in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:132
#1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:99
#0 Illuminate\Foundation\Http\Kernel:handle in /var/www/html/public/index.php:54
@MatheoAtche
Copy link
Author

I have finally managed to deploy a working instance of Cachet thanks to #271

The solution with '*' in the trusted_proxies did not work for me, but adding \URL::forceSchema('https'); in the boot function of /var/www/html/app/Foundation/Providers/AppServiceProvider.php solved what I called Error 2. And I didn't notice it before, but this error prevented also to invite a team member, as the signup form did not work with http links.

This fix might have solved other errors that I mentioned, but I have not tested yet. My working deployment is using the image cachethq/docker:2.3.15 with database for queue and session and APC for cache. There is still a little bug I noticed with subscription management, when you update your subscriptions, the page reload and it's like nothing has changed, but the change has happened in database and if you come back to subscription management a little bit later, it has been updated. I think it might be linked to cache, not sure, but this bug is not blocking to use Cachet.

And maybe it would be nice to add something about ssl configuration behind a proxy in the documentation. Because right now by just following the documentation, my deployment could not work and I did not find easily the link between my bugs and this SSL problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant