Nasser
(Nasser AlMutairi)
July 2, 2024, 1:59pm
1
Hello,
I am running a self-hosted Discourse website and I always update the website by the “Upgrade Discourse” button on the admin area.
Today I was not able to enter the admin area and was getting this message, “Oops! That page doesn’t exist or is private”. I managed to fix the issue by rebuilding Discourse and now the interface is upgraded, but I can’t find “Upgrade Discourse” button.
Can anyone help me fix this issue?
Thank you
Bas
(Bas van Leeuwen (OOO until November 5))
July 2, 2024, 2:06pm
2
I think you are running the absolute latest version, so there’s nothing to upgrade to
1 Like
Nasser
(Nasser AlMutairi)
July 2, 2024, 2:07pm
3
Thank you for your response.
So, If there are no updates, the button will not be visible ?
No, the ‘update’ tab should always be there even if there are no current updates to take advantage of. It comes from the docker manager plugin.
Can you access the page directly? [YourSite]/admin/update
3 Likes
Nasser
(Nasser AlMutairi)
July 2, 2024, 2:12pm
5
JammyDodger:
/admin/update
Thank you for your response.
I am redirected to this page.
Just to check, when you rebuilt your site, did you remove the docker manager plugin?
Nasser
(Nasser AlMutairi)
July 2, 2024, 2:17pm
7
I just rebuild using the following SSH commands,
cd /var/discourse
sudo ./launcher rebuild app
1 Like
Nasser
(Nasser AlMutairi)
July 2, 2024, 2:24pm
8
I checked the plugins file
cd /var/discourse
nano containers/app.yml
That should open your app.yml
for editing rather than tell you it’s not accessible. You may need to use sudo nano containers/app.yml
The plugin section is towards the bottom and looks a bit like this:
## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/discourse/discourse-adplugin
- git clone https://github.com/discourse/discourse-akismet
- git clone https://github.com/discourse/discourse-assign
- git clone https://github.com/discourse/discourse-cakeday
- git clone https://github.com/discourse/discourse-calendar
- git clone https://github.com/discourse/discourse-category-experts
- git clone https://github.com/discourse/discourse-data-explorer
- git clone https://github.com/discourse/discourse-docs
- git clone https://github.com/discourse/discourse-encrypt
- git clone https://github.com/discourse/discourse-follow
Though if you haven’t opened that and edited any out docker manager should be included automatically.
Perhaps there’s more clues in your /logs
?
1 Like
Nasser
(Nasser AlMutairi)
July 2, 2024, 2:41pm
10
I managed to open the app.yml using the sudo command.
I can’t find anything in the logs
I have restarted the server and rebuild Discourse again, but I can’t get “Upgrade Discourse” button back again.
pfaffman
(Jay Pfaffman)
July 2, 2024, 5:06pm
11
Are you loggedin as admin?
3 Likes
Nasser
(Nasser AlMutairi)
July 2, 2024, 6:57pm
12
Thank you for your response.
Now when I click on the Admin, I am getting the following message, “Oops! That page doesn’t exist or is private.”
Maybe my website is compromised, Is there a way to restore my Admin privileges?
pfaffman
(Jay Pfaffman)
July 2, 2024, 7:21pm
13
Do you see the admin menu?
You can
cd /var/discourse
./launcher enter app
rake admin:create
Nasser
(Nasser AlMutairi)
July 2, 2024, 7:33pm
14
I am able to log in to the admin area again, and I have rested the password, but I can’t find the upgrade discourse button.
When I navigate directly to [MySite]/admin/update I get the following message “Oops! That page doesn’t exist or is private.”
Nasser
(Nasser AlMutairi)
July 3, 2024, 7:19am
15
I see it but when I click it I get the following message, “Oops! That page doesn’t exist or is private.”
I lost the Admin privileges again, I really don’t know what is going on?!
Ah, I have a hypothesis. Maybe navigating to the upgrade page un-admins you? I was about to ask if you could try it again. Could you do it another time to test it?
Nasser
(Nasser AlMutairi)
July 3, 2024, 7:35am
17
I have tried this method more than three times and I changed the password, but it’s no longer working
I see the admin button but when I click it I get the message “Oops! That page doesn’t exist or is private.”. I didn’t navigate to /admin/update on the last time, and it didn’t make a difference.
I’ve tried to repro this by rebuilding with the discourse-user-card-badges
plugin as that’s the one that stood out from your list, and I’m seeing some unusual errors while navigating the site. It doesn’t seem to be exactly what you’re seeing, but you could try removing that plugin from your app.yml
and rebuilding to see if that’s the root cause of your issue.
Nasser
(Nasser AlMutairi)
July 3, 2024, 8:09am
20
Thank you for your response.
It is the Admin button, and it’s working again before I break the site by navigating to /admin/update
Thanks, I am able to enter the admin area again. But discourse is broken after navigating to /admin/update
I tried to navigate to /admin/update, and it happened again I am no longer able to enter the admin area and also …
I am rebuilding discourse again now.
Bas
(Bas van Leeuwen (OOO until November 5))
July 3, 2024, 8:22am
21
Linking these two issues, feels like they might be related:
Hello All
I lost Admin access of my forum, Means i am not able to see it. My user is now changed to a normal user. Can someone help me please?
website is applecommunity.pk
1 Like