Closed rthees closed 1 year ago
@rthees if you have the automatic backup, uninstall castopod and restore from the pre-upgrade backup.
This happened to me as well. Here is the upgrade log: https://paste.yunohost.org/raw/uyozimaric PHP 8.1 does get installed but there seems to be issues with enabling some modules and then later on it sets the castopod php version to 8.0 still so now the castopod app is broken. PLEASE test these manually in testing before merging into master. The bots don't get everything right. If you need help with that just mention me or something, I would be glad to help :-)
I made a change in my branch Upgrade to 1.0 that fixes the php error on upgrade but now all I see is a blank screen when going to the website. Nginx shows an error:
2022/10/24 19:46:16 [error] 898140#898140: *64047 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function CodeIgniter\Autoloader\token_get_all() in /var/www/castopod/vendor/codeigniter4/framework/system/Autoloader/FileLocator.php:116
Stack trace:
#0 /var/www/castopod/vendor/codeigniter4/framework/system/Config/BaseService.php(372): CodeIgniter\Autoloader\FileLocator->getClassname()
#1 /var/www/castopod/vendor/codeigniter4/framework/system/Config/BaseService.php(262): CodeIgniter\Config\BaseService::buildServicesCache()
#2 /var/www/castopod/vendor/codeigniter4/framework/system/Config/BaseService.php(247): CodeIgniter\Config\BaseService::serviceExists()
#3 /var/www/castopod/public/index.php(60): CodeIgniter\Config\BaseService::__callStatic()
#4 {main}
thrown in /var/www/castopod/vendor/codeigniter4/framework/system/Autoloader/FileLocator.php on line 116" while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: podcast.example.com, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php8.1-fpm-castopod.sock:", host: "podcast.example.com"
Hello, I do not really understand how to fix this issue, though. I am experiencing the same trouble.
Still relevant in version 1.0.2~ynh_1
Still happening in 1.0.3~ynh1. This is what I see now:
@xplosionmind Still happening when you upgrade to 1.1.2~ynh2 ? Can you provide some logs + the nginx config file ?
@xplosionmind Still happening when you upgrade to 1.1.2~ynh2 ?
Thanks for asking, @Tagadda!
I uninstalled the app and reinstalled it from scratch. I still see the “Whoops!” page…
How can I provide the app logs?
Content of /etc/nginx/conf.d/sconnesso.link.d/castopod.conf
:
#sub_path_only rewrite ^/$ / permanent;
location / {
# Path to source
alias /var/www/castopod/public/;
index index.php;
client_max_body_size 512M;
more_clear_headers 'X-Frame-Options';
try_files $uri $uri/ /index.php;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php8.1-fpm-castopod.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
I still see the “Whoops!” page…
On which URL ? Can you browse https://sconnesso.link/ ?
How can I provide the app logs?
Usually you can find those in /var/log/
. Maybe /var/log/php8.1-fpm.log
and /var/log/nginx/sconnesso.link-error.log
On which URL ? Can you browse https://sconnesso.link/ ?
I am in and it seems that the app is working. I will try to restore the previous backup in the following days.
Thanks so much @Tagadda
After updating the Castopod-App to version 1.0.0~ynh1, my castopod-site doesn't work anymore, only this error appears:
Your PHP version must be 8.1 or higher to run CodeIgniter. Current version: 8.0.24
How to fix this? My Yunohost-version: 11.0.10.1 (stable).