Skip to content
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

4.3 #156

Merged
merged 14 commits into from Dec 12, 2021
Merged

4.3 #156

merged 14 commits into from Dec 12, 2021

Conversation

ericgaspar
Copy link
Member

@ericgaspar ericgaspar commented Dec 10, 2021

  • Add config panel
  • Upgrade to YNH 4.3
  • Add redis_db number
  • Add auto updater

@ericgaspar
Copy link
Member Author

!tastemetitus

@yunohost-bot
Copy link
Contributor

🚀
Test Badge

@ghost
Copy link

ghost commented Dec 10, 2021

Can someone inform what needs to be done ?

I’m not a tech guy or an code expert all I know is to instal Yunohost and then add domain and also install pixelfed what else do i need to do to rectify this error on admin panel and also installation ?
Uploading 34BE11F6-F836-4F03-AFFF-DCE82D150A68.jpeg…

@lapineige
Copy link
Member

lapineige commented Dec 10, 2021

For the record, that is a follow-up from that topic : https://forum.yunohost.org/t/pixelfed-installation-error-and-admin-page-cannot-be-accessed/18078/6

@deez17 : please try to install using this URL in the admin interface : https://github.com/YunoHost-Apps/pixelfed_ynh/tree/4.3
(if you want to do it with the command line : yunohost app install https://github.com/YunoHost-Apps/pixelfed_ynh/tree/4.3)

@ericgaspar
Copy link
Member Author

This PR upgrades the package to last standards. It doesn't particularly adress this issue (but if it solves it it's good).

@lapineige
Copy link
Member

As @deez17 described an issue since Yunohost 4.3, I wondered if this would "magically" solves it… that's why I asked if @deez17 could try it :)

@ghost
Copy link

ghost commented Dec 10, 2021

What do you mean by this link?? All I know is to create a fresh Debian server and install Yunohost on it and select pixelfed under applications and install it how do I partially install pixelfed and install admin interface from another link ??

Sorry this is kinda confusing whatever the fix it is can you please fix it on the Yunohost Pixelfed’s app itself without having partially install from different links ?

or else I request you experts to please provide a step by step if possible of what needs to be done once again all I know is to only install Yunohost on a Debian server and select pixelfed i have no idea what else should be done

@ghost
Copy link

ghost commented Dec 10, 2021

For the record, that is a follow-up from that topic : https://forum.yunohost.org/t/pixelfed-installation-error-and-admin-page-cannot-be-accessed/18078/6

@deez17 : please try to install using this URL in the admin interface : https://github.com/YunoHost-Apps/pixelfed_ynh/tree/4.3 (if you want to do it with the command line : yunohost app install https://github.com/YunoHost-Apps/pixelfed_ynh/tree/4.3)

I’m trying this now

@Tonyorcl
Copy link

I

For the record, that is a follow-up from that topic : https://forum.yunohost.org/t/pixelfed-installation-error-and-admin-page-cannot-be-accessed/18078/6

@deez17 : please try to install using this URL in the admin interface : https://github.com/YunoHost-Apps/pixelfed_ynh/tree/4.3 (if you want to do it with the command line : yunohost app install https://github.com/YunoHost-Apps/pixelfed_ynh/tree/4.3)

I tried this in a fresh yunohost install on a fresh Debian 10 server. Still no pixelfed admin console at all and still 419 errors when self signing up on some fresh installs of pixelfed.

@ericgaspar
Copy link
Member Author

ericgaspar commented Dec 10, 2021

OK I don't use Pixelfed so I may missed something here.
I am able to install (the fatal git error is not so fatal. the app expects a .git file but we are not installing with git clone so we don't have one)

  • I have registered a user
  • I have confirmed my account via email
  • I have access to the admin
  • In the webadmin I am able to set PHP-config footprint in the config-panel section 😀

@ghost
Copy link

ghost commented Dec 10, 2021

Can anyone say what went wrong really?? It was all working fine 3 months ago and all of a sudden I got this your connection is not secure shit messing around when I tried to renew the letsencrypt on Yunohost nothing happened so I had to delete my old Pixelfed which was running well without any issues and create a new one and now I’m facing a terrible issue with not having to instal Pixelfed at all

@lapineige
Copy link
Member

can you please fix it on the Yunohost Pixelfed’s app itself

We can't fix a problem that we did/can not diagnose(d).
So first of all I'm trying to check if using this new version would solve your issue. That's why I suggested that you try it, just in case.

About how to do it : in the admin interface → apps → install → at the bottom you can register that URL and install this Pixelfed version.

Can anyone say what went wrong really??

So far, I can't. I don't have this issue and I am not able to try to install a Pixelfed instance right now.
That's why I will need some feedback from you :)

when I tried to renew the letsencrypt on Yunohost nothing happened so I had to delete my old Pixelfed which was running well without any issues and create a new one and now I’m facing a terrible issue with not having to instal Pixelfed at all

That would suggest there is another issue somewhere…
Can you provide full Pixelfed install log ? Here or in the forum (and in private message if you prefer), as you wish.

@lapineige
Copy link
Member

@Tonyorcl I don't understand what is your issue 😅. Can you explain it again please ? And maybe provide any meaningful logs, if you have some.

@lapineige
Copy link
Member

In the webadmin I am able to set PHP-config footprint in the config-panel section grinning

@ericgaspar : oh ! I didn't know that came with such a great feature !
We should document this, but this is a great addition :)

@ghost
Copy link

ghost commented Dec 10, 2021

can you please fix it on the Yunohost Pixelfed’s app itself

We can't fix a problem that we did/can not diagnose(d). So first of all I'm trying to check if using this new version would solve your issue. That's why I suggested that you try it, just in case.

About how to do it : in the admin interface → apps → install → at the bottom you can register that URL and install this Pixelfed version.

Can anyone say what went wrong really??

So far, I can't. I don't have this issue and I am not able to try to install a Pixelfed instance right now. That's why I will need some feedback from you :)

when I tried to renew the letsencrypt on Yunohost nothing happened so I had to delete my old Pixelfed which was running well without any issues and create a new one and now I’m facing a terrible issue with not having to instal Pixelfed at all

That would suggest there is another issue somewhere… Can you provide full Pixelfed install log ? Here or in the forum (and in private message if you prefer), as you wish.

See this

https://pasteboard.co/fZdycOYn3wzi.png

and this

https://pasteboard.co/Z4sRCSc4bHZl.jpg

@ericgaspar
Copy link
Member Author

@deez17 In order to help you, we need proper logs. Screenshots are useless.
You can find the logs in the webadmin -> Tools -> Logs -> select the one corresponding to pixelfed install and press the green button.
Capture d’écran 1

@Tonyorcl
Copy link

@deez17 In order to help you, we need proper logs. Screenshots are useless. You can find the logs in the webadmin -> Tools -> Logs -> select the one corresponding to pixelfed install and press the green button. Capture d’écran 1

https://paste.yunohost.org/raw/rafevitame

@ericgaspar
Copy link
Member Author

ericgaspar commented Dec 10, 2021

I can't see anything wrong with the logs.

I am confused, is @deez17 and @Tonyorcl the same person?

@lapineige
Copy link
Member

@deez17 can you specify what is your issue ?
Pixelfed does not install at all ?

If it does (the log says it does), what's wrong then ?

@lapineige
Copy link
Member

From the logs

  • ynh_print_warn '--message=The service pixelfed-horizon didn'''t fully executed the action update before the timeout.'
    2021-12-10 12:33:56,671: WARNING - 128769/128769 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%Please wait, the service pixelfed-horizon is updateing..........................................................................................................................................................................................................................................................................................................
    2021-12-10 12:33:56,682: DEBUG - + ynh_print_log 'The service pixelfed-horizon didn'''t fully executed the action update before the timeout.'
    2021-12-10 12:33:56,682: DEBUG - + echo -e 'The service pixelfed-horizon didn'''t fully executed the action update before the timeout.'
    2021-12-10 12:33:56,682: WARNING - The service pixelfed-horizon didn't fully executed the action update before the timeout.
    2021-12-10 12:33:56,685: DEBUG - + ynh_print_warn '--message=Please find here an extract of the end of the log of the service pixelfed-horizon:'
    2021-12-10 12:33:56,695: DEBUG - + ynh_print_log 'Please find here an extract of the end of the log of the service pixelfed-horizon:'
    2021-12-10 12:33:56,695: DEBUG - + echo -e 'Please find here an extract of the end of the log of the service pixelfed-horizon:'
    2021-12-10 12:33:56,695: WARNING - Please find here an extract of the end of the log of the service pixelfed-horizon:
    2021-12-10 12:33:56,696: DEBUG - + ynh_exec_warn journalctl --quiet --no-hostname --no-pager --lines=20 --unit=pixelfed-horizon
    2021-12-10 12:33:56,696: DEBUG - + [[ 6 -eq 1 ]]
    2021-12-10 12:33:56,696: DEBUG - ++ journalctl --quiet --no-hostname --no-pager --lines=20 --unit=pixelfed-horizon

pixelfed-horizon service seems to have some issue… 🤔

Can you give use the result of that command ? journalctl --quiet --no-hostname --no-pager --lines=20 --unit=pixelfed-horizon

@Tonyorcl
Copy link

My apologies I think I'm posting in the wrong spot.

@Tonyorcl
Copy link

I thought this was a followup to this topic mentioned above. https://forum.yunohost.org/t/pixelfed-installation-error-and-admin-page-cannot-be-accessed/18078/6

@ghost
Copy link

ghost commented Dec 10, 2021

Well I’m not interested anymore tired of this thanks everyone for responding giving up Pixelfed

@lapineige
Copy link
Member

I thought this was a followup to this topic mentioned above. https://forum.yunohost.org/t/pixelfed-installation-error-and-admin-page-cannot-be-accessed/18078/6

It is :)

@lapineige
Copy link
Member

Simply htop

@ghost
Copy link

ghost commented Dec 12, 2021

I tried that and horizon was started but still same error

@lapineige
Copy link
Member

Ok, then I would need some log (located in /var/log/pixelfed or /var/log/horizon I think) to understand what is failing.

@ghost
Copy link

ghost commented Dec 13, 2021

Is this fixed I’m sorry I’m unable to get logs right now I would like to ask you something additional I’m trying to use laravel forge I have no idea how to use ssh keys as of yet I am only aware of using IP address, port and password to login to ssh

could you sir please inform me how to access ssh through keys I’m kinda confused it’s a big help to me

@lapineige
Copy link
Member

Is this fixed I’m sorry I’m unable to get logs right now

Well I'm asking you for details that would help to fix the issue… If you can't provide them that's ok, but don't ask me to solve an issue that I can't even reproduce or identify :)

About how to use an SSH key: https://yunohost.org/en/security#ssh-authentication-via-key
For additional question, please ask this in Yunohost forum, because 1) you will have plenty more answers there and 2) this is kind of topic :)

@ghost
Copy link

ghost commented Dec 14, 2021

Horizon started successfully.
[2021-12-14 07:05:52][d7c30d4d-285e-4fab-afc4-53ee9cb42409] Processing: App$[2021-12-14 07:05:52][d7c30d4d-285e-4fab-afc4-53ee9cb42409] Processed: App$[2021-12-14 07:31:09][c0f013d4-afd4-4ca5-8113-dfda901cef1e] Processing: App$[2021-12-14 07:31:09][c0f013d4-afd4-4ca5-8113-dfda901cef1e] Processed: App$Horizon started successfully.

@ghost
Copy link

ghost commented Dec 14, 2021

Why don’t you instal pixelfed and rectify this issue ? Admin page is not accessible yet

@lapineige
Copy link
Member

Horizon started successfully.

Great :)
Hum… did you make yourself an administrator user ? https://github.com/YunoHost-Apps/pixelfed_ynh#administrator

Why don’t you instal pixelfed and rectify this issue ? Admin page is not accessible yet

Because:

  1. I can't reproduce the issue, as I told you.
  2. Let's be clear on that thing : I am not working for you as an employee or similar. I am a volunteer using its free time to try to improve that package. Don't ask me to do something. I'm not your employee. if you are not satisfied by what I am doing, do it yourself.

@bcye
Copy link

bcye commented Jan 5, 2022

Hi @lapineige,

I'm getting this issue as well.
the fatal: not a .git repository happens after artisan update. later on the pixelfed-horizon service timeous and I'm guessing this is the reason why it's stalling in the gui.

Pixelfed works fine (but without federation) after the installation and commands listed in the readme. When I try to access the admin panel of pixelfed (I am an admin user), Pixelfed says something went wrong (e.g. server error).

Here are my full logs for further debugging.

Hope we can get this fixed.

@lapineige
Copy link
Member

I wonder if #157 would solve this 🤔
Can any of you test it ?

the fatal: not a .git repository happens after artisan update. later on the pixelfed-horizon service timeous and I'm guessing this is the reason why it's stalling in the gui.

That should only be a simple warning with no implications, as far as I understand…

@bcye
Copy link

bcye commented Jan 5, 2022

I wonder if #157 would solve this 🤔

Can any of you test it ?

the fatal: not a .git repository happens after artisan update. later on the pixelfed-horizon service timeous and I'm guessing this is the reason why it's stalling in the gui.

That should only be a simple warning with no implications, as far as I understand…

Will try it tomorrow, thanks!

To clarify: the artisan update command fails with the fatal... output.

@bcye
Copy link

bcye commented Jan 6, 2022

@lapineige i did a completely fresh install with a .noho.st domain on a Debian 10 Hetzner VPS and could replicate the issue. How do I install the app from the PR?

@bcye
Copy link

bcye commented Jan 6, 2022

Nevermind, I installed it from the systemd branch with help from the developer info in the readme.
Admin page still doesn't load.

@bcye
Copy link

bcye commented Jan 6, 2022

Here's the log from that install https://paste.yunohost.org/raw/padibevoqe

@lapineige
Copy link
Member

I don't see anything special…
I suppose we should investigate Pixelfed / Horizon / PHP logs… For now I have no idea of the origin of that issue :(

@bcye
Copy link

bcye commented Jan 6, 2022

I don't see anything special…

I suppose we should investigate Pixelfed / Horizon / PHP logs… For now I have no idea of the origin of that issue :(

There are (I think base64) encoded diagnostic details that the error site offers to copy.

@lapineige
Copy link
Member

lapineige commented Jan 6, 2022

What do you mean ? Is it about the paste you shared ?

@bcye
Copy link

bcye commented Jan 6, 2022

The image upload didn't work.
It says something went wrong, we can't process your request at this time. Then it offers you to go back to the timeline or copy diagnostic details intended for the sysadmin for debugging which is the base64 string below.

This what it looks like.

It returns the following b64:


eyJpdiI6IkJ0bDJl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RjYTVhZGQ3Y2Q1N2QxNDI1NTkzZmNkYmFiY2FlIn0=

This decodes into:


{"iv":"Btl2ezkE1JvgzG8Roq0Kdw==","value":"RFs4ffSAa4opgZ5GPb0ag7N770LI5dD13+H7osKsP8rDiaTMOwDh1IJYuVk5JhwXVpdr9l/h1+J349Seb+CiSto7gdkCO0YwDr4WOzO96vHb+5Ji+ijsaB3oP6qsZL2+LENqhqWRmdiVld3HKw95g8ObxIttY0QBKTOnevpppxuFnyhaS2tUZi2xtkLGttd5EdWgEB0DlpdF3/3kTGYX7psHZQnLvrzSIOm5BnWd5PC2J0xmsVb6+q1gGk3s6xy0hIuNkQAp/U8Jrynp0lWAJL8c7VqmFF5jO7wEgxFZC0tIEpg1+s/e5MqxhZwO7nq/E8qEu4jteSVhu4Mt+Mf42bpDf4RQuMXto3EPaomDYDeB0UNzcl+sJESuQJx/Dd5IsUsmx1fpUlNTBw+HSNUQH+0ckMgj9aNfcgJML9NX/7gQ3Sj5k6tnmQlmP5N2tnjKkpcTLmyMaMpzwfgbqxgIEAq53fa1FVIkK5MdrBIvcDqdkyocYhptWIDbQi+RbYnTt6eXdKZ7r3DkYJ6C60Z8yatqxQY4JCD7/QDBNTFme/jfdDb3+CL5pxZH4BAnwkOpfQQsqgchdLOtXyATxvst16Z/Vobe28ToyIi3Cocvp0yGapiigwv8ac6Hcq7JjvZC3LKWE+7IZYdWvkdqYWu2M6o8IXxerrPtqtSRlZvhSu6XZ09P6q32zY4avTj+P3zbk+m1K+Iylr+VYJB7IkS3GA==","mac":"7f1914b9a018f58cd2dbfded65629fb7417dca5add7cd57d1425593fcdbabcae"}

Pasting the values into a decoder doesn't return anything usable though.

@lapineige
Copy link
Member

Thank you for investigating this. Maybe can you try php7.3 artisan config:cache ? (from pixelfed folder)
I wonder if we should ask for advice to Pixelfed dev team… I don't know if it's a Yunohost specific problem (but I think so), but at least I don't know where and what to search for…

@bcye
Copy link

bcye commented Jan 6, 2022

That doesn't work sadly. If you're sure artisan update isn't causing the issue, we debugged supervisor if I understood #157 correctly, then it shouldn't be related to the yunohost install process specifically. Probably worth it to ask them, or figure out what the b64 is about, though I found nothing on that.

@lapineige
Copy link
Member

It's a bit of a blind shot, but what you could try is to install an old version (I don't know, like a year old version or something like that ?), see if the issue is happening, and then try to upgrade to the latest version. Maybe we broke something during updates ?

What is strange is that I can't reproduce it on a fresh install.

@bcye
Copy link

bcye commented Jan 6, 2022

@lapineige what system where you using for the fresh install, because i could replicate it.

I used debian 10 hetzner lowest tier, only roundcube and pixelfed uninstalled and reinstalled again. dyndns via noho.st

@bcye
Copy link

bcye commented Jan 6, 2022

though the issues where happening before i uninstalled it as well

@lapineige
Copy link
Member

I tried on a very standard x86 VPS, using debian 10 for the fresh install.
I migrated my own instance to an hetzner lowest tier too a while ago, no change.

I'll try on a raspberry pi, just in case.

@lapineige
Copy link
Member

lapineige commented Jan 6, 2022

I can reproduce the issue. I have a base64 error log too, but I don't know how to decode it further that what you have done.

@bcye
Copy link

bcye commented Jan 7, 2022

Ok I found it, the website should be pixelfed-debug.com but it returns an SSL error. Luckily it is open source, the repo is https://github.com/pixelfedLabs/pixelfed-debug and the decoder is an html file. I'm on mobile right now and will try it later.

@lapineige
Copy link
Member

lapineige commented Jan 7, 2022

And that's easy to install in a Custom Webapp package 🎉
I signalled to the author the issue with the official website.

Thanks for all your efforts investigating this !

@lapineige
Copy link
Member

Apparently there is a fix (or rather a workaround): #160 (comment)

@bcye
Copy link

bcye commented Jan 7, 2022

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants