Skip to content

FocalBoard login problem #4784

Open
Open
@Abooor2

Description

@Abooor2

When I use sub path for the focalboard such as http://192.168.7.43/focalboard, login and register new account not work it display login failed error for login and undefined for register new account .

My conf.json is:
{
"serverRoot": "http://192.168.7.43/focalboard",
"port": 8000,
"dbtype": "postgres",
"dbconfig": "postgres://focaluser:password@localhost/focaldb?sslmode=disable&connect_timeout=10",
"postgres_dbconfig": "dbname=focalboard sslmode=disable",
"useSSL": false,
"webpath": "./pack",
"filespath": "./files",
"telemetry": true,
"prometheusaddress": ":9092",
"session_expire_time": 2592000,
"session_refresh_time": 18000,
"localOnly": false,
"enableLocalMode": true,
"localModeSocketLocation": "/var/tmp/focalboard_local.socket"
}

my nginx.conf is:

upstream focalboard {
server localhost:8000;
keepalive 32;
}
server {
listen 80;
listen [::]:80;

server_name 192.168.7.43;

location /focalboard {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /mattermost {
    proxy_pass http://127.0.0.1:8065;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

}

the error in error.log is:

2023/06/15 05:50:15 [error] 63691#63691: *887 open() "/usr/share/nginx/html/api/v2/register" failed (2: No such file or directory), client: 10.10.106.23, server: 192.168.7.43, request: "POST /api/v2/register HTTP/1.1", host: "192.168.7.43", referrer: "http://192.168.7.43/register"
2023/06/15 05:51:40 [error] 63691#63691: *916 open() "/usr/share/nginx/html/api/v2/login" failed (2: No such file or directory), client: 10.10.106.23, server: 192.168.7.43, request: "POST /api/v2/login HTTP/1.1", host: "192.168.7.43", referrer: "http://192.168.7.43/login"

My versions:
Ubuntu-22.04-server
nginx/1.18.0
PostgreSQL 14.8
focalboard 7.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingHelp WantedExtra attention is neededUp for grabsLooking for a contributor to fix it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions