What are the steps to reproduce the issue?
Using docker and docker compose
1. git clone https://github.com/mainflux/ui.git
2. cd ui
3. docker-compose -f docker/docker-compose.yml up
4. http://localhost //UI is up // logs are running in the background
5. Register/Sign In with emailId and Password.
6. Go to Things --> Devices --> Click Under Actions "+" Button.
7. New Row is added here we can give only Name rest other fields ie [Type , ID] are NOT editable
8. Give some name say "Device1" and click save ie "Tick" button
9. Now try to delete the Device1 , UI will prompt you for deletion press Submit
10. In UI added row disappears and also it prompts at Right bottom of the screen as "Failed to delete Thing Error:500 Internal server error"
From Backend logs :
mainflux-things | {"level":"warn","message":"Method remove_thing for token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTQyNTcxNzIsImlhdCI6MTU5NDIyMTE3MiwiaXNzIjoibWFpbmZsdXguYXV0aG4iLCJzdWIiOiJrbm93bG9raUBnbWFpbC5jb20iLCJ0eXBlIjowfQ.lpsQXA0Yx5L77x0CpVnVnqHGheQItRDMFXj1GjWR-h8 and thing ea3b9e5c-06a0-46cd-944a-2fcce37c8040 took 1.717998ms to complete with error: remove thing failed : remove thing from redis cache error : redis: nil.","ts":"2020-07-08T15:22:31.428751005Z"}
In what environment did you encounter the issue?
DigitalOcean droplet - Ubuntu Docker 5:19.03.1~3 on 18.04
I have the same problem
https://github.com/mainflux/ui/issues/100
I got this problem too.
The message is : Method remove_thing for token ******** and thing ********* took *****ms to complete with error: remove thing failed : remove thing from redis cache error : redis: nil.
@delvinggeeks Looks like it's not an UI bug. It was fixed here: https://github.com/mainflux/mainflux/pull/1220
Please, pull latest core services and try again. If it still don't work open an issue in mainflux/mainflux repo.
Hi @manuio . I have made a diff compare between ui docker-compose file and mainflux docker-compose file logically i dont see any major change. The above problem arises only with ui component but with mainflux either using cli or curl we can delete thing without any problem
@liuxianqin This problem should be resolved with the fix @manuio mentioned. Please confirm that it's fixed.
@delvinggeeks Can you try pulling the latest images and test again. If the problem persists, please reopen this issue.
Yes I have tested it. Issue has been fixed :+1:
@liuxianqin This problem should be resolved with the fix @manuio mentioned. Please confirm that it's fixed.
it worked after pulling some new lastest images, thanks.
Most helpful comment
Yes I have tested it. Issue has been fixed :+1: