Giter Site home page Giter Site logo

Comments (4)

ZuluPilgrim avatar ZuluPilgrim commented on June 7, 2024 1

I am not sure what was happening. As I work in IT I know things generally don't break without someone doing something but I really don't remember making any changes and I have three other instances on other VMs running with no issue.

I felt there was something in the container that was off so I pulled it down, pruned all aspects from docker and repulled it from the source.

Everything is now up and running again.

Thanks for walking me through this all.

from bookstack.

ssddanbrown avatar ssddanbrown commented on June 7, 2024

Hi @ZuluPilgrim, Looks like a common issue of the app not being able to access the database.

  • Can you check the bookstack_app_data/www/.env file, and where possible confirm the values of any options starting with DB_.
  • Do you remember ever changing any of the database options within the compose config after first boot/run of the stack?

from bookstack.

ZuluPilgrim avatar ZuluPilgrim commented on June 7, 2024

@ssddanbrown thanks for getting back to me. I just tried doing some troubleshooting while away from home and now I van access the site.

I tried editing the document I was working on and all seemed to go well until I hit save as the page eventually returned an unknown error. I then tried logging off and back on again. I got to the MFA page but then it all wen pear-shaped again.

Here is what you asked for

# Database details
DB_HOST='bookstack_db'
DB_PORT='3306'
DB_DATABASE='bookstackapp'
DB_USERNAME='bookstack'
DB_PASSWORD='dbpassword'

Which are correct as I can now browse to the site again.

It looks like I am going to need to wait until the MFA starts working again. Tried incognito mode and that made no difference.

Actually the whole site is now becoming unresponsive again.

I might wait until it is up again and then pull all the docs our and stand up a new instance.

Just got: 504 Gateway Time-out

VM has heaps of disk space and memory.

Also other docker containers are running fine on this VM.

Should I try upgrading to the latest Bookstack? If so, do I just remove existing container and then re-run docker compose as it stands?

from bookstack.

ssddanbrown avatar ssddanbrown commented on June 7, 2024

Okay, I'm a little confused on the state of things now and what's been changed so I'll put out some options:

Original Database Connection Error

If this was the issue things should not be intermittently working unless there's also a networking issue between containers or something like that.

The original error you had appeared to be a connection error to the database. Based on the details provided, it looks like there's been a database password change at some time since the .env file DB_PASSWORD does not align with the compose DB_PASS option. On both the database and app container, the password options can be a bit "sticky" (and don't act upon changes) so it's best to leave these as the original value (which I'd guess is dbpassword unless the env has been manually changed since initial run).

"An error has occurred" message

If you see a "An error has occurred" message, with a BookStack-style header bar still showing, this is an app-level error so should be logged to the app error log, found at bookstack_app_data/www/laravel.log. Find the latest messages for that which have a timestamp that align with when you got the error to show, then share back the error.

504 Gateway Time-out

Generally indicates a webserver/proxy level issue. Check the bookstack_app_data/log/nginx/error.log file for more details. If nothings there, check the logs for any proxy layers involved if you have any.


Should I try upgrading to the latest Bookstack?

IMO that risks just throwing more variables into the picture, think it'd be rare to be something based on the particular version of image you're using.

from bookstack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.