YunoHost-Apps / hubzilla_ynh

Hubzilla Hub package for YunoHost
https://zotlabs.org/page/hubzilla/hubzilla-project
GNU General Public License v3.0
14 stars 9 forks source link

after update to HZ 8.0 problmes with PHP 8.0 #135

Closed rocky-III closed 4 months ago

rocky-III commented 1 year ago

after i update to YNH11.1.6 and HZ 8.0

php 8 did not start now can start php 8 by the command line but still there are errors


root@admin:~# yunohost service restart php8.0-fpm                                                                                        
Success! Service 'php8.0-fpm' restarted
root@admin:~# yunohost service log php8.0-fpm
Traceback (most recent call last):                                                                                                       
  File "/usr/bin/yunohost", line 77, in <module>                                                                                         
    yunohost.cli(                                                                                                                        
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 41, in cli                                                            
    ret = moulinette.cli(                                                                                                                
  File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 111, in cli                                                         
    Cli(                                                                                                                                 
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 507, in run                                                   
    ret = self.actionsmap.process(args, timeout=timeout)                                                                                 
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 584, in process                                                   
    return func(**arguments)                                                                                                             
  File "/usr/lib/python3/dist-packages/yunohost/service.py", line 528, in service_log                                                    
    result[log_path] = _tail(log_path, number)                                                                                           
  File "/usr/lib/python3/dist-packages/yunohost/service.py", line 790, in _tail                                                          
    lines = f.read().splitlines()                                                                                                        
  File "/usr/lib/python3.9/codecs.py", line 322, in decode                                                                               
    (result, consumed) = self._buffer_decode(data, self.errors, final)                                                                   
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 2335947: invalid continuation byte    

in the log i see also a lot of entries like this:

2023/02/07 13:16:36 [crit] 1280#1280: *6645 connect() to unix:/var/run/php/php8.0-fpm-hubzilla.sock failed (2: No such file or directory) while connecting to upstream, client: 5.9.xxx.xx, server: hub.serever.tld, request: "POST /inbox HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.0-fpm-hubzilla.sock:", host: "hub.serever.tld,"

and

2023/02/07 13:31:07 [error] 1280#1280: *9326 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 64.90.xx.xxx, server: hub.serever.tld, request: "POST /zot HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.0-fpm-hubzilla.sock", host: "hub.serever.tld"