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.

On Fri, Oct 6, 2023 at 4:18 PM Federico Capoano <f.capo...@openwisp.io>
wrote:

> What are the steps you are following to replicate this issue?
>
> Federico
>
> On Fri, 6 Oct 2023 at 07:04, Manukumar NM <manuku...@relysys.co.in> wrote:
>
>> 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.
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web, visit
>> https://groups.google.com/d/msgid/openwisp/2ffbd427-a4d1-4539-9afd-57840bff7e2bn%40googlegroups.com
>> <https://groups.google.com/d/msgid/openwisp/2ffbd427-a4d1-4539-9afd-57840bff7e2bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/openwisp/CAAGgX6%2Bkb7xnuzj1Qz20sDfN7nQgEXp4%2BDvVEnuhs4f6-JpnDQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/openwisp/CAAGgX6%2Bkb7xnuzj1Qz20sDfN7nQgEXp4%2BDvVEnuhs4f6-JpnDQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/CAG6AGHdAqM7N%2BX7z7aK3UmrdQh-TCMHV-5s8y-kBkdUb%3DatL6w%40mail.gmail.com.

Reply via email to