Skip to content
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

Error when running make docker-compose #617

Open
mfissehaye opened this issue Dec 8, 2024 · 1 comment
Open

Error when running make docker-compose #617

mfissehaye opened this issue Dec 8, 2024 · 1 comment

Comments

@mfissehaye
Copy link

mfissehaye commented Dec 8, 2024

I am getting this error when running make docker-compose

server-server-1    | Booting up backend w/ local db...
server-server-1    | Migrating database
server-server-1    | Using config at resources/config/override.edn
server-server-1    | no change
server-server-1    | ++ dirname dev-resources/import_test_data.sh
server-server-1    | + PWD=dev-resources
server-server-1    | ++ head -1 dev-resources/users.csv
server-server-1    | ++ sed 's/,/, /g'
server-server-1    | + psql -d 'postgresql://instant:pass@postgres:5432/instant?sslmode=disable' -c '\copy instant_users (id, email, created_at, google_sub) from '\''dev-resources/users.csv'\'' with (format csv, header true);'
server-server-1    | dev-resources/import_test_data.sh: line 7: psql: command not found
server-server-1    | {:clojure.main/message
server-server-1    |  "Execution error at clojure.java.process/exec (process.clj:172).\nProcess failed with exit=127\n",
server-server-1    |  :clojure.main/triage
server-server-1    |  {:clojure.error/class java.lang.RuntimeException,
server-server-1    |   :clojure.error/line 172,
server-server-1    |   :clojure.error/cause "Process failed with exit=127",
server-server-1    |   :clojure.error/symbol clojure.java.process/exec,
server-server-1    |   :clojure.error/source "process.clj",
server-server-1    |   :clojure.error/phase :execution},
server-server-1    |  :clojure.main/trace
server-server-1    |  {:via
server-server-1    |   [{:type java.lang.RuntimeException,
server-server-1    |     :message "Process failed with exit=127",
server-server-1    |     :at [clojure.java.process$exec invokeStatic "process.clj" 172]}],
server-server-1    |   :trace
server-server-1    |   [[clojure.java.process$exec invokeStatic "process.clj" 172]
server-server-1    |    [clojure.java.process$exec doInvoke "process.clj" 159]
server-server-1    |    [clojure.lang.RestFn invoke "RestFn.java" 439]
server-server-1    |    [tasks$migrate_database invokeStatic "tasks.clj" 83]
server-server-1    |    [tasks$migrate_database invoke "tasks.clj" 74]
server-server-1    |    [tasks$bootstrap_for_oss invokeStatic "tasks.clj" 93]
server-server-1    |    [tasks$bootstrap_for_oss invoke "tasks.clj" 88]
server-server-1    |    [clojure.lang.Var invoke "Var.java" 386]
server-server-1    |    [clojure.run.exec$exec invokeStatic "exec.clj" 89]
server-server-1    |    [clojure.run.exec$exec invoke "exec.clj" 78]
server-server-1    |    [clojure.run.exec$_main$fn__9804 invoke "exec.clj" 228]
server-server-1    |    [clojure.run.exec$_main invokeStatic "exec.clj" 224]
server-server-1    |    [clojure.run.exec$_main doInvoke "exec.clj" 192]
server-server-1    |    [clojure.lang.RestFn invoke "RestFn.java" 400]
server-server-1    |    [clojure.lang.AFn applyToHelper "AFn.java" 152]
server-server-1    |    [clojure.lang.RestFn applyTo "RestFn.java" 135]
server-server-1    |    [clojure.lang.Var applyTo "Var.java" 707]
server-server-1    |    [clojure.core$apply invokeStatic "core.clj" 667]
server-server-1    |    [clojure.main$main_opt invokeStatic "main.clj" 515]
server-server-1    |    [clojure.main$main_opt invoke "main.clj" 511]
server-server-1    |    [clojure.main$main invokeStatic "main.clj" 665]
server-server-1    |    [clojure.main$main doInvoke "main.clj" 617]
server-server-1    |    [clojure.lang.RestFn applyTo "RestFn.java" 140]
server-server-1    |    [clojure.lang.Var applyTo "Var.java" 707]
server-server-1    |    [clojure.main main "main.java" 40]],
server-server-1    |   :cause "Process failed with exit=127"}}
server-server-1    |
server-server-1    | Execution error at clojure.java.process/exec (process.clj:172).
server-server-1    | Process failed with exit=127
server-server-1    |
server-server-1    |
server-server-1    | make: *** [Makefile:14: dev-oss] Error 1
server-server-1 exited with code 2

One thing though, I don't have a .env file, in case it is required. I couldn't find any .env.example file in the server directory

@Galzk
Copy link

Galzk commented Dec 13, 2024

Had to modify Dockerfile-dev and add

RUN yum -y install tar gzip git make postgresql15

In line 5

Then run docker-compose -f server/docker-compose-dev.yml up --build -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants