Giter Site home page Giter Site logo

dataplicity-agent's People

Contributors

barfle avatar gregord1a1 avatar meshy avatar rkados avatar stuartkmarsh avatar toudi avatar willmcgugan avatar zwierzynskaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dataplicity-agent's Issues

agent not running

PI 4 - new OS install

Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye

Install script runs without issue

Dataplicity agent v0.5.8 is now installed.
Your device will be online in a few seconds.

less /var/log/dataplicity.log
No such file or directory

pi@raspberrypiaws:/var/log/supervisor $ sudo supervisorctl status tuxtunnel
tuxtunnel FATAL can't find command '$(which'

cat supervisord.log
2022-05-11 08:00:30,053 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2022-05-11 08:00:30,053 WARN No file matches via include "/etc/supervisor/conf.d/*.conf"
2022-05-11 08:00:30,063 INFO RPC interface 'supervisor' initialized
2022-05-11 08:00:30,063 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2022-05-11 08:00:30,064 INFO supervisord started with pid 4210
2022-05-11 08:00:35,592 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2022-05-11 08:00:35,592 WARN For [program:tuxtunnel], redirect_stderr=true but stderr_logfile has also been set to a filename, the filename has been ignored

RBPI unreacheable

Hello,
I've have a rasbperry pi behind a 4g router.
It sends me data to my server, so there is internet connection, but, the rbpi is not reacheable by dataplicity...
Why?
My Server show the green button status
Selection_160

Dataplicity account
Selection_158

License should not be called a modified BSD license

Hi,
I see that this repository is licensed under what the README and License file describes as a "modified" or "extended" BSD license.

I take issue with this since the two added bullet points do not meet the Open Source Definition. Because of that, I believe calling this a modified BSD license is dishonest, since the active license is not in the spirit of the BSD 3 clause it is based on.

Clause 4 violates the first criteria of the OSD, which is free redistribution. I have no issue with copyright and it would be fair to keep this, but despite of this still calling it a BSD license still (which meets the OSD) I believe is not right.

Clause 5 does not fit in a license for redistribution, rather this would be better for for a [CLA (Contributor License Agreement)](Contributor License Agreement).

I'm not a lawyer, but these are my observations.

Doesn't work with Python 2 and 3

I freshly installed an ubuntu server on my raspberry pi and wanted to install dataplicity. I have both Python 2 and 3 installed. Installing dataplicity with the command works with a 2 or 3 added behind python but the dataplicity.log file gives me this output:

/usr/bin/env: 'python': No such file or directory

Is there a script that I can edit like the installation command so dataplicity works?

Device not connected

Thank you for creating this project. Helped a lot!

Problem: I have activated wormhole and setup the file server using apache and it works but after a while it gives me the error.
I get this error when I try to access my file server on raspi after sometime has passed -

Dataplicity is unable to connect to your device. It may be offline.

dataplicitynotconnected

Partial solution: For it to get working I have to sudo nohup supervisorctl restart tuxtunnel & every time!

I found this relevant thread - https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=117100&p=945594

Any fix?

Missing python2.7 on the newest RaspberryOS- dataplicity automatic installer script doesn't work

tl;dr; there's no info in case there's no python 2.7 in the system

I don't know if this is a good place to raise the issue but I just want to let you guys know that on the latest RaspberryOS (2022-01-28-raspios-bullseye-armhf-lite) there's no python2.7 and there's no info that it needs to be installed separately. Basically, Debian 11 no longer contains python2 by default. [here]
As a result, a typical user who doesn't look for documentation online or doesn't check logs doesn't know why it's not working and probably will just give up.
Simple apt-get install python2 is sufficient but the installer script could at least suggest that.

Installation Step1 error (The installer encountered an error.)

log file:

main : ---------------------------------------------------------------------- main : Sun Aug 20 12:52:05 2023 main : install started main : user : ___ _ _ _ _ _ user : / \__ _| |_ __ _ _ __ | (_) ___(_) |_ _ _ user : / /\ / _ | __/ _| '_ \| | |/ __| | __| | | | user : / /_// (_| | || (_| | |_) | | | (__| | |_| |_| | user : /___,' \__,_|\__\__,_| .__/|_|_|\___|_|\__|\__, | v0.5.8 user : |_| |___/ user : user : Welcome to the Dataplicity Agent Installer log_info : [PYTHON] log_info : sys.executable='/usr/local/bin/python' log_info : sys.version='2.7.9 (default, Aug 20 2023, 10:34:49) \n[GCC 12.2.0]' log_info : log_info : [LINUX] log_info : distro=u'Debian GNU/Linux 12 (bookworm)' log_info : log_info : [UNAME] log_info : system='Linux' log_info : node='rpi4-20230612' log_info : release='6.1.0-11-arm64' log_info : version='#1 SMP Debian 6.1.38-4 (2023-08-08)' log_info : machine='aarch64' log_info : processor='' log_info : log_info : [SETTINGS] log_info : m2m_url=u'wss://m2m.dataplicity.com/m2m/' log_info : api_url=u'https://api.dataplicity.com/' log_info : dry_run=False log_info : report_url=u'https://www.dataplicity.com/installer_event/' log_info : device_url=u'https://www.dataplicity.com/devices/' log_info : token=u'xaps88rm' log_info : time=1692535925.0318546 log_info : register_url=u'https://www.dataplicity.com/install/' log_info : agent_download_url=u'https://github.com/wildfoundry/dataplicity-agent/releases/download/v0.5.8/dataplicity' log_info : agent_version=u'v0.5.8' log_info : interactive=True log_info : user : show_step : ---------------------------------------------------------------------- user : [[ Step 1 of 4 ]] downloading open source agent make_dir : /opt/dataplicity/agent/v0.5.8 (exists) download : requesting https://github.com/wildfoundry/dataplicity-agent/releases/download/v0.5.8/dataplicity report : status=u'crash' reason='<urlopen error unknown url type: https>' build_report : crash (<urlopen error unknown url type: https>) build_report : 0s elapsed (total) get_cpu_info : cpu architecture=8 get_cpu_info : cpu variant=0x0 get_cpu_info : cpu part=0xd08

Please Help!

Problem to access to Domoticz (2022.2) via Dataplicity

After updating Domoticz to the last version (2022.2) I do not have access to Domoticz (https://************.dataplicity.io port 80) via Dataplicity (403 Forbidden). :(

Log form Domoticz:
2022-11-08 15:42:05.994 Error: Webserver: Multiple proxies are used (Or possible spoofing attempt), ignoring client request (remote address: 127.0.0.1)

Domoticz Version: 2022.2
Platform: Raspberry Pi 4

PS. Previous versions of Domoticz worked with Dataplicity without any problems
PS2.In this and in earlier versions of domoticz, I had the local network set (127.0.0.1)
image

Home Assistant & Dataplicity

Hi All,

I´m using Home Assistant (HA) 2023.1.1 & Dataplicity (DP), but with the latest HA upgrades I run into an dependency issue:

  • to work properly HA needs six==1.16.0, otherwise e.g. USB ports not working
  • the DP custom component (based on DP 0.40.x) version for HA needs six==1.10.0, otherwise it will not be loaded in HA Core environment

Rasbian Bullseye, Python 3.10.9, HA Core Version in an VENV environment...

Any hints, any chance to get this fixed?

Kind regards!
Jo

Unhandled error from websocket

Here is some info

02/Mar/2018 18:51:56]:agent:INFO: dataplicity 0.4.30a0 [02/Mar/2018 18:51:56]:agent:INFO: uname=Linux kali 3.10.65+ #1 SMP PREEMPT Sat Mar 5 08:46:58 CST 2016 aarch64 [02/Mar/2018 18:51:56]:agent:INFO: m2m=wss://m2m.dataplicity.com/m2m/ [02/Mar/2018 18:51:56]:agent:INFO: api=https://api.dataplicity.com/ [02/Mar/2018 18:51:56]:agent:INFO: serial=c8658908-57a9-40cc-b17f-62ee73e30365 [02/Mar/2018 18:51:56]:agent:INFO: poll=60 [02/Mar/2018 18:51:56]:m2m:ERROR: unhandled error from websocket Traceback (most recent call last): File "/data/data/com.termux/files/home/.pex/install/dataplicity-0.4.30a0-py2-none-any.whl.1c3b34b697e73c7262620960a2cc191ffcde2c87/dataplicity-0.4.30a0-py2-none-any.whl/dataplicity/m2m/wsclient.py", line 265, in run log.exception('error handling websocket event') File "/data/data/com.termux/files/home/.pex/install/lomond-0.1.12-py2.py3-none-any.whl.ff11bc4bc36c40a4ce5d048ce8b289e3f32b74cd/lomond-0.1.12-py2.py3-none-any.whl/lomond/websocket.py", line 129, in __exit__ self.session.close() AttributeError: 'NoneType' object has no attribute 'close' Exception in thread m2m: Traceback (most recent call last): File "/data/data/com.termux/files/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/data/data/com.termux/files/home/.pex/install/dataplicity-0.4.30a0-py2-none-any.whl.1c3b34b697e73c7262620960a2cc191ffcde2c87/dataplicity-0.4.30a0-py2-none-any.whl/dataplicity/m2m/wsclient.py", line 270, in run self.on_close() AttributeError: 'WSClient' object has no attribute 'on_close'

Cannot see the device on the web interface

I have the agent service running and it's reporting no issues.
However, when I log onto the website I cannot see the device anywhere.

Is it locked to work only for RPi devices ?

The installer was unable to install Supervisor on your system.

    ___      _              _ _      _ _
   /   \__ _| |_ __ _ _ __ | (_) ___(_) |_ _   _
  / /\ / _` | __/ _` | '_ \| | |/ __| | __| | | |
 / /_// (_| | || (_| | |_) | | | (__| | |_| |_| |
/___,' \__,_|\__\__,_| .__/|_|_|\___|_|\__|\__, | v0.4.0
                     |_|                   |___/

Welcome to the Dataplicity Agent Installer

[[ Step 1 of 4 ]] downloading open source agent
[[ Step 2 of 4 ]] registering device

  +------------------------------------------------------+
  | The installer used a pre-existing serial number.     |
  | To register a new device, please delete this device  |
  | from the device list view.                           |
  | https://www.dataplicity.com/devices/                 |
  +------------------------------------------------------+

[[ Step 3 of 4 ]] configuring system
  The installer was unable to install Supervisor on your system.
  This may be temporary, you could try again.

Unable to install Supervisor
uname -a
Darwin LM-BNG-26500020 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64

Unable to connect to remote device after use of Stacer

Hello I am currently having problems with my dataplicity device its showing "Unable to connect to remote device" after running Stacer.

image

Problems even still continue after a reinstall attempt
image

After some testing of reinstalling the os I think the problem develops after using the Stacer app.

image

any way this can be fixed to make dataplicity a little more sturdy?

I notice that the dataplicity user is not loading from watching htop.

Thank you for your time.

Wormhole won't connect to a port

So, I have a SBC (linux computer) with a vitrual etho interface (eth0:0 and eth0). Before I made the new interface, everything worked fine. After making the interface, dataplicity wormhole will not forward the webserver I want (motioneye), but instead says "device not connected"
I can access the websites being hosted on both interfaces (pihole and motioneye) just fine over my local network, but cant over wormhole now.
here is some of my log...

[13/Feb/2019 02:26:53] agent    : m2m=wss://m2m.dataplicity.com/m2m/
[13/Feb/2019 02:26:53] agent    : api=https://api.dataplicity.com/
[13/Feb/2019 02:26:53] agent    : serial=********-*****-****-****-************
[13/Feb/2019 02:26:53] agent    : poll=60
[13/Feb/2019 02:26:54] m2m      : m2m identity changed ('**********************************************************')
[13/Feb/2019 02:26:55] pf       : IO Error when connecting, [Errno 111] Connection refused
[13/Feb/2019 02:26:59] pf       : IO Error when connecting, [Errno 111] Connection refused
[13/Feb/2019 02:27:03] pf       : IO Error when connecting, [Errno 111] Connection refused
[13/Feb/2019 02:27:07] pf       : IO Error when connecting, [Errno 111] Connection refused
[13/Feb/2019 02:27:12] pf       : IO Error when connecting, [Errno 111] Connection refused
[13/Feb/2019 02:27:16] pf       : IO Error when connecting, [Errno 111] Connection refused
[13/Feb/2019 02:27:20] pf       : IO Error when connecting, [Errno 111] Connection refused

dataplicity install agent fails.. on gentoo..

https://github.com/wildfoundry/dataplicity-agent git clone.....
python2.7 setup.py install && 3.4 , , 3.5 .3.6 ...
install Lomond agent .... likewise compile for python's on the system , URLIB3 vs urlib2 ...

http://gpo.zugaina.org/app-admin/supervisor as the apt-get -y install supervisor will fail.....
emerge app-admin/supervisor and done however the agent installer script wont probe for already installed setup... and just open the paths.

main : ----------------------------------------------------------------------
main : Sun May 27 15:26:22 2018
main : install started
main :
user : ___ _ _ _ _ _
user : / __ | | __ _ _ __ | () () | _ _
user : / /\ / | __/ _ | ' | | |/ __| | __| | | |
user : / /
// (
| | || (| | |) | | | (| | || || |
user : /
,' _,|__,| ./|||_||_|_, | v0.4.29
user : |
| |___/
user :
user : Welcome to the Dataplicity Agent Installer
check_clock : system time is out of sync
user :
user : +----------------------------------------------------------------------+
user : | The installer has detected your system clock may be wrong! |
user : | This may prevent secure downloads from working on your system. |
user : | If the install fails, please check your system clock, and try again. |
user : +----------------------------------------------------------------------+
user :
log_info : [LINUX]
log_info : distro=Gentoo Base System 2.4.1
log_info :
log_info : [UNAME]
log_info : system='Linux'
log_info : node='pi64'
log_info : release='4.14.31-v8-b36f4e9e1984+'
log_info : version='#1 SMP PREEMPT Sun Apr 1 14:15:34 BST 2018'
log_info : machine='aarch64'
log_info : processor=''
log_info :
log_info : [SETTINGS]
log_info : m2m_url=u'wss://m2m.dataplicity.com/m2m/'
log_info : api_url=u'https://api.dataplicity.com/'
log_info : dry_run=False
log_info : report_url=u'https://www.dataplicity.com/installer_event/'
log_info : device_url=u'https://www.dataplicity.com/devices/'
log_info : token=u'pkuib5c4'
log_info : time=1527175363.0754638
log_info : register_url=u'https://www.dataplicity.com/install/'
log_info : agent_download_url=u'https://github.com/wildfoundry/dataplicity-agent/releases/download/v0.4.29/dataplicity'
log_info : agent_version=u'v0.4.29'
log_info : interactive=True
log_info :
user :
show_step : ----------------------------------------------------------------------
user : [[ Step 1 of 4 ]] downloading open source agent
make_dir : /opt/dataplicity/agent/v0.4.29 (exists)
download : requesting https://github.com/wildfoundry/dataplicity-agent/releases/download/v0.4.29/dataplicity
download : content length is 609265 bytes
download : writing /opt/dataplicity/agent/v0.4.29/~dataplicity
download : 609265 bytes read
write_agent : renamed /opt/dataplicity/agent/v0.4.29/dataplicity
link : removing stale link
link : created /opt/dataplicity/agent/dataplicity
make_executable : /opt/dataplicity/agent/v0.4.29/dataplicity
log_time : 1.4s elapsed
show_step : ----------------------------------------------------------------------
user : [[ Step 2 of 4 ]] registering device
register_device : serial exists in /opt/dataplicity/tuxtunnel/serial (a29bbb2f-31fb-46b5-9bab-d9533306c947)
get_cpu_info : cpu architecture=8
get_cpu_info : cpu variant=0x0
get_cpu_info : cpu part=0xd03
get_cpu_info : cpu revision=4
register_device : device name is pi64
register_device : posting to https://www.dataplicity.com/install/
register_device : response code=200
user :
user : +------------------------------------------------------+
user : | The installer used a pre-existing serial number. |
user : | To register a new device, please delete this device |
user : | from the device list view. |
user : | https://www.dataplicity.com/devices/ |
user : +------------------------------------------------------+
user :
log_time : 0.5s elapsed
show_step : ----------------------------------------------------------------------
user : [[ Step 3 of 4 ]] configuring system
create_user : creating user
create_user : user exists
apt_update : Updating apt
run_system : run 'apt-get -y update'
run_system : error running "apt-get -y update" ([Errno 2] No such file or directory)
run : Package database update failed, continuing with existing package database...
apt_get : installing package supervisor
run_system : run 'apt-get -y install supervisor'
run_system : error running "apt-get -y install supervisor" ([Errno 2] No such file or directory)
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=u'fail' reason='Unable to install Supervisor'
build_report : fail (Unable to install Supervisor)
build_report : 2s elapsed (total)
get_cpu_info : cpu architecture=8
get_cpu_info : cpu variant=0x0
get_cpu_info : cpu part=0xd03
get_cpu_info : cpu revision=4
report : {u'status': u'fail', u'step': 3, u'data': '{"start_time": "2018-05-27T15:26:22.722266", "reason": "Unable to install Supervisor", "os": {"system": "Linux", "machine": "aarch64", "version": "#1 SMP PREEMPT Sun Apr 1 14:15:34 BST 2018", "release": "4.14.31-v8-b36f4e9e1984+", "processor": "", "distro": "Gentoo Base System 2.4.1 "}, "cpu": {"cpu revision": "4", "cpu architecture": "8", "cpu part": "0xd03", "cpu variant": "0x0"}, "elapsed": 2}', u'token': u'pkuib5c4'}
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 [email protected] for help, or visit https://docs.dataplicity.com/
main : leaving main
entry_point : return=-2

is apt installed nope this is GENTOO , and yes emerge -av app-admin/supervisor is installed.
https://cloudsmith.io/package/ns/necrose99/repos/ARM-64/packages/detail/supervisor-333-1xpak/

Release of 0.4.21 three hours ago caused the install script to stop working

Configuring a bunch of Pis, in the middle the script stopped installing (URL 404'd out). I copied the install script to https://pastebin.com/raw/[redacted] and changed to 0.4.21a3 and it installed fine.

Note--will this workaround cause issues or is 0.4.21a3 effectively the same? (I think so, but I almost never use github.)

Pastebin had my token on it, I changed the line:

"agent_download_url": "https://github.com/wildfoundry/dataplicity-agent/releases/download/v0.4.21a3/dataplicity",

Question: Possible to figure out Wormhole URL?

Hi,

I'm writing a plugin for Christmas lights sequencing. Users will usually have Dataplicity Agent installed & I want to automate getting the Wormhole URL to enable my plugin to recieve a webhook.

Is it possible t get that information from the PI either via the agent, API or rpc call?

I did review the agent client (api) and the Dataplicity API but to no avail. I even tried looking in dev tools to see how it gets loaded into the ui but couldn't work it out.

Many Thanks

Ben

Dataplicity on Rasprian Stratch not working

Dataplicity keep being killed every 25 second by supervisor service:
supervisor version 3.3.1
Dataplicity 0.4.29 i think (latest one)

dataplicity@b827eb3c22a1:/$ tail /var/log/syslog -n1000 | grep supervi
Jan 14 20:22:35 b827eb3c22a1 supervisord[405]: 2018-01-14 20:22:35,964 INFO waiting for tuxtunnel to die
Jan 14 20:22:35 b827eb3c22a1 supervisorctl[1612]: Shut down
Jan 14 20:22:35 b827eb3c22a1 supervisord[405]: 2018-01-14 20:22:35,969 INFO stopped: tuxtunnel (terminated by SIGTERM)
Jan 14 20:22:45 b827eb3c22a1 supervisord[1671]: 2018-01-14 20:22:45,519 CRIT Supervisor running as root (no user in config file)
Jan 14 20:22:45 b827eb3c22a1 supervisord[1671]: 2018-01-14 20:22:45,519 WARN For [program:tuxtunnel], redirect_stderr=true but stderr_logfile has also been set to a filename, the filename has been ignored
Jan 14 20:22:45 b827eb3c22a1 supervisord[1671]: 2018-01-14 20:22:45,519 INFO Included extra file "/etc/supervisor/conf.d/tuxtunnel.conf" during parsing
Jan 14 20:22:45 b827eb3c22a1 supervisord[1671]: 2018-01-14 20:22:45,631 INFO RPC interface 'supervisor' initialized
Jan 14 20:22:45 b827eb3c22a1 supervisord[1671]: 2018-01-14 20:22:45,633 INFO supervisord started with pid 1671
Jan 14 20:22:46 b827eb3c22a1 supervisord[1671]: 2018-01-14 20:22:46,640 INFO spawned: 'tuxtunnel' with pid 1679
Jan 14 20:22:47 b827eb3c22a1 supervisord[1671]: 2018-01-14 20:22:47,644 INFO success: tuxtunnel entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

NGINX returning 503 when using any page that uses autoindexing without index.html

NOTE, I did create a conversation in the dataplicity app, I was recommended to "hard refresh" my browser. Did that and even went so far to rebuild server from scratch. Even then did it 503. It isn't doing it right now, but when Iwas am getting 503 through dataplicity, remote.it was working just fine. I am not sure if the was because of my slow butt network or an issue on the dataplicity side since remote.it worked. The issue only seems to happen on sub pages that have no index, but autoindex instead (file listings). Also, https://7fb986c6.ngrok.io/ handles the site fine.

Here is the site
Steps to reproduce:

  • Install NGINX
  • Configure a reverse proxy and/or a page with autoindexing on
  • Profit, these return 503 SERVICE TEMPORARILY UNAVAILABLE.

My NGINX config:

 server {
     listen 80;
     server_name www.loghomeserv.com;
     root /data/www/;
     location / {
      # root /data/www/;
       index index.html;
     }
     location /photos {
       auth_basic "Requires Login!";
       auth_basic_user_file /data/auth/photos.auth;
       alias /data/photos;
       autoindex on;
     }
     location /files {
       auth_basic "Requires Login!";
       auth_basic_user_file /data/auth/files.auth;
       alias /data/storage;
       autoindex on;
     }

     location /pihole/ { 
       proxy_pass http://localhost:81/admin/;
     }
     location /82 { #port 82
       proxy_pass http://localhost:82/;
     }
   }

And my index.html:

<html>
    <head>
        <title>Home</title>
	<link rel='shortcut icon' type='image/x-icon' href='/favicon.ico' />
    </head>
</html>
<h1 style="text-align: center;"><strong>Home</strong></h1>
<hr />
<p style="text-align: center;"><a href="/files" target="_blank" rel="noopener">Files</a></p>
<p style="text-align: center;"><a href="/photos">Photos</a></p>
<p style="text-align: center;"><a href="/pihole/" target="_blank" rel="noopener">Pi-Hole Portal</a></p>
<p style="text-align: center;"><a href="/82/">Port 82</a></p>
<p style="text-align: center;">&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<hr />
<p style="text-align: left;"><a href="https://cityfied-tapir-1469.dataplicity.io/">Dataplicity URL&nbsp;</a></p>
<hr />
<p>Built:10:08:28 PM 05/13/2019</p>
<p><strong>Maintained by [email protected]</strong>.&nbsp;</p>

Installation failed: [SSL: CERTIFICATE_VERIFY_FAILED]

Hi all,

I have problem installing Dataplicity Agent on RPi fresh Raspberry Pi OS Buster. The issue is in downloading https://github.com/wildfoundry/dataplicity-agent/releases/download/v0.4.34/dataplicity. See installation log at the bottom. I went through Dataplicity Troubleshooting, tried to add dataplicity certificate with no luck.
Time is correct.

I realised that curl returns the error, however wget works fine.

Any help would be appreciated.

Regards,
Tomas

curl output:

root@00000000284129f1:~# curl https://github.com/wildfoundry/dataplicity-agent/releases/download/v0.4.34/dataplicity
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

wget output:

root@00000000284129f1:~# wget https://github.com/wildfoundry/dataplicity-agent/releases/download/v0.4.34/dataplicity
--2021-04-07 12:24:16--  https://github.com/wildfoundry/dataplicity-agent/releases/download/v0.4.34/dataplicity
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-releases.githubusercontent.com/64314952/cc6d1580-44d3-11e9-8ae4-640fe121d2d0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210407%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210407T112416Z&X-Amz-Expires=300&X-Amz-Signature=113362daa6cbdc18df47d64d773d9b0d34a7026c673884eea5258ab4afb89768&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=64314952&response-content-disposition=attachment%3B%20filename%3Ddataplicity&response-content-type=application%2Foctet-stream [following]
--2021-04-07 12:24:16--  https://github-releases.githubusercontent.com/64314952/cc6d1580-44d3-11e9-8ae4-640fe121d2d0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210407%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210407T112416Z&X-Amz-Expires=300&X-Amz-Signature=113362daa6cbdc18df47d64d773d9b0d34a7026c673884eea5258ab4afb89768&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=64314952&response-content-disposition=attachment%3B%20filename%3Ddataplicity&response-content-type=application%2Foctet-stream
Resolving github-releases.githubusercontent.com (github-releases.githubusercontent.com)... 185.199.110.154, 185.199.111.154, 185.199.108.154, ...
Connecting to github-releases.githubusercontent.com (github-releases.githubusercontent.com)|185.199.110.154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 618322 (604K) [application/octet-stream]
Saving to: ‘dataplicity’

dataplicity                                         100%[==================================================================================================================>] 603.83K  1.44MB/s    in 0.4s

2021-04-07 12:24:17 (1.44 MB/s) - ‘dataplicity’ saved [618322/618322]

/var/log/dpinstall.log

main            : Wed Apr  7 11:42:43 2021
main            : install started
main            :
user            :     ___      _              _ _      _ _
user            :    /   \__ _| |_ __ _ _ __ | (_) ___(_) |_ _   _
user            :   / /\ / _` | __/ _` | '_ \| | |/ __| | __| | | |
user            :  / /_// (_| | || (_| | |_) | | | (__| | |_| |_| |
user            : /___,' \__,_|\__\__,_| .__/|_|_|\___|_|\__|\__, | v0.4.34
user            :                      |_|                   |___/
user            :
user            : Welcome to the Dataplicity Agent Installer
log_info        : [PYTHON]
log_info        : sys.executable='/usr/bin/python'
log_info        : sys.version='2.7.16 (default, Oct 10 2019, 22:02:15) \n[GCC 8.3.0]'
log_info        :
log_info        : [LINUX]
log_info        : distro=u'Raspbian GNU/Linux 10 (buster)'
log_info        :
log_info        : [UNAME]
log_info        : system='Linux'
log_info        : node='00000000284129f1'
log_info        : release='5.10.17-v7+'
log_info        : version='#1403 SMP Mon Feb 22 11:29:51 GMT 2021'
log_info        : machine='armv7l'
log_info        : processor=''
log_info        :
log_info        : [SETTINGS]
log_info        : m2m_url=u'wss://m2m.dataplicity.com/m2m/'
log_info        : api_url=u'https://api.dataplicity.com/'
log_info        : dry_run=False
log_info        : report_url=u'https://www.dataplicity.com/installer_event/'
log_info        : device_url=u'https://www.dataplicity.com/devices/'
log_info        : token=u'07z9tod0'
log_info        : time=1617795762.070826
log_info        : register_url=u'https://www.dataplicity.com/install/'
log_info        : agent_download_url=u'https://github.com/wildfoundry/dataplicity-agent/releases/download/v0.4.34/dataplicity'
log_info        : agent_version=u'v0.4.34'
log_info        : interactive=True
log_info        :
user            :
show_step       : ----------------------------------------------------------------------
user            : [[ Step 1 of 4 ]] downloading open source agent
make_dir        : /opt/dataplicity/agent/v0.4.34 (exists)
download        : requesting https://github.com/wildfoundry/dataplicity-agent/releases/download/v0.4.34/dataplicity
report          : status=u'crash' reason='<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)>'
build_report    : crash (<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)>)
build_report    : 0s elapsed (total)
get_cpu_info    : cpu architecture=7
get_cpu_info    : cpu variant=0x0
get_cpu_info    : cpu part=0xd03
get_cpu_info    : cpu revision=4
get_cpu_info    : revision=a020d3
report          : {u'status': u'crash', u'step': 1, u'data': '{"start_time": "2021-04-07T11:42:43.003575", "reason": "<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)>"$
send_report     : sending install report to https://www.dataplicity.com/installer_event/
log_exception   : error sending report
send_report     : sending install report to https://www.dataplicity.com/installer_event/
log_exception   : error sending report
log_exception   : Traceback (most recent call last):
log_exception   :   File "<stdin>", line 783, in send_report
log_exception   :   File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
log_exception   :     return opener.open(url, data, timeout)
log_exception   :   File "/usr/lib/python2.7/urllib2.py", line 429, in open
log_exception   :     response = self._open(req, data)
log_exception   :   File "/usr/lib/python2.7/urllib2.py", line 447, in _open
log_exception   :     '_open', req)
log_exception   :   File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
log_exception   :     result = func(*args)
log_exception   :   File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open
log_exception   :     context=self._context)
log_exception   :   File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
log_exception   :     raise URLError(err)
log_exception   : URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)>
log_exception   :
log_exception   : install failed (<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)>)
log_exception   : Traceback (most recent call last):
log_exception   :   File "<stdin>", line 230, in main
log_exception   :   File "<stdin>", line 289, in run
log_exception   :   File "<stdin>", line 461, in write_agent
log_exception   :   File "<stdin>", line 408, in download
log_exception   :   File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
log_exception   :     return opener.open(url, data, timeout)
log_exception   :   File "/usr/lib/python2.7/urllib2.py", line 429, in open
log_exception   :     response = self._open(req, data)
log_exception   :   File "/usr/lib/python2.7/urllib2.py", line 447, in _open
log_exception   :     '_open', req)
log_exception   :   File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
log_exception   :     result = func(*args)
log_exception   :   File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open
log_exception   :     context=self._context)
log_exception   :   File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
log_exception   :     raise URLError(err)
log_exception   : URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)>
log_exception   :
user            :
user            : The installer encountered an error.
user            : See file /var/log/dpinstall.log for details.
user            : Email [email protected] for help, or visit https://docs.dataplicity.com/
main            : leaving main
entry_point     : return=-3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.