R
Railway13mo ago
patd0

/bin/bash: line 1: ./out: Permission denied

I'm trying to deploy a GO App, but I keep getting: /bin/bash: line 1: ./out: Permission denied.
Solution:
but brought it back to main and everything works
Jump to solution
27 Replies
Percy
Percy13mo ago
Project ID: 1d5edfc1-e62a-4374-b521-39406854b371
patd0
patd013mo ago
1d5edfc1-e62a-4374-b521-39406854b371
Brody
Brody13mo ago
are you building with nixpacks or your own dockerfile?
patd0
patd013mo ago
nixpacks never had issues in the past though.
Brody
Brody13mo ago
have you set any build or start commands in the settings?
patd0
patd013mo ago
nop I haven't brought any changes to the service's settings for the past 6 months, and it used to be working just fine. Pushed yesterday without any issues.
Brody
Brody13mo ago
could you share your repo if possible?
patd0
patd013mo ago
Let me try one more thing first.
Brody
Brody13mo ago
because the nixpacks repo hasn't had any changes in the last 3 weeks
patd0
patd013mo ago
Okay, good to know. Probably something on my end then. So I'll review & test some more. Thanks a lot @Brody
Brody
Brody13mo ago
no problem, let me know when you figure it out please
patd0
patd013mo ago
I think I might've figured it! Had the change the package name which was modified. Yup, things seems correct now. Thank you.
Brody
Brody13mo ago
used to be main? what did you change it to?
patd0
patd013mo ago
my project's name.
Solution
patd0
patd013mo ago
but brought it back to main and everything works
Brody
Brody13mo ago
i want to understand what happened, changing the package name should not effect anything i would super appreciate if maybe you could give me a minimal reproduceable repo that will result in the same issue?
patd0
patd013mo ago
I had change: package main to package infinivents ... broked the deployment. Although my own project didn't have any package main .. which was probably the issue
Brody
Brody13mo ago
what name did you have in your go.mod file
patd0
patd013mo ago
module infinivents-event-state-manager that?
Brody
Brody13mo ago
what do you mean by this? go files need to have package <some name> or else go's linter freaks out, not to mention it wouldnt build without that
patd0
patd013mo ago
No it did have a package name infinivents but not main That's what I ment
Brody
Brody13mo ago
ah gotcha was the file named main.go though?
patd0
patd013mo ago
yes
Brody
Brody13mo ago
yeah thats not a valid setup
patd0
patd013mo ago
I see. 🙂 My bad.
Brody
Brody13mo ago
so theres not anything nixpacks can do about that thank you for your time!
patd0
patd013mo ago
Thank YOU 🙂