R
Railway•2y 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
Percy•2y ago
Project ID: 1d5edfc1-e62a-4374-b521-39406854b371
patd0
patd0OP•2y ago
1d5edfc1-e62a-4374-b521-39406854b371
Brody
Brody•2y ago
are you building with nixpacks or your own dockerfile?
patd0
patd0OP•2y ago
nixpacks never had issues in the past though.
Brody
Brody•2y ago
have you set any build or start commands in the settings?
patd0
patd0OP•2y 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
Brody•2y ago
could you share your repo if possible?
patd0
patd0OP•2y ago
Let me try one more thing first.
Brody
Brody•2y ago
because the nixpacks repo hasn't had any changes in the last 3 weeks
patd0
patd0OP•2y ago
Okay, good to know. Probably something on my end then. So I'll review & test some more. Thanks a lot @Brody
Brody
Brody•2y ago
no problem, let me know when you figure it out please
patd0
patd0OP•2y 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
Brody•2y ago
used to be main? what did you change it to?
patd0
patd0OP•2y ago
my project's name.
Solution
patd0
patd0•2y ago
but brought it back to main and everything works
Brody
Brody•2y 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
patd0OP•2y 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
Brody•2y ago
what name did you have in your go.mod file
patd0
patd0OP•2y ago
module infinivents-event-state-manager that?
Brody
Brody•2y 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
patd0OP•2y ago
No it did have a package name infinivents but not main That's what I ment
Brody
Brody•2y ago
ah gotcha was the file named main.go though?
patd0
patd0OP•2y ago
yes
Brody
Brody•2y ago
yeah thats not a valid setup
patd0
patd0OP•2y ago
I see. 🙂 My bad.
Brody
Brody•2y ago
so theres not anything nixpacks can do about that thank you for your time!
patd0
patd0OP•2y ago
Thank YOU 🙂
Want results from more Discord servers?
Add your server