Can't find Upgrade Discourse button after last upgrade

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

I think you are running the absolute latest version, so there’s nothing to upgrade to :slight_smile:

1 Like

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


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?

I just rebuild using the following SSH commands,

cd /var/discourse
sudo ./launcher rebuild app

1 Like

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

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.

Are you loggedin as admin?

3 Likes

Screenshot from 2024-07-02 21-52-42

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?

Do you see the admin menu?

You can

cd /var/discourse
./launcher enter app
rake admin:create

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.”

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?

I have tried this method more than three times and I changed the password, but it’s no longer working
Screenshot from 2024-07-02 21-52-42

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.

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.

Linking these two issues, feels like they might be related:

1 Like