massalabs / station

A gateway to the Massa blockchain
https://station.massa.net
27 stars 107 forks source link

Can't launch massa station on ubuntu 22.04 #1276

Closed Uldosphere closed 9 months ago

Uldosphere commented 9 months ago

The problem(s) After installing from .deb package, can't start massa station

To Reproduce

uld@Yggdrasil:~/Téléchargements$ ls
 massastation_0.4.0_amd64.deb  
uld@Yggdrasil:~/Téléchargements$ sudo apt install ./massastation_0.4.0_amd64.deb 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Note : sélection de « massastation » au lieu de « ./massastation_0.4.0_amd64.deb »
Les paquets supplémentaires suivants seront installés : 
  libnss3-tools
Les NOUVEAUX paquets suivants seront installés :
  libnss3-tools massastation
0 mis à jour, 2 nouvellement installés, 0 à enlever et 0 non mis à jour.
[bla bla bla]
[....]
[install complete and OK]
uld@Yggdrasil:~/Téléchargements$ massastation 
2023-11-24T09:26:25.601+0100    INFO    A new CA was generated at /etc/massastation/certs/rootCA.pem.
2023-11-24T09:26:25.611+0100    WARN    Error while checking certificate: failed to add the CA to the operating system: not implemented.
2023-11-24T09:26:25.611+0100    WARN    Station will only work using http, or you will have to add the CA to your browser manually.
2023-11-24T09:26:26.339+0100    FATAL   Failed to create NetworkManager:set default network buildnet: getting network version: failed to retrieve node status: calling get_status: rpc call get_status() on https://buildnet.massa.net/api/v2: Post "https://buildnet.massa.net/api/v2": sending http request '&{Method:POST URL:https://buildnet.massa.net/api/v2 Proto:HTTP/1.1 ProtoMajor:1 ProtoMinor:1 Header:map[Accept:[application/json] Content-Type:[application/json]] Body:{Reader:0xc0005605a0} GetBody:0x701800 ContentLength:46 TransferEncoding:[] Close:false Host:buildnet.massa.net Form:map[] PostForm:map[] MultipartForm:<nil> Trailer:map[] RemoteAddr: RequestURI: TLS:<nil> Cancel:<nil> Response:<nil> ctx:0xc000128010}': tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2023-11-24T09:26:26+01:00 is after 2023-11-24T07:10:00Z
github.com/massalabs/station/pkg/logger.Fatalf
    /home/runner/work/station/station/pkg/logger/global.go:128
main.main
    /home/runner/work/station/station/cmd/massastation/main.go:84
runtime.main
    /opt/hostedtoolcache/go/1.20.6/x64/src/runtime/proc.go:250
uld@Yggdrasil:~/Téléchargements$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:    22.04
Codename:   jammy

Expected behavior(s) Massa station starting with no fatal error

Screenshots

MassaStation version The version of MassaStation the bug is present in.

Desktop (please complete the following information):

Uldosphere commented 9 months ago

Looks like it's due to buildnet.massa.net certificate expired, please renew and close ticket. Capture d’écran du 2023-11-24 09-48-08