Closed raldi01 closed 1 month ago
These are my settings for the repos.
It is still present with 7.1.3? I cannot reproduce it, can you show the raw of the system.repositories
object please
Hello, yes still there:
is the content from this data point required?
Yep on this datapoint, please click on the Pen icon and go to tab raw, copy paste the content here as text please.
On my site the message disappiered after updating to admin 7.1.3.It is not possible to paste the RAW. It is to long. The message here is: There was a problem saving your comment. Your comment is too long (maximum is 65536 characters). Please try again.
This part would be helpful
"native": {
"repositories": {
"stable": {
"link": "http://download.iobroker.net/sources-dist.json",
"json": {
"_repoInfo": {
"stable": true,
"name": {
"en": "Official stable repository",
"de": "Offizielles stabiles Repository",
"ru": "Официальный стабильный репозиторий",
"pt": "Repositório estável oficial",
"nl": "Officiële stabiliteit",
"fr": "Dépôt stable officiel",
"it": "Repository stabile ufficiale",
"es": "Repositorio estable oficial",
"pl": "Repozytorium",
"zh-cn": "A. 正式稳定存放处"
},
"repoTime": "2024-09-24T02:57:07.508Z",
"recommendedVersions": {
"nodeJsAccepted": [
16,
18,
20
],
"nodeJsRecommended": 20,
"npmRecommended": 10
}
},
``
If you don't know how to access the object definition, you can share the results of
sudo apt install jq
iobroker object get system.repositories | jq | head -n 50
Got the same warning since 7.1.2, also with 7.1.5.
In my repo config I have http://repo.iobroker.live/sources-dist.json as active repository. I have never touched this myself, so it must currently or previously have been the default. In the screenshot above, though, I see http://download.iobroker.net/sources-dist.json
Which of the URLs should be used?
I updated the value to the one from the screenshot but the warning is still present.
$ iobroker object get system.repositories | jq | head -n 50
{
"_id": "system.repositories",
"type": "config",
"common": {
"name": {
"en": "System repositories",
"de": "System-Repositorys",
"ru": "Системные репозитории",
"pt": "Repositórios do sistema",
"nl": "Systeemrepository's",
"fr": "Référentiels système",
"it": "Repository di sistema",
"es": "Repositorios del sistema",
"pl": "Repozytoria systemowe",
"zh-cn": "系统资料库"
},
"dontDelete": true
},
"native": {
"repositories": {
"Stable (default)": {
"link": "https://download.iobroker.net/sources-dist.json",
"json": {
"_repoInfo": {
"stable": true,
"name": {
"en": "Official stable repository",
"de": "Offizielles stabiles Repository",
"ru": "Официальный стабильный репозиторий",
"pt": "Repositório estável oficial",
"nl": "Officiële stabiliteit",
"fr": "Dépôt stable officiel",
"it": "Repository stabile ufficiale",
"es": "Repositorio estable oficial",
"pl": "Repozytorium",
"zh-cn": "A. 正式稳定存放处"
},
"repoTime": "2024-09-27T02:57:37.613Z",
"recommendedVersions": {
"nodeJsAccepted": [
16,
18,
20
],
"nodeJsRecommended": 20,
"npmRecommended": 10
}
},
"accuweather": {
"name": "accuweather",
http://download.iobroker.net/sources-dist.json
is the correct one, but both have _repoInfo.stable = true
which should not display the warning.
Can you show a screenshot of the warning + the tab on which it occurs? Host and Adapters? @udondan
As far as I can see, this is only shown on the Adapters page.
Can you show from the system.config
object the common.activeRepo
attribute, this is currently my last idea to look into. From code it seems that it checks if one repo does not have the _repoInfo.stable = true
and name does not start with stable
, so maybe there is a dead repository somehow.
default configuration
"repositories": { "stable": { "link": "http://download.iobroker.net/sources-dist.json",
@udondan configuration
"repositories": { "Stable (default)": { "link": "https://download.iobroker.net/sources-dist.json",
Maybe the admin checks for the key instead of the stable flag?
The value of common.activeRepo lgtm:
$ iobroker object get system.config | jq .common.activeRepo
"Stable (default)"
Ah it's still a string for you, I can reproduce it now. Thanks
will be fixed with https://github.com/ioBroker/ioBroker.admin/pull/2707
default configuration
"repositories": { "stable": { "link": "http://download.iobroker.net/sources-dist.json",
@udondan configuration
"repositories": { "Stable (default)": { "link": "https://download.iobroker.net/sources-dist.json",
Maybe the admin checks for the key instead of the stable flag?
Yep, one line below the string case was inverted. I also changed these double negations for the array, they are hard to read imo^^
Awesome, thank you @foxriver76!
No existing issues.
Describe the bug
I have updated today to admin 7.1.2 . Since the update i get the warning as discribed. Is this really wanted?
To Reproduce
Click on the adapters tab and the warning appears.
Expected behavior
This should give no warning.
Screenshots & Logfiles
Adapter version
7.1.2
js-controller version
6.0.11
Node version
20.17.0
Operating system
Debian 12 bookworm on an Proxmox VM
Additional context
No response