Adding NS8 Repo with empty description (Error), no modifications anymore possible - on any Repo!

NethServer Version: 8
Module: Software Repositories

Hi

After adding a Repo to NS8 Software Repositories and making the error of leaving the description field empty, I get an error:

“Not possible to list apps…”

{"context":{"action":"list-modules","data":null,"extra":{"isNotificationHidden":true,"title":"Apps auflisten"},"id":"06bca426-a54b-473c-b96e-f08761101aba","parent":"","queue":"cluster/tasks","timestamp":"2024-05-21T18:44:50.43331367Z","user":"admin"},"status":"aborted","progress":0,"subTasks":[],"validated":false,"result":{"error":"Traceback (most recent call last):\n  File \"/var/lib/nethserver/cluster/actions/list-modules/50read\", line 38, in <module>\n    updates = cluster.modules.list_updates(rdb, skip_core_modules = True)\n              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/agent/pypkg/cluster/modules.py\", line 241, in list_updates\n    if int(testing) == 0 and not v.prerelease is None:\n       ^^^^^^^^^^^^\nTypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'\n","exit_code":1,"file":"task/cluster/06bca426-a54b-473c-b96e-f08761101aba","output":""}}

It is now not possible anymore to modify, correct or remove any of the repos.

Any ideas how this “bug” can be corrected?
This does seem to be a bug, as the Software Repositories can’t be managed anymore, due to an empty description field?

No apps are listed anymore in Software Center, no apps can be added or removed…
Not really good. After all, a description field should NOT be intensively parsed by any app and have blocking features!

My 2 cents
Andy

2 Likes

I can’t reproduce using core 2.8.0 as both available fields are required:

@mrmarkuz

I made the mistake of putting in the URL twice.

The second mistake happened when I tried to correct the entry. I cleared the field and instead of pasting in the correct entry, accidently hit Enter when the field was empty.
That crashed the GUI.

:slight_smile:

Since then, no modifs possible…

1 Like

To list the repos (and find the wrong one):

redis-cli keys cluster/repository*

To delete the wrong repo, in my case "cluster/repository/https://forge.nethserver.org/ns8/updates/":

redis-cli del "cluster/repository/https://forge.nethserver.org/ns8/updates/"

See also Database | NS8 dev manual

2 Likes

Sheduled Backup on Proxmox running now, will test as soon as it’s finished…

Report coming…

Thx

It worked, thx!

Still getting used to NS8… :slight_smile:

My 2 cents
Andy

1 Like

2 posts were merged into an existing topic: NS8-Guacamole - first testing prerelease