Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Permission Denied on Heroku #27

Open
0x48piraj opened this issue Dec 29, 2017 · 20 comments
Open

Permission Denied on Heroku #27

0x48piraj opened this issue Dec 29, 2017 · 20 comments

Comments

@0x48piraj
Copy link

0x48piraj commented Dec 29, 2017

bash: ./cron.daily.sh: Permission denied

$ heroku run ./cron.daily.sh
Running ./cron.daily.sh on hacke2323uieu23r... starting, run.3251 (Free)
Running ./cron.daily.sh on hacke2323uieu23r... connecting, run.3251 (Free)
Running ./cron.daily.sh on hacke2323uieu23r... up, run.3251 (Free)
bash: ./cron.daily.sh: Permission denied

image


Ping @cvrebert 👍

@cvrebert
Copy link
Collaborator

The Heroku instructions are courtesy of @zxqfox. I don't use Heroku myself.
Perhaps you need to chmod +x your shell script file?

@cvrebert cvrebert changed the title [BUG] Permission Denied Permission Denied on Heroku Dec 29, 2017
@0x48piraj
Copy link
Author

I followed the process completely.
Did that too @cvrebert 👍

@0x48piraj
Copy link
Author

0x48piraj commented Dec 29, 2017

By the way, it lacks a command, git add .
just added that 👍 @cvrebert

Added a git command, if left, that broke the whole deploy process!

@cvrebert
Copy link
Collaborator

Great! Glad you got it working. Thanks for the fix!

@0x48piraj
Copy link
Author

0x48piraj commented Dec 29, 2017

No !!
It was an add-on mistake that was to be pointed out !!

I deployed successfully.
After the deploy process, I ran the command and it failed !

P.S. @cvrebert It's not working, Please open the thread 👍

@cvrebert
Copy link
Collaborator

We'd need the error message/log in order to help you.

@0x48piraj
Copy link
Author

I think, I gave you the log, It was just that only.

@cvrebert
Copy link
Collaborator

Hmm. Maybe the +x permission change wasn't pushed to Heroku? Try git adding, committing, and pushing again.

@cvrebert cvrebert reopened this Dec 29, 2017
@0x48piraj
Copy link
Author

Again did, made a new app, followed the process.
Got the very same error. 😟

$ heroku run ./cron.daily.sh                                                    Running ./cron.daily.sh on hacke2323uieu23r... starting, run.3628 (Free)
Running ./cron.daily.sh on hacke2323uieu23r... connecting, run.3628 (Free)
Running ./cron.daily.sh on hacke2323uieu23r... up, run.3628 (Free)
bash: ./cron.daily.sh: Permission denied

ID : 3628

@cvrebert
Copy link
Collaborator

Does
heroku run bash cron.daily.sh
happen to work?

@cvrebert
Copy link
Collaborator

Hmm, the wiki post doesn't include a shebang line.
Does adding the line:
#!/bin/sh
to the start of cron.daily.sh help?

@0x48piraj
Copy link
Author

@cvrebert

$ heroku run bash cron.daily.sh
Running bash cron.daily.sh on hacke2323uieu23r... starting, run.1405 (Free)
Running bash cron.daily.sh on hacke2323uieu23r... connecting, run.1405 (Free)
Running bash cron.daily.sh on hacke2323uieu23r... up, run.1405 (Free)
2017-12-29 23:08:05,903 [ERROR] com.jcabi.aspects.aj.MethodValidator - JSR-303 validator failed to initialize: Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath. (see http://aspects.jcabi.com/jsr-303.html)
USAGE: no-carrier <owner/repo> <label> <days>

I think it worked, right ?

Please help me in removing the error.

My cron job consists of :

java -jar no-carrier.jar owner/repo "" 1

I don't want to search for labels. 😟

@qfox
Copy link

qfox commented Dec 29, 2017

Not sure what Heroku instructions but... How can I help you?

@0x48piraj
Copy link
Author

How to execute the application with label tag ? @zxqfox

@qfox
Copy link

qfox commented Dec 30, 2017

Well, according to sources it's impossible now: https://github.com/twbs/no-carrier/blob/master/src/main/scala/com/getbootstrap/no_carrier/Main.scala#L32

Try something like space character or minus or !, but feels like you can't use it without passing label

@0x48piraj
Copy link
Author

0x48piraj commented Dec 30, 2017

I can re-build it from scratch and can modify that, Right @zxqfox ?

@qfox
Copy link

qfox commented Dec 30, 2017

@0x48piraj Well, always ;-D I'm not very familiar with scala so I can't help with it, but I can wish you a good luck! ;-)

@0x48piraj
Copy link
Author

0x48piraj commented Dec 30, 2017

Me too 😟
Maybe @cvrebert should treat this discussion as a feature-request 😊

@cvrebert
Copy link
Collaborator

Yes, a label is required. Not sure what your use-case is.
The point of the label is to require some type of review before auto-closing. Otherwise, e.g. an issue opened N days ago which no human project maintainer ever read could get auto-closed, which is bad.

@cvrebert
Copy link
Collaborator

Also, did #27 (comment) work?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants