twbs / no-carrier

Tool to auto-close old GitHub issues that were abandoned by their reporter

Home Page:http://blog.getbootstrap.com/2015/08/04/no-carrier/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Permission Denied on Heroku

0x48piraj opened this issue Β· comments

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 πŸ‘

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

I followed the process completely.
Did that too @cvrebert πŸ‘

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!

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

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 πŸ‘

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

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

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

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

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

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

@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. 😟

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

How to execute the application with label tag ? @zxqfox

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

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

@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! ;-)

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

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.

Also, did #27 (comment) work?