{"action":"closed","issue":{"url":"https://api.github.com/repos/camptocamp/bivac/issues/203","repository_url":"https://api.github.com/repos/camptocamp/bivac","labels_url":"https://api.github.com/repos/camptocamp/bivac/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/camptocamp/bivac/issues/203/comments","events_url":"https://api.github.com/repos/camptocamp/bivac/issues/203/events","html_url":"https://github.com/camptocamp/bivac/issues/203","id":344727585,"node_id":"MDU6SXNzdWUzNDQ3Mjc1ODU=","number":203,"title":"bivac via aws s3:// protocol with rclone engine","user":{"login":"grichner","id":33449338,"node_id":"MDQ6VXNlcjMzNDQ5MzM4","avatar_url":"https://avatars2.githubusercontent.com/u/33449338?v=4","gravatar_id":"","url":"https://api.github.com/users/grichner","html_url":"https://github.com/grichner","followers_url":"https://api.github.com/users/grichner/followers","following_url":"https://api.github.com/users/grichner/following{/other_user}","gists_url":"https://api.github.com/users/grichner/gists{/gist_id}","starred_url":"https://api.github.com/users/grichner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grichner/subscriptions","organizations_url":"https://api.github.com/users/grichner/orgs","repos_url":"https://api.github.com/users/grichner/repos","events_url":"https://api.github.com/users/grichner/events{/privacy}","received_events_url":"https://api.github.com/users/grichner/received_events","type":"User","site_admin":false},"labels":[{"id":352360854,"node_id":"MDU6TGFiZWwzNTIzNjA4NTQ=","url":"https://api.github.com/repos/camptocamp/bivac/labels/bug","name":"bug","color":"ee0701","default":true},{"id":1065432991,"node_id":"MDU6TGFiZWwxMDY1NDMyOTkx","url":"https://api.github.com/repos/camptocamp/bivac/labels/engine/rclone","name":"engine/rclone","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-26T07:32:25Z","updated_at":"2018-10-16T10:59:02Z","closed_at":"2018-10-16T10:59:02Z","author_association":"NONE","body":"Hi,\r\n\r\nI tried to get bivac:latest to work with the following values.yaml and helm… and the change of batch/v1beta1 apiversion in cronjob.yaml.\r\n\r\nBucket creation:\r\n```\r\naws s3api create-bucket --bucket bivac --region eu-central-1 --create-bucket-configuration LocationConstraint=eu-central-1\r\n{\r\n    \"Location\": \"http://bivac.s3.amazonaws.com/\"\r\n}\r\n```\r\nchecking the functionality of s3 protocol:\r\n```\r\ngrichner@MinasTirith[/Users/grichner/git/bivac/charts/camptocamp/bivac]> aws s3 cp /etc/fstab.hd s3://bivac/\r\nupload: ../../../../../../../etc/fstab.hd to s3://bivac/fstab.hd    \r\ngrichner@MinasTirith[/Users/grichner/git/bivac/charts/camptocamp/bivac]> aws s3 ls bivac\r\n2018-07-26 09:24:14        150 fstab.hd\r\ngrichner@MinasTirith[/Users/grichner/git/bivac/charts/camptocamp/bivac]> aws s3 rm s3://bivac/fstab.hd\r\ndelete: s3://bivac/fstab.hd\r\ngrichner@MinasTirith[/Users/grichner/git/bivac/charts/camptocamp/bivac]> aws s3 ls bivac\r\n```\r\n\r\nvalues.yaml:\r\n```\r\n# Default values for bivac.\r\n# This is a YAML-formatted file.\r\n# Declare variables to be passed into your templates.\r\n\r\nreplicaCount: 1\r\n\r\nschedule: \"10 * * * *\"\r\nenvVars:\r\n  - name: BIVAC_ENGINE\r\n    value: rclone\r\n  - name: BIVAC_FULL_IF_OLDER_THAN\r\n    value: 3D\r\n  - name: BIVAC_REMOVE_OLDER_THAN\r\n    value: 5D\r\n  - name: BIVAC_TARGET_URL\r\n    value: s3://bivac/\r\n  - name: AWS_ACCESS_KEY_ID\r\n    value: xxx\r\n  - name: AWS_SECRET_ACCESS_KEY\r\n    value: YYY\r\n  - name: RESTIC_PASSWORD\r\n    value: trallala\r\n\r\nimage:\r\n  repository: camptocamp/bivac\r\n  tag: latest\r\n  pullPolicy: Always\r\n\r\nresources: {}\r\n  # We usually recommend not to specify default resources and to leave this as a conscious\r\n  # choice for the user. This also increases chances charts run on environments with little\r\n  # resources, such as Minikube. If you do want to specify resources, uncomment the following\r\n  # lines, adjust them as necessary, and remove the curly braces after 'resources:'.\r\n  # limits:\r\n  #  cpu: 100m\r\n  #  memory: 128Mi\r\n  # requests:\r\n  #  cpu: 100m\r\n  #  memory: 128Mi\r\n\r\nnodeSelector: {}\r\n\r\ntolerations: []\r\n\r\naffinity: {}\r\n```\r\n\r\n\r\nBut I get the following error in the worker pod:\r\n\r\n```\r\n2018-07-25T08:05:12Z bivac-worker-dspvj confd[6]: INFO Backend set to env\r\n2018-07-25T08:05:12Z bivac-worker-dspvj confd[6]: INFO Starting confd\r\n2018-07-25T08:05:12Z bivac-worker-dspvj confd[6]: INFO Backend nodes set to\r\n2018-07-25T08:05:12Z bivac-worker-dspvj confd[6]: INFO Target config /root/.rclone.conf out of sync\r\n2018-07-25T08:05:12Z bivac-worker-dspvj confd[6]: INFO Target config /root/.rclone.conf has been updated\r\n2018/07/25 08:06:46 Attempt 1/3 failed with 1 errors and: RequestError: send request failed\r\ncaused by: Head https://s3.amazonaws.com/bivac: x509: failed to load system roots and no roots provided\r\n2018/07/25 08:06:57\r\nTransferred: 0 Bytes (0 Bytes/s)\r\nErrors: 0\r\nChecks: 0\r\nTransferred: 0\r\nElapsed time: 1m45.4s\r\n2018/07/25 08:07:34 Attempt 2/3 failed with 1 errors and: RequestError: send request failed\r\ncaused by: Head https://s3.amazonaws.com/bivac: x509: failed to load system roots and no roots provided\r\n2018/07/25 08:07:57\r\nTransferred: 0 Bytes (0 Bytes/s)\r\nErrors: 0\r\nChecks: 0\r\nTransferred: 0\r\nElapsed time: 2m45.4s\r\n2018/07/25 08:08:16 Attempt 3/3 failed with 1 errors and: RequestError: send request failed\r\ncaused by: Head https://s3.amazonaws.com/bivac: x509: failed to load system roots and no roots provided\r\n2018/07/25 08:08:16 Failed to sync: RequestError: send request failed\r\ncaused by: Head https://s3.amazonaws.com/bivac: x509: failed to load system roots and no roots provided\r\n\r\n```\r\n\r\nMy questions are:\r\na) Why does the worker tries to get a connect to my bucket via https:// protocol and does not use the s3:// protocol … which works for e.g. awscli or cyberduck ?\r\nb) Can I force the use of s3:// protocol with credentials? \r\nc) Or what is my fault in the `values.yaml`\r\n\r\n\r\nGregor\r\n\r\nPS: I also tried the default engine but the worker is less talkative it says `container creating`before dying..."}}
{"actor":{"display_login":"mcanevet"}}