Error publish snapshot to server (dashboard_snapshot.delete_key)

I have created a snapshot server but when I try to publish a snapshot i get this error in the grafana log. I can´t find any information about this error. Do anyone of you have informaiton about this?

lvl=eror msg=“Failed to create snapshot” logger=context userId=1 orgId=1 uname=admin error=“UNIQUE constraint failed: dashboard_snapshot.delete_key”

lvl=eror msg=“Request Completed” logger=context userId=1 orgId=1 uname=admin method=POST path=/api/snapshots status=500 remote_addr= time_ms=183 size=39 referer=“”


what version of grafana and others are using?

This is the version of my Grafana.

grafana-server -v

Version 7.3.6 (commit: ea06633c34, branch: HEAD)

This is what I have changed in the grafana.ini

;external_enabled = true
external_snapshot_url =
external_snapshot_name = Publish to
public_mode = true
;snapshot_remove_expired = true

can you change to a correct one?

Actually I have my correct domain in the config file. I just printed my_domain in the forum because I don´t want to present it to the world so much :wink:

you forgot to mention if this is the solution

Hi @melrose!

No, I got no solution to the problem. Still got the same error in the grafana log. One thing that I just relized is that when I publish the snapshot i get the error in the UI “Failed to create snapshot” and I get the error in the log. But when I look in the list of snapshots it is there and the snapshot seems to work. Something is wrong but the snapshot it´s working

can you explan what is a snapshot for you, because there are different understandings out there

I have changed the config from raintank to my own server.

intresting, didnt know this ; thank you

This topic was automatically closed after 365 days. New replies are no longer allowed.