You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered an issue when trying to upload an SQL file to the dbspy service. The following error appears in the logs:
[09:53:35.000] INFO: Securely Running at 3000
dbspy-dbspy-1 | Error: secret option required for sessions
dbspy-dbspy-1 | at session (/usr/src/app/node_modules/express-session/index.js:200:12)
dbspy-dbspy-1 | at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
dbspy-dbspy-1 | at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:328:13)
dbspy-dbspy-1 | at /usr/src/app/node_modules/express/lib/router/index.js:286:9
dbspy-dbspy-1 | at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:346:12)
dbspy-dbspy-1 | at next (/usr/src/app/node_modules/express/lib/router/index.js:280:10)
dbspy-dbspy-1 | at SendStream.error (/usr/src/app/node_modules/serve-static/index.js:121:7)
dbspy-dbspy-1 | at SendStream.emit (node:events:520:28)
dbspy-dbspy-1 | at SendStream.emit (node:domain:488:12)
dbspy-dbspy-1 | at SendStream.error (/usr/src/app/node_modules/send/index.js:270:17)
Reproduction
Steps to Reproduce:
Pull the latest code from the repository.
Build the Docker image using the provided Dockerfile that I adjusted as shown below
Start the Docker container using docker-compose provided below.
Try to upload an SQL file to the dbspy service.
Expected Behavior:
The SQL file should be uploaded successfully without any errors.
Actual Behavior:
The service logs an error indicating that the secret option is required for session management.
System information
System:
OS: Linux 6.2 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
CPU: (2) x64 Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
Memory: 926.69 MB / 3.76 GB
Container: Yes
Shell: 5.2.15 - /bin/bash
Binaries:
Node: 22.2.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.7.0 - /usr/local/bin/npm
Additional information
Below is the current Dockerfile and docker-compose.yml used:
Dockerfile:
FROM node:latest
WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y libnss3-tools wget && \
wget https://dl.filippo.io/mkcert/latest?for=linux/amd64 -O /usr/local/bin/mkcert && \
chmod +x /usr/local/bin/mkcert && \
mkcert -install
COPY . /usr/src/app
RUN npm ci && npm cache clean --force && npm run build
RUN npm run cert:linux
EXPOSE 3000
ENTRYPOINT ["npm", "run", "start"]
Description
I've encountered an issue when trying to upload an SQL file to the dbspy service. The following error appears in the logs:
Reproduction
Steps to Reproduce:
docker-compose
provided below.Expected Behavior:
The SQL file should be uploaded successfully without any errors.
Actual Behavior:
The service logs an error indicating that the
secret
option is required for session management.System information
System:
Binaries:
Additional information
Below is the current
Dockerfile
anddocker-compose.yml
used:Dockerfile:
docker-compose.yml:
.env file
👨👧👦 Contributing
The text was updated successfully, but these errors were encountered: