Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Raspberry PI 2/3 install compatibility #78

Open
Seungchan-Daliworks opened this issue Sep 26, 2023 · 9 comments
Open

[Question] Raspberry PI 2/3 install compatibility #78

Seungchan-Daliworks opened this issue Sep 26, 2023 · 9 comments
Assignees
Labels
question Further information is requested

Comments

@Seungchan-Daliworks
Copy link

  • Installation Issue

Description

I followed edge installation guide in Ubuntu.
https://thingsboard.io/docs/user-guide/install/edge/deb-installation/

When I install edge in Mac mini desktop which with Ubuntu 20, everything is clear.
But when I tried it with Raspberry PI 2 and Raspberry PI 3, the result is below.

Raspberry PI 2 with Ubuntu 20 32bit -> successfully install but some sort of important table in DB is empty. ex) edge, user, user-credentials table ... so I couldn't login to edge.

Raspberry PI 3 with Ubuntu 20 64bit -> successfully install but some sort of important table in DB is empty. ex) edge, user, user-credentials table ... so I couldn't login to edge.

Raspberry PI 3 with Ubuntu 22 64bit -> installation failed neither progress is slower than Ubuntu 20.


Environment

Edge

  • OS : Ubuntu 20 32bit/64bit, Ubuntu 22 64bit (Raspberry PI 2, Raspberry PI 3)
  • CPU : ARMv7, ARMv8-A
  • RAM : 1GB
  • Edge : 3.5.1

Thingsboard

  • OS : Mac (M1)
  • ThingsBoard: 3.5.1

Question

I also viewed related topic, and it seems 3.4.3 would be solving these issue.
arm7 compatibility
And I also viewed someone successfully install edge in Raspberry PI 4.
Successfully Raspberry PI 4 install

Can I run edge in Raspberry PI 2/3 with low 1GB memory model? Or go to Raspberry PI 4?
Or is there any other suggestion about empty DB problem?

Best Regards, SeungChan

@Seungchan-Daliworks Seungchan-Daliworks added the question Further information is requested label Sep 26, 2023
@volodymyr-babak
Copy link
Collaborator

@Seungchan-Daliworks,

Hello, could you please attach the install.log and tb-edge.log files? Analyzing them will aid us in identifying the potential root cause of the issue. We plan to conduct some tests on PI 3, but we will first need to acquire the necessary equipment.

@Seungchan-Daliworks
Copy link
Author

Sure,
tb-edge.log
install.log

Best Regards, SeungChan

@volodymyr-babak
Copy link
Collaborator

@Seungchan-Daliworks,

I haven’t identified any errors in the logs provided. Could you please attach either the install or tb-edge logs that contain error messages, especially those related to the DB schema or any other issues? Additionally, please ensure that the logs are complete, starting from the application's startup.

Thank you in advance.

@Seungchan-Daliworks
Copy link
Author

Oh, I've made some mistakes.
This log file has more information and error log.
tb-edge.log

@volodymyr-babak
Copy link
Collaborator

@Seungchan-Daliworks,

It appears that the Edge is unable to establish a connection with the cloud, as indicated by the following error:
Caused by: io.grpc.netty.shaded.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.88.237:7070

Could you please verify whether port 7070 on IP address 192.168.88.237 is accessible from this Edge instance, using telnet or another network tool?

Additionally, could you provide the logs from your TB server instance? Are there any error messages present in those logs?

@Seungchan-Daliworks
Copy link
Author

You're right I didn't write correct cloud IP address to .conf file.
After trying one more installation process, I do reply to you.

Thank you
Best Regards, SeungChan

@volodymyr-babak
Copy link
Collaborator

@Seungchan-Daliworks,

If you have the opportunity, we recommend updating to the latest 3.6.0 version. We have expanded the Edge installation instructions, and Ubuntu OS is now supported as well. You can follow the steps in these updated instructions, which include all the prepared configuration parameters for your convenience:

2023-09-26_12-07

@Seungchan-Daliworks
Copy link
Author

@volodymyr-babak

It worked fine, finally edge is successfully installed and executed in Raspberry PI 2 and 3 with appropriate DB data.

Also, I want to share some trouble shooting case in Raspberry PI. If using Ubuntu in Raspberry PI 2 or 3, often I could see 'unattached upgrade' process spend almost 100% of CPU resource. Stuck resource seems affect installation process (jdk, postgresql and edge).
Screen Shot 2023-09-27 at 3 38 34 PM

After change setting on 'unattached upgrade' process, I could install edge file normally as expected and faster. Referenced link is below.
Reference Link
So, it's remarkable to check whether 'unattached upgrade' process is active or not, before install edge in initialized Raspberry PI.

Thank you
Best Regards, SeungChan

@volodymyr-babak
Copy link
Collaborator

@Seungchan-Daliworks,

Thank you for sharing this valuable information regarding the installation process of Edge for Raspberry Pi 2 or 3.
I believe this will be highly beneficial for other community members.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants