添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Compute: Ubuntu 20.04.6 LTS

Problem:
Self hosted instance has been stable with no issues since installation. Updates happen in an automated fashion as documented in the documentation. I recently needed to get into the /admin URI. When i go to the page im greeted to a 535 authentication error. Strange. I then enter in the admin email ive set up since the beginning. I then get a HTTP ERROR 404 error.
The only change ive done recently is to my admin email account password. I have updated the global.override.env file and put in the new password.

When i rebuild the configuraton i see the following messages:
WARN[0000] The “pZTY3aG” variable is not set. Defaulting to a blank string.

Again, no clue what that even means. The global override change is the most recent change ive made to this deployment so im somewhat stumped here.

EDIT: Whats interesting is if i put in a bogus email address in the /admin page, i get a message that the email has been sent. If i use my legit account that i set up in the global override file thats when i get the 404 error.

Below is what happens when i attempt to rebuid.

 sudo ./bitwarden.sh rebuild
 _     _ _                         _
| |__ (_) |___      ____ _ _ __ __| | ___ _ __
| '_ \| | __\ \ /\ / / _` | '__/ _` |/ _ \ '_ \
| |_) | | |_ \ V  V / (_| | | | (_| |  __/ | | |
|_.__/|_|\__| \_/\_/ \__,_|_|  \__,_|\___|_| |_|
Open source password management solutions
https://bitwarden.com, https://github.com/bitwarden
===================================================
bitwarden.sh version 2023.3.0
Docker version 20.10.21, build baeda1f
Docker Compose version v2.12.2
WARN[0000] The "pZTY3aG" variable is not set. Defaulting to a blank string.
WARN[0000] The "pZTY3aG" variable is not set. Defaulting to a blank string.
WARN[0000] The "pZTY3aG" variable is not set. Defaulting to a blank string.
WARN[0000] The "pZTY3aG" variable is not set. Defaulting to a blank string.
WARN[0000] The "pZTY3aG" variable is not set. Defaulting to a blank string.
WARN[0000] The "pZTY3aG" variable is not set. Defaulting to a blank string.
WARN[0000] The "pZTY3aG" variable is not set. Defaulting to a blank string.
WARN[0000] The "pZTY3aG" variable is not set. Defaulting to a blank string.
WARN[0000] The "pZTY3aG" variable is not set. Defaulting to a blank string.
WARN[0000] The "pZTY3aG" variable is not set. Defaulting to a blank string.
WARN[0000] The "pZTY3aG" variable is not set. Defaulting to a blank string.
WARN[0000] The "pZTY3aG" variable is not set. Defaulting to a blank string.
[+] Running 13/13
 ⠿ Container bitwarden-icons          Removed                                                                                                                                           1.4s
 ⠿ Container bitwarden-notifications  Removed                                                                                                                                           1.6s
 ⠿ Container bitwarden-events         Removed                                                                                                                                           1.4s
 ⠿ Container bitwarden-nginx          Removed                                                                                                                                           1.5s
 ⠿ Container bitwarden-sso            Removed                                                                                                                                           1.6s
 ⠿ Container bitwarden-attachments    Removed                                                                                                                                           0.8s
 ⠿ Container bitwarden-web            Removed                                                                                                                                           0.6s
 ⠿ Container bitwarden-admin          Removed                                                                                                                                           0.9s
 ⠿ Container bitwarden-api            Removed                                                                                                                                           1.0s
 ⠿ Container bitwarden-identity       Removed                                                                                                                                           0.7s
 ⠿ Container bitwarden-mssql          Removed                                                                                                                                           0.5s
 ⠿ Network docker_public              Removed                                                                                                                                           0.1s
 ⠿ Network docker_default             Removed                                                                                                                                           0.2s
Building docker environment files.
Building docker environment override files.
Building nginx config.
Building FIDO U2F app id.
Building docker-compose.yml.
i got the same problem like you, have you solve it yet?

my env:
bitwarden.sh version 2023.7.0
Docker version 24.0.5, build ced0996
Docker Compose version v2.20.2

Problems:

When i use the “adminSettings__admins” email writen in the global.override.env to log in my self hosted bw.xx.com/admin, i got a 404 about bw.xx.com/login. When return to last page , i got a message “Name or service not known”

But when use a bogus email, i got the message “If a valid admin user with this email address exists, we’ve sent you an email with a secure link to log in.”

I tried to check the admin log(/opt/bitwarden/bwdata/logs/admin/Admin) and it shows below, which i have no idea what to do.

2023-07-26 02:32:24.644 +00:00 [Error] Name or service not known System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name or service not known at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily, ValueStopwatch stopwatch) at System.Net.Dns.<>c.<GetHostEntryOrAddressesCoreAsync>b__33_0(Object s, ValueStopwatch stopwatch) at System.Net.Dns.<>c__DisplayClass39_0`1.<RunAsync>b__0(Task <p0>, Object <p1>) at System.Threading.Tasks.ContinuationResultTaskFromTask`1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at MailKit.Net.SocketUtils.ConnectAsync(String host, Int32 port, IPEndPoint localEndPoint, Boolean doAsync, CancellationToken cancellationToken) at MailKit.Net.SocketUtils.ConnectAsync(String host, Int32 port, IPEndPoint localEndPoint, Int32 timeout, Boolean doAsync, CancellationToken cancellationToken) at MailKit.MailService.ConnectNetwork(String host, Int32 port, Boolean doAsync, CancellationToken cancellationToken) at MailKit.Net.Smtp.SmtpClient.ConnectAsync(String host, Int32 port, SecureSocketOptions options, Boolean doAsync, CancellationToken cancellationToken) at Bit.Core.Services.MailKitSmtpMailDeliveryService.SendEmailAsync(MailMessage message) in /home/runner/work/server/server/src/Core/Services/Implementations/MailKitSmtpMailDeliveryService.cs:line 86 at Bit.Core.Services.HandlebarsMailService.SendPasswordlessSignInAsync(String returnUrl, String token, String email) in /home/runner/work/server/server/src/Core/Services/Implementations/HandlebarsMailService.cs:line 284 at Bit.Admin.Auth.IdentityServer.PasswordlessSignInManager`1.PasswordlessSignInAsync(String email, String returnUrl) in /home/runner/work/server/server/src/Admin/Auth/IdentityServer/PasswordlessSignInManager.cs:line 37 at Bit.Admin.Auth.Controllers.LoginController.Index(LoginModel model) in /home/runner/work/server/server/src/Admin/Auth/Controllers/LoginController.cs:line 40 at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) 2023-07-26 02:32:24.648 +00:00 [Error] An unhandled exception has occurred while executing the request. System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name or service not known at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily, ValueStopwatch stopwatch) at System.Net.Dns.<>c.<GetHostEntryOrAddressesCoreAsync>b__33_0(Object s, ValueStopwatch stopwatch) at System.Net.Dns.<>c__DisplayClass39_0`1.<RunAsync>b__0(Task <p0>, Object <p1>) at System.Threading.Tasks.ContinuationResultTaskFromTask`1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at MailKit.Net.SocketUtils.ConnectAsync(String host, Int32 port, IPEndPoint localEndPoint, Boolean doAsync, CancellationToken cancellationToken) at MailKit.Net.SocketUtils.ConnectAsync(String host, Int32 port, IPEndPoint localEndPoint, Int32 timeout, Boolean doAsync, CancellationToken cancellationToken) at MailKit.MailService.ConnectNetwork(String host, Int32 port, Boolean doAsync, CancellationToken cancellationToken) at MailKit.Net.Smtp.SmtpClient.ConnectAsync(String host, Int32 port, SecureSocketOptions options, Boolean doAsync, CancellationToken cancellationToken) at Bit.Core.Services.MailKitSmtpMailDeliveryService.SendEmailAsync(MailMessage message) in /home/runner/work/server/server/src/Core/Services/Implementations/MailKitSmtpMailDeliveryService.cs:line 86 at Bit.Core.Services.HandlebarsMailService.SendPasswordlessSignInAsync(String returnUrl, String token, String email) in /home/runner/work/server/server/src/Core/Services/Implementations/HandlebarsMailService.cs:line 284 at Bit.Admin.Auth.IdentityServer.PasswordlessSignInManager`1.PasswordlessSignInAsync(String email, String returnUrl) in /home/runner/work/server/server/src/Admin/Auth/IdentityServer/PasswordlessSignInManager.cs:line 37 at Bit.Admin.Auth.Controllers.LoginController.Index(LoginModel model) in /home/runner/work/server/server/src/Admin/Auth/Controllers/LoginController.cs:line 40 at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker) at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)