by Gordon » Wed Jul 31, 2019 12:04 pm
I’m sure glad someone raised this issue here… I am another one who was confounded when trying to update.
I had not used my system in at least four months due to a move, and not done updates before that for a time since it was working fine. At the new house I got it up and running in short order yesterday. But then I tired to do the update and bricked the app with little clue why. So I restored my RasPi image and rebooted and it worked again, but only until I tried to update again.
Then I found this forum thread and figured out my system was too old to update via the web-app.
Its a bit of a project for me because I run the RasPi on WiFi and access it remotely, so I had to disconnect the wiring at the alarm panel and set up a workstation with keyboard and monitor and the RasPi. I started to set up PiBakery on my Win PC but with my very slow DSL I was looking at hours to download or maybe hours to compile, so I got the image file and logged on via shell to set up the WiFi manually, and restored the sql database as described above. So, all-in-all it was about eight hours to figure out the problem and get it updated but it seems OK now.
I don’t know if this is an issue or not but the App log shows (in part):
NoDeviceError: ('Error opening device at localhost:10000', error(111, 'Connection refused'))
2019-07-31 12:17:21,376 ERROR: Device not found: Error opening device at localhost:10000 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:545]
2019-07-31 12:17:26,385 INFO: Attempting to reconnect to the AlarmDecoder [in /opt/alarmdecoder-webapp/ad2web/decoder.py:541]
2019-07-31 12:17:26,633 WARNING: Open failed: Error opening device at localhost:10000 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:305]
Traceback (most recent call last):
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 302, in open
self.device.open(baudrate=self._device_baudrate, no_reader_thread=no_reader_thread)
File "/opt/alarmdecoder/alarmdecoder/decoder.py", line 277, in open
no_reader_thread=no_reader_thread)
File "/opt/alarmdecoder/alarmdecoder/devices/socket_device.py", line 208, in open
raise NoDeviceError('Error opening device at {0}:{1}'.format(self._host, self._port), err)
NoDeviceError: ('Error opening device at localhost:10000', error(111, 'Connection refused'))
2019-07-31 12:17:26,663 ERROR: Device not found: Error opening device at localhost:10000 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:545]
2019-07-31 12:38:22,991 INFO: AlarmDecoder Webapp booting up - v0.8.4-20-g5c16ef5 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:230]