Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank Page after Login with HTTPS #3017

Closed
Eternity714 opened this issue Apr 2, 2021 · 9 comments
Closed

Blank Page after Login with HTTPS #3017

Eternity714 opened this issue Apr 2, 2021 · 9 comments
Labels
waiting-for-info Waiting for more information from submitter
Projects

Comments

@Eternity714
Copy link

OS/Web Information

  • Web Browser: Chrome
  • Local OS: Win10 x64
  • Remote OS: docker
  • code-server --version: latest

Expected

When I use https, it can be login, after that, it becomes to a blank page

Actual

i have not idea

Config File

docker-compose.yml

version: "3.8"
services:
  frpc:
    image: snowdreamtech/frpc
    volumes:
      - "./frpc.ini:/etc/frp/frpc.ini:ro"
      - "./code.gkotta.cn.crt:/etc/frp/server.crt:ro"
      - "./code.gkotta.cn.key:/etc/frp/server.key:ro"
    restart: unless-stopped
    networks:
      backend:
    environment:
      - "LOCAL_ADDR=code"
      - "LOCAL_PORT=8080"
      - "SUBDOMAIN=code"
  code-server:
    image: codercom/code-server
    ports:
      - "8080:8080"
    volumes:
      - "./data:/home/coder/project"
    environment:
      - "PASSWORD=******"
    restart: unless-stopped
    networks:
      backend:
        aliases:
          - code

networks:
  backend:

frpc.ini

[common]
server_addr = x.x.x.x
server_port = 7000

[code-server]
type = http
local_ip = code
local_port = 8080
subdomain = code

[code-server-https]
type = https
subdomain = code

plugin = https2http
plugin_local_addr = code:8080

# HTTPS 证书相关的配置
plugin_crt_path = /etc/frp/server.crt
plugin_key_path = /etc/frp/server.key
plugin_host_header_rewrite = 127.0.0.1
plugin_header_X-From-Where = frp

Note

In addition,i can't find any way to cache the log file

@code-asher
Copy link
Member

Usually the white page means the websockets aren't connecting. I'm not familiar with frp; does it support proxying secure websockets? Related: fatedier/frp#2119

@jsjoeio jsjoeio added the waiting-for-info Waiting for more information from submitter label Apr 2, 2021
@jsjoeio jsjoeio added this to Triage in code-server via automation Apr 2, 2021
@fastender
Copy link

fastender commented Apr 2, 2021

Have the same problem on my macbook / safari, but chrome is working

using nginx with duckdns

password welcome page is appearing, after that blank screen. (deleted caching on safari)

@hakanu
Copy link

hakanu commented Apr 5, 2021

I have this problem: #3027

Not sure if it's the same one.

@jsjoeio
Copy link
Contributor

jsjoeio commented Apr 8, 2021

Hi can you try upgrade to 3.9.3 and letting us know if you're still experiencing the same issue?

Feel free to post in the release discussion as well.

@Eternity714
Copy link
Author

Hi can you try upgrade to 3.9.3 and letting us know if you're still experiencing the same issue?

Feel free to post in the release discussion as well.

Thanks for reminding,I will try it as quickly

@fastender
Copy link

Thank you very much. The update has solved the problem. You guys are great!

@jsjoeio
Copy link
Contributor

jsjoeio commented Apr 12, 2021

Hooray! Thanks for being so patient and understanding as we improve code-server. Closing this for now. If it reappears, let us know or open a separate issue!

@jsjoeio jsjoeio closed this as completed Apr 12, 2021
code-server automation moved this from Triage to Done Apr 12, 2021
@Eternity714
Copy link
Author

It still not work in 3.9.3,maybe I should try to use nginx

@jsjoeio
Copy link
Contributor

jsjoeio commented Apr 14, 2021

Shoot, sorry to hear that @Eternity714. Any logs code-server --log debug?

And in case you haven't seen it, we have guides for deploying code-server across various platforms in case you want to try a different approach: https://github.com/cdr/deploy-code-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-info Waiting for more information from submitter
Projects
No open projects
Development

No branches or pull requests

5 participants