Unable to delete devices from web UI

shawn8088 years ago

I can not delete a device once it's been created from web ui after the new update. something wrong with the database? not sure whats happening.

Anton Tananaev8 years ago

What the error message?

shawn8088 years ago

I really doubt this traccar and think its something with mysql on my end. I am still checking.

shawn8088 years ago

Okay over all some wierd things happened like when i was not able to delete devices from WEB UI. But after installing traccar again that problem went away. But now the problem is the status not reporting if a device is online or offline. I am only using two devices. I installed traccar a few times. I optimized mysql and other parts of the server. But only issue which is strange is the when a device goes offline it won;'t say on traccar web view. it shows the last update but it still shows "Online" for the status.

Anton Tananaev8 years ago

What does it show? Please provide as much details as you can, not just "it doesn't work".

shawn8088 years ago

When you add a device for example a client from the iOS app. And later if you want to delete the user, the web ui is not deleting the user. the pop up comes up but the user doesn't get deleted . i am not using traccar for a big operation currently but getting the hang of it . these are the logs above. This is mysql settting below too.

So to summarize:
can not delete a user once created from web view. Clicking the delete is not deleting a user/device

[mysqld]
performance-schema=1
default-storage-engine=InnoDB
innodb_file_per_table=1
max_allowed_packet=268435456
open_files_limit=10000
query_cache_type=0
key_buffer_size=16M
max_connections=50
max_tmp_tables=1
table_open_cache=1024
local-infile=0
query_cache_limit=1M
thread_cache_size=4
query_cache_size=64M
join_buffer_size=1M
innodb_use_native_aio=0
innodb_buffer_pool_instances=1
innodb_buffer_pool_size=400M
2017-04-15 14:54:52  INFO: Operating system name: Linux version: 2.6.32-042stab113.21 architecture: i386
2017-04-15 14:54:52  INFO: Java runtime name: OpenJDK Server VM vendor: Oracle Corporation version: 25.121-b13
2017-04-15 14:54:52  INFO: Memory limit heap: 910mb non-heap: 0mb
2017-04-15 14:54:52  INFO: Character encoding: UTF-8 charset: UTF-8
2017-04-15 14:54:52  INFO: Version: 3.11-SNAPSHOT
2017-04-15 14:54:56  INFO: Starting server...
2017-04-15 14:56:00  INFO: [78E47518] connected
2017-04-15 14:56:00 DEBUG: [78E47518: 5055 < 104.35.87.250] HEX: 474554202f3f69643d3239313530382674696d657374616d703d31343932323832353239266c61743d33342e313838333532266c6f6e3d2d3131382e3434373132322673706565643d302662656172696e673d3026616c7469747564653d3231342e35333926626174743d353720485454502f312e310d0a486f73743a206c6f6375732e61746f7a77732e636f6d3a353035350d0a4163636570743a202a2f2a0d0a4163636570742d4c616e67756167653a20656e2d75730d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174650d0a557365722d4167656e743a2054726163636172436c69656e742f342e302043464e6574776f726b2f3830382e332044617277696e2f31362e332e300d0a0d0a
...
2017-04-15 16:02:02 DEBUG: [4B9C1EFB: 5055 < 104.35.87.250] HEX: 474554202f3f69643d3836323038312674696d657374616d703d31343932323836353232266c61743d33342e313838343936266c6f6e3d2d3131382e3434373035372673706565643d312e38303737372662656172696e673d3239372e34323226616c7469747564653d3231392e37393726626174743d313620485454502f312e310d0a486f73743a206c6f6375732e61746f7a77732e636f6d3a353035350d0a4163636570743a202a2f2a0d0a4163636570742d4c616e67756167653a20656e2d75730d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174650d0a557365722d4167656e743a2054726163636172436c69656e742f342e302043464e6574776f726b2f3831312e342e31382044617277696e2f31362e352e300d0a0d0a
2017-04-15 16:02:02 DEBUG: [4B9C1EFB: 5055 > 104.35.87.250] HEX: 485454502f312e3120323030204f4b0d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-04-15 16:02:02  WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:74 < ...)
2017-04-15 16:02:02  INFO: [4B9C1EFB] id: 862081, time: 2017-04-15 16:02:02, lat: 34.18850, lon: -118.44706, speed: 1.8, course: 297.4
2017-04-15 16:02:33  INFO: [4B9C1EFB] disconnected
2017-04-15 16:15:19  INFO: Shutting down server...
2017-04-15 16:15:38  INFO: Operating system name: Linux version: 2.6.32-042stab113.21 architecture: i386
2017-04-15 16:15:38  INFO: Java runtime name: OpenJDK Server VM vendor: Oracle Corporation version: 25.121-b13
2017-04-15 16:15:38  INFO: Memory limit heap: 910mb non-heap: 0mb
2017-04-15 16:15:38  INFO: Character encoding: UTF-8 charset: UTF-8
2017-04-15 16:15:38  INFO: Version: 3.11-SNAPSHOT
2017-04-15 16:15:41  INFO: Starting server...
Anton Tananaev8 years ago

Are you sure you are using official release without any modifications to code or database queries?

shawn8088 years ago

Official yes, no modifications at all. I was really excited about the 3.11 version and so i deleted everything and installed 3.11 on my linux from scratch.

Anton Tananaev8 years ago

Can I have access to the server to try myself?

shawn8088 years ago

sent

Anton Tananaev8 years ago

OK, I think I misread your comment. I thought you can't remove users, but you can remove users. Their devices are not removed. It's intentional behaviour, so everything works as expected.

shawn8088 years ago

So that one device (sorry i was referring to devices) you see is not being removed. However the demo you have
http://demo4.traccar.org/

lets me create devices and delete that device. it's basically this issue and the ability that when a device goes offline it not reporting as offline. Something weird is happening with the web view since 3.11.

shawn8088 years ago

let me keep checking things. maybe something wrong with root files i have. or my browser is being weird. its not a big issue but its annoying because i am constantly creating test devices and need to delete them so i noticed it pretty quick.

Anton Tananaev8 years ago

You were talking about devices not users? How is demo server related to the problem? Can you please take your time and properly write steps to reproduce the issue on clean user account.

mb-stern8 years ago

I can not delete the devices since the update to 3.11.
I mark the device and press the delete button. Then the user interface hangs up. Afterwards, the browser must be closed and reopened to make it work again.
Changes to the device (e.g., device name) will work.
Also on http://demo4.traccar.org the device can not be deleted (user 'stef').
It does not work with either Edge or Internet Explorer.