New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem running fastlane from crontab #488

Closed
rrecio opened this Issue Aug 8, 2015 · 10 comments

Comments

Projects
None yet
3 participants
@rrecio

rrecio commented Aug 8, 2015

It works fine in Terminal, but when running in crontab I get this:

screen shot 2015-08-08 at 4 49 12 pm

@KrauseFx

This comment has been minimized.

Member

KrauseFx commented Aug 8, 2015

Your shell environment is not correctly configured
Instead of UTF-8 your shell uses US-ASCII
Please add the following to your '~/.bashrc':

       export LANG=en_US.UTF-8
       export LANGUAGE=en_US.UTF-8
       export LC_ALL=en_US.UTF-8

You'll have to restart your shell session after updating the file.
If you are using zshell or another shell, make sure to edit the correct bash file.
For more information visit this stackoverflow answer:
http://stackoverflow.com/a/17031697/445598

@rrecio

This comment has been minimized.

rrecio commented Aug 11, 2015

This helped with the encoding problem, also had to run rvm cron setup so update_fastlane and cocoapods actions could run without ruby environment problems.

@rrecio

This comment has been minimized.

rrecio commented Aug 11, 2015

I'm stuck in sigh asking for Password:
Even though I have added DELIVER_USER and DELIVER_PASSWORD to crontab environment

@rrecio

This comment has been minimized.

rrecio commented Aug 11, 2015

Unlocking keychain using security unlock-keychain -p password ~/Library/Keychains/login.keychain seems to resolve sigh asking for password.

@rrecio

This comment has been minimized.

rrecio commented Aug 11, 2015

Even though I'm still stuck on the error in the screenshots below. It may be related to the environment because the lane runs fine in my user shell. This is the output from the cron job:

screen shot 2015-08-11 at 5 39 13 pm

@rrecio

This comment has been minimized.

rrecio commented Aug 12, 2015

The only workaround I figured is to don't execute sigh in the lane that runs on crontab.

@KrauseFx

This comment has been minimized.

Member

KrauseFx commented Aug 13, 2015

Please share the output below the fastlane finished with errors

@JaviSoto

This comment has been minimized.

Contributor

JaviSoto commented Dec 10, 2015

Hi @rrecio! Did you get a chance to look into this? Thanks!

@rrecio

This comment has been minimized.

rrecio commented Dec 10, 2015

@JaviSoto in the end I just gave up trying to use crontab, sorry

@KrauseFx

This comment has been minimized.

Member

KrauseFx commented Dec 11, 2015

Okay, we'll close the issue then 👍

@KrauseFx KrauseFx closed this Dec 11, 2015

@fastlane fastlane locked and limited conversation to collaborators Sep 22, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.