Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to delete Thing/Device from UI, 500 Internal Server Error #102

Closed
delvinggeeks opened this issue Jul 10, 2020 · 7 comments
Closed

Comments

@delvinggeeks
Copy link

delvinggeeks commented Jul 10, 2020

  • What were you trying to achieve?
        Delete Thing from mainflux UI
    
  • What are the expected results?
        Thing should be able to get deleted from mainflux
    
  • What are the received results?
         Failed to delete Thing Error:500 Internal server error
    
  • 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 
    
@sunt89
Copy link

sunt89 commented Jul 11, 2020

I have the same problem
#100

@liuxianqin
Copy link

liuxianqin commented Jul 15, 2020

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.

@manuio
Copy link
Contributor

manuio commented Jul 15, 2020

@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.

@manuio manuio closed this as completed Jul 15, 2020
@delvinggeeks
Copy link
Author

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

@dborovcanin
Copy link
Member

@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.

@delvinggeeks
Copy link
Author

Yes I have tested it. Issue has been fixed 👍

@liuxianqin
Copy link

liuxianqin commented Jul 17, 2020

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants