YunoHost-Apps / flarum_ynh

Flarum, an open-source forum software, packaged for YunoHost
https://flarum.org/
MIT License
19 stars 5 forks source link

Admin panel seems locked #130

Closed yomjabbar closed 5 years ago

yomjabbar commented 5 years ago

VPS: Debian 9.11 YNH: 3.6.4 Flarum : 0.1.0-beta.9~ynh1, installation French/private (not public) Login ssowat working

Impossible to make any change in the admin panel. "Oups ! Quelque chose s’est mal passé. Veuillez actualiser la page puis réessayer."

tituspijean commented 5 years ago

I need more information.

yomjabbar commented 5 years ago

i would say on the root domain (domain.com/flarum). i will colect the log and post them

in /var/log/nginx/domain.com-error.log

2019/10/01 19:48:49 [error] 1509#1509: *20237 "/usr/share/nginx/html/yunohost/sso/index.html" is not found (2: No such file or directory), client: 192.0.91.177, server: domain.com, request: "HEAD /yunohost/sso/?r=REDIRECT HTTP/1.1", host: "domain.com"
2019/10/01 19:55:16 [error] 1509#1509: *20339 "/usr/share/nginx/html/yunohost/sso/index.html" is not found (2: No such file or directory), client: 192.0.91.177, server: domain.com, request: "HEAD /yunohost/sso/?r=REDIRECT HTTP/1.1", host: "domain.com"
2019/10/01 20:01:56 [error] 1509#1509: *20445 "/usr/share/nginx/html/yunohost/sso/index.html" is not found (2: No such file or directory), client: 192.0.91.177, server: domain.com, request: "HEAD /yunohost/sso/?r=REDIRECT HTTP/1.1", host: "domain.com"
2019/10/01 20:08:38 [error] 1509#1509: *20552 "/usr/share/nginx/html/yunohost/sso/index.html" is not found (2: No such file or directory), client: 192.0.91.177, server: domain.com, request: "HEAD /yunohost/sso/?r=REDIRECT HTTP/1.1", host: "domain.com"
2019/10/01 20:15:26 [error] 1510#1510: *20661 "/usr/share/nginx/html/yunohost/sso/index.html" is not found (2: No such file or directory), client: 192.0.91.177, server: domain.com, request: "HEAD /yunohost/sso/?r=REDIRECT HTTP/1.1", host: "domain.com"
2019/10/01 20:21:38 [error] 1510#1510: *20761 "/usr/share/nginx/html/yunohost/sso/index.html" is not found (2: No such file or directory), client: 192.0.91.177, server: domain.com, request: "HEAD /yunohost/sso/?r=REDIRECT HTTP/1.1", host: "domain.com"
2019/10/01 20:29:21 [error] 1510#1510: *20882 "/usr/share/nginx/html/yunohost/sso/index.html" is not found (2: No such file or directory), client: 192.0.91.177, server: domain.com, request: "HEAD /yunohost/sso/?r=REDIRECT HTTP/1.1", host: "domain.com"
2019/10/01 20:36:38 [error] 1510#1510: *20999 "/usr/share/nginx/html/yunohost/sso/index.html" is not found (2: No such file or directory), client: 192.0.91.177, server: domain.com, request: "HEAD /yunohost/sso/?r=REDIRECT HTTP/1.1", host: "domain.com"
2019/10/01 20:42:46 [error] 1510#1510: *21096 "/usr/share/nginx/html/yunohost/sso/index.html" is not found (2: No such file or directory), client: 192.0.91.177, server: domain.com, request: "HEAD /yunohost/sso/?r=REDIRECT HTTP/1.1", host: "domain.com"
2019/10/01 20:49:46 [error] 1510#1510: *21207 "/usr/share/nginx/html/yunohost/sso/index.html" is not found (2: No such file or directory), client: 192.0.91.177, server: domain.com, request: "HEAD /yunohost/sso/?r=REDIRECT HTTP/1.1", host: "domain.com"
2019/10/01 20:56:32 [error] 1510#1510: *21315 "/usr/share/nginx/html/yunohost/sso/index.html" is not found (2: No such file or directory), client: 192.0.91.177, server: domain.com, request: "HEAD /yunohost/sso/?r=REDIRECT HTTP/1.1", host: "domain.com"

in /var/log/nginx/flarum.slow.log

[01-Oct-2019 20:57:05]  [pool flarum] pid 1196
script_filename = /var/www/flarum/public//index.php
[0x00007fa8350223a0] GetRules() /var/www/flarum/vendor/oyejorge/less.php/lib/Less/Parser.php:495
[0x00007fa8350222c0] parseFile() /var/www/flarum/vendor/oyejorge/less.php/lib/Less/Tree/Import.php:275
[0x00007fa8350221d0] ParseImport() /var/www/flarum/vendor/oyejorge/less.php/lib/Less/Tree/Import.php:198
[0x00007fa8350220e0] compile() /var/www/flarum/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php:248
[0x00007fa835022010] evalImports() /var/www/flarum/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php:235
[0x00007fa835021f30] PrepareRuleset() /var/www/flarum/vendor/oyejorge/less.php/lib/Less/Tree/Ruleset.php:70
[0x00007fa835021e20] compile() /var/www/flarum/vendor/oyejorge/less.php/lib/Less/Parser.php:199
[0x00007fa835021d40] getCss() /var/www/flarum/vendor/flarum/core/src/Frontend/Compiler/LessCompiler.php:86
[0x00007fa835021c90] compile() /var/www/flarum/vendor/flarum/core/src/Frontend/Compiler/RevisionCompiler.php:152
[0x00007fa835021bf0] save() /var/www/flarum/vendor/flarum/core/src/Frontend/Compiler/RevisionCompiler.php:82
[0x00007fa835021b30] commit() /var/www/flarum/vendor/flarum/core/src/Frontend/Content/Assets.php:60
[0x00007fa835021ab0] commit() /var/www/flarum/vendor/flarum/core/src/Frontend/Content/Assets.php:50
[0x00007fa8350219f0] __invoke() /var/www/flarum/vendor/flarum/core/src/Frontend/Frontend.php:65
[0x00007fa835021950] populate() /var/www/flarum/vendor/flarum/core/src/Frontend/Frontend.php:57
[0x00007fa8350218b0] document() /var/www/flarum/vendor/flarum/core/src/Frontend/Controller.php:34
[0x00007fa8350217a0] handle() /var/www/flarum/vendor/flarum/core/src/Http/RouteHandlerFactory.php:40
[0x00007fa835021710] Flarum\Http\{closure}() /var/www/flarum/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php:67
[0x00007fa835021630] process() /var/www/flarum/vendor/zendframework/zend-stratigility/src/Next.php:60
[0x00007fa835021590] handle() /var/www/flarum/vendor/tituspijean/flarum-ext-auth-ssowat/src/Middleware/SSOwatMiddleware.php:77
[0x00007fa835021460] process() /var/www/flarum/vendor/zendframework/zend-stratigility/src/Next.php:60

in /var/log/nginx/error.log

2019/10/01 00:26:27 [error] 1510#1510: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 01:15:13 [error] 1509#1509: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 01:33:30 [error] 1510#1510: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 02:22:16 [error] 1509#1509: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 03:38:46 [error] 1509#1509: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 04:02:12 [crit] 1510#1510: *5082 SSL_do_handshake() failed (SSL: error:1417D18C:SSL routines:tls_process_client_hello:version too low) while SSL handshaking, client: 216.218.206.69, server: 0.0.0.0:443
2019/10/01 04:03:09 [error] 1510#1510: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 04:48:48 [error] 1509#1509: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 05:10:06 [error] 1510#1510: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 06:02:00 [error] 1509#1509: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 06:20:00 [error] 1510#1510: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 07:11:58 [error] 1509#1509: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 07:26:05 [error] 1510#1510: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 08:37:15 [error] 1510#1510: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 08:49:29 [error] 1509#1509: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 09:56:16 [error] 1509#1509: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 10:02:17 [error] 1510#1510: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 11:32:27 [error] 1509#1509: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 11:33:53 [error] 1510#1510: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 12:50:31 [error] 1510#1510: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 13:29:39 [error] 1509#1509: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 14:30:39 [error] 1510#1510: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 15:31:50 [error] 1509#1509: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 15:50:44 [error] 1510#1510: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 16:41:49 [error] 1509#1509: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 16:59:50 [error] 1510#1510: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 17:47:53 [error] 1509#1509: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 18:52:58 [error] 1510#1510: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 19:27:01 [error] 1509#1509: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
2019/10/01 19:41:12 [info] 7716#7716: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:64
2019/10/01 20:08:45 [error] 1510#1510: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
tituspijean commented 5 years ago

For some unknown reason, when you try to access the admin panel, your server tries to open /usr/share/nginx/html/yunohost/sso/index.html, which does not exist. The way the SSOwat extension works, it needs the main domain of yunohost. I'm afraid it was not correctly set.

NB: the letsencrypt errors in the last log are not related to the app, but you should have a look into it. You may end up with outdated certificates in the log run. NB2: I took the initiative of removing anything identifying your server name ;)

tituspijean commented 5 years ago

Can you also try to upgrade the app? I forgot to update the manifest, so what you think is Flarum beta.9 may actually been beta.10. or not. So let's fix that. :)

yomjabbar commented 5 years ago

hello, i did upgrade with yunohost upgrade and it's all working fine. No more issue on the admin panel, ssowat extension set to use ssowat only. Many thanks, i will continue configuring and using Flarum for Forum purpose.

tituspijean commented 5 years ago

Great news, enjoy the app! 😄