Fork me on GitHub
#leiningen
<
2017-11-06
>
danielcompton20:11:17

@daniel.dyba saw your comments about the s3 wagon on #clojure

dyba20:11:40

@danielcompton Here is the output I get:

danielcompton20:11:52

Can you share your project.clj too?

dyba20:11:53

jenkins@ip-10-110-61-60:~/workspace/movr3-api-dev$ cat project.clj | grep s3
  :repositories [["releases" {:url ""
                 ["snapshots" {:url ""
            [s3-wagon-private "1.3.1-alpha3"]
jenkins@ip-10-110-61-60:~/workspace/movr3-api-dev$ lein deps
Could not find artifact wardrobe:wardrobe:jar:0.1.3 in central ()
Could not find artifact wardrobe:wardrobe:jar:0.1.3 in clojars ()
Could not transfer artifact wardrobe:wardrobe:jar:0.1.3 from/to releases (): Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: D9661EA44E6D578F; S3 Extended Request ID: nlF5yGQqO1oCLVHCbxBXKduMiqS6M4KlncQTJYKGVw+N3X2+uccYwQBY8Av57fnJ+7Ypzrti++c=)
Could not transfer artifact wardrobe:wardrobe:jar:0.1.3 from/to snapshots (): Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: C9D6C3647D4441EE; S3 Extended Request ID: KmEErk1ORwTtM/nrIVaQgvVU314T/JtaXTiq5TBXZJTi1t4NAbC2Lma3wpGibReu15bwsHCXmYU=)
Could not transfer artifact wardrobe:wardrobe:pom:0.1.3 from/to releases (): Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: A0D55993B8F24560; S3 Extended Request ID: FCihtc0/EEJQEZOwpWP0kbP/oFkGPmP7MMPkTmRLLD2dZvOV0ew1jRHPof93m4oe6QWBCklXKK4=)
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.

dyba20:11:16

Here is the full project.clj file

dyba20:11:21

jenkins@ip-10-110-61-60:~/workspace/movr3-api-dev$ cat project.clj
(defproject com.pennymacusa/decision-service "0.1.0-SNAPSHOT"
  :description "The decision API service"
  :url ""
  :repositories [["releases" {:url ""
:no-auth true
                               }]
                 ["snapshots" {:url ""
:no-auth true
                              }]]
  :dependencies [[org.clojure/clojure "1.8.0"]
                 [pnmacmodel "0.3.4"]
                 [compojure "1.4.0"]
                 [hiccup "1.0.5"]
                 [ring-server "0.4.0"]
                 [ring/ring-json "0.3.1"]
                 [com.taoensso/timbre "4.1.2"]
                 [liberator "0.13"]
                 [me.raynes/fs "1.4.6"]
                 [environ "1.0.0"]
                 [org.immutant/web "2.1.9"]
                 [cheshire "5.5.0"]
                 [wardrobe "0.1.3"]
                 [ring-cors "0.1.8"]
                 [org.clojure/java.jdbc "0.3.7"]           ;;jdbc interface to SQL Server
                 [net.sourceforge.jtds/jtds "1.3.1"]       ;;Open Source MS SQL JDBC driver
                 [clojure.jdbc/clojure.jdbc-c3p0 "0.3.2"]]
  :plugins [
            [s3-wagon-private "1.3.1-alpha3"]
            ]
  :profiles
  {:uberjar {:aot :all}
   :production
   {:ring
    {:open-browser? false
     :stacktraces? false
     :auto-reload? false}}
   :dev
   {:ring
    {:port 3000
     :open-browser? false
     :auto-reload? true}
    :dependencies [[ring-mock "0.1.5"]
                   [ring/ring-devel "1.3.1"]]}})

danielcompton21:11:29

Hmm, I'm not sure what's going on there

danielcompton21:11:42

I notice that you have . in the s3 bucket name, but that shouldn't be an issue

danielcompton21:11:51

what happens if you set the access key id and secret access key manually? (just as a test)

dyba21:11:30

jenkins@ip-10-110-61-60:~/workspace/movr3-api-dev$ lein deps
Could not find artifact wardrobe:wardrobe:jar:0.1.3 in central ()
Could not find artifact wardrobe:wardrobe:jar:0.1.3 in clojars ()
Could not transfer artifact wardrobe:wardrobe:jar:0.1.3 from/to releases (): The AWS Access Key Id you provided does not exist in our records. (Service: Amazon S3; Status Code: 403; Error Code: InvalidAccessKeyId; Request ID: BED1B7EB2A04572E; S3 Extended Request ID: UPWQTayqXHbH1lZfmM2zBZx9+aOoiULZ+EjHo3G1XNjZQFhm+HjLLUhzb/mjL/mEyqSw5z6/yww=)
Could not transfer artifact wardrobe:wardrobe:jar:0.1.3 from/to snapshots (): Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: F25B1003B82DE2E0; S3 Extended Request ID: QqbtPNpHsFBwuCvxahbKc/ayI43noSVZy8FjXo6ICugz81gT5/1IyxmnmXyiWBTHPmICP7/RlUY=)
Could not transfer artifact wardrobe:wardrobe:pom:0.1.3 from/to releases (): The AWS Access Key Id you provided does not exist in our records. (Service: Amazon S3; Status Code: 403; Error Code: InvalidAccessKeyId; Request ID: 28BABE9B3DD6272B; S3 Extended Request ID: YNSwbT+5gMnPhgnhXsadTqj6m7ZCQZ3M+TE5vnqQetcmasvlu80Onescc5uRXiCWMpZ6LTkb8V4=)
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.

dyba21:11:48

I pulled the credentials from the metadata service on the EC2 instance

dyba21:11:39

I’m using a role that I’ve attached to this instance