plane icon indicating copy to clipboard operation
plane copied to clipboard

[bug]: Page content not available

Open imoiseev opened this issue 1 year ago • 19 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current behavior

If I create a page, another person sees the page in the list, sees its title, but does not see the content.

The content that I add is not visible to him. Moreover, he can add content, it is saved, but I also do not see his content.

Steps to reproduce

Create a page in any project from any account. Fill it with content.

Try opening this page from another account.

Environment

Production

Browser

Google Chrome

Variant

Self-hosted

Version

v0.24.1

imoiseev avatar Dec 15 '24 12:12 imoiseev

Hey @imoiseev, please verify if the live service is working by checking its health endpoint at: http://<domain-name>/live/health? Also, please confirm that the WebSocket connection is established correctly. In developer's console, navigate to the Network tab, select WS, and verify the WebSocket connection.

akshat5302 avatar Dec 16 '24 06:12 akshat5302

http:///live/health {"status":"OK"}

Снимок экрана 2024-12-16 в 18 54 44 Снимок экрана 2024-12-16 в 18 55 04 Снимок экрана 2024-12-16 в 18 55 10

imoiseev avatar Dec 16 '24 15:12 imoiseev

Do you have any other external proxy enabled apart from plane-proxy?

akshat5302 avatar Dec 16 '24 17:12 akshat5302

I am self-hosting v0.24.0 and experiencing a similar issue.

Current behavior

If I create a page with content, I cannot see that content on any browser, other than the one where I created the content. This missing content applies to browsers on the same machine and on browsers of alternate machines.

As with the OP, I can add conent on other browsers to the page, but it is not visible in the original browser that created the page.

This all relates to a single account.

Steps to reproduce

Create a page in any project from any account. Fill it with content.

Try opening this page with the same account on another browser.

Set Up

Note that I am using a proxy server to direct external domain traffic to the local IP address of the VM containing the plane instance.

http:///live/health {"status":"OK"}

smonksi avatar Dec 16 '24 23:12 smonksi

Hi @smonksi and @imoiseev,

Could you confirm that your external proxy configuration matches the template

For example, if you are using NGINX, adding the following headers should resolve the WebSocket issue:

proxy_http_version 1.1;  
proxy_set_header Upgrade $http_upgrade;  
proxy_set_header Connection "upgrade";  

akshat5302 avatar Dec 17 '24 05:12 akshat5302

Hi @akshat5302

Updated my NGINX proxy according to your settings. It all appears to be working perfectly now.

Thank you!

smonksi avatar Dec 17 '24 10:12 smonksi

This issue is resolved, closing it now.

akshat5302 avatar Dec 19 '24 07:12 akshat5302

It didn't help me.

imoiseev avatar Dec 19 '24 11:12 imoiseev

I also have reverse proxy on nginx, using template for it from docs (link was mentioned previously), but websocket still "failed".

vladimirevstratov avatar Jan 26 '25 22:01 vladimirevstratov

Hey @vladimirevstratov, do you have any external reverse proxy configured to point to the plane-proxy container?

akshat5302 avatar Jan 27 '25 06:01 akshat5302

Hey @vladimirevstratov, do you have any external reverse proxy configured to point to the plane-proxy container?

Yeah, i do. And i use nginx proxy on the VPS with config from template. Client -> (Nginx -> Plane).

vladimirevstratov avatar Jan 27 '25 10:01 vladimirevstratov

Could you please share the external proxy configuration you set up for Plane?

akshat5302 avatar Jan 27 '25 12:01 akshat5302

Could you please share the external proxy configuration you set up for Plane?

https://developers.plane.so/self-hosting/govern/reverse-proxy#nginx

Used this templane

server {
server_name <domain>;

location / {
    proxy_pass http://<plane-host-ip>:<plane-host-port>/;
    
    # Set headers for proxied request
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Host  $host;
    proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
    proxy_set_header X-Real-IP         $remote_addr;
    
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $http_host;
    proxy_http_version 1.1;
}

client_max_body_size 10M;

listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/<domain>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<domain>/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
#ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}

server {
if ($host = <domain>) {
    return 301 https://$host$request_uri;
}

listen 80;
server_name <domain>;
return 404;
}

vladimirevstratov avatar Jan 29 '25 15:01 vladimirevstratov

This looks good. Could you share the network tab logs for the WebSocket connection? Something like this -

Image

Check if the websocket connection is done properly or not

akshat5302 avatar Jan 30 '25 07:01 akshat5302

This looks good. Could you share the network tab logs for the WebSocket connection? Something like this -

Image Check if the websocket connection is done properly or not
Image

vladimirevstratov avatar Jan 31 '25 04:01 vladimirevstratov

The network tab shows the status as "Finished" instead of 101, which suggests a possible misconfiguration in your Nginx setup. Please review and fix it.

For reference, check the Troubleshooting guide.

akshat5302 avatar Jan 31 '25 06:01 akshat5302

The network tab shows the status as "Finished" instead of 101, which suggests a possible misconfiguration in your Nginx setup. Please review and fix it.

For reference, check the Troubleshooting guide.

thank you, but it didn't help. I have also 404 response in logs of nginx.

vladimirevstratov avatar Feb 24 '25 23:02 vladimirevstratov

Ok, i removed reverse proxy nginx, trying now to start only plane on https. It doesn't work.

plane.appinbox.net

Result of starting plane:

Data Migration completed successfully ✅
   API Service started successfully ✅
   Plane Server started successfully ✅

   You can access the application at https://plane.appinbox.net:8080

plane.env:

APP_DOMAIN=plane.appinbox.net
APP_RELEASE=stable

WEB_REPLICAS=1
SPACE_REPLICAS=1
ADMIN_REPLICAS=1
API_REPLICAS=1

NGINX_PORT=8080
WEB_URL=https://${APP_DOMAIN}:${NGINX_PORT}
DEBUG=0
SENTRY_DSN=
SENTRY_ENVIRONMENT=production
CORS_ALLOWED_ORIGINS=https://${APP_DOMAIN}:${NGINX_PORT}
API_BASE_URL=http://api:8000

#DB SETTINGS
PGHOST=plane-db
PGDATABASE=plane
POSTGRES_USER=plane
POSTGRES_PASSWORD=plane
POSTGRES_DB=plane
POSTGRES_PORT=5432
PGDATA=/var/lib/postgresql/data
DATABASE_URL=

# REDIS SETTINGS
REDIS_HOST=plane-redis
REDIS_PORT=6379
REDIS_URL=

# RabbitMQ Settings
RABBITMQ_HOST=plane-mq
RABBITMQ_PORT=5672
RABBITMQ_USER=plane
RABBITMQ_PASSWORD=plane
RABBITMQ_VHOST=plane
AMQP_URL=

# Secret Key
SECRET_KEY=60gp0byfz2dvffa45cxl20p1scy9xbpf6d8c5y0geejgkyp1b5

# DATA STORE SETTINGS
USE_MINIO=1
AWS_REGION=
AWS_ACCESS_KEY_ID=access-key
AWS_SECRET_ACCESS_KEY=secret-key
AWS_S3_ENDPOINT_URL=http://plane-minio:9000
AWS_S3_BUCKET_NAME=uploads
MINIO_ROOT_USER=access-key
MINIO_ROOT_PASSWORD=secret-key
BUCKET_NAME=uploads
FILE_SIZE_LIMIT=5242880

# Gunicorn Workers
GUNICORN_WORKERS=1

# UNCOMMENT `DOCKER_PLATFORM` IF YOU ARE ON `ARM64` AND DOCKER IMAGE IS NOT AVAILABLE FOR RESPECTIVE `APP_RELEASE`
# DOCKER_PLATFORM=linux/amd64

DOCKERHUB_USER=makeplane
PULL_POLICY=if_not_present
CUSTOM_BUILD=false

Logs of plane (7 part of plane own proxy logs):

WARN[0000] The "NGINX_PORT" variable is not set. Defaulting to a blank string. 

proxy-1  | 109.252.218.1 - - [25/Feb/2025:07:40:53 +0000] "\x16\x03\x01\x02g\x01\x00\x02c\x03\x03l\x8A!\x83W\x8E\xD5\xC1A8w\xA3\x08" 400 157 "-" "-"
proxy-1  | 109.252.218.1 - - [25/Feb/2025:07:40:53 +0000] "\x16\x03\x01\x02\x07\x01\x00\x02\x03\x03\x03\xD4\xF4\x0ED\xC4\xA4\xD2\xA7ut\x90\xE0\xD1.\x12Kv\x85\xE7\x1F\xCC0\x98\xCE6\x8BJ\xEB\xC8\xF9\xBC\x19 -G\xD5l\xC1\x0Fg\xADE\xEB\xC7/$\x0CZ\x8CSdzN\x1F\x10\xC8x\x82|T[V\xBF\xF7\xAE\x002\x1A\x1A\x13\x01\x13\x02\x13\x03\xC0+\xC0/\xC0,\xC00\xCC\xA9\xCC\xA8\xC0\x13\xC0\x14\x00\x9C\x00\x9D\x00/\x005\xC1\x00\xC1\x01\xC1\x02\xC1\x03\xC1\x04\xC1\x05\xC1\x06\xFF\x85\x00\x81\x01\x00\x01\x88::\x00\x00\xFF\x01\x00\x01\x00\x00\x17\x00\x00\x00\x0B\x00\x02\x01\x00\x00-\x00\x02\x01\x01\x00" 400 157 "-" "-"

vladimirevstratov avatar Feb 25 '25 07:02 vladimirevstratov

Ok, fixed it.

  • Reloaded Nginx properly after applying changes
  • Removed ro flag from nginx conf for properly applying it with nginx

vladimirevstratov avatar Feb 25 '25 22:02 vladimirevstratov