nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

Login Bad Gateway after clean install ARM64v8

Open sojab0on opened this issue 3 years ago • 2 comments

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug

After a clean pull and startup of the docker containers the login page comes up but if i try the default login stated in the guide it goes to bad gateway

Nginx Proxy Manager Version

To Reproduce Steps to reproduce the behavior:

  1. Go to IP of server
  2. Click on 'fill in default user creds'
  3. Scroll down to 'click sign in '
  4. See error

Expected behavior After puting in the default login and click sign in the system logs in

Screenshots

Operating System Ubuntu 20.04.3 LTS ARM64 build for Oracle OCI Ampere cpus

Additional context

code: 'EISDIR', syscall: 'open', path: './config/production.json' } 1: 0xafa3a0 node::Abort() [node] 2: 0xafc89c [node] 3: 0xd31df0 [node] 4: 0xd32e4c v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [node] 5: 0x15511cc [node] ./run: line 19: 474 Aborted (core dumped) node --abort_on_uncaught_exception --max_old_space_size=250 index.js [6/21/2022] [8:44:59 AM] [Global ] › ℹ info Generating MySQL knex configuration from environment variables [6/21/2022] [8:44:59 AM] [Global ] › ✖ error Could not write db config to config file: ./config/production.json node:internal/process/promises:279 triggerUncaughtException(err, true /* fromPromise /); ^ [Error: EISDIR: illegal operation on a directory, open './config/production.json'] { errno: -21, code: 'EISDIR', syscall: 'open', path: './config/production.json' } 1: 0xafa3a0 node::Abort() [node] 2: 0xafc89c [node] 3: 0xd31df0 [node] 4: 0xd32e4c v8::internal::Builtin_HandleApiCall(int, unsigned long, v8::internal::Isolate*) [node] 5: 0x15511cc [node] ./run: line 19: 486 Aborted (core dumped) node --abort_on_uncaught_exception --max_old_space_size=250 index.js [6/21/2022] [8:45:01 AM] [Global ] › ℹ info Generating MySQL knex configuration from environment variables [6/21/2022] [8:45:01 AM] [Global ] › ✖ error Could not write db config to config file: ./config/production.json node:internal/process/promises:279 triggerUncaughtException(err, true /* fromPromise /); ^ [Error: EISDIR: illegal operation on a directory, open './config/production.json'] { errno: -21, code: 'EISDIR', syscall: 'open', path: './config/production.json' } 1: 0xafa3a0 node::Abort() [node] 2: 0xafc89c [node] 3: 0xd31df0 [node] 4: 0xd32e4c v8::internal::Builtin_HandleApiCall(int, unsigned long, v8::internal::Isolate*) [node] 5: 0x15511cc [node] ./run: line 19: 498 Aborted (core dumped) node --abort_on_uncaught_exception --max_old_space_size=250 index.js [6/21/2022] [8:45:02 AM] [Global ] › ℹ info Generating MySQL knex configuration from environment variables [6/21/2022] [8:45:02 AM] [Global ] › ✖ error Could not write db config to config file: ./config/production.json node:internal/process/promises:279 triggerUncaughtException(err, true /* fromPromise /); ^ [Error: EISDIR: illegal operation on a directory, open './config/production.json'] { errno: -21, code: 'EISDIR', syscall: 'open', path: './config/production.json' } 1: 0xafa3a0 node::Abort() [node] 2: 0xafc89c [node] 3: 0xd31df0 [node] 4: 0xd32e4c v8::internal::Builtin_HandleApiCall(int, unsigned long, v8::internal::Isolate*) [node] 5: 0x15511cc [node] ./run: line 19: 510 Aborted (core dumped) node --abort_on_uncaught_exception --max_old_space_size=250 index.js [6/21/2022] [8:45:03 AM] [Global ] › ℹ info Generating MySQL knex configuration from environment variables [6/21/2022] [8:45:03 AM] [Global ] › ✖ error Could not write db config to config file: ./config/production.json node:internal/process/promises:279 triggerUncaughtException(err, true /* fromPromise /); ^ [Error: EISDIR: illegal operation on a directory, open './config/production.json'] { errno: -21, code: 'EISDIR', syscall: 'open', path: './config/production.json' } 1: 0xafa3a0 node::Abort() [node] 2: 0xafc89c [node] 3: 0xd31df0 [node] 4: 0xd32e4c v8::internal::Builtin_HandleApiCall(int, unsigned long, v8::internal::Isolate*) [node] 5: 0x15511cc [node] ./run: line 19: 522 Aborted (core dumped) node --abort_on_uncaught_exception --max_old_space_size=250 index.js [6/21/2022] [8:45:05 AM] [Global ] › ℹ info Generating MySQL knex configuration from environment variables [6/21/2022] [8:45:05 AM] [Global ] › ✖ error Could not write db config to config file: ./config/production.json node:internal/process/promises:279 triggerUncaughtException(err, true /* fromPromise /); ^ [Error: EISDIR: illegal operation on a directory, open './config/production.json'] { errno: -21, code: 'EISDIR', syscall: 'open', path: './config/production.json' } 1: 0xafa3a0 node::Abort() [node] 2: 0xafc89c [node] 3: 0xd31df0 [node] 4: 0xd32e4c v8::internal::Builtin_HandleApiCall(int, unsigned long, v8::internal::Isolate*) [node] 5: 0x15511cc [node] Log output from portainer of the proxymanager Docker

sojab0on avatar Jun 21 '22 08:06 sojab0on

This is the important line from your log file:

error Could not write db config to config file: ./config/production.json

The error suggests, check where your docker config is pointing for /app/config/production.json and make sure its writeable. Although you appear to be putting the contents of the file into environment variables, they have to be written out for NPM to use them. This is the piece that appears to be failing.

the1ts avatar Jun 24 '22 10:06 the1ts

I updated from 2.9.13 to 2.9.18, once the NPM admin page was back up and running for ~10-20 seconds I also had this, tried again after a while and it was working once more, once again.

dutch2005 avatar Jun 30 '22 13:06 dutch2005

Issue is now considered stale. If you want to keep it open, please comment :+1:

github-actions[bot] avatar Feb 15 '24 01:02 github-actions[bot]