mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 15:05:57 +03:00
[GH-ISSUE #70] error when generating exe #1979
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#1979
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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.
@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.
@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
@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!!
@wh1te909 commented on GitHub (Aug 25, 2020):
awesome, just added it to the update script in
17369890d2didn'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