{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/dpl/issues/781","repository_url":"https://api.github.com/repos/travis-ci/dpl","labels_url":"https://api.github.com/repos/travis-ci/dpl/issues/781/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/dpl/issues/781/comments","events_url":"https://api.github.com/repos/travis-ci/dpl/issues/781/events","html_url":"https://github.com/travis-ci/dpl/issues/781","id":305737229,"number":781,"title":"my CloudFiles Deploy seems to be uploading twice","user":{"login":"pr1ntr","id":1272089,"avatar_url":"https://avatars2.githubusercontent.com/u/1272089?v=4","gravatar_id":"","url":"https://api.github.com/users/pr1ntr","html_url":"https://github.com/pr1ntr","followers_url":"https://api.github.com/users/pr1ntr/followers","following_url":"https://api.github.com/users/pr1ntr/following{/other_user}","gists_url":"https://api.github.com/users/pr1ntr/gists{/gist_id}","starred_url":"https://api.github.com/users/pr1ntr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pr1ntr/subscriptions","organizations_url":"https://api.github.com/users/pr1ntr/orgs","repos_url":"https://api.github.com/users/pr1ntr/repos","events_url":"https://api.github.com/users/pr1ntr/events{/privacy}","received_events_url":"https://api.github.com/users/pr1ntr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-03-15T22:11:58Z","updated_at":"2018-03-19T19:03:10Z","closed_at":null,"author_association":"NONE","body":"I am not sure what is happening here but I am lead to believe my config is making Travis upload the same files twice to CloudFiles.\r\n\r\nHow I came to this conclusion is because CloudFiles CDN is serving me the uncompressed versions of the same files (all my files are hashed). But on the container, they are the correct size (not cached). The only way to get them to report correctly is to manually purge them and they are served at the right size.\r\n\r\nMy build compresses the files in place before the deploy step which makes this extra strange. (eg.,  \r\n`/build/static/media/* -> compress -> /build/static/media/*` ) I don't know if thats causing any issues.\r\n\r\nI am not really sure if Travis is the issue but maybe someone can look at my config and point out some red flags. Thanks.\r\n\r\nMy .travis.yml\r\n```branches:\r\n  only:\r\n    - /^master$/\r\n    - /^deploy\\/staging/\r\n    - /^deploy\\/develop/\r\n    - /^deploy\\/production/\r\n\r\nsudo: false\r\ndist: trusty\r\naddons:\r\n    apt:\r\n        packages:\r\n            - sshpass\r\nlanguage: node_js\r\nnode_js:\r\n  - \"8.9.3\"\r\nbefore_deploy: \"cd build\"\r\ndeploy:\r\n  provider: cloudfiles\r\n  username: $RACKSPACE_USERNAME\r\n  api_key: $RACKSPACE_API_KEY\r\n  region: $RACKSPACE_REGION\r\n  container: $RACKSPACE_CONTAINER_NAME\r\n  skip_cleanup: true\r\n  on:\r\n    branch: deploy/production\r\n\r\n\r\nbefore_script:\r\n  - if [ \"$TRAVIS_BRANCH\" == \"master\" ]; then export CONFIG_ENV=\"develop\";\r\n    elif [ \"$TRAVIS_BRANCH\" == \"deploy/develop\" ]; then export CONFIG_ENV=\"develop\";\r\n    elif [ \"$TRAVIS_BRANCH\" == \"deploy/staging\" ]; then export CONFIG_ENV=\"staging\";\r\n    elif [ \"$TRAVIS_BRANCH\" == \"deploy/production\" ]; then export CONFIG_ENV=\"production\";\r\n    else export CONFIG_ENV=\"cancel\"; fi;\r\n  - yarn\r\nscript:\r\n  - if [ \"$ENV\" != \"cancel\" ]; then\r\n      CONFIG_ENV=$CONFIG_ENV yarn configure;\r\n      export $(cat .env | grep -v ^# | xargs -0);\r\n      CI=false yarn build;\r\n      sshpass -p \"$SSH_PASS\" scp -r -o StrictHostKeyChecking=no build/*  \"$SSH_USER@$SSH_HOST:$FOLDER\";\r\n      echo \"Uploaded Build to $CONFIG_ENV\";\r\n    fi;\r\n```\r\nTravis Output:\r\n```\u001B[0K\r\n\u001B[32;1mThe command \"if [ \"$ENV\" != \"cancel\" ]; then CONFIG_ENV=$CONFIG_ENV yarn configure; export $(cat .env | grep -v ^# | xargs -0); CI=false yarn build; sshpass -p \"$SSH_PASS\" scp -r -o StrictHostKeyChecking=no build/*  \"$SSH_USER@$SSH_HOST:$FOLDER\"; echo \"Uploaded Build to $CONFIG_ENV\"; fi;\" exited with 0.\u001B[0m\r\ntravis_fold:start:before_deploy\r\n\u001B[0Ktravis_time:start:2d16c51e\r\n\u001B[0K$ cd build\r\n\r\ntravis_time:end:2d16c51e:start=1521081476334136860,finish=1521081476338388271,duration=4251411\r\n\u001B[0Ktravis_fold:end:before_deploy\r\n\u001B[0Ktravis_fold:start:dpl_0\r\n\u001B[0Ktravis_time:start:14ff9e82\r\n\u001B[0K$ rvm $(travis_internal_ruby) --fuzzy do ruby -S gem install dpl\r\nSuccessfully installed dpl-1.9.1\r\n1 gem installed\r\n\r\ntravis_time:end:14ff9e82:start=1521081480805080309,finish=1521081482173407484,duration=1368327175\r\n\u001B[0Ktravis_fold:end:dpl_0\r\n\u001B[0Ktravis_time:start:310133f0\r\n\u001B[0Ktravis_fold:start:dpl.1\r\n\u001B[33mInstalling deploy dependencies\u001B[0m\r\nSuccessfully installed net-ssh-4.2.0\r\nSuccessfully installed mime-types-data-3.2016.0521\r\nSuccessfully installed mime-types-3.1\r\nSuccessfully installed mini_portile2-2.3.0\r\nBuilding native extensions. This could take a while...\r\nSuccessfully installed nokogiri-1.8.2\r\nSuccessfully installed builder-3.2.3\r\nSuccessfully installed excon-0.60.0\r\nSuccessfully installed formatador-0.2.5\r\nSuccessfully installed fog-core-2.1.0\r\nSuccessfully installed multi_json-1.13.1\r\nSuccessfully installed fog-json-1.1.0\r\nSuccessfully installed fog-xml-0.1.3\r\nSuccessfully installed ipaddress-0.8.3\r\nSuccessfully installed fog-rackspace-0.1.5\r\nSuccessfully installed dpl-cloud_files-1.9.1\r\n15 gems installed\r\n\r\n!!! Rackspace Cloud Files support is experimental !!!\r\n\r\n\r\ntravis_fold:end:dpl.1\r\nAuthenticated as [secure]\r\ntravis_fold:start:dpl.2\r\n\u001B[33mPreparing deploy\u001B[0m\r\n\r\ntravis_fold:end:dpl.2\r\ntravis_fold:start:dpl.3\r\n\u001B[33mDeploying application\u001B[0m\r\n\r\ntravis_fold:end:dpl.3\r\n\r\ntravis_time:end:310133f0:start=1521081482180493089,finish=1521081576924607638,duration=94744114549\r\n\u001B[0K\r\nDone. Your build exited with 0.```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/travis-ci/dpl/issues/comments/374329646","html_url":"https://github.com/travis-ci/dpl/issues/781#issuecomment-374329646","issue_url":"https://api.github.com/repos/travis-ci/dpl/issues/781","id":374329646,"user":{"login":"pr1ntr","id":1272089,"avatar_url":"https://avatars2.githubusercontent.com/u/1272089?v=4","gravatar_id":"","url":"https://api.github.com/users/pr1ntr","html_url":"https://github.com/pr1ntr","followers_url":"https://api.github.com/users/pr1ntr/followers","following_url":"https://api.github.com/users/pr1ntr/following{/other_user}","gists_url":"https://api.github.com/users/pr1ntr/gists{/gist_id}","starred_url":"https://api.github.com/users/pr1ntr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pr1ntr/subscriptions","organizations_url":"https://api.github.com/users/pr1ntr/orgs","repos_url":"https://api.github.com/users/pr1ntr/repos","events_url":"https://api.github.com/users/pr1ntr/events{/privacy}","received_events_url":"https://api.github.com/users/pr1ntr/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T19:03:10Z","updated_at":"2018-03-19T19:03:10Z","author_association":"NONE","body":"I wish I had seen this like 5 min ago before I did the production deployment. I did add the directory structure to the deploy. Can be seen here: https://api.travis-ci.com/v3/job/115356703/log.txt?log.token=FJAxCoz_9eUxXhjR3b77cw"}}
{"actor":{"display_login":"pr1ntr"}}