Skip to content

登入时 Bad Request (#400) #115

@fearlessxjdx

Description

@fearlessxjdx

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 不知道有没有关系。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions