plesk / plesk/docker

Mysql & Nginx issue while running Plesk docker on Kubernetes

Open
#12 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Dockerfile
Stars
98
Forks
49
Avg merge
57m
Merged PRs (30d)
1

Description

Description
  • I am trying to run this (plesk/plesk:latest) docker container on my kuberntes v1.7.8-gke.0 running on Google Container engine.
  • The issue I am facing is that plesk redirect me to login page after few second of browsing on plesk dashboard.
  • Following is my deployment & service
apiVersion: v1
kind: Service
metadata:
  name: plesk
  labels:
    app: plesk
spec:
  selector:
    app: plesk
  ports:
  - port: 8880
    targetPort: port-8880
    name: port-8880
  - port: 21
    targetPort: port-21
    name: port-21
  - port: 80
    targetPort: port-80
    name: port-80
  - port: 443
    targetPort: port-443
    name: port-443
  - port: 8443
    targetPort: port-8443
    name: port-8443
  - port: 8447
    targetPort: port-8447
    name: port-8447
  type: LoadBalancer

---

apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: plesk
spec:
  replicas: 1
  progressDeadlineSeconds: 300
  template:
    metadata:
      labels:
        app: plesk
    spec:
      containers:
      - name: plesk
        image: plesk/plesk
        ports:
        - name: port-8880
          containerPort: 8880
        - name: port-21
          containerPort: 21
        - name: port-80
          containerPort: 80
        - name: port-443
          containerPort: 443
        - name: port-8443
          containerPort: 8443
        - name: port-8447
          containerPort: 8447
  1. Sync IP addresses between Plesk and OS. For that go to Tools & Settings > IP Addresses > Reread IP
  2. Select Repair to fix missing IP in the interface or Remove if it is no longer required.
  3. Enable nginx service:
# /usr/local/psa/admin/bin/nginxmng -e
  • On step 2 when I click on repair, it's showing me following error
Error: ifmng failed: Execution of /sbin/ip addr add 172.17.0.3/255.255.0.0 dev eth0 label eth0:1 failed with return code 2. Stderr is RTNETLINK answers: Operation not permitted
  • The issue I am facing is that plesk redirect me to login page after few second of browsing on plesk dashboard.

  • This issues never came when I ran the same on my Ubuntu 16.04 Host machine using plain docker. using following command

docker run -d -P plesk/plesk

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Kubernetes Service and Deployment manifest in the issue, then reproduce the Plesk container on the stated Kubernetes version and compare it with the plain Docker run. Investigate the reported MySQL timestamp workaround, Nginx IP error, and dashboard login redirect; done means both services start without manual repair and the dashboard remains usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, gcp, kubernetes, mysql, nginx
Domain
cloud, devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.