Skip to content

More trouble #8

@opsecx

Description

@opsecx

@egasimus now I try again, fresh complete repull.

It seems everything has been altered with how db is handled, not much to my liking.

first, when I run node src/config.js, I get:

"file:///home/(user)/undexer/src/config.js:87
VALIDATOR_FETCH_PARALLEL,
^

ReferenceError: VALIDATOR_FETCH_PARALLEL is not defined
at file:///home/(user)/undexer/src/config.js:87:5
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)

Node.js v20.15.0"

So I can't check if it parses the env variables correctly.

When I run ./undexer index, I get the following:

"./undexer index
⏳ Starting @hackbg/undexer 3.0.0...
⏳ Compiling TypeScript...
⌛ Compiled TypeScript in 0.032s

✔ DB Creating database "housefire-envelope.b8f955720ab"...
× DB error: permission denied to create database
at /home/(user)/undexer/node_modules/.pnpm/pg@8.12.0/node_modules/pg/lib/client.js:526:17
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///home/(user)/undexer/src/db.js:24:3 {
length: 93,
severity: 'ERROR',
code: '42501',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'dbcommands.c',
line: '332',
routine: 'createdb'
}
× DB Failed to create database "housefire-envelope.b8f955720ab". See above for details."

I'm not about to give undexer the master-password for my entire postgres installation, so it can create databases at will.(!)

The previous setup I gave it username and password for a specific database which I expected it to use (may I recommend using separate schemata like Namadexer did for the different network ids?), now it seems to want to create databases for each network? Unless it doesn't parse the .env which I halfways suspect is the issue here, but again can't test.

Please advise.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions