Notifications
Clear all

10/18/2023 Map Stopped Working?
Visit this post for the fix

Unable to run 4.346

18 Posts
3 Users
0 Reactions
1,068 Views
(@k6jbn)
Active Member
Joined: 4 years ago
Posts: 10
Topic starter  

I have tried through the update link the webapp gives me and I saw there was a new download so I tried a new flash.  I'm just unable to get 4.346 to run due to some kind of connection error.  I've tried on a few different pis and a few different cards with nothing seeming to work.


   
Quote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

Hmm, would you mind trying again then download the logfile and posting it here? That may help me see what's happening. - Mark


   
ReplyQuote
(@k6jbn)
Active Member
Joined: 4 years ago
Posts: 10
Topic starter  

@markyharris sure thing - how do I download the logfile?


   
ReplyQuote
(@k6jbn)
Active Member
Joined: 4 years ago
Posts: 10
Topic starter  

I tried to edit my post and was unable.  I took a picture of what I am looking at - maybe this will help.

IMG 5293

 


   
ReplyQuote
(@willstarnes)
New Member
Joined: 4 years ago
Posts: 1
 

I had a look at the raspbian config (systemctl) for 346 and it appears the DHCP daemon was disabled. This caused several services to block and the pi to not properly boot.

To fix it, here are the steps i took, after booting the system and connecting the console to a monitor and keyboard.

Edit /etc/rc.local and comment out the sleep and python sectional scripts:

#sleep 30

#sudo python3 /NeoSectional/webapp.py &

#sudo python3 /NeoSectional/startup.py &

I booted the image and issued a :

$ sudo systemctl enable dhcpcd.service

Then, reboot the system and use BerryLan to configure the wifi. After that connectivity is established and setup, take the comment in /etc/rc.local out of webapp line and sleep, and reboot again. 

You should then be able to use the web interface and continue to configure the system. When confident all is well, you can remove the comment from the startup.py script. 

Hope that helps. 

 


   
ReplyQuote
(@k6jbn)
Active Member
Joined: 4 years ago
Posts: 10
Topic starter  

@willstarnes @markyharris Ok so I followed those instructions perfectly and was unable to get a change.  I reflashed and still had the same type of error.  I can connect to the pi remotely so it's not really a matter of it connecting to the router, I just get that string of errors in the script.


   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

Since you can access the RPi via the web interface, go to the 'Map Utilities' menu and download the logfile and post it here so I can read it. It would be best that you power down the RPi, then restart it. Let it stay on for a few minutes before you download the logfile. I would like to see what is happening on boot up. - Mark


   
ReplyQuote
(@k6jbn)
Active Member
Joined: 4 years ago
Posts: 10
Topic starter  

@markyharris I can access the pi via ssh but not the web app. The photo I posted is exactly what I’m seeing when directly connected to the pi. 

I’ve tried other pi’s and reflashing. 


   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

Ok, not sure why you are having this issue, but lets try to figure it out.

Start by connecting via ssh. and at the prompt, enter;

ping www.aviationweather.gov

You should get a response similar to;

PING e278.dscg.akamaiedge.net (23.55.248.15) 56(84) bytes of data.
64 bytes from a23-55-248-15.deploy.static.akamaitechnologies.com (23.55.248.15): icmp_seq=1 ttl=57 time=35.4 ms
64 bytes from a23-55-248-15.deploy.static.akamaitechnologies.com (23.55.248.15): icmp_seq=2 ttl=57 time=45.4 ms
64 bytes from a23-55-248-15.deploy.static.akamaitechnologies.com (23.55.248.15): icmp_seq=3 ttl=57 time=41.4 ms

If you get this response then enter the following at the prompt; (If you get an error, please post a pic of the screen).

cd /NeoSectional
sudo python3 webapp.py

This will start only the webapp.py script, which gives you web access via another computer's browser. You should see a bunch of log messages being displayed like this;

[I 210116 16:58:22 webapp:65] 

Startup of metar-v4.py Script, Version v4.360
[I 210116 16:58:22 webapp:66] Log Level Set To: 20
[I 210116 16:58:22 webapp:141] Settings and Flask Have Been Setup
[I 210116 16:58:22 webapp:1704] Internet Available
[I 210116 16:58:22 webapp:1713] Startup - Current RPI IP Address = 192.168.86.33

Let this run for a bit. If an error occurs, it will stop the script from running and display the error text (similar to what you posted earlier). If it is working correctly then screen output will pause until something is done via the web interface. It looks like in your case you would enter http://192.168.86.54:5000 into a web browser that is located on the same local network to bring up the web interface. 

Let me know what you see. Another screen image would be fine, if you can post it here. - Mark

 

 


   
ReplyQuote
(@k6jbn)
Active Member
Joined: 4 years ago
Posts: 10
Topic starter  

@markyharris

Ok I followed your instructions exactly and this is the result:

pi@LiveSectionalV4:~ $ ping www.aviationweather.gov
PING e278.dscg.akamaiedge.net (184.26.156.19) 56(84) bytes of data.
64 bytes from a184-26-156-19.deploy.static.akamaitechnologies.com (184.26.156.19): icmp_seq=1 ttl=55 time=19.7 ms
64 bytes from a184-26-156-19.deploy.static.akamaitechnologies.com (184.26.156.19): icmp_seq=2 ttl=55 time=20.6 ms
64 bytes from a184-26-156-19.deploy.static.akamaitechnologies.com (184.26.156.19): icmp_seq=3 ttl=55 time=27.6 ms
^C
--- e278.dscg.akamaiedge.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 5ms
rtt min/avg/max/mdev = 19.718/22.632/27.557/3.503 ms
pi@LiveSectionalV4:~ $ cd /NeoSectional
pi@LiveSectionalV4:/NeoSectional $ sudo python3 webapp.py
[I 210119 16:21:56 webapp:59]

Startup of metar-v4.py Script, Version v4.346
[I 210119 16:21:56 webapp:60] Log Level Set To: 20
[I 210119 16:21:56 webapp:122] Settings and Flask Have Been Setup
[I 210119 16:21:56 webapp:1430] Internet Available
[I 210119 16:21:56 webapp:1439] Startup - Current RPI IP Address = 192.168.1.251
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
raise err
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
conn = self._new_conn()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x745d0570>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='extreme-ip-lookup.com', port=443): Max retries exceeded with url: /json/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x745d0570>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "webapp.py", line 1447, in <module>
testupdate()
File "webapp.py", line 1393, in testupdate
if checkforupdate() == True:
File "webapp.py", line 1368, in checkforupdate
get_loc()
File "webapp.py", line 1411, in get_loc
r = requests.get(url_loc)
File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='extreme-ip-lookup.com', port=443): Max retries exceeded with url: /json/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x745d0570>: Failed to establish a new connection: [Errno 111] Connection refused'))


   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

Ok, lets try this. It seems you are well versed in using the cmd line, so this shouldn't be too troublesome. If you are not comfortable with what I have below, just let me know.

At the cmd line enter;

cd /NeoSectional
sudo nano -c webapp.py

Scroll down to around line 1660 (give or take) and look for the following;

def checkforupdate():
    global update_vers
    get_loc()
    print(loc) # debug

 

Once you find this, comment out 2 lines so it ends up looking like this;

def checkforupdate():
    global update_vers
    # get_loc()
    # print(loc) # debug

 

Then try it again. I tried playing with a location service but found it buggy and have commented it all out in my current versions. I hope this helps, please bounce back to let us know. - Mark


   
ReplyQuote
(@k6jbn)
Active Member
Joined: 4 years ago
Posts: 10
Topic starter  

@markyharris That was it!  Works like a charm now!

 

Seriously, thanks for the help - I'm not a complete idiot with navigating some things but definitely not "well versed." haha


   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

I'm glad that worked. I'm sorry that this was an issue. As you may have noticed this is very much a fluid project. And some of the things I do don't work well. It's a hassle but I've learned a lot from it. Thanks for your stick-to-it-iveness. - Mark


   
ReplyQuote
(@k6jbn)
Active Member
Joined: 4 years ago
Posts: 10
Topic starter  

@markyharris No need for apologies at all.  You've done more for this project than I ever have!

 

I also noticed that when I boot, the LEDs aren't coming on automatically anymore - I have to go into the webapp and manually select "turn map on".


   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

Double check the 'Auto Run' setting under Basic Settings. This should be set to 'Yes'. If this is set to 'Yes' and it still not auto running please let me know. - Mark


   
ReplyQuote
Page 1 / 2
Share: