-
Notifications
You must be signed in to change notification settings - Fork 15
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
Installation fails on Yunohost 11.0 #166
Comments
I had a deeper look at the Logs/var/log/nginx/xy.noho.st-error.log
So it seems that there is something missing: ls -a1 /var/run/php/ and even when /var/www/pixelfed/public/ exists, there are no ynh* files or folders in it. BTW: php7.3-fpm is present, but not running. So I will try to reinstall the pixelfed app now. |
Update: During deinstallation there has been this message: |
This is probably related to #41 and is not something that would prevent Pixelfed from running normally. I don't see any particular error, mainly warnings. But some are in a language that I don't know, and automated translation doesn't give me something usable 😅 Yet there is some issues:
That sounds like a "classical" error with horizon service… can you try to restart |
Yes, according to the logfiles I don't see any error too. When there is something specific I'll try to translate it. I tried: service pixelfed-horizon restart systemctl restart pixelfed-horizon Having a look in journalctl's output I found these related (pixelfed-horizon) messages:
After that I did: supervisorctl restart pixelfed-horizon supervisorctl status pixelfed-horizon But still no difference with my xy.noho.st Domainname in the browser: 502 Bad Gateway So I had a look at /etc/cron.d/pixelfed and since there IS a user called pixelfed I executed the following manually: So here it seems to be okay, too. Last try: supervisorctl status pixelfed-horizon but still "502 Bad Gateway" when calling pixelfed with the ynh-tile (or directly with the domain-name). |
Can you share with us the content of (I don't remember what's in that file, just in case, feel free to change any personal data that might be included) Also can you restart php7.4 service and (just in case) nginx service too ? |
cat /etc/cron.d/pixelfed systemctl restart php7.4-fpm.service changed nothing, the status outputs gave no hint to a problem, too. |
Ok so let's try something else: can you install this version ? https://github.com/YunoHost-Apps/pixelfed_ynh/tree/26cbeee2e406d78f55a63be206781b3bac1b029d This is the last pre-php7.4 version, I want to check if the issues appears here too. |
I'm not shure if I understand you correctly, but this is what I did: So I tried it via ssh: At this point I usually would like to return to YNH stable and start for new on this base. |
Sorry, I should have explained to you how to install a custom version like this. Indeed, either in the admin interface you install it using this URL https://github.com/YunoHost-Apps/pixelfed_ynh/tree/26cbeee2e406d78f55a63be206781b3bac1b029d (paste in in the field at the bottom of the app catalog), or you can use the command The "install with Yunohost" button will use the latest "normal" (master branch) version. So in that case it was v0.11.2, the same as the one you installed before. The thing is… I gave you the bad URL (that was not an old enough commit) 😅
I'm not really sure I understand what you wish to do 😅 |
Ah, okay. This time I entered the URL with the second commit id in the "userdefined applications" field. Well, nothing changed. Same warnings (I try to translate manually, so it's no LANG=C output):
I even did: without an error, but without success, too. What is interesting is that the content of the cronjob changed (user entry "pixelfed" is missing)
So I remembered the php7.3 thing. dpkg -l php7.3* | grep ^ii
so I did this by hand: systemctl start php7.3-fpm.service but of course there is no /etc/php/7.3/fpm/pixelfed.conf now After that I tried installing on a third subdomain by: Same warnings, no errors, same timeout, same behaviour. finally I had a look at nginx-error logfiles:
Obviously the server still prefers using php7.4_fpm. So maybe I need to switch php version "somehow" manually. |
I don't know if it is related (or in any kind affects this), but I found the official installation guide: The guide advices to install composer and redis. These two packages are not installed on my system. |
Well you did quite some work 😮
Again that's my fault, I didn't check the version number, but that's the right version I wanted you to try. It was the last one to use php7.3 (now it's php7.4), I wondered if that was the issue.
That's out of my knowledge too.
@yalh76 do you know if we need to install composer ? Does that ring you a bell ? 😅 |
I'm managed to go one step ahead, but now I'm on the next problem. apt install composer redis I created /etc/php/7.4/fpm/pool.d/pixelfed.conf somehow inspired by the error messages and the installation guide:
Possibly restarting some services, this was enough to see the Pixelfed mainpage. nginx still complains about some missing files, but probably they are not really needed:
Then I cleaned up a little:
So pixelfed seems to be still running, possibly that packages aren't needed and the main problem was the missing pixelfed.conf file. I thought you should know it. Till now I was not able to log in with one of my yunohost users, but possibly I first have to register on that pixelfed-homepage. I tried to, but didn't receive a mail till now. I'll see. |
Here is mine (so Yunohost Pixelfed default):
Great ! 🙂
Yeah, apart if you want the yunohost tile to be shown, just ignore it :)
Thank you very much for all your work, there really seems to be something going on (wrong) in our php (7.4?) setup 🤔
Yes you do : Pixelfed is not integrated in Yunohost Single Sign-On (SSO). I'm not even sure it supports it, but anyway, accounts are not the same ones :)
You can try yunohost upgrade procedure if you do not wish to reinstall it by hand :) |
Yes it works. Thank you! :) Then I created a new pixelfed.conf (yours) and only did: and the page appears as expected. Christian |
So there is definitely quite some issue with that php config… |
Obviously it's not pixelfed only: |
I don't know yhh-scripts, but in my logfile above there is nothing about the fpm configfile. Then I remembered the WARNING about "/usr/share/yunohost/helpers.d/php: line 408" So, the subroutine for $max_ram is defined in /usr/share/yunohost/helpers.d/hardware Run by hand this line returns no value for me because of the translation of vmstat output. I don't know the internals of YNH and possibly there is a better way to fix it, but possibly you (or other "YNH people" - don't know the right place for it) should pay attention to this localisation issue. and even the (somehow related) output of /proc/meminfo |
Ok it looks bad… @YunoHost-Apps/apps-group are you aware of any trouble with Yunohost helper, localisation and php (7.4) config files ? |
Can you try with last version |
Hello there,
I installed Yunohost-buster-4.18 and updated my system according to
https://forum.yunohost.org/t/beta-stage-testing-for-yunohost-11-0-bullseye-and-buster-bullseye-migration/18531
then I installed Pixelfed. This is my first yunohost and pixelfed experience, but I'm quite familiar with Debian.
Describe the bug
Pixelfed installation script gives some errors during installation, but finishes "successfully"
and now all I see is: "502 Bad Gateway - nginx"
Context
Due to DynDNS and already existing (non-yunohost, Debian and Apache-based) Nextcloud (on a different machine) I use Apaches as reverse proxy (mod_proxy) to redirect my yunohost subdomains (even a .noho.st Subdomain) to the local yunohost IP.
That said it seems to work properly since webadmin and userlogin are accessible via Internet and additionally the error-massage says it's nginx.
Even when I add the local IP and xy.noho.st to /etc/hosts on my desktop computer the "bad gateway" message persists.
Logs
https://paste.yunohost.org/raw/onaxoyewen
Additional Info
I tried to fix the issue:
When I go to Applications - Pixelfed I found "redirect main-domain to this Application (xy.noho.st)" and thought this could fix my problems. So I pressed the green button "set as default".
But this also lead to an error, saying App 'pixelfed' could not set as default for domain 'xy.noho.st', because it's already used by 'pixelfed', so I'm still stuck with 'bad gateway':
Fehler: "400" Bad Request
Aktion: "PUT" /yunohost/api/apps/pixelfed/default
https://paste.yunohost.org/raw/cicunuqayu
https://paste.yunohost.org/raw/iciwihukib
The text was updated successfully, but these errors were encountered: