Permission denied (or the resource may not exist) on instance after monitoring agent instalation

5,048 views
Skip to first unread message

o...@global-mediator.com

unread,
Oct 22, 2018, 7:47:31 AM10/22/18
to Google Stackdriver Discussion Forum
Can't set up monitoring due to next error:

/var/log/syslog
...
Oct 22 13:24:22 <instance-name> collectd[2942]: write_gcm: Unsuccessful HTTP request 403: {#012  "error": {#012    "code": 403,#012    "message": "Permission denied (or the resource may not exist).",#012    "status": "PERMISSION_DENIED"#012  }#012}
Oct 22 13:24:22 <instance-name> collectd[2942]: write_gcm: Error -2 from wg_curl_get_or_post
Oct 22 13:24:22 <instance-name> collectd[2942]: write_gcm: wg_transmit_unique_segment failed.
Oct 22 13:24:22 <instance-name> collectd[2942]: write_gcm: wg_transmit_unique_segments failed. Flushing.
...

It happens after install-monitoring-agent.sh installation.

I also enable Allow HTTP(S) traffic on the instance and Cloud and Stackdrive Monitoring API

Any ideas how to fix or what API or other things to enable?

Igor Peshansky

unread,
Oct 22, 2018, 8:08:59 AM10/22/18
to o...@global-mediator.com, Google Stackdriver Discussion Forum
Is the instance running on GCE or AWS EC2? If the former, does the instance have the right scopes enabled? If the latter, do you have the key for the service account with the correct permissions? See https://cloud.google.com/monitoring/agent/troubleshooting#verify-project.
        Igor
-- sent from a mobile device, please excuse tyops and omissns

--
© 2016 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Stackdriver Discussion Google Group (google-stackdr...@googlegroups.com) to participate in discussions with other members of the GoogleStackdriver community.
---
You received this message because you are subscribed to the Google Groups "Google Stackdriver Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-stackdriver-d...@googlegroups.com.
To post to this group, send email to google-stackdr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/608e539d-50d6-478f-97b5-80b3fa7e1a66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

o...@global-mediator.com

unread,
Oct 22, 2018, 8:53:04 AM10/22/18
to Google Stackdriver Discussion Forum
Thank you, Igor! The problem was in absent credentials on the instance.

Thank you once more!


On Monday, October 22, 2018 at 3:08:59 PM UTC+3, Igor Peshansky wrote:
Is the instance running on GCE or AWS EC2? If the former, does the instance have the right scopes enabled? If the latter, do you have the key for the service account with the correct permissions? See https://cloud.google.com/monitoring/agent/troubleshooting#verify-project.
        Igor
-- sent from a mobile device, please excuse tyops and omissns

On Mon, Oct 22, 2018, 7:47 AM <> wrote:
Can't set up monitoring due to next error:

/var/log/syslog
...
Oct 22 13:24:22 <instance-name> collectd[2942]: write_gcm: Unsuccessful HTTP request 403: {#012  "error": {#012    "code": 403,#012    "message": "Permission denied (or the resource may not exist).",#012    "status": "PERMISSION_DENIED"#012  }#012}
Oct 22 13:24:22 <instance-name> collectd[2942]: write_gcm: Error -2 from wg_curl_get_or_post
Oct 22 13:24:22 <instance-name> collectd[2942]: write_gcm: wg_transmit_unique_segment failed.
Oct 22 13:24:22 <instance-name> collectd[2942]: write_gcm: wg_transmit_unique_segments failed. Flushing.
...

It happens after install-monitoring-agent.sh installation.

I also enable Allow HTTP(S) traffic on the instance and Cloud and Stackdrive Monitoring API

Any ideas how to fix or what API or other things to enable?

--
© 2016 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Stackdriver Discussion Google Group (google-stackdriver-discu...@googlegroups.com) to participate in discussions with other members of the GoogleStackdriver community.

---
You received this message because you are subscribed to the Google Groups "Google Stackdriver Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-stackdriver-discussion+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages