thin-edge / thin-edge.io

The open edge framework for lightweight IoT devices
https://thin-edge.io
Apache License 2.0
223 stars 55 forks source link

Failed to install thin-edge.io #2603

Closed Jack-Moss closed 10 months ago

Jack-Moss commented 10 months ago

Describe the bug Hi there, this is just following the instructions on https://cumulocity.com/guides/device-integration/integration-tutorials/

To Reproduce I am using a pi zero w 2 an this command: curl -fsSL https://raw.githubusercontent.com/thin-edge/thin-edge.io/main/get-thin-edge_io.sh | sudo sh -s

Expected behavior I was expecting thin edge.io to download an install on my pi zero

Screenshots

Environment (please complete the following information):

--------------- machine details ---------------------
date:           Thu 18 Jan 22:01:56 GMT 2024
tedge:          1.0.0-rc.1
Machine:        Linux pizero 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
Architecture:   arm64
Distribution:   Debian GNU/Linux 11 (bullseye)

Additional context

Error log:

--------------- error details ------------------------
Version argument has not been provided, installing latest: 1.0.0-rc.1
To install a particular version use this script with the version as an argument.
For example: sudo ./get-thin-edge_io.sh 1.0.0-rc.1
Installing for architecture arm64
Installing mosquitto as prerequisite for thin-edge.io
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libcjson1 libdlt2 libev4 libmosquitto1 libwebsockets16
Suggested packages:
  apparmor
The following NEW packages will be installed:
  libcjson1 libdlt2 libev4 libmosquitto1 libwebsockets16 mosquitto
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 637 kB of archives.
After this operation, 1,662 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 libcjson1 arm64 1.7.14-1 [22.5 kB]
Get:2 http://security.debian.org/debian-security bullseye-security/main arm64 libmosquitto1 arm64 2.0.11-1+deb11u1 [89.9 kB]
Get:3 http://deb.debian.org/debian bullseye/main arm64 libdlt2 arm64 2.18.6-1+deb11u1 [50.9 kB]
Get:4 http://deb.debian.org/debian bullseye/main arm64 libev4 arm64 1:4.33-1 [41.3 kB]
Get:5 http://deb.debian.org/debian bullseye/main arm64 libwebsockets16 arm64 4.0.20-2 [173 kB]
Get:6 http://security.debian.org/debian-security bullseye-security/main arm64 mosquitto arm64 2.0.11-1+deb11u1 [259 kB]
Fetched 637 kB in 1s (1,205 kB/s)
Selecting previously unselected package libcjson1:arm64.
(Reading database ... 37776 files and directories currently installed.)
Preparing to unpack .../0-libcjson1_1.7.14-1_arm64.deb ...
Unpacking libcjson1:arm64 (1.7.14-1) ...
Selecting previously unselected package libdlt2:arm64.
Preparing to unpack .../1-libdlt2_2.18.6-1+deb11u1_arm64.deb ...
Unpacking libdlt2:arm64 (2.18.6-1+deb11u1) ...
Selecting previously unselected package libev4:arm64.
Preparing to unpack .../2-libev4_1%3a4.33-1_arm64.deb ...
Unpacking libev4:arm64 (1:4.33-1) ...
Selecting previously unselected package libmosquitto1:arm64.
Preparing to unpack .../3-libmosquitto1_2.0.11-1+deb11u1_arm64.deb ...
Unpacking libmosquitto1:arm64 (2.0.11-1+deb11u1) ...
Selecting previously unselected package libwebsockets16:arm64.
Preparing to unpack .../4-libwebsockets16_4.0.20-2_arm64.deb ...
Unpacking libwebsockets16:arm64 (4.0.20-2) ...
Selecting previously unselected package mosquitto.
Preparing to unpack .../5-mosquitto_2.0.11-1+deb11u1_arm64.deb ...
Unpacking mosquitto (2.0.11-1+deb11u1) ...
Setting up libmosquitto1:arm64 (2.0.11-1+deb11u1) ...
Setting up libev4:arm64 (1:4.33-1) ...
Setting up libcjson1:arm64 (1.7.14-1) ...
Setting up libdlt2:arm64 (2.18.6-1+deb11u1) ...
Setting up libwebsockets16:arm64 (4.0.20-2) ...
Setting up mosquitto (2.0.11-1+deb11u1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/mosquitto.service → /lib/systemd/system/mosquitto.service.
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u7) ...
curl: (22) The requested URL returned error: 404 
Failed to install thin-edge.io
Reason: Could not download package from url: https://github.com/thin-edge/thin-edge.io/releases/download/1.0.0-rc.1/tedge_1.0.0-rc.1_arm64.deb
Please create a ticket using the following link and include the console output
    https://github.com/thin-edge/thin-edge.io/issues/new?assignees=&labels=bug&template=bug_report.md
------------------------------------------------------
reubenmiller commented 10 months ago

Thanks @Jack-Moss, we'll have to update the instructions referenced from the Cumulocity IoT docs, so the install instructions on the referenced page are no longer correct (and are the root cause for the error that you are experiencing).

There is a new(ish) install script to install via our official linux packages hosted on Cloudsmith.io, you can check out the installation instructions here:

https://thin-edge.github.io/thin-edge.io/install/

In addition, I would follow the "Getting started guide" from the project's documentation:

https://thin-edge.github.io/thin-edge.io/start/connect-c8y/

But in general, if you run into any unexpected errors, then it is always good to have a look at the project's official documentation page, as it is always in sync with the project as the documentation is hosted next to the code. The pages hosted on under the Cumulocity IoT domain unfortunately aren't automatically synced at this point in time.

Official/full documentation

https://thin-edge.github.io/thin-edge.io/

reubenmiller commented 10 months ago

@Jack-Moss note I just cleaned up the ticket description to put the information in code blocks so it is easier to read...You can add code block by using the following markdown:

my error log output which will be rendered in a fenced code block...

reubenmiller commented 10 months ago

I've create a ticket to track the updating of the Cumulocity IoT tutorial page. https://github.com/thin-edge/thin-edge.io/issues/2604

reubenmiller commented 10 months ago

@Jack-Moss Please let us know if the install instructions on the project's documentation page work for you.

reubenmiller commented 10 months ago

Closing. Please reopen the ticket if the above suggestion does not work.