# Exiting: error initializing publisher: Error loading template /tmp/my\_beat.template.json: open /tmp/my\_beat.template.json: no such file or directory

**URL:** <https://discuss.elastic.co/t/exiting-error-initializing-publisher-error-loading-template-tmp-my-beat-template-json-open-tmp-my-beat-template-json-no-such-file-or-directory/99992>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 11, 2017, 3:46am UTC](https://discuss.elastic.co/t/exiting-error-initializing-publisher-error-loading-template-tmp-my-beat-template-json-open-tmp-my-beat-template-json-no-such-file-or-directory/99992 "2017-09-11T03:46:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![caibaoying](https://avatars.discourse-cdn.com/v4/letter/c/dc4da7/32.png) [@caibaoying](https://discuss.elastic.co/u/caibaoying)\
**Post date:** [September 11, 2017, 3:46am UTC](https://discuss.elastic.co/t/exiting-error-initializing-publisher-error-loading-template-tmp-my-beat-template-json-open-tmp-my-beat-template-json-no-such-file-or-directory/99992/1 "2017-09-11T03:46:09Z")

</div>

I created my own beats 5.4.3, written on the IDE after the completion of the above errors;  
1, I check the source code found after the path is Unpack () function set to / tmp, but the source seems to have no relevant settings inside;  
2, I use "go build main.go" generated executable file, the implementation does not need / tmp path, only the current project where the directory my\_beat.yml

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 9, 2017, 3:46am UTC](https://discuss.elastic.co/t/exiting-error-initializing-publisher-error-loading-template-tmp-my-beat-template-json-open-tmp-my-beat-template-json-no-such-file-or-directory/99992/2 "2017-10-09T03:46:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
