Apache permission denied when binding to address
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- apache, aws, helm, kubernetes, postgresql
- Lĩnh vực
- cloud, devops, infrastructure
Hướng nghiên cứu
Bắt đầu với values.yaml được cung cấp, đặc biệt là nextcloud.securityContext, containerPort và Kubernetes deployment được tạo bởi Helm chart. Tái hiện lỗi khởi động Apache trong EKS và theo dõi các cài đặt bảo mật đã được render; công việc được xem là hoàn tất khi chart khởi động thành công trong khi vẫn giữ cấu hình storage non-root đã được báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe your Issue
Nextcloud doesn't start because of apache not being able to bind to port 80. I tried to set the sysctls option, I tried runAsNonRoot false, changing the containerPort to a non privileged port, but nothing works.
I'm using a traefik reverse proxy as an ingress controller which is confgured correctly(it is used for all our production stacks).
Logs and Errors
| Initializing nextcloud 30.0.6.2 ... │
│ New nextcloud instance │
│ Installing with PostgreSQL database │
│ => Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/pre-installation │
│ Starting nextcloud installation │
│ Nextcloud was successfully installed │
│ Setting trusted domains… │
│ System config value trusted_domains => 1 set to string xxxxxxxxxxxxxxx │
│ => Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/post-installation │
│ Initializing finished │
│ => Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting │
│ AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.11.19.106. Set the 'ServerName' directive globally to suppress this message │
│ (13)Permission denied: AH00072: make_sock: could not bind to address [::]:80 │
│ (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80 │
│ no listening sockets available, shutting down │
│ AH00015: Unable to open logs
Describe your Environment
-
Kubernetes distribution: eks
-
Helm Version (or App that manages helm): helm v3.16.2
-
Helm Chart Version: 6.6.9
-
values.yaml:
image:
pullPolicy: Always
phpClientHttpsFix:
enabled: false
protocol: https
nextcloud:
host: xxxxxxxxxxxxxxxx
username: admin
password: xxxxxxxxxxxxxx
containerPort: 80
datadir: /var/www/html/data
securityContext:
runAsUser: 50002
runAsNonRoot: true
sysctls:
- name: net.ipv4.ip_unprivileged_port_start
value: "0"
objectStore:
s3:
enabled: true
accessKey: "xxxxxxxxx"
secretKey: "xxxxxxx"
ssl: true
port: "443"
region: "xxxxxxxxxxxxx"
bucket: "xxxxxxxxxxx"
# Extra config files created in /var/www/html/config/
# ref: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-config-php-file
configs: {}
# For example, to enable image and text file previews:
# previews.config.php: |-
# <?php
# $CONFIG = array (
# 'enable_previews' => true,
# 'enabledPreviewProviders' => array (
# 'OC\Preview\Movie',
# ),
# );
internalDatabase:
enabled: false
externalDatabase:
enabled: true
type: postgresql
host: "aurora1.xxxxxxxxx.com"
user: xxxxxxxx
password: "xxxxxx"
database: xxxxxx
persistence:
enabled: true
storageClass: "efs-sc"
accessMode: ReadWriteOnce
size: 8Gi
livenessProbe:
enabled: false
initialDelaySeconds: 120
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 1
readinessProbe:
enabled: false
initialDelaySeconds: 120
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 1
startupProbe:
enabled: false
initialDelaySeconds: 120
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 30
successThreshold: 1
Additional context, if any
We're using NFS for persistance using AWS EFS, it works fine. We're using Aurora PostgreSQL as a database, it works fine too. I turned off the probes temporarily because the initialization lasts for 5-10 minutes.
I've set runAsUser: 50002 because that was the only way to make storage permissions work.
- Ngôn ngữ chính
- Go Template
- Star
- 541
- Fork
- 318
- Merge trung bình
- 4 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/helm
-
No native support for REDIS_USER enviroment varCó thể đã có người làm @jholmes802 đã nhận 22 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Make probe paths configurable (liveness on /status.php restarts healthy pods during dependency outages)Có thể đã có người làm @MishowHD đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Failed to inspect imageĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Nextcloud pods run as the namespace's default service account: the chart's account is only created with rbac.enabled, which binds the removed PodSecurityPolicyCó thể đã có người làm @martin-mat đã nhận 13 ngày trước. Đang mở
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 55/100
-
nextcloud.openmetrics.allowedClients is silently ignored unless nextcloud.configs is setCó thể đã có người làm @JanWelker đã nhận 38 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 78/100
Tất cả issue của nextcloud/helm
Issue tương tự
-
bug triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
radius-project/radius#13566 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area: Documentation :page_facing_up: Needs: Triage :mag: Product: Accelerator :zap:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Azure/Azure-Landing-Zones#4329 · 1 bình luận ·
-
Migrate to new log group formatĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
aws-samples/serverless-patterns#3402 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug s3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày