Strangely enough, when comparing source of both of my 1.29.2 Vaultwarden setups, both on docker, both behind Haproxy, there is a small difference.
The HTML sources of the admin settings page of the one described above that doesn't work end with:
</style>
<script src="/vw_static/admin_settings.js"></script>
<!-- This script needs to be at the bottom, else it will fail! -->
<script src="/vw_static/bootstrap-native.js"></script>
</body>
</html>
Whereas the sources of my other instance ends with:
</style>
<script src="/vw_static/admin_settings.js"></script>
<!-- This script needs to be at the bottom, else it will fail! -->
<script src="/vw_static/bootstrap.bundle.js"></script>
</body>
</html>
Of course I have no idea why.
When inspecting the network request, I see that bootstrap-native.js simply doesn't exist:
{"ErrorModel":{"Message":"Static file not found: bootstrap-native.js","Object":"error"},"ExceptionMessage":null,"ExceptionStackTrace":null,"InnerExceptionMessage":null,"Message":"Static file not found: bootstrap-native.js","Object":"error","ValidationErrors":{"":["Static file not found: bootstrap-native.js"]},"error":"","error_description":""}
@deajan commented on GitHub (Sep 12, 2023):
Strangely enough, when comparing source of both of my 1.29.2 Vaultwarden setups, both on docker, both behind Haproxy, there is a small difference.
The HTML sources of the admin settings page of the one described above that doesn't work end with:
```
</style>
<script src="/vw_static/admin_settings.js"></script>
<!-- This script needs to be at the bottom, else it will fail! -->
<script src="/vw_static/bootstrap-native.js"></script>
</body>
</html>
```
Whereas the sources of my other instance ends with:
```
</style>
<script src="/vw_static/admin_settings.js"></script>
<!-- This script needs to be at the bottom, else it will fail! -->
<script src="/vw_static/bootstrap.bundle.js"></script>
</body>
</html>
```
Of course I have no idea why.
When inspecting the network request, I see that `bootstrap-native.js` simply doesn't exist:
```
{"ErrorModel":{"Message":"Static file not found: bootstrap-native.js","Object":"error"},"ExceptionMessage":null,"ExceptionStackTrace":null,"InnerExceptionMessage":null,"Message":"Static file not found: bootstrap-native.js","Object":"error","ValidationErrors":{"":["Static file not found: bootstrap-native.js"]},"error":"","error_description":""}
```
bootstrap-native.js was replaced with bootstrap.bundle.js in #3730. So it should only load the latter. Maybe you have the page still cached? (Maybe check your HAProxy settings if you override the cache-control settings?)
@stefan0xC commented on GitHub (Sep 12, 2023):
`bootstrap-native.js` was replaced with `bootstrap.bundle.js` in #3730. So it should only load the latter. Maybe you have the page still cached? (Maybe check your HAProxy settings if you override the `cache-control` settings?)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @deajan on GitHub (Sep 12, 2023).
Subject
On a fresh installed Vaultwarden instance, I cannot use the admin panel since the js script won't load.
In my navigator, I get the following:
@deajan commented on GitHub (Sep 12, 2023):
Strangely enough, when comparing source of both of my 1.29.2 Vaultwarden setups, both on docker, both behind Haproxy, there is a small difference.
The HTML sources of the admin settings page of the one described above that doesn't work end with:
Whereas the sources of my other instance ends with:
Of course I have no idea why.
When inspecting the network request, I see that
bootstrap-native.jssimply doesn't exist:@stefan0xC commented on GitHub (Sep 12, 2023):
bootstrap-native.jswas replaced withbootstrap.bundle.jsin #3730. So it should only load the latter. Maybe you have the page still cached? (Maybe check your HAProxy settings if you override thecache-controlsettings?)