Error on server : reg

28 views
Skip to first unread message

Manukumar NM

unread,
Oct 6, 2023, 1:04:55 AM10/6/23
to OpenWISP
Greetings...
                     Dear team,
                                        I am getting error in openwisp2.log like I have attached below. Why this error coming and How can I solve this?

[ERROR 2023-10-06 04:57:53,702] module: log, process: 28977, thread: 139915739678208
Internal Server Error: /controller/checksum/ce9c1f7abadf4841b09461202586a61f/
Traceback (most recent call last):
  File "/opt/openwisp2/env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/openwisp2/env/lib/python3.6/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/openwisp2/env/lib/python3.6/site-packages/django/views/generic/base.py", line 70, in view
    return self.dispatch(request, *args, **kwargs)
  File "/opt/openwisp2/env/lib/python3.6/site-packages/django/views/generic/base.py", line 98, in dispatch
    return handler(request, *args, **kwargs)
  File "/opt/openwisp2/env/lib/python3.6/site-packages/openwisp_controller/config/controller/views.py", line 135, in get
    updated = self.update_last_ip(device, request)
  File "/opt/openwisp2/env/lib/python3.6/site-packages/openwisp_controller/config/controller/views.py", line 74, in update_last_ip
    result = update_last_ip(device, request)
  File "/opt/openwisp2/env/lib/python3.6/site-packages/openwisp_controller/config/utils.py", line 79, in update_last_ip
    device.save(update_fields=update_fields)
  File "/opt/openwisp2/env/lib/python3.6/site-packages/openwisp_controller/config/base/device.py", line 190, in save
    super().save(*args, **kwargs)
  File "/opt/openwisp2/env/lib/python3.6/site-packages/django/db/models/base.py", line 754, in save
    force_update=force_update, update_fields=update_fields)
  File "/opt/openwisp2/env/lib/python3.6/site-packages/django/db/models/base.py", line 792, in save_base
    force_update, using, update_fields,
  File "/opt/openwisp2/env/lib/python3.6/site-packages/django/db/models/base.py", line 877, in _save_table
    raise DatabaseError("Save with update_fields did not affect any rows.")
django.db.utils.DatabaseError: Save with update_fields did not affect any rows.
Error.png

Federico Capoano

unread,
Oct 6, 2023, 6:48:44 AM10/6/23
to open...@googlegroups.com
What are the steps you are following to replicate this issue?

Federico

--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/2ffbd427-a4d1-4539-9afd-57840bff7e2bn%40googlegroups.com.

Manukumar NM

unread,
Oct 6, 2023, 7:51:50 AM10/6/23
to open...@googlegroups.com
Everything was working fine in the openwisp2 server, I have connected multiple devices with multiple firmware versions with different organizations. All the data was coming and stored in the database. I tried adding one more device to the server's with a new organization. It got registered in the Org & it's able to send the data to the server except ping loss and uptime chart. I can see that in the openwisp2 dashboard also. 
But the old devices which are connected to the openwisp2, are showing all the charts with uptime and ping loss charts also appearing in the dashboard. They are working fine.  Only newly registered devices are not showing those two charts. Then I checked Openwisp2.log. Then it has this error. I am not able to replicate this error. 

Federico Capoano

unread,
Oct 6, 2023, 8:09:08 AM10/6/23
to open...@googlegroups.com
in order to investigate a bug we need to have information like version of the openwisp modules (eg: pip freeze | grep openwisp) and steps to replicate the issue.
Try upgrading to the latest master of openwisp-controller and monitoring to see if it goes away.

Federico
Reply all
Reply to author
Forward
0 new messages