cells
cells copied to clipboard
Docker Port Issue running this on Rancher
I tried running this on Rancher (K8 backend) and UI would not start up.
Container Configuration
apiVersion: v1
kind: Pod
metadata:
annotations:
cattle.io/timestamp: "2019-10-04T12:54:09Z"
cni.projectcalico.org/podIP: 10.42.2.87/32
field.cattle.io/ports: '[[{"containerPort":8080,"dnsName":"pydio-nodeport","kind":"NodePort","name":"8080tcp303041","protocol":"TCP","sourcePort":30304}]]'
creationTimestamp: "2019-10-04T12:54:10Z"
generateName: pydio-58669c866d-
labels:
pod-template-hash: 58669c866d
workload.user.cattle.io/workloadselector: deployment-pydio-pydio
name: pydio-58669c866d-4q6q6
namespace: pydio
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: pydio-58669c866d
uid: 0ee9df94-e6a6-11e9-a948-0050569da000
resourceVersion: "10830583"
selfLink: /api/v1/namespaces/pydio/pods/pydio-58669c866d-4q6q6
uid: 0eed2829-e6a6-11e9-a948-0050569da000
spec:
containers:
- env:
- name: CELLS_BIND
value: localhost:8080
- name: CELLS_EXTERNAL
value: localhost:8080
image: pydio/cells
imagePullPolicy: Always
name: pydio
ports:
- containerPort: 8080
name: 8080tcp303041
protocol: TCP
resources: {}
securityContext:
allowPrivilegeEscalation: false
capabilities: {}
privileged: false
procMount: Default
readOnlyRootFilesystem: false
runAsNonRoot: false
stdin: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
tty: true
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-xvgfl
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
nodeName: aa********
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
volumes:
- name: default-token-xvgfl
secret:
defaultMode: 420
secretName: default-token-xvgfl
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2019-10-04T12:54:10Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2019-10-04T12:54:12Z"
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2019-10-04T12:54:12Z"
status: "True"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2019-10-04T12:54:10Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://e48cf1d667526a3d979935df0931efb98d6eb4eaf3a7c61f9910f8403e01ea5a
image: pydio/cells:latest
imageID: docker-pullable://pydio/cells@sha256:1ec31a2b7975fa7a3246c26cc2c9a59552637a5cb87dad95213d97aa1d727d7d
lastState: {}
name: pydio
ready: true
restartCount: 0
state:
running:
startedAt: "2019-10-04T12:54:12Z"
hostIP: 10.xx.xx.xx
phase: Running
podIP: 10.42.2.87
qosClass: BestEffort
startTime: "2019-10-04T12:54:10Z"
Logs
[Configs] Upgrading: setting default config services/pydio.grpc.auth/dex/issuer to /auth/dex
[Configs] successfully saved config after upgrade - Reloading from source
Welcome to Pydio Cells Home Edition installation
Pydio Cells Home Edition will be configured to run on this machine. Make sure to prepare the following data
- IPs and ports for binding the webserver to outside world
- MySQL 5.6+ (or MariaDB equivalent) server access
Pick your installation mode when you are ready.
Cannot find vaultKeyPath, creating new one /root/.config/pydio/cells/cells-vault-key
**************************************************************
Warning! A keyring is not found on this machine,
A Master Key has been created for cyphering secrets
It has been stored in /root/.config/pydio/cells/cells-vault-key
Please make sure to secure this file and update the configs
with its new location, under the defaults/keyPath key.
***************************************************************
2019-10-04T12:54:14.553Z INFO pydio.gateway.rest started
2019-10-04T12:54:14.693Z INFO Registering /install/events for Polling
2019-10-04T12:54:14.694Z INFO pydio.rest.install started
Activating privacy features... done.
https://localhost:8080
Installation Server is starting ...
internal URL: https://localhost:8080
external URL: https://localhost:8080
2019-10-04T12:54:16.913Z INFO pydio.gateway.proxy Restarting proxy {"caddyfile": "\n\t\t https://localhost:8080 {\n\t\t\t root \"/root/.config/pydio/cells/static/install\"\n\t\t\t proxy /install 10.42.2.87:39443\n\t\t\t tls self_signed\n\t\t }\n\t "}
2019-10-04T12:54:21.414Z INFO pydio.gateway.proxy Restart done
Opening URL https://localhost:8080 in your browser. Please copy/paste it if the browser is not on the same machine.
Expected Behaviour
The UI should start up on port 30304
Actual Port
10.xx.xx.xx didn’t send any data. ERR_EMPTY_RESPONSE
Hello,
I believe that are not able to reach the webui because your EXTERNAL_URL(CELLS_EXTERNAL) does not match the URL that you are using to access the WebUI.
CELLS_EXTERNAL(or EXTERNAL_URL) is the URL that is used to access the webui,
in your case you are accessing the webui through 10.xx.xx.xx:30304,
so your external should look like this 10.xx.xx.xx:30304.
CELLS_EXTERNAL
Ahh! thanks. So this is what I am getting now. 421 Site 10.xx.xx.xx:30304 is not served on this interface. I am trying to run it on http and not https.
Logs
[Configs] Upgrading: setting default config services/pydio.grpc.auth/dex/issuer to /auth/dex
[Configs] successfully saved config after upgrade - Reloading from source
Welcome to Pydio Cells Home Edition installation
Pydio Cells Home Edition will be configured to run on this machine. Make sure to prepare the following data
- IPs and ports for binding the webserver to outside world
- MySQL 5.6+ (or MariaDB equivalent) server access
Pick your installation mode when you are ready.
Cannot find vaultKeyPath, creating new one /root/.config/pydio/cells/cells-vault-key
**************************************************************
Warning! A keyring is not found on this machine,
A Master Key has been created for cyphering secrets
It has been stored in /root/.config/pydio/cells/cells-vault-key
Please make sure to secure this file and update the configs
with its new location, under the defaults/keyPath key.
***************************************************************
2019-10-04T13:59:52.903Z INFO pydio.gateway.rest started
2019-10-04T13:59:53.017Z INFO Registering /install/events for Polling
2019-10-04T13:59:53.017Z INFO pydio.rest.install started
Activating privacy features... done.
https://localhost:8080
Installation Server is starting ...
internal URL: https://localhost:8080
external URL: https://10.xx.xx.xx:30304
2019-10-04T13:59:55.229Z INFO pydio.gateway.proxy Restarting proxy {"caddyfile": "\n\t\t https://localhost:8080 {\n\t\t\t root \"/root/.config/pydio/cells/static/install\"\n\t\t\t proxy /install 10.42.0.151:41930\n\t\t\t tls self_signed\n\t\t }\n\t "}
2019-10-04T13:59:55.229Z INFO pydio.gateway.proxy Restart done
Opening URL https://10.xx.xx.xx:30304 in your browser. Please copy/paste it if the browser is not on the same machine.
Make sure to set CELLS_NO_SSL to 1.
Make sure to set
CELLS_NO_SSLto 1.
This did not work either. Here are the logs
Logs
2019-10-04T14:46:57.469Z INFO pydio.gateway.rest started
2019-10-04T14:46:57.608Z INFO Registering /install/events for Polling
2019-10-04T14:46:57.609Z INFO pydio.rest.install started
Activating privacy features... done.
http://localhost:8080
Installation Server is starting ...
internal URL: http://localhost:8080
external URL: http://10.xx.xx.xx:30304
2019-10-04T14:46:59.810Z INFO pydio.gateway.proxy Restarting proxy {"caddyfile": "\n\t\t http://localhost:8080 {\n\t\t\t root \"/root/.config/pydio/cells/static/install\"\n\t\t\t proxy /install 10.42.2.103:42939\n\t\t\t \n\t\t }\n\t "}
2019-10-04T14:47:04.311Z INFO pydio.gateway.proxy Restart done
Opening URL http://10.xx.xx.xx:30304 in your browser. Please copy/paste it if the browser is not on the same machine.
Curl Report
Curl from host machine gives this report
$ curl -v http://10.xx.xx.xx:30031/
* Trying 10.74.87.26...
* TCP_NODELAY set
* Connected to 10.xx.xx.xx (10.xx.xx.xx) port 30031 (#0)
> GET / HTTP/1.1
> Host: 10.xx.xx.xx:30031
> User-Agent: curl/7.58.0
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Content-Type: text/plain; charset=utf-8
< Server:
< X-Content-Type-Options: nosniff
< Date: Fri, 04 Oct 2019 14:58:43 GMT
< Content-Length: 59
<
404 Site 10.xx.xx.xx:30031 is not served on this interface
* Connection #0 to host 10.xx.xx.xx left intact
I think there is an error on your port curl -v http://10.xx.xx.xx:30031/
I thought you were using 30304
I think there is an error on your port
curl -v http://10.xx.xx.xx:30031/I thought you were using30304
I changed the port to see if It would make a difference.
Hello,
Could you try cells_bind localhost:30304(or the port that you are going to use to access from the outside).
Have cells running on the same port that you are going to use to access it from the outside.