Code Monkey home page Code Monkey logo

Comments (4)

Vertikar avatar Vertikar commented on June 12, 2024

This looks similar to this issue - #927 but the config dumped from config.py looks ok
It's now crashed the GUI too, so I can't recover it easily

image

Here's the webapp logs:

Sep  5 11:23:48 rpi4 [INFO] MainProcess glogging.info() #264: Worker reloading: flask.json modified
Sep  5 11:23:49 rpi4 [INFO] MainProcess glogging.info() #264: Worker exiting (pid: 7678)
Sep  5 11:23:49 rpi4 gunicorn.indi_allsky.wsgi.error: [7859] Booting worker with pid: 7859
^B1Sep  5 12:07:47 rpi4 [WARNING] MainProcess forms.__init__() #2567: No images found in DB
Sep  5 12:08:18 rpi4 [INFO] MainProcess forms.__init__() #2587: Dates processed in 0.7206 s
Sep  5 12:08:26 rpi4 [ERROR] MainProcess app.log_exception() #1414: Exception on /indi-allsky/imageviewer [GET]#012Traceback (most recent call last):#012  File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/app.py", line 2190, in wsgi_app#012    response = self.full_dispatch_request()#012  File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/app.py", line 1486, in full_dispatch_request#012    rv = self.handle_user_exception(e)#012  File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/app.py", line 1484, in full_dispatch_request#012    rv = self.dispatch_request()#012  File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/app.py", line 1469, in dispatch_request#012    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)#012  File "/opt/indi-allsky/indi_allsky/flask/misc.py", line 22, in decorated_view#012    return app.ensure_sync(func)(*args, **kwargs)#012  File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/views.py", line 109, in view#012    return current_app.ensure_sync(self.dispatch_request)(**kwargs)#012  File "/opt/indi-allsky/indi_allsky/flask/base_views.py", line 189, in dispatch_request#012    context = self.get_context()#012  File "/opt/indi-allsky/indi_allsky/flask/views.py", line 1651, in get_context#012    context = super(ImageViewerView, self).get_context()#012  File "/opt/indi-allsky/indi_allsky/flask/base_views.py", line 195, in get_context#012    'indi_allsky_status' : self.get_indi_allsky_status(),#012  File "/opt/indi-allsky/indi_allsky/flask/base_views.py", line 264, in get_indi_allsky_status#012    obs.lon = math.radians(self.camera.longitude)#012TypeError: must be real number, not NoneType
Sep  5 12:08:28 rpi4 [ERROR] MainProcess app.log_exception() #1414: Exception on /indi-allsky/ [GET]#012Traceback (most recent call last):#012  File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/app.py", line 2190, in wsgi_app#012    response = self.full_dispatch_request()#012  File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/app.py", line 1486, in full_dispatch_request#012    rv = self.handle_user_exception(e)#012  File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/app.py", line 1484, in full_dispatch_request#012    rv = self.dispatch_request()#012  File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/app.py", line 1469, in dispatch_request#012    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)#012  File "/opt/indi-allsky/indi_allsky/flask/misc.py", line 22, in decorated_view#012    return app.ensure_sync(func)(*args, **kwargs)#012  File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/views.py", line 109, in view#012    return current_app.ensure_sync(self.dispatch_request)(**kwargs)#012  File "/opt/indi-allsky/indi_allsky/flask/base_views.py", line 189, in dispatch_request#012    context = self.get_context()#012  File "/opt/indi-allsky/indi_allsky/flask/views.py", line 102, in get_context#012    context = super(IndexView, self).get_context()#012  File "/opt/indi-allsky/indi_allsky/flask/base_views.py", line 195, in get_context#012    'indi_allsky_status' : self.get_indi_allsky_status(),#012  File "/opt/indi-allsky/indi_allsky/flask/base_views.py", line 264, in get_indi_allsky_status#012    obs.lon = math.radians(self.camera.longitude)#012TypeError: must be real number, not NoneType
Sep  5 12:08:31 rpi4 [ERROR] MainProcess app.log_exception() #1414: Exception on /indi-allsky/ [GET]#012Traceback (most recent call last):#012  File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/app.py", line 2190, in wsgi_app#012    response = self.full_dispatch_request()#012  File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/app.py", line 1486, in full_dispatch_request#012    rv = self.handle_user_exception(e)#012  File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/app.py", line 1484, in full_dispatch_request#012    rv = self.dispatch_request()#012  File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/app.py", line 1469, in dispatch_request#012    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)#012  File "/opt/indi-allsky/indi_allsky/flask/misc.py", line 22, in decorated_view#012    return app.ensure_sync(func)(*args, **kwargs)#012  File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/views.py", line 109, in view#012    return current_app.ensure_sync(self.dispatch_request)(**kwargs)#012  File "/opt/indi-allsky/indi_allsky/flask/base_views.py", line 189, in dispatch_request#012    context = self.get_context()#012  File "/opt/indi-allsky/indi_allsky/flask/views.py", line 102, in get_context#012    context = super(IndexView, self).get_context()#012  File "/opt/indi-allsky/indi_allsky/flask/base_views.py", line 195, in get_context#012    'indi_allsky_status' : self.get_indi_allsky_status(),#012  File "/opt/indi-allsky/indi_allsky/flask/base_views.py", line 264, in get_indi_allsky_status#012    obs.lon = math.radians(self.camera.longitude)#012TypeError: must be real number, not NoneType


The capture thread is still trying though:

karl@rpi4:/opt/indi-allsky $ tail -f /var/log/indi-allsky/indi-allsky.log                                                                                                                                                                                                                               [7/1962]
Sep  5 12:29:25 rpi4 [INFO] Capture-1/MainThread capture.shoot() #1429: Taking -1.00000000 s exposure (gain 100)
Sep  5 12:29:25 rpi4 [INFO] Capture-1/MainThread libcamera.setCcdExposure() #235: image command: libcamera-still --immediate --nopreview --raw --denoise off --gain 100 --shutter -1000000 --metadata /tmp/tmp3b4po3o4.json --metadata-format json --awbgains 1,1 --output /tmp/tmpqgy_xfzl.dng
Sep  5 12:29:26 rpi4 [INFO] Capture-1/MainThread capture.saferun() #414: Total time since last exposure 15.0364 s
Sep  5 12:29:26 rpi4 [INFO] MainProcess/MainThread allsky._queueManualTasks() #1115: Checking for manually submitted tasks
Sep  5 12:29:26 rpi4 [ERROR] Capture-1/MainThread libcamera._processMetadata() #329: libcamera sensor temperature key not found
Sep  5 12:29:26 rpi4 [INFO] Capture-1/MainThread capture.saferun() #326: Exposure received in 0.7947 s (1.7947)
Sep  5 12:29:30 rpi4 [INFO] Capture-1/MainThread capture.saferun() #207: Camera last ready: 3.6s
Sep  5 12:29:30 rpi4 [INFO] Capture-1/MainThread capture.saferun() #208: Exposure state: READY
Sep  5 12:29:30 rpi4 [INFO] Capture-1/MainThread capture.detectNight() #1264: Sun altitude: -30:34:55.3
Sep  5 12:29:30 rpi4 [INFO] Capture-1/MainThread capture.detectMoonMode() #1281: Moon altitude: -5:30:12.3, phase 68.8%
Sep  5 12:29:39 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception: Traceback (most recent call last):
Sep  5 12:29:39 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:   File "/opt/indi-allsky/indi_allsky/image.py", line 241, in run
Sep  5 12:29:39 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:     self.saferun()
Sep  5 12:29:39 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:   File "/opt/indi-allsky/indi_allsky/image.py", line 270, in saferun
Sep  5 12:29:39 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:     self.processImage(i_dict)
Sep  5 12:29:39 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:   File "/opt/indi-allsky/indi_allsky/image.py", line 329, in processImage
Sep  5 12:29:39 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:     camera = IndiAllSkyDbCameraTable.query\
Sep  5 12:29:39 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:   File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/orm/query.py", line 2869, in one
Sep  5 12:29:39 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:     return self._iter().one()
Sep  5 12:29:39 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:   File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/engine/result.py", line 1510, in one
Sep  5 12:29:39 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:     return self._only_one_row(
Sep  5 12:29:39 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:   File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/engine/result.py", line 562, in _only_one_row
Sep  5 12:29:39 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:     raise exc.NoResultFound(
Sep  5 12:29:39 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception: sqlalchemy.exc.NoResultFound: No row was found when one was required
Sep  5 12:29:39 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:
Sep  5 12:29:39 rpi4 [INFO] MainProcess/MainThread allsky._startImageWorker() #355: Starting Image-134 worker
Sep  5 12:29:39 rpi4 [WARNING] MainProcess/MainThread image._load_detection_mask() #3570: No detection mask defined
Sep  5 12:29:39 rpi4 [INFO] MainProcess/MainThread allsky._queueManualTasks() #1115: Checking for manually submitted tasks
Sep  5 12:29:40 rpi4 [INFO] Capture-1/MainThread capture.shoot() #1429: Taking -1.00000000 s exposure (gain 100)
Sep  5 12:29:40 rpi4 [INFO] Capture-1/MainThread libcamera.setCcdExposure() #235: image command: libcamera-still --immediate --nopreview --raw --denoise off --gain 100 --shutter -1000000 --metadata /tmp/tmpou9l4skj.json --metadata-format json --awbgains 1,1 --output /tmp/tmpymbn06co.dng
Sep  5 12:29:41 rpi4 [INFO] Capture-1/MainThread capture.saferun() #414: Total time since last exposure 15.0026 s
Sep  5 12:29:41 rpi4 [INFO] Capture-1/MainThread capture.saferun() #207: Camera last ready: 14.6s
Sep  5 12:29:41 rpi4 [INFO] Capture-1/MainThread capture.saferun() #208: Exposure state: BUSY
Sep  5 12:29:41 rpi4 [INFO] Capture-1/MainThread capture.detectNight() #1264: Sun altitude: -30:36:51.1
Sep  5 12:29:41 rpi4 [INFO] Capture-1/MainThread capture.detectMoonMode() #1281: Moon altitude: -5:27:38.9, phase 68.8%
Sep  5 12:29:41 rpi4 [ERROR] Capture-1/MainThread libcamera._processMetadata() #329: libcamera sensor temperature key not found
Sep  5 12:29:41 rpi4 [INFO] Capture-1/MainThread capture.saferun() #326: Exposure received in 0.8832 s (1.8832)
Sep  5 12:29:52 rpi4 [INFO] Capture-1/MainThread capture.saferun() #207: Camera last ready: 10.5s
Sep  5 12:29:52 rpi4 [INFO] Capture-1/MainThread capture.saferun() #208: Exposure state: READY
Sep  5 12:29:52 rpi4 [INFO] Capture-1/MainThread capture.detectNight() #1264: Sun altitude: -30:38:47.1
Sep  5 12:29:52 rpi4 [INFO] Capture-1/MainThread capture.detectMoonMode() #1281: Moon altitude: -5:25:03.4, phase 68.8%
Sep  5 12:29:52 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception: Traceback (most recent call last):
Sep  5 12:29:52 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:   File "/opt/indi-allsky/indi_allsky/image.py", line 241, in run
Sep  5 12:29:52 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:     self.saferun()
Sep  5 12:29:52 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:   File "/opt/indi-allsky/indi_allsky/image.py", line 270, in saferun
Sep  5 12:29:52 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:     self.processImage(i_dict)
Sep  5 12:29:52 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:   File "/opt/indi-allsky/indi_allsky/image.py", line 329, in processImage
Sep  5 12:29:52 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:     camera = IndiAllSkyDbCameraTable.query\
Sep  5 12:29:52 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:   File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/orm/query.py", line 2869, in one
Sep  5 12:29:52 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:     return self._iter().one()
Sep  5 12:29:52 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:   File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/engine/result.py", line 1510, in one
Sep  5 12:29:52 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:     return self._only_one_row(
Sep  5 12:29:52 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:   File "/opt/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/engine/result.py", line 562, in _only_one_row
Sep  5 12:29:52 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:     raise exc.NoResultFound(
Sep  5 12:29:52 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception: sqlalchemy.exc.NoResultFound: No row was found when one was required
Sep  5 12:29:52 rpi4 [ERROR] MainProcess/MainThread allsky._startImageWorker() #348: Image worker exception:
Sep  5 12:29:52 rpi4 [INFO] MainProcess/MainThread allsky._startImageWorker() #355: Starting Image-135 worker
Sep  5 12:29:52 rpi4 [WARNING] MainProcess/MainThread image._load_detection_mask() #3570: No detection mask defined




from indi-allsky.

Vertikar avatar Vertikar commented on June 12, 2024

Actually, I think this might be my fault, I don't think I ran setup.sh after pulling the latest version.
Happy to close it off as this is an unusual issue that most people wouldn't run into

from indi-allsky.

aaronwmorris avatar aaronwmorris commented on June 12, 2024

I have seen this happen with a few other people. It really should not be possible, but obviously it is. I think it is just a temporary issue when certain new features are deployed.

from indi-allsky.

Vertikar avatar Vertikar commented on June 12, 2024

Definitely seems to be a temporary issue, it has sorted itself out now.

from indi-allsky.

Related Issues (20)

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.