Comments (12)
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
from docker-bookstack.
A human has marked this issue as invalid, this likely happened because the issue template was not used in the creation of the issue.
from docker-bookstack.
Please post your actual compose (redacted personal information)
from docker-bookstack.
—-
version: "2"
services:
bookstack:
image: lscr.io/linuxserver/bookstack
container_name: bookstack
environment:
- PUID=1000
- PGID=1000
- APP_URL=https://172.28.0.32:6875
- DB_HOST=bookstack_db
- DB_PORT=3306
- DB_USER=bookstack
- DB_PASS=pass
- DB_DATABASE=bookstackapp
volumes:
- ./bookstack_app_data:/config
ports:
- 6875:80
restart: unless-stopped
depends_on:
- bookstack_db
bookstack_db:
image: lscr.io/linuxserver/mariadb
container_name: bookstack_db
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=pass
- TZ=America/Los_Angeles
- MYSQL_DATABASE=bookstackapp
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=pass
volumes:
- ./bookstack_db_data:/config
restart: unless-stopped
from docker-bookstack.
Replaced only my passwords with “pass” for this reply. Everything else is just as it is here
from docker-bookstack.
In the case anyone else is stuck... I found the issue. I don't use IPv6. This is explicitly added in the default sites config.
docker exec into your container then go to /config/nginx/site-confs and edit the "default.conf" file. Either remove the lines under "listen 80 ..." and "listen 443 ..." that contain the "[::]:80" and "[::]:443" or add the following to the line:
listen [::]:80 ipv6only=on default_server;
Reference: https://stackoverflow.com/questions/14972792/nginx-nginx-emerg-bind-to-80-failed-98-address-already-in-use
`[::]:80 is a ipv6 address.
This error can be caused if you have a nginx configuration that is listening on port 80 and also on port [::]:80.
I had the following in my default sites-available file:
listen 80;
listen [::]:80 default_server;
You can fix this by adding ipv6only=on to the [::]:80 like this:
listen 80;
listen [::]:80 ipv6only=on default_server;`
from docker-bookstack.
Creator of the dockerfile should not assume all users use IPv6.
from docker-bookstack.
Creator of the dockerfile should not assume all users use IPv6.
We don't. In fact most of the team members don't use ipv6. I believe this issue you're facing only affects people who explicitly disable ipv6 on their os. You really don't need to.
from docker-bookstack.
We have both configurations in our nginx so our containers are usable in both environments. I assume this is only failing because you've specifically disabled ipv6 on your host.
from docker-bookstack.
closing this as OP was explicitly disabling an entire protocol for no reason which caused the issue.
from docker-bookstack.
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Took the docker-compose file, edited passwords and set my localhost IP address followed by the port 6875 for APP_URL and I see this constantly in the docker logs: nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
Expected Behavior
No response
Steps To Reproduce
copy and paste your compose info, edit personal data (passwords, IP address for APP_URL), docker-compose up
Environment
- OS:ubuntu 22.04 - How docker service was installed: distro's package manager
CPU architecture
x86-64
Docker creation
ran with docker-composeContainer logs
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
For what it's worth... it was that IPV6 was disabled systemwide fore me - Everything went back to normal after I re-enabled it
from docker-bookstack.
For what it's worth... it was that IPV6 was disabled systemwide fore me - Everything went back to normal after I re-enabled it
we know, thats why i said disabling the entire protocol stack, against any common judgement, was the cause just above your post...
from docker-bookstack.
Related Issues (20)
- [BUG] Environment variables not being passed to /config/www/.env HOT 12
- [BUG] production.ERROR: Error when attempting image upload:Unable to create a directory at /app/www/public/uploads/images /user/2023-10 HOT 2
- [BUG] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'bookstack.users' doesn't exist in /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:414 HOT 4
- [BUG] An Error Occurred An unknown error occurred HOT 15
- [BUG] Error at container setup while chown-ing laravel.log HOT 10
- [BUG] <DB User Acces denied>
- Nginx can not support IPV6? HOT 6
- SQLSTATE Error during migration HOT 4
- [FEAT] Add Version Tags to docker images HOT 6
- Cannot login with the default user and password - Issue also to create a new admin user inside of the Docker HOT 4
- SQLSTATE during migration HOT 3
- [BUG] Error uploading big images HOT 6
- [BUG] SQL error attempting to create table "migration" HOT 2
- [BUG] uploaded images can not be found after move to container HOT 3
- [BUG] NGINX inside the image is badly configured. HOT 6
- 500 Internal Server Error HOT 12
- QNAP QTS Container Station deployment HOT 4
- [BUG] EXIF functionality of bookstack not working, due to missing package HOT 2
- [BUG] HTTP ERROR 500 occurred while uploading a cover to a shelf or book HOT 2
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 docker-bookstack.