fr0tt / benotes

An open source self hosted notes and bookmarks taking web app.
https://benotes.org
MIT License
718 stars 49 forks source link

Login not working #69

Closed tstanciu closed 1 year ago

tstanciu commented 1 year ago

Login not working. I installed the application with docker and executed the two commands:

image

I have attached the logs from the container: _benotes_logs.txt

I reinstalled the application from scratch several times, but every time I got stuck at this point.

fr0tt commented 1 year ago

Did you encounter any error messages while executing those two commands ? Is there anything of value in the storage/logs/laravel.log file ?

tstanciu commented 1 year ago

Initially, I built my docker-compose file and received the above error.

version: "3.9"
services:
  benotes:
    image: fr0tt/benotes
    container_name: benotes
    environment:
      - APP_NAME=Benotes
      - APP_ENV=development
      - APP_DEBUG=true
      - APP_URL=http://localhost:8001
      - APP_KEY=RNUVfISsdvwHlJ3nqzUPW8yVQKzYK78n7wG0ZieA8+s=
      - JWT_SECRET=Jpoh+76cW49gyX2aOQeJnOL2wOc+I8xJmkhUIO/Yd1Y=
      - USE_FILESYSTEM=true
      - RUN_MIGRATIONS=false
      - DB_CONNECTION=sqlite
      - DB_HOST=
      - DB_PORT=
      - DB_DATABASE=storage/database.sqlite
      - DB_USERNAME=
      - DB_PASSWORD=
      - CACHE_DRIVER=file
      - QUEUE_CONNECTION=sync
      - MAIL_DRIVER=smtp
      - MAIL_HOST=
      - MAIL_PORT=587
      - MAIL_USERNAME=
      - MAIL_PASSWORD=
      - MAIL_ENCRYPTION=tls
      - MAIL_FROM_ADDRESS=
      - MAIL_FROM_NAME="Benotes"
    volumes:
      - benotes_storage:/var/www/storage
      - benotes_nginx_logs:/var/lib/nginx/logs
    ports:
      - 8001:80
volumes:
  benotes_storage:
  benotes_nginx_logs:

After that I followed the steps from here https://benotes.org/docs/installation/docker-compose and everything worked. I will close the ticket. Thank you

tstanciu commented 1 year ago

I didn't get any error message when I ran the two commands. Maybe the docker-compose is not correct either because I quickly generated it with ChatGPT starting from "docker run" command

tstanciu commented 1 year ago

development.ERROR: Database (storage/database.sqlite) does not exist.

laravel.log