Install command refuses a running Home when the time locale is not English (strptime on ps lstart)

Abierto
#517 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
73/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
bash, linux, python, rust
Área
backend, cli

Línea de trabajo

Start with the runtime cleanup code in install.sh around line 601, where ps -o lstart= output is parsed by the embedded Python. Check how the two process start-time reads are compared and how Python's locale affects strptime. Add the suggested regression test using a non-English LC_TIME; done when cleanup handles that locale and the installer tests pass.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Problem

The install command refuses to update a Home whose Runtime is running when the computer's time format is not English:

[4/5] Install
  ... Stopping verified Runtime processes for this installation so the new version can be installed...
Runtime cleanup stopped: time data 'Mon Nov 2 12:06:28 2026' does not match format '%a %b %d %H:%M:%S %Y'
Error: Close this installation's Runtime and retry; its existing files were preserved

Seen 2 Nov 2026 on a Jetson (Ubuntu 22.04) whose system time locale is es_CO.UTF-8, installing 2.0.0 over a running 2.0.0 Home. Nothing was changed.

Cause

install.sh (2.0.0, line ~601) reads each Runtime's start time with ps -o lstart= under LC_ALL=C (English day and month names), then parses it with time.strptime(..., "%a %b %d %H:%M:%S %Y"). Python's strptime matches %a/%b against the process's own LC_TIME names, so on a Spanish (or any non-English) time locale the English names never match.

Workaround

Stop Home first (Ctrl+C in its terminal), or run the installer with the C locale:

curl -fsSL https://elastos.elacitylabs.com/install.sh | LC_ALL=C bash

Checked: the second form installed and moved that Jetson Home to the stable channel.

Fix

Compare the start time as the raw lstart string (both reads come from ps under LC_ALL=C), or run the embedded Python with LC_ALL=C and set locale.setlocale(locale.LC_TIME, "C") before parsing. Add a test that runs the cleanup with LC_TIME=es_CO.UTF-8 (or any non-English locale available on the runner).

Lenguaje dominante
Rust
Estrellas
6
Forks
2
Merge medio
1 d 3 h
PR fusionados (30 d)
42

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de elastos/elastos-runtime

Todos los issues de elastos/elastos-runtime

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.