Skip to content

Failure from SSH-related library when no home directory is available #26252

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
brainchild0 opened this issue Jul 31, 2023 · 1 comment
Open
Labels

Comments

@brainchild0
Copy link

Description

When the application is executed with no home directory available in the environment (i.e. no value for $HOME), then the application fails to initialize properly.

Instead, it exits abnormally, with exit code of 1, after printing the following errors message:

<timestamp> ...dules/setting/ssh.go:110:loadSSHFrom() [F] Failed to get home directory: cannot get home directory

The application should not interact with the user-specific configuration.

The issue may be related to #25102.

Gitea Version

1.20.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Linux (CentOS)

How are you running Gitea?

Prebuilt binaries for Linux AMD-64.

Database

MySQL

@shijunti19
Copy link

到底怎么解决了,唉,莫名起来,文档也不说明

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

No branches or pull requests

2 participants