lars7
January 14, 2021, 6:13pm
1
Hi!
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=127.0.0.1 time_ms=183 size=39 referer=“https://my_domain.com/d/IN6x6O6Gk/my_snapshot_name?orgId=1”
Thanks!
melrose
January 15, 2021, 10:28pm
2
lars7:
QUE 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=127.0.0.1 time_ms=183 size=39 referer=“https://my_domain.com/d/IN6x6O6Gk/my_snapshot_name?orgId=1”
Thanks!
what version of grafana and others are using?
lars7
January 16, 2021, 9:24am
3
This is the version of my Grafana.
grafana-server -v
Version 7.3.6 (commit: ea06633c34, branch: HEAD)
lars7
January 16, 2021, 9:29am
4
This is what I have changed in the grafana.ini
[snapshots]
;external_enabled = true
external_snapshot_url = https://my_domain.com
external_snapshot_name = Publish to my_domain.com
public_mode = true
;snapshot_remove_expired = true
lars7:
This is what I have changed in the grafana.ini
[snapshots]
;external_enabled = true
external_snapshot_url = https://my_domain.com
external_snapshot_name = Publish to my_domain.com
public_mode = true
;snapshot_remove_expired = true
can you change my_domain.com to a correct one?
lars7
January 16, 2021, 8:20pm
7
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
you forgot to mention if this is the solution
lars7
January 16, 2021, 8:50pm
9
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
melrose
January 17, 2021, 2:23pm
10
can you explan what is a snapshot for you, because there are different understandings out there
lars7
January 17, 2021, 2:41pm
11
I have changed the config from raintank to my own server.
melrose
January 19, 2021, 9:57pm
12
intresting, didnt know this ; thank you
system
Closed
January 14, 2022, 6:14pm
13
This topic was automatically closed after 365 days. New replies are no longer allowed.