ruby - CircleCI and AWS CodeDeploy: No such file or directory -
i've got ruby application has been deployed aws instance using codedeploy via circleci. added gem application. tests passing both locally , in circleci, deployment stage fails error:
$ create_application_revision /tmp/codedeploy_applications.json /tmp/codedeploy_revisions.json create_application_revision loaded: {"applications":[{"application_root":"/","region":"us-west-2","revision_location":{"revisiontype":"s3","s3location":{"bucket":"something","key":"etl-scripts-testdeploy-3a050b1"}},"deployment_group":"etlscriptsfleet","application_name":"etlscripts"}]} bundling etlscripts /home/ubuntu/etl-scripts unhandled exception [errno 2] no such file or directory: '/home/ubuntu/etl-scripts/vendor/bundle/ruby/2.2.0/gems/regexp-examples-1.1.4/db/unicode_ranges_2.1.pstore' it's true file doesn't exist. doesn't exist locally either, tests pass. can't figure out why deployment process thinks needs file?
i noticed in source code gem (https://github.com/tom-lord/regexp-examples/tree/master/db) symbolic link , that's why it's not being created. i'm still confused how deployment bundle process know non-existant symbolic link.
any appreciated!
it seems deployment stage being handled deploy push command aws cli, , cannot handle broken symlinks.
i reproduce problem trying deploy app containing broken symlink using push command:
(command - aws deploy push --application-name --s3-location s3:///.zip --source ./) (output - [errno 2] no such file or directory: '/path/to/source/')
i guess need manually remove broken symlinks deployment succeed.
Comments
Post a Comment