Unable to login

Dear Support,

Recently i have upgraded odk centeral application to v2024.3.2-1-ge4221eb.
After upgradation while login odk centerl login page doesn't give any response.

Server utilization is normal. Server has 64GB RAM.
Can you please help us on that.

Thanks

Dear Support,

As stated in the document (https://docs.getodk.org/central-install-digital-ocean/#central-install-custom-memory), we added the parameter SERVICE_NODE_OPTIONS='--max-old-space-size=32768' to the .env file. After executing the command docker compose build service && docker compose stop service && docker compose up -d service, we encountered errors. The error details can be found in the attached file.

For your information, the server has a total of 64 GB of RAM.

**Additionally, no users are able to log in to the ODK Central dashboard.

++----------------------------------------------
22.43 update-alternatives: using /usr/share/postgresql/14/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
22.47 Processing triggers for libc-bin (2.36-9+deb12u9) ...
31.94 npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
32.42 npm warn deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
32.42 npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
33.10 npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
209.6 npm error code 1
209.6 npm error path /usr/odk/node_modules/bcrypt
209.6 npm error command failed
209.6 npm error command sh -c node-pre-gyp install --fallback-to-build
209.6 npm error Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/odk/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/odk/node_modules/bcrypt/lib/binding/napi-v3 --napi_version=9 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
209.6 npm error node-pre-gyp info it worked if it ends with ok
209.6 npm error node-pre-gyp info using node-pre-gyp@1.0.11
209.6 npm error node-pre-gyp info using node@22.12.0 | linux | x64
209.6 npm error (node:1301) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
209.6 npm error (Use `node --trace-deprecation ...` to show where the warning was created)
209.6 npm error node-pre-gyp info check checked for "/usr/odk/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node" (not found)
209.6 npm error node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.1.1/bcrypt_lib-v5.1.1-napi-v3-linux-x64-glibc.tar.gz
209.6 npm error node-pre-gyp ERR! install request to https://objects.githubusercontent.com/github-production-release-asset-2e65be/611333/248fe5e4-8167-4c00-a22a-6f3733d6efbc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250301%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250301T050208Z&X-Amz-Expires=300&X-Amz-Signature=7730a3764054a1ab036eb474d5cb21223d963b5a407b9ebae3e71793d40bb3a8&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dbcrypt_lib-v5.1.1-napi-v3-linux-x64-glibc.tar.gz&response-content-type=application%2Foctet-stream failed, reason:
209.6 npm error node-pre-gyp WARN Pre-built binaries not installable for bcrypt@5.1.1 and node@22.12.0 (node-v127 ABI, glibc) (falling back to source compile with node-gyp)
209.6 npm error node-pre-gyp WARN Hit error request to https://objects.githubusercontent.com/github-production-release-asset-2e65be/611333/248fe5e4-8167-4c00-a22a-6f3733d6efbc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250301%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250301T050208Z&X-Amz-Expires=300&X-Amz-Signature=7730a3764054a1ab036eb474d5cb21223d963b5a407b9ebae3e71793d40bb3a8&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dbcrypt_lib-v5.1.1-napi-v3-linux-x64-glibc.tar.gz&response-content-type=application%2Foctet-stream failed, reason:
209.6 npm error gyp info it worked if it ends with ok
209.6 npm error gyp info using node-gyp@10.2.0
209.6 npm error gyp info using node@22.12.0 | linux | x64
209.6 npm error gyp info ok
209.6 npm error gyp info it worked if it ends with ok
209.6 npm error gyp info using node-gyp@10.2.0
209.6 npm error gyp info using node@22.12.0 | linux | x64
209.6 npm error gyp ERR! find Python
209.6 npm error gyp ERR! find Python Python is not set from command line or npm configuration
209.6 npm error gyp ERR! find Python Python is not set from environment variable PYTHON
209.6 npm error gyp ERR! find Python checking if "python3" can be used
209.6 npm error gyp ERR! find Python - executable path is ""
209.6 npm error gyp ERR! find Python - "" could not be run
209.6 npm error gyp ERR! find Python checking if "python" can be used
209.6 npm error gyp ERR! find Python - executable path is ""
209.6 npm error gyp ERR! find Python - "" could not be run
209.6 npm error gyp ERR! find Python
209.6 npm error gyp ERR! find Python **********************************************************
209.6 npm error gyp ERR! find Python You need to install the latest version of Python.
209.6 npm error gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
209.6 npm error gyp ERR! find Python you can try one of the following options:
209.6 npm error gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
209.6 npm error gyp ERR! find Python (accepted by both node-gyp and npm)
209.6 npm error gyp ERR! find Python - Set the environment variable PYTHON
209.6 npm error gyp ERR! find Python - Set the npm configuration variable python:
209.6 npm error gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
209.6 npm error gyp ERR! find Python For more information consult the documentation at:
209.6 npm error gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
209.6 npm error gyp ERR! find Python **********************************************************
209.6 npm error gyp ERR! find Python
209.6 npm error gyp ERR! configure error
209.6 npm error gyp ERR! stack Error: Could not find any Python installation to use
209.6 npm error gyp ERR! stack at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:306:11)
209.6 npm error gyp ERR! stack at PythonFinder.findPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:164:17)
209.6 npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
209.6 npm error gyp ERR! stack at async configure (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:27:18)
209.6 npm error gyp ERR! stack at async run (/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js:81:18)
209.6 npm error gyp ERR! System Linux 5.4.0-208-generic
209.6 npm error gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/odk/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/usr/odk/node_modules/bcrypt/lib/binding/napi-v3" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3"
209.6 npm error gyp ERR! cwd /usr/odk/node_modules/bcrypt
209.6 npm error gyp ERR! node -v v22.12.0
209.6 npm error gyp ERR! node-gyp -v v10.2.0
209.6 npm error gyp ERR! not ok
209.6 npm error node-pre-gyp ERR! build error
209.6 npm error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/odk/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/odk/node_modules/bcrypt/lib/binding/napi-v3 --napi_version=9 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
209.6 npm error node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/odk/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
209.6 npm error node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:524:28)
209.6 npm error node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1101:16)
209.6 npm error node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:304:5)
209.6 npm error node-pre-gyp ERR! System Linux 5.4.0-208-generic
209.6 npm error node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/odk/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
209.6 npm error node-pre-gyp ERR! cwd /usr/odk/node_modules/bcrypt
209.6 npm error node-pre-gyp ERR! node -v v22.12.0
209.6 npm error node-pre-gyp ERR! node-pre-gyp -v v1.0.11
209.6 npm error node-pre-gyp ERR! not ok
209.6 npm error A complete log of this run can be found in: /root/.npm/_logs/2025-03-01T05_01_18_831Z-debug-0.log
------
failed to solve: process "/bin/sh -c apt-get update     && apt-get install -y --no-install-recommends         gpg         cron         wait-for-it         gettext         procps         postgresql-client-14         netcat-traditional     && rm -rf /var/lib/apt/lists/*     && npm clean-install --omit=dev --no-audit         --fund=false --update-notifier=false" did not complete successfully: exit code: 1
++----------------------------------------------------

Thanks

What version were you upgrading from? Are you sure you followed all steps as described at https://docs.getodk.org/central-upgrade between that version and the current version?

The hash in your version (-1-ge4221eb) suggests you have made changes to Central. What does git status -v show? What are those changes you've made to those files?

32768 might be an invalid value for RAM if you are on a 32 bit system. Start with 8192 and see if that works.

Dear yanokwa,

Thanks for your update.
Here is the output :

++--------------------------------
git status -v show
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
++-------------------------------------

And i don't have any idea about the older version, i think that was old one which was setup on Jun 2024.

Here is the current version:
++-------------------------------
versions:
e4221ebeb41cd6ccb0cedad0461e5b603c207339 (v2024.3.2-1-ge4221eb)
 8b1de6512faa7a60c05764312caec01f5c138c42 client (v2024.3.2)
 7574030f7ea8750f3837950001a5efcdeba45b92 server (v2024.3.1)
++-------------------------------

I hope you saw the error which i have sent you in the previously. I am sending you full logs:

++---------------------------------------------------
22.43 update-alternatives: using /usr/share/postgresql/14/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
22.47 Processing triggers for libc-bin (2.36-9+deb12u9) ...
31.94 npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
32.42 npm warn deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
32.42 npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
33.10 npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
209.6 npm error code 1
209.6 npm error path /usr/odk/node_modules/bcrypt
209.6 npm error command failed
209.6 npm error command sh -c node-pre-gyp install --fallback-to-build
209.6 npm error Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/odk/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/odk/node_modules/bcrypt/lib/binding/napi-v3 --napi_version=9 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
209.6 npm error node-pre-gyp info it worked if it ends with ok
209.6 npm error node-pre-gyp info using node-pre-gyp@1.0.11
209.6 npm error node-pre-gyp info using node@22.12.0 | linux | x64
209.6 npm error (node:1301) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
209.6 npm error (Use `node --trace-deprecation ...` to show where the warning was created)
209.6 npm error node-pre-gyp info check checked for "/usr/odk/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node" (not found)
209.6 npm error node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.1.1/bcrypt_lib-v5.1.1-napi-v3-linux-x64-glibc.tar.gz
209.6 npm error node-pre-gyp ERR! install request to https://objects.githubusercontent.com/github-production-release-asset-2e65be/611333/248fe5e4-8167-4c00-a22a-6f3733d6efbc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250301%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250301T050208Z&X-Amz-Expires=300&X-Amz-Signature=7730a3764054a1ab036eb474d5cb21223d963b5a407b9ebae3e71793d40bb3a8&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dbcrypt_lib-v5.1.1-napi-v3-linux-x64-glibc.tar.gz&response-content-type=application%2Foctet-stream failed, reason:
209.6 npm error node-pre-gyp WARN Pre-built binaries not installable for bcrypt@5.1.1 and node@22.12.0 (node-v127 ABI, glibc) (falling back to source compile with node-gyp)
209.6 npm error node-pre-gyp WARN Hit error request to https://objects.githubusercontent.com/github-production-release-asset-2e65be/611333/248fe5e4-8167-4c00-a22a-6f3733d6efbc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250301%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250301T050208Z&X-Amz-Expires=300&X-Amz-Signature=7730a3764054a1ab036eb474d5cb21223d963b5a407b9ebae3e71793d40bb3a8&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dbcrypt_lib-v5.1.1-napi-v3-linux-x64-glibc.tar.gz&response-content-type=application%2Foctet-stream failed, reason:
209.6 npm error gyp info it worked if it ends with ok
209.6 npm error gyp info using node-gyp@10.2.0
209.6 npm error gyp info using node@22.12.0 | linux | x64
209.6 npm error gyp info ok
209.6 npm error gyp info it worked if it ends with ok
209.6 npm error gyp info using node-gyp@10.2.0
209.6 npm error gyp info using node@22.12.0 | linux | x64
209.6 npm error gyp ERR! find Python
209.6 npm error gyp ERR! find Python Python is not set from command line or npm configuration
209.6 npm error gyp ERR! find Python Python is not set from environment variable PYTHON
209.6 npm error gyp ERR! find Python checking if "python3" can be used
209.6 npm error gyp ERR! find Python - executable path is ""
209.6 npm error gyp ERR! find Python - "" could not be run
209.6 npm error gyp ERR! find Python checking if "python" can be used
209.6 npm error gyp ERR! find Python - executable path is ""
209.6 npm error gyp ERR! find Python - "" could not be run
209.6 npm error gyp ERR! find Python
209.6 npm error gyp ERR! find Python **********************************************************
209.6 npm error gyp ERR! find Python You need to install the latest version of Python.
209.6 npm error gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
209.6 npm error gyp ERR! find Python you can try one of the following options:
209.6 npm error gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
209.6 npm error gyp ERR! find Python (accepted by both node-gyp and npm)
209.6 npm error gyp ERR! find Python - Set the environment variable PYTHON
209.6 npm error gyp ERR! find Python - Set the npm configuration variable python:
209.6 npm error gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
209.6 npm error gyp ERR! find Python For more information consult the documentation at:
209.6 npm error gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
209.6 npm error gyp ERR! find Python **********************************************************
209.6 npm error gyp ERR! find Python
209.6 npm error gyp ERR! configure error
209.6 npm error gyp ERR! stack Error: Could not find any Python installation to use
209.6 npm error gyp ERR! stack at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:306:11)
209.6 npm error gyp ERR! stack at PythonFinder.findPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:164:17)
209.6 npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
209.6 npm error gyp ERR! stack at async configure (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:27:18)
209.6 npm error gyp ERR! stack at async run (/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js:81:18)
209.6 npm error gyp ERR! System Linux 5.4.0-208-generic
209.6 npm error gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/odk/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/usr/odk/node_modules/bcrypt/lib/binding/napi-v3" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3"
209.6 npm error gyp ERR! cwd /usr/odk/node_modules/bcrypt
209.6 npm error gyp ERR! node -v v22.12.0
209.6 npm error gyp ERR! node-gyp -v v10.2.0
209.6 npm error gyp ERR! not ok
209.6 npm error node-pre-gyp ERR! build error
209.6 npm error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/odk/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/odk/node_modules/bcrypt/lib/binding/napi-v3 --napi_version=9 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
209.6 npm error node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/odk/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
209.6 npm error node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:524:28)
209.6 npm error node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1101:16)
209.6 npm error node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:304:5)
209.6 npm error node-pre-gyp ERR! System Linux 5.4.0-208-generic
209.6 npm error node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/odk/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
209.6 npm error node-pre-gyp ERR! cwd /usr/odk/node_modules/bcrypt
209.6 npm error node-pre-gyp ERR! node -v v22.12.0
209.6 npm error node-pre-gyp ERR! node-pre-gyp -v v1.0.11
209.6 npm error node-pre-gyp ERR! not ok
209.6 npm error A complete log of this run can be found in: /root/.npm/_logs/2025-03-01T05_01_18_831Z-debug-0.log
------
failed to solve: process "/bin/sh -c apt-get update     && apt-get install -y --no-install-recommends         gpg         cron         wait-for-it         gettext         procps         postgresql-client-14         netcat-traditional     && rm -rf /var/lib/apt/lists/*     && npm clean-install --omit=dev --no-audit         --fund=false --update-notifier=false" did not complete successfully: exit code: 1
++-----------------------------------------------------------------

Run git status -v NOT git status -v show

Same output after run git status -v

++------------------------------------------
git status -v
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
++------------------------------