Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-4506

Keep getting error "Update Failed: Database was not updated."

Details

    • Bug
    • Resolution: Not A Bug
    • Major
    • None
    • None
    • Default
    • None

    Description

      I keep getting this error message when for example i try to updated the contact for some alert. While it actually adds it and it working, the contact the i add start getting alerts.
      I tried to run test_db.php but i dont get any output.
      If it wasnt able to connect to db then i wouldnt get any devices or alerts on the UI, it would show empty data.

      Attachments

        Activity

          [OBS-4506] Keep getting error "Update Failed: Database was not updated."
          Shama Tarek added a comment -

          Thanks for having a look.

          Shama Tarek added a comment - Thanks for having a look.

          This message show when nothing changed.

          I improved this message to "Warning: Associations not changed." in r12792.

          landy Mike Stupalov added a comment - This message show when nothing changed. I improved this message to "Warning: Associations not changed." in r12792.
          Shama Tarek added a comment -

          In one of the screenshots you can see the error "Update Failed: Database was not updated."

          Shama Tarek added a comment - In one of the screenshots you can see the error "Update Failed: Database was not updated."

          I can't reproduce any troubles with contact(s) association.
          Also as I not see this trouble on your screenshot.

          Probably there was db connection error, this is why accidentally created duplicate entry.
          Just remove duplicate entry..

          landy Mike Stupalov added a comment - I can't reproduce any troubles with contact(s) association. Also as I not see this trouble on your screenshot. Probably there was db connection error, this is why accidentally created duplicate entry. Just remove duplicate entry..
          Shama Tarek added a comment -

           

          I just noticed it doubles the contact when doing refresh to the page 

          Shama Tarek added a comment -   I just noticed it doubles the contact when doing refresh to the page 
          Shama Tarek added a comment -

          I added the contact "Tarek" and got the error when trying to save changes, if i refresh the page it still there and the contact is working and getting alerts.
          Not sure why keep getting this db error

           

          Shama Tarek added a comment - I added the contact "Tarek" and got the error when trying to save changes, if i refresh the page it still there and the contact is working and getting alerts. Not sure why keep getting this db error  
          Shama Tarek added a comment - - edited

          Using version 23.5.12784 (3rd May 2023)

          Shama Tarek added a comment - - edited Using version 23.5.12784 (3rd May 2023)

          People

            landy Mike Stupalov
            Shama Tarek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: