Unknown internal error doing a POST to /api/commands/update-check-21-11-22

[Please complete the below template with details of the problem reported on your Web-UI. Be as detailed as possible. Community members, including developers, shall try and help. Thanks for your time in reporting this issue! We recommend purchasing commercial support for expedited support directly from the developers.]

Brief description of the problem

I tried to run Software Update, and received this message:
Unknown internal error doing a POST to /api/commands/update-check

Detailed step by step instructions to reproduce the problem

[write here]

Web-UI screenshot

[Drag and drop the image here]

Error Traceback provided on the Web-UI

![Rockstor-SW-Update-Error|690x289](upload://h0xEERlLdKNT6K4wHRpHhb8Tckw.jpeg)

@MarkMayberry Helllo again.
Linking to an almost identical post from your here:

In that thread you were seeing this message on a CentOS install. Did you get around to installing our current v4 variant? In the interim we now have pre-build installers on our re-done website. Take a look at the downloads page:
https://rockstor.com/dls.html

So it’s no longer necessary to do the DIY installer build.

But note that we don’t yet have a stable release repository setup for the 15.3 profiles as we are not yet at a stable release. We paradoxically do have a repo for the 15.2 profiles however as we needed that in place to weed-out a tricky issue we had with zypper early on. But we are due to populate that repo soon as we are already on 4.0.9-0 Release Candidate 10. But check-out the downloads page for where we are up to when you get the time.

Hope that helps.

1 Like

Dear Philip,

Thanks for your prompt reply. Actually, I AM running Rockstor 4.0.9.-0 on Linux: 5.3.18-59.34-default. I downloaded the new ISO from the Rockstor downloads page, created an new Rockstor 4 ISO usb drive, performed a fresh install on the same platform that was previously running v. 3, deleted the old data data disks, created new pools, and have Resilio Sync actively running on my new Rockstor server. It has been up and running for three days. However, I receive THE SAME error message on the NEW Version 4 system as I did on the OLD Version 3 system.

When I click on the “Software Update” button, I receive the following error message: “Unknown internal error doing a POST to /api/commands/update-check”

I will try and include a screenshot of the new Rockstor 4.0.9-0 Dashboard so that you can see that I have, indeed, installed the current Rockstor OS.

Yours,

Mark

1 Like

@MarkMayberry Well done on the new install and glad that’s all over and done with.

OK, good to know. Did you go for a 15.2 or 15.3 based download?

Also what is the output of the suggested console update commands, i.e.:

Welcome to Rockstor built on openSUSE.
To update your system from here do:

        zypper refresh
        zypper up --no-recommends

May help to diagnose what’s up. We have had a few reports of late of some upstream repo outages, presumably during maintenance windows or the like. Or of course our own repo issues, as we currently have bare (un-configured) stable repos for the 15.3 profiles. However zypper ends up ignoring poorly repos and does what it can with the remainder so all upstream repos should still be in effect.

You could also look in the rockstor log (via Web-UI or command line) at around the time you last attempted an update for any info. But likely it would have been displayed within the Web-UI but still worth looking.

I’ve just tried here myself on a 15.3 based install and it was able to do the above command line update and also to subscribe to the testing channel OK. Again the stable doesn’t exist just yet so that will have issues until we populate it. I may end up configuring an empty stable soon, but we are so close to the first v4 stable rpm.

Hope that helps and take care to not post you stable activation code / appliance ID if you have one. And nice to see a shiny new v4 instance there.

1 Like

Dear Philip,

I went for a 15.3 download. The info in the top right of my Rockstor homescreen is “ROCKSTOR 4.0.9-0” AND “Linux: 5.3.18-59.34-default”

Here is the output from the suggested console update commands:

===== BEGIN QUOTE =====

Rockstor-MM login: mark
Password:
Last login: Wed Nov 24 08:26:29 CST 2021 from 127.0.0.1 on pts/0
Last failed login: Wed Nov 24 08:29:11 CST 2021 from 127.0.0.1 on pts/0
There was 1 failed login attempt since the last successful login.
No mail.
Last login: Wed Nov 24 08:29:46 from 127.0.0.1

Welcome to Rockstor built on openSUSE.
To update your system from here do:

    zypper refresh                                                                                                                 
    zypper up --no-recommends                                                                                                      

Or use Rockstor’s Web User Interface (Web-UI): recommended method.

Type ‘myip’ then Enter key to get my address for your Browser.
Enjoy …
Directory: /home/mark
Wed 24 Nov 2021 08:29:47 AM CST
mark@Rockstor-MM:~> zypper refresh
Root privileges are required to run this command.
mark@Rockstor-MM:~> sudo zypper refresh
[sudo] password for root:
Problem retrieving files from ‘Leap_15_3’.
Download (curl) error for ‘http://download.opensuse.org/distribution/leap/15.3/repo/oss/repodata/repomd.xml’:
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org

Please see the above error message for a hint.
Skipping repository ‘Leap_15_3’ because of the above error.
Problem retrieving files from ‘Leap_15_3_Updates’.
Download (curl) error for ‘https://download.opensuse.org/update/leap/15.3/oss/repodata/repomd.xml’:
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org

Please see the above error message for a hint.
Skipping repository ‘Leap_15_3_Updates’ because of the above error.
Retrieving repository ‘Rockstor-Stable’ metadata …[error]
Repository ‘Rockstor-Stable’ is invalid.
[Rockstor-Stable|http://00000000-0000-0000-0000-448a5b9039d0@updates.rockstor.com:8999/rockstor-stable/leap/15.3?credentials=/etc/zypp/
credentials.d/Rockstor-Stable&auth=basic] Valid metadata not found at specified URL
History:

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘Rockstor-Stable’ because of the above error.
Problem retrieving files from ‘home_rockstor’.
Download (curl) error for ‘https://download.opensuse.org/repositories/home:/rockstor/openSUSE_Leap_15.3/repodata/repomd.xml’:
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org

Please see the above error message for a hint.
Skipping repository ‘home_rockstor’ because of the above error.
Problem retrieving files from ‘home_rockstor_branches_Base_System’.
Download (curl) error for ‘https://download.opensuse.org/repositories/home:/rockstor:/branches:/Base:/System/openSUSE_Leap_15.3/repodat
a/repomd.xml’:
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org

Please see the above error message for a hint.
Skipping repository ‘home_rockstor_branches_Base_System’ because of the above error.

Problem retrieving files from ‘Update repository of openSUSE Backports’.
Download (curl) error for ‘http://download.opensuse.org/update/leap/15.3/backports/repodata/repomd.xml’:
Error code: Curl error 56
Error message: Recv failure: No route to host

Please see the above error message for a hint.
Skipping repository ‘Update repository of openSUSE Backports’ because of the above error.
Problem retrieving files from ‘Update repository with updates from SUSE Linux Enterprise 15’.
Download (curl) error for ‘http://download.opensuse.org/update/leap/15.3/sle/repodata/repomd.xml’:
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org

Please see the above error message for a hint.
Skipping repository ‘Update repository with updates from SUSE Linux Enterprise 15’ because of the above error.
Could not refresh the repositories because of errors.
mark@Rockstor-MM:~>
mark@Rockstor-MM:~>
mark@Rockstor-MM:~> zypper up --no-recommends
Root privileges are required to run this command.
mark@Rockstor-MM:~> sudo zypper up --no-recommends
[sudo] password for root:
Problem retrieving files from ‘Leap_15_3’.
Download (curl) error for ‘http://download.opensuse.org/distribution/leap/15.3/repo/oss/repodata/repomd.xml’:
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org

Please see the above error message for a hint.
Warning: Skipping repository ‘Leap_15_3’ because of the above error.
Problem retrieving files from ‘Leap_15_3_Updates’.
Download (curl) error for ‘https://download.opensuse.org/update/leap/15.3/oss/repodata/repomd.xml’:
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org

Please see the above error message for a hint.
Warning: Skipping repository ‘Leap_15_3_Updates’ because of the above error.
Retrieving repository ‘Rockstor-Stable’ metadata …[error]
Repository ‘Rockstor-Stable’ is invalid.
[Rockstor-Stable|http://00000000-0000-0000-0000-448a5b9039d0@updates.rockstor.com:8999/rockstor-stable/leap/15.3?credentials=/etc/zypp/
credentials.d/Rockstor-Stable&auth=basic] Valid metadata not found at specified URL
History:

Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository ‘Rockstor-Stable’ because of the above error.
Problem retrieving files from ‘home_rockstor’.
Download (curl) error for ‘https://download.opensuse.org/repositories/home:/rockstor/openSUSE_Leap_15.3/repodata/repomd.xml’:
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org

Please see the above error message for a hint.
Warning: Skipping repository ‘home_rockstor’ because of the above error.
Problem retrieving files from ‘home_rockstor_branches_Base_System’.
Download (curl) error for ‘https://download.opensuse.org/repositories/home:/rockstor:/branches:/Base:/System/openSUSE_Leap_15.3/repodat
a/repomd.xml’:
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org

Please see the above error message for a hint.
Warning: Skipping repository ‘home_rockstor_branches_Base_System’ because of the above error.
Problem retrieving files from ‘Update repository of openSUSE Backports’.
Download (curl) error for ‘http://download.opensuse.org/update/leap/15.3/backports/repodata/repomd.xml’:
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org

Please see the above error message for a hint.
Warning: Skipping repository ‘Update repository of openSUSE Backports’ because of the above error.
Problem retrieving files from ‘Update repository with updates from SUSE Linux Enterprise 15’.
Download (curl) error for ‘http://download.opensuse.org/update/leap/15.3/sle/repodata/repomd.xml’:
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org

Please see the above error message for a hint.
Warning: Skipping repository ‘Update repository with updates from SUSE Linux Enterprise 15’ because of the above error.
Some of the repositories have not been refreshed because of an error.
Loading repository data…
Reading installed packages…
Nothing to do.
mark@Rockstor-MM:~>

===== END QUOTE =====

I hope this info helps you to diagnose the problem.

Thanks for your efforts!

Mark Mayberry

As you can see from my previous response, I received an error message when trying to access the stable channel. So, are you saying that I should select the “testing” channel? Here is the current screen that displayed ONCE after I rebooted this morning. . . Please note that this screen does not display consistently. Usually, when I click on “Software Update,” I get the following error message: “Unknown internal error doing a POST to /api/commands/update-check.”

@MarkMayberry Hello again.
Re:

Sorry I should have specified that those commands require root priviladges so you need to use:
username: root
password: as-per the one you entered during the initial install

Try the command again as the root user.

Not necessarily. As-is our stable repo for 15.3 doesn’t exist, but it will soon and the issue shouldn’t hold up the other updates. I think I may have to setup an empty repo.

But from you many:

Make sure that you can ping this address from your Rockstor console/terminal, any user should be able to do this.

ping -c 2 download.opensuse.org

It should show something like:

PING download.opensuse.org (195.135.221.134) 56(84) bytes of data.
64 bytes from download.opensuse.org (195.135.221.134): icmp_seq=1 ttl=48 time=118 ms
64 bytes from download.opensuse.org (195.135.221.134): icmp_seq=2 ttl=48 time=97.3 ms

--- download.opensuse.org ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 97.381/107.914/118.447/10.533 ms

See how you get on. And lets have the output as the root user from those zypper commands.
And the output from the ping command as any user.

But from the looks of it your system is having difficulty getting to those opensuse addresses.
They worked just now for me so you may find this clears up after a bit.

And to side step the non existent stable issue on 15.3 you can just switch to testing, but be warned that we will be starting a new testing channel that will have breakages in so be sure to not update from that channel unless you are happy to engage in the next round of development / testing and resolving the expected breakages.

But lets have the root user output from those commands and take it from there. Also with your current configuration you can still update via those zypper commands but they are indicating a network issue currently. But we can’t yet tell if it’s at your end or inbetween. Hence the ping command test to start with.

Hope that helps, and apologies for the Leap15.3 repo. I’ll have a look at maybe setting up a blank one or popping 4.0.9-0 Release Candidate 10 in there to avoid this issue. But there are still know issues we want to fix before going live on the testing channel and our repos are signed so that makes things tricky re empty repo setup.

1 Like