Need help to test new Cesium version

Pour faire ça il faut cloner le dépôt et lancer yarn build ou quelque chose comme ça ?

Parce que pour l’instant la doc dit :

  • Clone the cesium-desktop project locally;
  • Follow this project documentation.

et c’est tout.

[edit]

En fait, peut-être qu’il faut suivre le guide de développement. Je vais essayer.

[edit 2]

je lance yarn et j’ai

error An unexpected error occurred: "https://codeload.github.com/Teleborder/FileSaver.js/tar.gz/b7cf622909258086bc63ad764d08fcaed780ab42: Request failed \"404 Not Found\"".

Pourtant c’est dans le yarn.lock. Tu n’as pas la même erreur ?

@kimamila, peux-tu faire une Merge Request dans gitlab pour ta branche feature/startup_node_selection

Cela facilitera les reviews.

2 Likes

Yesterday I cloned Cesium repository and I got this error. Search in Internet, I found that alferov/angular-file-saver replace to Teleborder/FileSaver.js, then, only delete this dependence in package.json and install and run correctly.

2 Likes

Thanks @elmau.

@kimamila after removing this package, I tested Cesium on this branch. It started with the first default node g1.duniter.org. Then I made this node unreachable by changing my /etc/hosts and Cesium connected to g1.cgeek.fr, the first one in the fallback list. Then I repeated the operation and Cesium connected to g1.librelois.fr, and so on.

So the fallback mechanism works, but we have to previously shuffle the node list to achieve the required behavior in order to avoid overloading always the same nodes. This should be done here

platform.js#L250

var randomIndex = Math.floor(Math.random() * peers.length);

But it seems to be not working.

In the browser log, I have the error: Error: randomPeer is undefined. I don’t know how to debug JavaScript.


btw 1

I tried adding a node whose https is not on the 443 port (but 7443) in the fallback list

{
  "host": "g1.texu.es",
  "port": 7443
}

and Cesium failed to connect to it.

btw 2

When the node is unreachable, the label still appears green, which is disturbing.

2 Likes

Can you give me the source line ? Should be a simple cause (like $scope that is missing)

@matograine si tu as le temps de regarder aussi du problème soulevé par @HugoTrentesaux ? ( Error: randomPeer is undefined). Merci !

Je vois ceci :

Error: randomPeer is undefined   angular.js:14199:17

et la stacktrace

checkBmaNodeSynchronized/</<@http://localhost:8100/dist/dist_js/app/platform.js:251:17
Id/e/<@http://localhost:8100/lib/angular/angular.min.js:132:434
$eval@http://localhost:8100/lib/angular/angular.min.js:147:69
$digest@http://localhost:8100/lib/angular/angular.min.js:144:131
$apply@http://localhost:8100/lib/angular/angular.min.js:147:363
If/this.$get</p/f<@http://localhost:8100/lib/angular/angular.min.js:140:53
f@http://localhost:8100/lib/angular/angular.min.js:45:492
mg/k.defer/c<@http://localhost:8100/lib/angular/angular.min.js:48:419
setTimeout handler*mg/k.defer@http://localhost:8100/lib/angular/angular.min.js:48:393
p@http://localhost:8100/lib/angular/angular.min.js:140:34
$applyAsync@http://localhost:8100/lib/angular/angular.min.js:147:478
l@http://localhost:8100/lib/angular/angular.min.js:99:161
K@http://localhost:8100/lib/angular/angular.min.js:103:377
tg/</N.onload@http://localhost:8100/lib/angular/angular.min.js:104:339
EventHandlerNonNull*tg/<@http://localhost:8100/lib/angular/angular.min.js:104:174
n@http://localhost:8100/lib/angular/angular.min.js:100:427
zf/this.$get</m/s<@http://localhost:8100/lib/angular/angular.min.js:98:146
Id/e/<@http://localhost:8100/lib/angular/angular.min.js:132:434
$eval@http://localhost:8100/lib/angular/angular.min.js:147:69
$digest@http://localhost:8100/lib/angular/angular.min.js:144:131
$apply@http://localhost:8100/lib/angular/angular.min.js:147:363
If/this.$get</p/f<@http://localhost:8100/lib/angular/angular.min.js:140:53
f@http://localhost:8100/lib/angular/angular.min.js:45:492
mg/k.defer/c<@http://localhost:8100/lib/angular/angular.min.js:48:419
setTimeout handler*mg/k.defer@http://localhost:8100/lib/angular/angular.min.js:48:393
p@http://localhost:8100/lib/angular/angular.min.js:140:34
$applyAsync@http://localhost:8100/lib/angular/angular.min.js:147:478
l@http://localhost:8100/lib/angular/angular.min.js:99:161
K@http://localhost:8100/lib/angular/angular.min.js:103:377
f@http://localhost:8100/lib/angular/angular.min.js:104:390
p@http://localhost:8100/lib/angular/angular.min.js:103:319
f@http://localhost:8100/lib/angular/angular.min.js:45:492
mg/k.defer/c<@http://localhost:8100/lib/angular/angular.min.js:48:419
setTimeout handler*mg/k.defer@http://localhost:8100/lib/angular/angular.min.js:48:393
tg/<@http://localhost:8100/lib/angular/angular.min.js:105:155
n@http://localhost:8100/lib/angular/angular.min.js:100:427
zf/this.$get</m/s<@http://localhost:8100/lib/angular/angular.min.js:98:146
Id/e/<@http://localhost:8100/lib/angular/angular.min.js:132:434
$eval@http://localhost:8100/lib/angular/angular.min.js:147:69
$digest@http://localhost:8100/lib/angular/angular.min.js:144:131
$apply@http://localhost:8100/lib/angular/angular.min.js:147:363
If/this.$get</p/f<@http://localhost:8100/lib/angular/angular.min.js:140:53
f@http://localhost:8100/lib/angular/angular.min.js:45:492
mg/k.defer/c<@http://localhost:8100/lib/angular/angular.min.js:48:419
angular.js:14199:17

Mais comme je dis, je ne sais pas débugger du JavaScript, donc c’est bien si @matograine a le temps de reproduire le bug.

[edit]

Je me rends compte que je n’avais pas ton commit 430eb211008a40462b419dd1f0a386cc8eb748dd du 31 mai 2022, il n’était peut-être pas publié ? → Je n’ai plus l’erreur après ce commit.

1 Like

Du nouveau sur tes tests sur Cesium ?

1 Like

Non, désolé. Pas eu de temps pour toucher à mon ordi perso, je passe déjà trop de temps sur mon ordi pro avec la fin de mon boulot

J’ai toujours ça sur feature/startup_node_selection, donc je cherry-pick mon commit 9c316813.

Après ça l’installation fonctionne, je peux lancer Cesium.

Ensuite, pas mal d’erreurs dans la console navigateur :

Error: Websocket wss://g1.duniter.org/ws/block was closed!

XHRGEThttps://g1.e-is.pro/blockchain/current
[HTTP/1.1 502 Bad Gateway 197ms]

Blocage d’une requête multiorigine (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur http://duniter.g1.qc.fr:20901/blockchain/current. Raison : échec de la requête CORS. Code d’état : (null).

[http] Get HTTP error {status: -1} on [http://duniter.g1.qc.fr:20901/blockchain/current] http-services.js:49:17
Blocage d’une requête multiorigine (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur https://cloudanua.ddns.net/blockchain/current. Raison : échec de la requête CORS. Code d’état : (null).

[http] Get HTTP error {status: -1} on [https://cloudanua.ddns.net/blockchain/current] http-services.js:49:17
Blocage d’une requête multiorigine (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur http://37.59.240.172:20900/blockchain/current. Raison : échec de la requête CORS. Code d’état : (null).

[http] Get HTTP error {status: -1} on [http://37.59.240.172:20900/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.e-is.pro/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://82.64.205.150/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.mithril.re/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.duniter.org/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://91.121.157.13:10901/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://namarie.nohost.me/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://10.45.43.145:10900/blockchain/current] http-services.js:49:17
XHRGEThttp://g1a.jytou.fr:9002/blockchain/current
[HTTP/1.1 400 Bad Request 127ms]

[http] Get HTTP error {status: -1} on [https://g1.cloud-libre.eu/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.cloud-libre.eu/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://g1.cgeek.fr:35556/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://82.66.23.221:33607/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.le-sou.org/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://g1.le-sou.org/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://82.65.178.243:10901/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://80.13.174.239:20903/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://90.58.64.181:20902/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.syoul.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.syoul.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.anuanua.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://83.198.62.173:10900/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://31.24.244.202:10901/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.riky.net/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.nuaje.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://g1a.jytou.fr:9002/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://81.57.152.178:57586/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.cuates.net/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.cuates.net/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://144.91.111.40:10900/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter.monnaie-libre-44.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter.monnaie-libre-44.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://[2a01:e0a:3c7:6670::8f19:6fd9]:21269/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter.occitanet.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.texu.es:7443/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://37.187.131.59:7443/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.redsoberana.com/blockchain/current] 2 http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.lacoursefolle.com/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://eclora.ynh.fr/blockchain/current] 2 http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter-v1-g1.axiom-team.fr/blockchain/current] 2 http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.openmyprojects.com/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://0.0.0.0:10501/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://remuniter.cgeek.fr:16120/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://g1.moul.re:10901/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter.moul.re/blockchain/current] 2 http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.computhings.be/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.agoranet.info/blockchain/current] 2 http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.analysons.com/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://78.196.180.52/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter.pini.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://narnia.nohost.me/blockchain/current] 2 http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.spaceworld.freemyip.com/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://78.199.190.82:10903/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://78.197.134.147:10901/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://vit.fdn.org:10900/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://80.67.176.219:10900/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.asycn.io/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1-test.asycn.io/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://fania.g1server.net/blockchain/current] 2 http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter.g1server.net/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://gibraleon.g1server.net/blockchain/current] 2 http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1-vijitatman.es/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1-vijitatman.es/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.soberaniadigital.net/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.soberaniadigital.net/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://panoramix.toutat.is/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://panoramix.toutat.is/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://abyayala.g1labs.net/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://abyayala.g1labs.net/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter.adn.life/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.adn.life/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter.adn.life/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://monnaie-libre.ortie.org/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://monnaie-libre.ortie.org/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://[2a01:cb0d:5c2:fa00:21e:68ff:feab:389a]/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.trentesaux.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.trentesaux.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://duniter971.dns1.us:9710/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter971.dns1.us/blockchain/current]

Mais j’ai bien

Calcul de l’état du réseau Ğ1…

et Cesium peut choisir des nœuds différent (enfin j’ai eu cinq fois g1.duniter.org et une fois g1.cgeek.fr)

Par contre, c’est assez long (~10-15 secondes) avant que le nœud soit choisi.

1 Like