Skip to content

登入时 Bad Request (#400) #115

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

Open
fearlessxjdx opened this issue Mar 7, 2021 · 1 comment
Open

登入时 Bad Request (#400) #115

fearlessxjdx opened this issue Mar 7, 2021 · 1 comment

Comments

@fearlessxjdx
Copy link

fearlessxjdx commented Mar 7, 2021

Ubuntu18.04 + PHP7.4

按照部署指南部署的,登入页面点提交就报 400 。

fpm 没有日志信息,nginx 日志也没看到什么有用信息:

[07/Mar/2021:22:53:45 +0800] "GET /site/login HTTP/1.1" 200 2251 "http://test.xxx.cn:8002/site/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
[07/Mar/2021:22:53:49 +0800] "POST /site/login HTTP/1.1" 400 3985 "http://test.xxx.cn:8002/site/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"

评测服务我还未运行

# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 22:47 pts/0    00:00:00 /bin/sh /app-entrypoint.sh /bin/bash
root        45     1  0 22:49 ?        00:00:00 WorkerMan: master process  start_file=/app/socket.php
root        46    45  0 22:49 ?        00:00:00 WorkerMan: worker process  PHPSocketIO socketIO://0.0.0.0:2120
root       226     1  0 22:53 ?        00:00:00 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
www-data   227   226  0 22:53 ?        00:00:00 php-fpm: pool www
www-data   228   226  0 22:53 ?        00:00:00 php-fpm: pool www
root       253     1  0 22:53 ?        00:00:00 nginx: master process /usr/sbin/nginx
www-data   254   253  0 22:53 ?        00:00:00 nginx: worker process

应该不是必须要 https 才可以吧? @shi-yang 能否看看可能是什么原因?

能否更新下 compose.jsoncompose.lock 文件?目前无法顺利执行 composer update 不知道有没有关系。

@dffxd-suntra
Copy link

我有时也遇到过这种问题,一键部署不好用,动不动就出问题,就那么几行,嗨,重新安装吧~
对了,最好用centos,Ubuntu老出问题~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants