WIKIjs and gateway error 502

My YunoHost server

Hardware: DIY PC based on ASUS H110M motherboard,INTEL Core i3
CPU, 8GB RAM
YunoHost version: 4.3.62
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:

Description of my issue

Second update same error. My previous post has been closed since there was no answer.
When updating Wikijs from (wikijs) from 2.5.219~ynh2 to 2.5.274~ynh1 and running the app I get a Gateway error 502 ā€¦nginx
I then Uninstalled ver. 2.5.274 and restored pre-update backup and everything works again.
Just for developer info that the upgrade does not work!
Thanks if you can help, but I will hold on to ver.219 until new version is upgradeable. I have a software guide running and cannot allow a complete crash of the wiki.

What would be useful to dig the issue is to go in the ā€œServicesā€ section of the webadmin where you should see that the corresponding wikijs service is down (maybe). In any case, sharing the logs of the service (using the green ā€˜Share with yunopasteā€™) button may bring some insight

Here are the logs.https://paste.yunohost.org/agukefenob

Thanks for your help with this issue @Aleks

Uh wokay but it sounds like this is nginxā€™s logs and not wikijs logs ā€¦

Sorry @Aleks here they go

https://paste.yunohost.org/zowojituli

Bonjour,

Jā€™ai Ć©galement la mĆŖme anomalie lorsque jā€™ai fais la mise Ć  jour de WikiJS.

Les logs du service retournent ceci : hastebin

Je ne sais pas si cā€™est liĆ© Ć  lā€™anomalie de Vanitarium.

Pouvez-vous mā€™indiquer ce qui ne va pas ?

Merci par avance.

Iā€™m facing the same issue. Investigate a bit further tend to incriminate the systemd service that have been a bit to hardened.
In my case, commenting the line :

RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6

in the file /etc/systemd/system/wikijs.service fixed the error.

Can you try with AF_NETLINK like that :
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
I had a similar issue with Glitch-Soc and Mastodon package.

Merci and thank you! I shall try the solution given by @oiseauroch and report back when doneā€¦
Why are you trying with AF_NETLINK @Tagada ??
I really do not know enough about what you guys are doing , sorry to be ignorantā€¦

I had a similar issue while hardening the systemd service with the Glitchsoc package, and found that AF_NETLINK was needed for it to work.
The solution given by @oiseauroch make me think we miss the same parameter here too.
Plus thereā€™s a PR pending that add AF_NETLINK in the example package template.

It works ! good job. Iā€™m not used for systemd security so that I didā€™nt investigate further :smile:

1 Like

Done what @Tagada suggested and it works fine.
I shall mark it as solution!!
Thank you @Tagada

1 Like

Hello,
For me, @oiseaurochā€™s solution works perfectly (comment line), but not @Tagadaā€™s (replace line).
Therefore, I keep the comment on the comment line.

Thanks a lot for your help !!!

Sorry, i wrote a mistake, itā€™s not working for me whatever the solution ā€¦

I share my log after @Tagada modification.
https://paste.yunohost.org/ugihinahux

Thank you for your help !

This is not the same error, and I think itā€™s not related to the previous one.
Can you try to force an upgrade ?
sudo yunohost app upgrade wikijs -F

Woah ! Now itā€™s running perfectly !!

Thank you !!

1 Like

Now the same error with Mattermost update tooā€¦ what is going on with yunohost??? @Aleks ?

Here are the logs for this disaster

https://paste.yunohost.org/ukumobagos

@Aleks please help: my updates are failing due to some hardening of something by yunohost developers!!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.