×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

New All Sky camera management software: indi-allsky

  • Posts: 83
  • Thank you received: 4
I already use the SNCR option with Maximum neutral. The df output:
Dateisystem      1K-Blöcke     Benutzt   Verfügbar Verw% Eingehängt auf
udev               3957356           0     3957356    0% /dev
tmpfs               797788       12456      785332    2% /run
/dev/sda2        106377928    81302296    19625700   81% /
tmpfs              3988924          88     3988836    1% /dev/shm
tmpfs                 5120           4        5116    1% /run/lock
/dev/sda1           523248         152      523096    1% /boot/efi
tmpfs              3988924      505876     3483048   13% /tmp
/dev/sdb1       1921724676   430857688  1490850604   23% /srv/dev-disk-by-label-SSData
disks          36960024576 20394953216 16565071360   56% /disks
tmpfs               797784           0      797784    0% /run/user/501
tmpfs               797784           0      797784    0% /run/user/0

but after this mornings git pull, I get a new error with gunicorn:
Mai 12 10:21:11 openmediavault gunicorn[2679441]: [ERROR] MainProcess app.log_exception() #1744: Exception on /indi-allsky/ [GET]
                                                  Traceback (most recent call last):
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1964, in _exec_single_context
                                                      self.dialect.do_execute(
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 748, in do_execute
                                                      cursor.execute(statement, parameters)
                                                  sqlite3.OperationalError: no such column: camera.hidden
 
                                                  The above exception was the direct cause of the following exception:
 
                                                  Traceback (most recent call last):
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/app.py", line 2528, in wsgi_app
                                                      response = self.full_dispatch_request()
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/app.py", line 1825, in full_dispatch_request
                                                      rv = self.handle_user_exception(e)
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request
                                                      rv = self.dispatch_request()
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/app.py", line 1799, in dispatch_request
                                                      return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
                                                    File "/home/admin/indi-allsky/indi_allsky/flask/misc.py", line 22, in decorated_view
                                                      return current_app.ensure_sync(func)(*args, **kwargs)
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/flask/views.py", line 104, in view
                                                      self = view.view_class(  # type: ignore[attr-defined]
                                                    File "/home/admin/indi-allsky/indi_allsky/flask/base_views.py", line 147, in __init__
                                                      self.setupSession()
                                                    File "/home/admin/indi-allsky/indi_allsky/flask/base_views.py", line 161, in setupSession
                                                      self.camera = self.getCameraById(session['camera_id'])
                                                    File "/home/admin/indi-allsky/indi_allsky/flask/base_views.py", line 92, in getCameraById
                                                      camera = IndiAllSkyDbCameraTable.query\
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/orm/query.py", line 2752, in first
                                                      return self.limit(1)._iter().first()  # type: ignore
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/orm/query.py", line 2855, in _iter
                                                      result: Union[ScalarResult[_T], Result[_T]] = self.session.execute(
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 2229, in execute
                                                      return self._execute_internal(
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 2124, in _execute_internal
                                                      result: Result[Any] = compile_state_cls.orm_execute_statement(
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/orm/context.py", line 253, in orm_execute_statement
                                                      result = conn.execute(
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1414, in execute
                                                      return meth(
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/sql/elements.py", line 486, in _execute_on_connection
                                                      return connection._execute_clauseelement(
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1638, in _execute_clauseelement
                                                      ret = self._execute_context(
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1842, in _execute_context
                                                      return self._exec_single_context(
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1983, in _exec_single_context
                                                      self._handle_dbapi_exception(
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 2326, in _handle_dbapi_exception
                                                      raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1964, in _exec_single_context
                                                      self.dialect.do_execute(
                                                    File "/home/admin/indi-allsky/virtualenv/indi-allsky/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 748, in do_execute
                                                      cursor.execute(statement, parameters)
                                                  sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such column: camera.hidden
                                                  [SQL: SELECT camera.id AS camera_id, camera.uuid AS camera_uuid, camera.name AS camera_name, camera.driver AS camera_driver, camera."friendlyName" AS "camera_friendlyName", camera."createDate" AS "camera_createDate", camera."connectDat>
                                                  FROM camera
                                                  WHERE camera.id = ?
                                                   LIMIT ? OFFSET ?]
                                                  [parameters: (2, 1, 0)]
                                                  (Background on this error at: https://sqlalche.me/e/20/e3q8)
Mai 12 10:21:12 openmediavault gunicorn[2679441]: [ERROR] MainProcess app.log_exception() #1744: Exception on /indi-allsky/ [GET]
                                                  Traceback (most recent call last):
11 months 1 week ago #92787

Please Log in or Create an account to join the conversation.

  • Posts: 257
  • Thank you received: 66
I made a database schema change in the last update. Just re-run setup.sh and you should be all set.
11 months 1 week ago #92792

Please Log in or Create an account to join the conversation.

  • Posts: 83
  • Thank you received: 4
thanks, does work now.

CS, Markus
11 months 1 week ago #92795

Please Log in or Create an account to join the conversation.

  • Posts: 83
  • Thank you received: 4
I get this error after days of running setup.sh on my RPI Zero W:
**** Setup DB ****
./setup.sh: Zeile 1804: 3257 Ung▒ltiger Maschinenbefehl flask db init

CS, Markus
10 months 19 hours ago #93548

Please Log in or Create an account to join the conversation.

  • Posts: 257
  • Thank you received: 66

What version of Raspbian are you using?
10 months 17 hours ago #93550

Please Log in or Create an account to join the conversation.

  • Posts: 83
  • Thank you received: 4
pi@haustuer:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
pi@haustuer:~ $ getconf LONG_BIT
32
pi@haustuer:~ $ uname -a
Linux haustuer 6.1.21+ #1642 Mon Apr 3 17:19:14 BST 2023 armv6l GNU/Linux


CS, Markus
Last edit: 10 months 3 hours ago by Markus Kempf.
10 months 13 hours ago #93554

Please Log in or Create an account to join the conversation.

  • Posts: 257
  • Thank you received: 66

That does not make any sense to me. You might try deleting the virtualenv (folder ./virtualenv/indi-allsky/) and re-running setup.sh. Is it possible you modified the setup.sh?
9 months 4 weeks ago #93588

Please Log in or Create an account to join the conversation.

  • Posts: 83
  • Thank you received: 4
no changes whatsoever. The only thing I had to do was manually activating the virtual environment to install rawpy. That did not work automatically, although I recognzed it in the requirements_debian11_32_post.txt file. After that I left the virtualenv and started setup.sh. It runs for more than a day to install all the python packages...

CS, Markus
9 months 4 weeks ago #93589

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
Hi Aaron,

I'm setting up a second indi-allsky with an ASI 662 MC, unfortunately it reports :
Jun 22 01:01:25 allsky2 [INFO] MainProcess allsky._queueManualTasks() #2432: Checking for manually submitted tasks
Jun 22 01:01:25 allsky2 [INFO] MainProcess indi.getTelescopeRaDec() #840: Telescope Coord: RA 17.74, Dec 44.65
Jun 22 01:01:25 allsky2 [INFO] MainProcess indi.getCcdTemperature() #855: Sensor temperature: 31.0
Jun 22 01:01:24 allsky2 [INFO] MainProcess allsky.detectMoonMode() #1614: Moon altitude: -10:07:54.8, phase 13.1%
Jun 22 01:01:24 allsky2 [INFO] MainProcess allsky.detectNight() #1597: Sun altitude: -21:48:36.7
Jun 22 01:01:24 allsky2 [INFO] MainProcess allsky._startImageWorker() #780: Starting ImageWorker process 14
Jun 22 01:01:24 allsky2 [ERROR] MainProcess allsky._startImageWorker() #773: Image worker exception: 
Jun 22 01:01:24 allsky2 [ERROR] MainProcess allsky._startImageWorker() #773: Image worker exception: 
Jun 22 01:01:24 allsky2 [ERROR] MainProcess allsky._startImageWorker() #773: Image worker exception: cv2.error: OpenCV(4.7.0) /io/opencv/modules/core/src/matrix_iterator.cpp:71: error: (-215:Assertion failed) A.size == arrays[i0]->size in function 'init'
Jun 22 01:01:24 allsky2 [ERROR] MainProcess allsky._startImageWorker() #773: Image worker exception:     adu = cv2.mean(src=data_mono, mask=self._adu_mask)[0]
Jun 22 01:01:24 allsky2 [ERROR] MainProcess allsky._startImageWorker() #773: Image worker exception:   File "/home/pi/indi-allsky/indi_allsky/image.py", line 1946, in _calculate_8bit_adu
Jun 22 01:01:24 allsky2 [ERROR] MainProcess allsky._startImageWorker() #773: Image worker exception:     return self._calculate_8bit_adu(i_ref)
Jun 22 01:01:24 allsky2 [ERROR] MainProcess allsky._startImageWorker() #773: Image worker exception:   File "/home/pi/indi-allsky/indi_allsky/image.py", line 1932, in calculate_8bit_adu
Jun 22 01:01:24 allsky2 [ERROR] MainProcess allsky._startImageWorker() #773: Image worker exception:     adu = self.image_processor.calculate_8bit_adu()
Jun 22 01:01:24 allsky2 [ERROR] MainProcess allsky._startImageWorker() #773: Image worker exception:   File "/home/pi/indi-allsky/indi_allsky/image.py", line 459, in processImage
Jun 22 01:01:24 allsky2 [ERROR] MainProcess allsky._startImageWorker() #773: Image worker exception:     self.processImage(i_dict)
Jun 22 01:01:24 allsky2 [ERROR] MainProcess allsky._startImageWorker() #773: Image worker exception:   File "/home/pi/indi-allsky/indi_allsky/image.py", line 258, in saferun
Jun 22 01:01:24 allsky2 [ERROR] MainProcess allsky._startImageWorker() #773: Image worker exception:     self.saferun()
Jun 22 01:01:24 allsky2 [ERROR] MainProcess allsky._startImageWorker() #773: Image worker exception:   File "/home/pi/indi-allsky/indi_allsky/image.py", line 229, in run
Jun 22 01:01:24 allsky2 [ERROR] MainProcess allsky._startImageWorker() #773: Image worker exception: Traceback (most recent call last):
Jun 22 01:01:24 allsky2 [INFO] MainProcess allsky.run() #1048: Exposure state: OK
Jun 22 01:01:24 allsky2 [INFO] MainProcess allsky.run() #1047: Camera last ready: 4.1s

Any hint on this? Pulling from git didn't resolve the issue, rebuinding indi neither.
I even deleted the virtualenv dir to no avail.
Thank you for your help (and your wonderful piece of software...)

MS
9 months 4 weeks ago #93597

Please Log in or Create an account to join the conversation.

  • Posts: 257
  • Thank you received: 66

This usually happens when you define a mask where the dimensions of the mask do not match the image generated by the camera.
9 months 4 weeks ago #93599

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
Jeeez...you are right. I left the mask of the old camera...which has a different resolution.
Thank you!

MS
9 months 4 weeks ago #93603

Please Log in or Create an account to join the conversation.

  • Posts: 257
  • Thank you received: 66

No worries. The error is not obvious. I have updated the code to issue an ERROR log statement if there is a mismatch in the dimensions.
9 months 4 weeks ago #93610

Please Log in or Create an account to join the conversation.

Time to create page: 1.960 seconds