What is Nostr?
stove5
npub1023…5v6d
2024-09-02 04:01:02

stove5 on Nostr: Alex is it expected that Ditto wouldn't run when using a remote Postgres database? I ...

Alex (npub1q3s…d26p) is it expected that Ditto (npub10qd…arpj) wouldn't run when using a remote Postgres database? I tried following the setup instructions for installing Ditto with an already-provisioned DB (I've confirmed I can access it from the server I'm installing Ditto onto) and then skipped this step: https://docs.soapbox.pub/ditto/install#_2-d-provision-the-database.

It seems the Ditto service is in a crash loop now:

Sep 02 03:45:03 ip-172-31-23-189 deno[13545]: Running migrations...
Sep 02 03:45:03 ip-172-31-23-189 deno[13545]: error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace')
Sep 02 03:45:03 ip-172-31-23-189 deno[13545]: stack: { value: err.stack + query.origin.replace(/.*\n/, '\n'), enumerable: options.debug },
Sep 02 03:45:03 ip-172-31-23-189 deno[13545]: ^
Sep 02 03:45:03 ip-172-31-23-189 deno[13545]: at queryError (https://raw.githubusercontent.com/xyzshantaram/postgres.js/8a9bbce88b3f6425ecaacd99a80372338b157a53/deno/src/connection.js:392:48)
Sep 02 03:45:03 ip-172-31-23-189 deno[13545]: at errored (https://raw.githubusercontent.com/xyzshantaram/postgres.js/8a9bbce88b3f6425ecaacd99a80372338b157a53/deno/src/connection.js:387:17)
Sep 02 03:45:03 ip-172-31-23-189 deno[13545]: at error (https://raw.githubusercontent.com/xyzshantaram/postgres.js/8a9bbce88b3f6425ecaacd99a80372338b157a53/deno/src/connection.js:379:5)
Sep 02 03:45:03 ip-172-31-23-189 deno[13545]: at https://raw.githubusercontent.com/xyzshantaram/postgres.js/8a9bbce88b3f6425ecaacd99a80372338b157a53/deno/polyfills.js:138:30
Sep 02 03:45:03 ip-172-31-23-189 deno[13545]: at Array.forEach (<anonymous>)
Sep 02 03:45:03 ip-172-31-23-189 deno[13545]: at call (https://raw.githubusercontent.com/xyzshantaram/postgres.js/8a9bbce88b3f6425ecaacd99a80372338b157a53/deno/polyfills.js:138:16)
Sep 02 03:45:03 ip-172-31-23-189 deno[13545]: at error (https://raw.githubusercontent.com/xyzshantaram/postgres.js/8a9bbce88b3f6425ecaacd99a80372338b157a53/deno/polyfills.js:131:5)
Sep 02 03:45:03 ip-172-31-23-189 deno[13545]: at success (https://raw.githubusercontent.com/xyzshantaram/postgres.js/8a9bbce88b3f6425ecaacd99a80372338b157a53/deno/polyfills.js:105:9)
Sep 02 03:45:03 ip-172-31-23-189 deno[13545]: at eventLoopTick (ext:core/01_core.js:168:7)
Sep 02 03:45:03 ip-172-31-23-189 systemd[1]: ditto.service: Main process exited, code=exited, status=1/FAILURE
Author Public Key
npub1023ttqpf2qkzy9lhr8k7lgdugpcvkmtzca7lnurz69guxhgty3lq5a5v6d