Skip to content

Supervisor not installed due to time not synchronized yet #95

@cechurat

Description

@cechurat

Hi, I run into this issue when using "mass-install-dp". The installation script is executed before the time synchronization and thus the "apt update" does not see valid release files.

Can you help me, please?

main            : ----------------------------------------------------------------------
main            : Wed Jun  5 14:41:33 2024
main            : install started
main            :
user            :     ___      _              _ _      _ _
user            :    /   \__ _| |_ __ _ _ __ | (_) ___(_) |_ _   _
user            :   / /\ / _` | __/ _` | '_ \| | |/ __| | __| | | |
user            :  / /_// (_| | || (_| | |_) | | | (__| | |_| |_| |
user            : /___,' \__,_|\__\__,_| .__/|_|_|\___|_|\__|\__, | v0.5.11
user            :                      |_|                   |___/
user            :
user            : Welcome to the Dataplicity Agent Installer
log_info        : [PYTHON]
log_info        : sys.executable='/usr/bin/python'
log_info        : sys.version='3.9.2 (default, Mar 12 2021, 04:06:34) \n[GCC 10.2.1 20210110]'
log_info        :
log_info        : [LINUX]
log_info        : distro='Raspbian GNU/Linux 11 (bullseye)'
log_info        :
log_info        : [UNAME]
log_info        : system='Linux'
log_info        : node='100000006abca426'
log_info        : release='6.1.21-v8+'
log_info        : version='#1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023'
log_info        : machine='aarch64'
log_info        : processor=''
log_info        :
log_info        : [SETTINGS]
log_info        : agent_download_url='https://github.com/wildfoundry/dataplicity-agent/releases/download/v0.5.11/dat>
log_info        : agent_version='v0.5.11'
log_info        : api_url='https://api.dataplicity.com/'
log_info        : device_url='https://www.dataplicity.com/devices/'
log_info        : dry_run=False
log_info        : interactive=True
log_info        : m2m_url='wss://m2m.dataplicity.com/m2m/'
log_info        : register_url='https://www.dataplicity.com/install/'
log_info        : report_url='https://www.dataplicity.com/installer_event/'
log_info        : token='07z9tod0'
log_info        : time=1717656194.499331
log_info        :
user            :
show_step       : ----------------------------------------------------------------------
user            : [[ Step 1 of 4 ]] downloading open source agent
make_dir        : /opt/dataplicity/agent/v0.5.11 (created)
download        : requesting https://github.com/wildfoundry/dataplicity-agent/releases/download/v0.5.11/dataplicity
download        : content length is 687016 bytes
download        : writing /opt/dataplicity/agent/v0.5.11/~dataplicity
download        : 687016 bytes read
write_agent     : renamed /opt/dataplicity/agent/v0.5.11/dataplicity
link            : created /opt/dataplicity/agent/dataplicity
make_executable : /opt/dataplicity/agent/v0.5.11/dataplicity
log_time        : 0.9s elapsed
show_step       : ----------------------------------------------------------------------
user            : [[ Step 2 of 4 ]] registering device
get_cpu_info    : cpu architecture=8
get_cpu_info    : cpu variant=0x0
get_cpu_info    : cpu part=0xd08
get_cpu_info    : cpu revision=3
get_cpu_info    : hardware=BCM2835
get_cpu_info    : revision=c03112
register_device : device name is 100000006abca426
register_device : posting to https://www.dataplicity.com/install/
register_device : response code=200
make_dir        : /opt/dataplicity/tuxtunnel (created)
make_dir        : /opt/dataplicity/tuxtunnel (exists)
log_time        : 1.2s elapsed
show_step       : ----------------------------------------------------------------------
user            : [[ Step 3 of 4 ]] configuring system
create_user     : creating user
create_user     : adding user
make_dir        : /home (exists)
run_system      : run b'useradd -m dataplicity'
run_system      :
run_system      : b'useradd -m dataplicity' returned=0
create_user     : creating remote dir
make_dir        : /home/dataplicity/remote (created)
update_sudoers  : adding sudoer line
apt_update      : Updating apt
run_system      : run b'apt-get -y update'
run_system      : Get:1 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]
run_system      : Get:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
run_system      : Get:3 https://download.rexcontrols.cz/partner/ntis/rexygen/debian bullseye InRelease [24.3 kB]
run_system      : Get:4 https://download.rexcontrols.cz/partner/ntis/rexygen/debian bullseye/rexygen armhf Packages >
run_system      : Get:5 https://download.rexcontrols.cz/partner/ntis/rexygen/debian bullseye/dwm armhf Packages [5,8>
run_system      : Reading package lists...
run_system      : E: Release file for http://archive.raspberrypi.org/debian/dists/bullseye/InRelease is not valid ye>
run_system      : E: Release file for http://raspbian.raspberrypi.org/raspbian/dists/bullseye/InRelease is not valid>
run_system      :
run_system      : b'apt-get -y update' returned=100
run             : Package database update failed, continuing with existing package database...
apt_get         : installing package supervisor
run_system      : run b'apt-get -y install supervisor'
run_system      : Reading package lists...
run_system      : Building dependency tree...
run_system      : Reading state information...
run_system      : E: Unable to locate package supervisor
run_system      :
run_system      : b'apt-get -y install supervisor' returned=100
run             : failed to install supervisor
user            :   The installer was unable to install Supervisor on your system.
user            :   This may be temporary, you could try again.
report          : status='fail' reason='Unable to install Supervisor'
build_report    : fail (Unable to install Supervisor)
build_report    : 5s elapsed (total)
get_cpu_info    : cpu architecture=8
get_cpu_info    : cpu variant=0x0
get_cpu_info    : cpu part=0xd08
get_cpu_info    : cpu revision=3
get_cpu_info    : hardware=BCM2835
get_cpu_info    : revision=c03112
report          : {'data': '{"cpu": {"cpu architecture": "8", "cpu variant": "0x0", "cpu part": "0xd08", "cpu revisi>
send_report     : sending install report to https://www.dataplicity.com/installer_event/
send_report     : response code = 200
main            : install aborted (Unable to install Supervisor)
user            :
user            : Unable to install Supervisor
user            : See file /var/log/dpinstall.log for details.
user            : Email support@dataplicity.com for help, or visit https://docs.dataplicity.com/
main            : leaving main
entry_point     : return=-2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions