[GH-ISSUE #70] error when generating exe #35

Closed
opened 2026-03-02 02:13:00 +03:00 by kerem · 5 comments
Owner

Originally created by @dinger1986 on GitHub (Aug 25, 2020).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/70

When you go to Add Agent then choose Generate and Download EXE you get an error Golang build failed. Check debug log for the error message.

Originally created by @dinger1986 on GitHub (Aug 25, 2020). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/70 When you go to Add Agent then choose Generate and Download EXE you get an error Golang build failed. Check debug log for the error message.
kerem closed this issue 2026-03-02 02:13:00 +03:00
Author
Owner

@rtwright68 commented on GitHub (Aug 25, 2020):

I ran the latest update.sh a short time ago (which fixes many permission issues). I am able to generate an EXE currently.

<!-- gh-comment-id:679921596 --> @rtwright68 commented on GitHub (Aug 25, 2020): I ran the latest update.sh a short time ago (which fixes many permission issues). I am able to generate an EXE currently.
Author
Owner

@dinger1986 commented on GitHub (Aug 25, 2020):

Weird, I just ran it this morning as well and I am getting the error. I will need to look for the errors.

<!-- gh-comment-id:679923884 --> @dinger1986 commented on GitHub (Aug 25, 2020): Weird, I just ran it this morning as well and I am getting the error. I will need to look for the errors.
Author
Owner

@dinger1986 commented on GitHub (Aug 25, 2020):

Found the debug log:

Ill check the permissions error it shows:

2020-08-25 09:49:17.794 | ERROR | agents.views:install_agent:369 - Go build failed with return code 1
2020-08-25 09:49:17.793 | ERROR | agents.views:install_agent:367 - failed to initialize build cache at /home/tactical/.cache/go-build: mkdir /home/tactical/.cache/go-build: permission denied
2020-08-25 09:05:21.687 | ERROR | agents.views:install_agent:369 - Go build failed with return code 1
2020-08-25 09:05:21.686 | ERROR | agents.views:install_agent:367 - failed to initialize build cache at /home/tactical/.cache/go-build: mkdir /home/tactical/.cache/go-build: permission denied
2020-08-25 09:05:13.360 | ERROR | agents.views:install_agent:369 - Go build failed with return code 1
2020-08-25 09:05:13.359 | ERROR | agents.views:install_agent:367 - failed to initialize build cache at /home/tactical/.cache/go-build: mkdir /home/tactical/.cache/go-build: permission denied
2020-08-25 08:27:47.833 | ERROR | agents.views:install_agent:369 - Go build failed with return code 1
2020-08-25 08:27:47.832 | ERROR | agents.views:install_agent:367 - failed to initialize build cache at /home/tactical/.cache/go-build: mkdir /home/tactical/.cache/go-build: permission denied
2020-08-25 08:27:38.270 | ERROR | agents.views:install_agent:369 - Go build failed with return code 1
2020-08-25 08:27:38.269 | ERROR | agents.views:install_agent:367 - failed to initialize build cache at /home/tactical/.cache/go-build: mkdir /home/tactical/.cache/go-build: permission denied
2020-08-25 08:27:31.658 | ERROR | agents.views:install_agent:369 - Go build failed with return code 1
2020-08-25 08:27:31.657 | ERROR | agents.views:install_agent:367 - failed to initialize build cache at /home/tactical/.cache/go-build: mkdir /home/tactical/.cache/go-build: permission denied

<!-- gh-comment-id:679924977 --> @dinger1986 commented on GitHub (Aug 25, 2020): Found the debug log: Ill check the permissions error it shows: 2020-08-25 09:49:17.794 | ERROR | agents.views:install_agent:369 - Go build failed with return code 1 2020-08-25 09:49:17.793 | ERROR | agents.views:install_agent:367 - failed to initialize build cache at /home/tactical/.cache/go-build: mkdir /home/tactical/.cache/go-build: permission denied 2020-08-25 09:05:21.687 | ERROR | agents.views:install_agent:369 - Go build failed with return code 1 2020-08-25 09:05:21.686 | ERROR | agents.views:install_agent:367 - failed to initialize build cache at /home/tactical/.cache/go-build: mkdir /home/tactical/.cache/go-build: permission denied 2020-08-25 09:05:13.360 | ERROR | agents.views:install_agent:369 - Go build failed with return code 1 2020-08-25 09:05:13.359 | ERROR | agents.views:install_agent:367 - failed to initialize build cache at /home/tactical/.cache/go-build: mkdir /home/tactical/.cache/go-build: permission denied 2020-08-25 08:27:47.833 | ERROR | agents.views:install_agent:369 - Go build failed with return code 1 2020-08-25 08:27:47.832 | ERROR | agents.views:install_agent:367 - failed to initialize build cache at /home/tactical/.cache/go-build: mkdir /home/tactical/.cache/go-build: permission denied 2020-08-25 08:27:38.270 | ERROR | agents.views:install_agent:369 - Go build failed with return code 1 2020-08-25 08:27:38.269 | ERROR | agents.views:install_agent:367 - failed to initialize build cache at /home/tactical/.cache/go-build: mkdir /home/tactical/.cache/go-build: permission denied 2020-08-25 08:27:31.658 | ERROR | agents.views:install_agent:369 - Go build failed with return code 1 2020-08-25 08:27:31.657 | ERROR | agents.views:install_agent:367 - failed to initialize build cache at /home/tactical/.cache/go-build: mkdir /home/tactical/.cache/go-build: permission denied
Author
Owner

@dinger1986 commented on GitHub (Aug 25, 2020):

Did chown -R tactical:tactical /home/tactical/ and working fine now.

Maybe worth adding that to the permissions script? Don't know how I messed that one up!!

<!-- gh-comment-id:679926149 --> @dinger1986 commented on GitHub (Aug 25, 2020): Did chown -R tactical:tactical /home/tactical/ and working fine now. Maybe worth adding that to the permissions script? Don't know how I messed that one up!!
Author
Owner

@wh1te909 commented on GitHub (Aug 25, 2020):

awesome, just added it to the update script in 17369890d2
didn't want to chown the entire home directory just in case someone had set custom perms on another directory inside their home dir so i just fixed perms on the .cache dir

<!-- gh-comment-id:680187687 --> @wh1te909 commented on GitHub (Aug 25, 2020): awesome, just added it to the update script in 17369890d23d0e959fb6c0a694feff299a897a86 didn't want to chown the entire home directory just in case someone had set custom perms on another directory inside their home dir so i just fixed perms on the .cache dir
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#35
No description provided.