Comments (4)
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.
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 withDB_
. - Do you remember ever changing any of the database options within the compose config after first boot/run of the stack?
from bookstack.
@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.
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)
- Tiered permissions - Managers can promote employees to managers, but not to admins. HOT 1
- LDAP Group sync dont works HOT 9
- Logging of mails that could not be delivered.
- How Fix Access Denied Error? HOT 3
- Improve/clarify backup code description text
- MFA setup view: Titles are not visible on dark mode
- Missing avatars after update to Bookstack v24.05 HOT 2
- Tamil Translation of Bookstack
- Div tag for whole page HOT 3
- Could not find driver issue HOT 4
- Request to open translation contribution for Bengali language in crowdin
- Scoped Webhooks
- Issues setting up M365 SMTP email sending HOT 2
- Diff arbitrary revisions of pages HOT 1
- Change inline code highlighted text HOT 2
- GIF Thumbnail creation fails, breaking the image picker window HOT 9
- Nested collapsible blocks: Ghost inline-code block
- Editor draft actions should dismiss existing notifications so success notifications are clear HOT 3
- Can't create a first page: Illegal offset type HOT 5
- "Override permissions for role" Not Working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bookstack.