How do I get the administrator role in XWiki?

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.14
What app is this about: XWiki

Describe your issue

Standard installation. Admin goes to Admin.
No user in the admin group is able to access admin endpoints in XWiki. (e.g. yunohost.example.org/xwiki/bin/admin). Are there any hidden switches or buttons that I have overlooked?

Share relevant logs or error messages

“You are not allowed to view this page or perform this action.”

Hello,

Thank you for your message. I tested again with the last package version and with the user which has the xwiki.admin permission I can access without any problem on .../bin/admin/XWiki/XWikiPreferences.

Some questions:

  • did you install the standard flavor ? If not, it could be the cause. If you are not a advanced XWiki user I would really recommend to install it.
  • did you do a fresh install ?
  • what is your installed XWiki package version ?

So except if you didn’t install the standard flavor, it seem to be a bug. If it’s the case we can try to debug it here but I’ll need some more information like the install log, etc…

Best regards.

Josué

Hi Josué,

thanks for jumping in.

  • did you install the standard flavor ?

=> Yes.

  • did you do a fresh install ?

=> Yes. Three or four time.

  • what is your installed XWiki package version ?

=> latest package 17.2.1~ynh1

I add some one screenshots to compare possible differences (like the sub-sub-domain - but btw. same behaviour if I install it at yunohost.example.org/xwiki).
The user luckow is in the admin role.
SSO-Login into XWiki as luckow

I shared the installation logfile with YunoPaste → https://paste.yunohost.org/raw/irepiritif
I hope this gives you a little orientation as to what is going wrong.

  • stephan

Hello,

Thank you for your answer. Seeing your screenshot is seem that the flavor is not installed, even if you chose to install it. So we need to debug why it wasn’t installed. Can you share me the result of theses commands:

ls -la /home/yunohost.app/xwiki/extension/repository
grep distribution. /etc/xwiki/xwiki_conf.properties
tail -n 500 /var/log/xwiki/2025_04_*.jetty.log*
zcat /home/yunohost.app/xwiki/jobs/status/3/extension/action/org.xwiki.platform%3Axwiki-platform-distribution-flavor-mainwiki/wiki%3Axwiki/status.xml.zip

first three results → hastebin

and here we go with
zcat /home/yunohost.app/xwiki/jobs/status/3/extension/action/org.xwiki.platform%3Axwiki-platform-distribution-flavor-mainwiki/wiki%3Axwiki/status.xml.zip

I see java.io.IOException: Failed to bind to 0.0.0.0/0.0.0.0:8080

What return ss -ntlp | grep :8080 ?

root@yuno:/home/luckow# ss -ntlp | grep :8080

LISTEN 0      50     [::ffff:127.0.0.1]:8080             *:*    users:(("java",pid=176644,fd=27)) 

Seem that the flavor was correctly installed following the logs.

Can you try to restart XWiki with theses command and after see if something change.

kill 176644
kill -9 176644
systemctl restart xwiki.service

And after that can you share me a screenshot of the main page at .../bin/view/Main/ (if you still have the issue).

Normally you should have something like this:

kill, -9, systemctl = done.

No change. You are not allowed to view this page or perform this action.

What’s a bit crazy is that your screenshot shows me a fresh install 2 days ago. My bet: you installed the XWiki app because of my ticket. Your installation works fine. Mine doesn’t.
I tried to install XWiki on the demo server (https://demo.yunohost.org), but got a 504 gateway timeout error.

Can you try with the last version with:

sudo yunohost app install https://github.com/YunoHost-Apps/xwiki_ynh/tree/upgrade
sudo yunohost app install https://github.com/YunoHost-Apps/xwiki_ynh/tree/upgrade

Error: Could not fetch source files, is the URL correct?

Sorry. I am relatively new to Yunohost and have no idea how to convert the url into a valid one. :slight_smile:

Ah, that worked.

sudo yunohost app upgrade xwiki -u https://github.com/YunoHost-Apps/xwiki_ynh/tree/testing

But:

No clue what the diff in the installation process is. BUT:

sudo yunohost app install https://github.com/YunoHost-Apps/xwiki_ynh/tree/testing

brings (tada):

With a little hope (to find out if the problem is just because of the different installation method), I ran sudo yunohost app install xwiki, but with the same result

So the magic lies elsewhere. :wink:

It was the good command, I just that in the meantime, I drop the branch. :sweat_smile:
Sorry for this.

Note that doing

sudo yunohost app install xwiki

Install the app from master which is on version 17.2.1

but doing

sudo yunohost app install https://github.com/YunoHost-Apps/xwiki_ynh/tree/testing

will install from last testing that I merged today (cf Update by Josue-T · Pull Request #19 · YunoHost-Apps/xwiki_ynh · GitHub) which is on version 17.3.0.

So from what I understand, it seem that it’s working with the version 17.3.0 but not with the version 17.2.1. Maybe there was a small bug on this version which could explain your issue.

1 Like