YunoHost-Apps / yourls_ynh

YOURLS package for YunoHost
https://yourls.org/
GNU General Public License v3.0
8 stars 5 forks source link

Not able to use the plugin Flynntes-Sleeky #15

Closed sant-sh closed 2 years ago

sant-sh commented 3 years ago

I am not able to use below theme plugin, https://github.com/Flynntes/Sleeky/wiki/Installation

Frontend is working fine but not able to activate backend-plugin after copying the backend to plugin directory (below is the screenshot) image

Is there anything which can be done from yunohost? On a normal installtion, its working fine (apache on local server)

anmol26s commented 3 years ago

Helloo Uuuhh..Frontend issue. It would be wonderful if you can show the Nginx logs.

sant-sh commented 3 years ago

Below is the error log,

2020/12/16 03:08:38 [error] 1042#1042: *167 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined variable: YOURLS_SITE in /var/www/yourls/frontend/config.php on line 7" while reading response header from upstream, client: 150.x.x.x, server: short.example.com, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php7.3-fpm-yourls.sock:", host: "short.example.com"
2020/12/16 03:08:41 [error] 1042#1042: *167 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined variable: YOURLS_SITE in /var/www/yourls/frontend/config.php on line 7" while reading response header from upstream, client: 150.x.x.x, server: short.example.com, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php7.3-fpm-yourls.sock:", host: "short.example.com"
2020/12/16 03:08:41 [error] 1042#1042: *167 lua entry thread aborted: runtime error: /usr/share/ssowat/access.lua:276: Interrupted system call
stack traceback:
coroutine 0:
        [C]: in function '(for generator)'
        /usr/share/ssowat/access.lua:276: in function 'scandir'
        /usr/share/ssowat/access.lua:303: in function 'serveYnhpanel'
        /usr/share/ssowat/access.lua:321: in function </usr/share/ssowat/access.lua:1>, client: 150.x.x.x, server: short.example.com, request: "GET /ynhtheme/custom_portal.js HTTP/2.0", host: "short.example.com", referrer: "https://short.example.com/"
2020/12/16 03:21:42 [error] 1042#1042: *185 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined variable: YOURLS_SITE in /var/www/yourls/frontend/config.php on line 7" while reading response header from upstream, client: 150.x.x.x, server: short.example.com, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php7.3-fpm-yourls.sock:", host: "short.example.com"
2020/12/16 08:46:15 [error] 1042#1042: *493 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined variable: YOURLS_SITE in /var/www/yourls/frontend/config.php on line 7" while reading response header from upstream, client: 150.x.x.x, server: short.example.com, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php7.3-fpm-yourls.sock:", host: "short.example.com"
2020/12/16 08:46:16 [error] 1042#1042: *493 lua entry thread aborted: runtime error: /usr/share/ssowat/access.lua:276: Interrupted system call
stack traceback:
coroutine 0:
        [C]: in function '(for generator)'
        /usr/share/ssowat/access.lua:276: in function 'scandir'
        /usr/share/ssowat/access.lua:303: in function 'serveYnhpanel'
        /usr/share/ssowat/access.lua:321: in function </usr/share/ssowat/access.lua:1>, client: 150.x.x.x, server: short.example.com, request: "GET /ynhtheme/custom_portal.js HTTP/2.0", host: "short.example.com", referrer: "https://short.example.com/"

Access log

72.x.x.x - name [16/Dec/2020:08:46:57 -0500] "GET /user/plugins/sleeky-backend/assets/css/dark.css HTTP/2.0" 200 20640 "https://short.example.com/admin/plugins.php?action=activate&plugin=sleeky-backend&nonce=cb3f0c621f" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
72.x.x.x - name [16/Dec/2020:08:46:59 -0500] "GET /user/plugins/sleeky-backend/assets/css/animate.min.css HTTP/2.0" 200 56048 "https://short.example.com/admin/plugins.php?action=activate&plugin=sleeky-backend&nonce=cb3f0c621f" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
72.x.x.x - name [16/Dec/2020:08:46:59 -0500] "GET /user/plugins/sleeky-backend/assets/js/theme.js HTTP/2.0" 200 4020 "https://short.example.com/admin/plugins.php?action=activate&plugin=sleeky-backend&nonce=cb3f0c621f" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
72.x.x.x - name [16/Dec/2020:08:47:01 -0500] "GET /yunohost/sso/portal.html HTTP/2.0" 200 4542 "https://short.example.com/admin/plugins.php?action=activate&plugin=sleeky-backend&nonce=cb3f0c621f" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
72.x.x.x - name [16/Dec/2020:08:47:01 -0500] "GET /user/plugins/sleeky-backend/assets/img/logo_white.png HTTP/2.0" 200 14707 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
sant-sh commented 3 years ago

Link to config.php - https://github.com/Flynntes/Sleeky/blob/master/sleeky-frontend/frontend/config.php

I have tried replacing the placeholder on line 7 from $YOURLS_SITE to https://short.example.com but still plugin is not getting activated

ericgaspar commented 2 years ago

please reopen if needed