Error 502 bad gateway

Hi guys,

I have a problem with cells login page. Please see the below error log. I guess it is trying to connect dns.

[ERROR 502 /a/frontend/session] dial tcp: lookup PENDING on x.x.x.x:53: server misbehaving
cells

Hello @nasanbuyan and welcome to the forum.

could you please give some details about your setup and show the server logs when you start the server and try to login ?

That would give precious information to anyone willing to help you !

Thanks

I am sorry for late reply.

when i login into cells then i got below error.

cells

Please see ./cells start log

[root@fss pydio]# WARNING: File descriptor limit 1024 is too low for running Pydio Cells Home Edition in production. At least 8192 is recommended. Fix with “ulimit -n 8192”.
2020-08-12T16:14:31.957+0800 INFO pydio.grpc.log started
2020-08-12T16:14:31.958+0800 INFO pydio.gateway.rest started
2020-08-12T16:14:31.960+0800 INFO pydio.grpc.docstore started
2020-08-12T16:14:32.168+0800 INFO pydio.web.statics started
2020-08-12T16:14:32.169+0800 INFO pydio.grpc.healthcheck started
2020-08-12T16:14:32.239+0800 INFO pydio.grpc.update started
2020-08-12T16:14:32.241+0800 INFO pydio.grpc.data.objects started
2020-08-12T16:14:32.241+0800 INFO pydio.grpc.data.objects Starting umbrella service pydio.grpc.data.objects. with sources {“sources”: [“local1”]}
2020-08-12T16:14:32.380+0800 INFO pydio.grpc.data.sync started
2020-08-12T16:14:32.380+0800 INFO pydio.grpc.data.sync Starting umbrella service pydio.grpc.data.sync. with sources {“sources”: [“pydiods1”, “personal”, “cellsdata”]}
2020-08-12T16:14:34.348+0800 INFO pydio.grpc.acl started
2020-08-12T16:14:34.349+0800 INFO pydio.grpc.config started
2020-08-12T16:14:34.758+0800 INFO pydio.grpc.user-key started
INFO[0005] No tracer configured - skipping tracing setup
2020-08-12T16:14:35.219+0800 INFO pydio.grpc.meta started
2020-08-12T16:14:35.249+0800 INFO pydio.grpc.chat started
2020-08-12T16:14:35.283+0800 INFO pydio.grpc.policy started
2020-08-12T16:14:35.403+0800 INFO pydio.grpc.user-meta started
2020-08-12T16:14:35.519+0800 INFO pydio.grpc.oauth started
Activating privacy features… done.
2020-08-12T16:14:35.937+0800 INFO pydio.gateway.proxy Runner generator returned ServiceStartNeedsRetry error, waiting for 10s
2020-08-12T16:14:36.026+0800 INFO pydio.web.oauth started
2020-08-12T16:14:36.063+0800 INFO pydio.grpc.workspace started
2020-08-12T16:14:36.178+0800 INFO pydio.grpc.data-key started
2020-08-12T16:14:36.251+0800 INFO pydio.grpc.role started
2020-08-12T16:14:36.387+0800 INFO pydio.grpc.tree started
2020-08-12T16:14:36.570+0800 INFO pydio.gateway.websocket started
2020-08-12T16:14:36.623+0800 INFO pydio.grpc.jobs started
2020-08-12T16:14:36.922+0800 INFO pydio.grpc.data.objects.local1 started
2020-08-12T16:14:37.079+0800 INFO pydio.grpc.data.sync.pydiods1 started
2020-08-12T16:14:37.260+0800 INFO pydio.grpc.data.sync.personal started
2020-08-12T16:14:37.416+0800 INFO pydio.grpc.data.sync.cellsdata started
2020-08-12T16:14:37.596+0800 INFO pydio.grpc.data.objects.local1 Starting local objects service local1 on /root/.config/pydio/cells/data
2020-08-12T16:14:37.787+0800 INFO pydio.grpc.data.sync.pydiods1 Sync pydiods1 - Try to contact Objects
2020-08-12T16:14:37.964+0800 INFO pydio.grpc.data.index started
2020-08-12T16:14:37.965+0800 INFO pydio.grpc.data.index Starting umbrella service pydio.grpc.data.index. with sources {“sources”: [“pydiods1”, “personal”, “cellsdata”]}
2020-08-12T16:14:37.984+0800 INFO pydio.grpc.data.sync.personal Sync personal - Try to contact Objects
2020-08-12T16:14:38.217+0800 INFO pydio.grpc.data.sync.cellsdata Sync cellsdata - Try to contact Objects
2020-08-12T16:14:38.280+0800 INFO pydio.grpc.tasks started
2020-08-12T16:14:38.381+0800 ERROR pydio.grpc.tasks Streamer PutTaskStream {“error”: “{“id”:“go.micro.client”,“code”:500,“detail”:“none available”,“status”:“Internal Server Error”}”}
2020-08-12T16:14:38.919+0800 INFO pydio.grpc.mailer Starting mailer with queue ‘boltdb’
2020-08-12T16:14:39.044+0800 INFO pydio.grpc.activity started
2020-08-12T16:14:39.598+0800 INFO pydio.grpc.user started
2020-08-12T16:14:39.740+0800 INFO pydio.grpc.mailer Starting mailer with sender ‘smtp’
2020-08-12T16:14:39.741+0800 INFO pydio.grpc.mailer started
2020-08-12T16:14:41.054+0800 INFO pydio.grpc.versions started
2020-08-12T16:14:41.055+0800 INFO pydio.test.objects started
2020-08-12T16:14:42.163+0800 INFO pydio.grpc.data.sync.pydiods1 Sync pydiods1 - Try to contact Objects
2020-08-12T16:14:42.220+0800 INFO pydio.grpc.data.sync.personal Sync personal - Try to contact Objects
2020-08-12T16:14:42.428+0800 INFO pydio.grpc.data.sync.cellsdata Sync cellsdata - Try to contact Objects
2020-08-12T16:14:43.192+0800 INFO pydio.grpc.timer started
2020-08-12T16:14:44.849+0800 INFO pydio.grpc.data.index.cellsdata started
2020-08-12T16:14:46.100+0800 INFO pydio.gateway.data started
2020-08-12T16:14:45.344+0800 INFO pydio.grpc.data.index.personal started
2020-08-12T16:14:45.343+0800 INFO pydio.grpc.data.index.pydiods1 started
2020-08-12T16:14:46.157+0800 INFO pydio.grpc.data.sync.pydiods1 Sync pydiods1 - Try to contact Objects
2020-08-12T16:14:46.212+0800 INFO pydio.grpc.data.sync.personal Sync personal - Try to contact Objects
2020-08-12T16:14:46.419+0800 INFO pydio.grpc.data.sync.cellsdata Sync cellsdata - Try to contact Objects
2020-08-12T16:14:48.552+0800 INFO pydio.grpc.search started
2020-08-12T16:14:49.219+0800 INFO pydio.rest.log started
2020-08-12T16:14:49.276+0800 INFO pydio.rest.config started
2020-08-12T16:14:49.551+0800 INFO pydio.gateway.wopi started
2020-08-12T16:14:49.697+0800 INFO pydio.rest.workspace started
2020-08-12T16:14:49.798+0800 INFO pydio.rest.acl started
2020-08-12T16:14:50.056+0800 INFO pydio.gateway.dav started
2020-08-12T16:14:50.064+0800 INFO pydio.rest.mailer started
2020-08-12T16:14:50.105+0800 INFO pydio.rest.policy started
2020-08-12T16:14:50.128+0800 INFO pydio.rest.role started
2020-08-12T16:14:50.190+0800 INFO pydio.rest.frontend started
2020-08-12T16:14:50.213+0800 INFO pydio.rest.user started
2020-08-12T16:14:50.300+0800 INFO pydio.rest.jobs started
2020-08-12T16:14:50.313+0800 INFO pydio.rest.user-meta started
2020-08-12T16:14:50.323+0800 INFO pydio.rest.update started
2020-08-12T16:14:50.153+0800 INFO pydio.grpc.data.sync.pydiods1 Sync pydiods1 - Try to contact Objects
2020-08-12T16:14:50.160+0800 INFO pydio.grpc.data.sync.pydiods1 Successfully listed objects from bucket pydiods1
2020-08-12T16:14:50.397+0800 INFO pydio.rest.templates started
2020-08-12T16:14:50.221+0800 INFO pydio.grpc.data.sync.personal Sync personal - Try to contact Objects
2020-08-12T16:14:50.230+0800 INFO pydio.grpc.data.sync.personal Successfully listed objects from bucket personal
2020-08-12T16:14:50.485+0800 INFO pydio.rest.graph started
2020-08-12T16:14:50.510+0800 INFO pydio.rest.auth started
2020-08-12T16:14:50.545+0800 INFO pydio.rest.activity started
2020-08-12T16:14:50.429+0800 INFO pydio.grpc.data.sync.cellsdata Sync cellsdata - Try to contact Objects
2020-08-12T16:14:50.436+0800 INFO pydio.grpc.data.sync.cellsdata Successfully listed objects from bucket cellsdata
2020-08-12T16:14:50.600+0800 INFO pydio.rest.meta started
2020-08-12T16:14:50.607+0800 INFO pydio.rest.tree started
2020-08-12T16:14:50.644+0800 INFO pydio.rest.share started
2020-08-12T16:14:50.751+0800 INFO pydio.rest.search started
Activating privacy features… done.
2020-08-12T16:14:55.537+0800 INFO pydio.grpc.tasks Run Job resync-ds-pydiods1 on timer event
2020-08-12T16:14:55.613+0800 INFO pydio.grpc.tasks Run Job resync-ds-personal on timer event
2020-08-12T16:14:55.675+0800 INFO pydio.grpc.data.sync.pydiods1 Got Stats for index://pydiods1 {“stats”: {“HasChildrenInfo”:false,“HasSizeInfo”:false,“Size”:0,“Children”:0,“Folders”:0,“Files”:0}}
2020-08-12T16:14:55.677+0800 INFO pydio.grpc.data.sync.pydiods1 Got Stats for s3://10.36.66.32:40863/pydiods1 {“stats”: {“HasChildrenInfo”:false,“HasSizeInfo”:false,“Size”:0,“Children”:0,“Folders”:0,“Files”:0}}
2020-08-12T16:14:55.678+0800 INFO pydio.grpc.data.sync.pydiods1 Listing all S3 objects for path {“bucket”: “pydiods1”, “path”: “”}
2020-08-12T16:14:55.682+0800 INFO pydio.grpc.data.sync.pydiods1 S3 Walk Operation + Stats took {“d”: “4.512ms”}
2020-08-12T16:14:55.682+0800 INFO pydio.grpc.data.sync.pydiods1 Diff Stats {“s”: {“EndpointLeft”:“s3://10.36.66.32:40863/pydiods1”,“EndpointRight”:“index://pydiods1”,“conflicts”:0,“missingLeft”:0,“missingRight”:0}}
2020-08-12T16:14:55.682+0800 INFO pydio.grpc.data.sync.pydiods1 Finished analyzing nodes {“i”: 4}
2020-08-12T16:14:55.683+0800 INFO pydio.grpc.data.sync.pydiods1 Sending unidirectional patch {“patch”: {“Source”:“s3://10.36.66.32:40863/pydiods1”,“Target”:“index://pydiods1”,“Type”:“TreePatch”}}
2020-08-12T16:14:55.683+0800 INFO pydio.grpc.data.sync.pydiods1 Filtering TreePatch took {“time”: “7.9µs”, “source”: “s3://10.36.66.32:40863/pydiods1”, “target”: “index://pydiods1”}
2020-08-12T16:14:55.683+0800 INFO pydio.grpc.data.sync.pydiods1 Empty Patch : nothing to do
2020-08-12T16:14:55.837+0800 INFO pydio.grpc.tasks Run Job resync-ds-cellsdata on timer event
2020-08-12T16:14:55.828+0800 INFO pydio.grpc.data.sync.personal Got Stats for index://personal {“stats”: {“HasChildrenInfo”:false,“HasSizeInfo”:false,“Size”:0,“Children”:0,“Folders”:0,“Files”:0}}
2020-08-12T16:14:55.829+0800 INFO pydio.grpc.data.sync.personal Got Stats for s3://10.36.66.32:40863/personal {“stats”: {“HasChildrenInfo”:false,“HasSizeInfo”:false,“Size”:0,“Children”:0,“Folders”:0,“Files”:0}}
2020-08-12T16:14:55.830+0800 INFO pydio.grpc.data.sync.personal Listing all S3 objects for path {“bucket”: “personal”, “path”: “”}
2020-08-12T16:14:55.833+0800 INFO pydio.grpc.data.sync.personal S3 Walk Operation + Stats took {“d”: “3.5406ms”}
2020-08-12T16:14:55.833+0800 INFO pydio.grpc.data.sync.personal Diff Stats {“s”: {“EndpointLeft”:“s3://10.36.66.32:40863/personal”,“EndpointRight”:“index://personal”,“conflicts”:0,“missingLeft”:0,“missingRight”:0}}
2020-08-12T16:14:55.833+0800 INFO pydio.grpc.data.sync.personal Finished analyzing nodes {“i”: 4}
2020-08-12T16:14:55.834+0800 INFO pydio.grpc.data.sync.personal Sending unidirectional patch {“patch”: {“Source”:“s3://10.36.66.32:40863/personal”,“Target”:“index://personal”,“Type”:“TreePatch”}}
2020-08-12T16:14:55.834+0800 INFO pydio.grpc.data.sync.personal Filtering TreePatch took {“time”: “7.4µs”, “source”: “s3://10.36.66.32:40863/personal”, “target”: “index://personal”}
2020-08-12T16:14:55.834+0800 INFO pydio.grpc.data.sync.personal Empty Patch : nothing to do
2020-08-12T16:14:55.965+0800 INFO pydio.grpc.data.sync.cellsdata Got Stats for index://cellsdata {“stats”: {“HasChildrenInfo”:false,“HasSizeInfo”:false,“Size”:0,“Children”:0,“Folders”:0,“Files”:0}}
2020-08-12T16:14:55.966+0800 INFO pydio.grpc.data.sync.cellsdata Got Stats for s3://10.36.66.32:40863/cellsdata {“stats”: {“HasChildrenInfo”:false,“HasSizeInfo”:false,“Size”:0,“Children”:0,“Folders”:0,“Files”:0}}
2020-08-12T16:14:55.966+0800 INFO pydio.grpc.data.sync.cellsdata Listing all S3 objects for path {“bucket”: “cellsdata”, “path”: “”}
2020-08-12T16:14:55.970+0800 INFO pydio.grpc.data.sync.cellsdata S3 Walk Operation + Stats took {“d”: “3.8962ms”}
2020-08-12T16:14:55.970+0800 INFO pydio.grpc.data.sync.cellsdata Diff Stats {“s”: {“EndpointLeft”:“s3://10.36.66.32:40863/cellsdata”,“EndpointRight”:“index://cellsdata”,“conflicts”:0,“missingLeft”:0,“missingRight”:0}}
2020-08-12T16:14:55.970+0800 INFO pydio.grpc.data.sync.cellsdata Finished analyzing nodes {“i”: 4}
2020-08-12T16:14:55.971+0800 INFO pydio.grpc.data.sync.cellsdata Sending unidirectional patch {“patch”: {“Source”:“s3://10.36.66.32:40863/cellsdata”,“Target”:“index://cellsdata”,“Type”:“TreePatch”}}
2020-08-12T16:14:55.971+0800 INFO pydio.grpc.data.sync.cellsdata Filtering TreePatch took {“time”: “7.3µs”, “source”: “s3://10.36.66.32:40863/cellsdata”, “target”: “index://cellsdata”}
2020-08-12T16:14:55.971+0800 INFO pydio.grpc.data.sync.cellsdata Empty Patch : nothing to do

Please see caddy_errors.log

Why does cells need to establish with local dns.

12/Aug/2020:16:07:14 +0800 [ERROR 502 /a/frontend/session] dial tcp: lookup PENDING on x.x.x.x:53: server misbehaving
12/Aug/2020:16:09:10 +0800 [ERROR 502 /a/frontend/session] dial tcp: lookup PENDING on x.x.x.x:53: server misbehaving
12/Aug/2020:16:09:10 +0800 [ERROR 502 /a/frontend/session] dial tcp: lookup PENDING on x.x.x.x:53: server misbehaving
12/Aug/2020:16:09:10 +0800 [ERROR 502 /a/frontend/session] dial tcp: lookup PENDING on x.x.x.x:53: server misbehaving
12/Aug/2020:16:15:31 +0800 [ERROR 502 /a/frontend/session] dial tcp: lookup PENDING on x.x.x.x:53: server misbehaving

Hi same error here

dial tcp: lookup PENDING on 8.8.8.8:53: no such host

I can access to pydio, but I cant upload or download files.

The error appears when I update it.

SOLUTION:
Hi,

If anyone has this error, my fix was grant permission to cells folder
setcap ‘cap_net_bind_service=+ep’ cells

Thanks