immense / Remotely

A remote control and remote scripting solution, built with .NET 8, Blazor, and SignalR.
GNU General Public License v3.0
4.28k stars 1.6k forks source link

Error Storing keys in a directory & No XML encryptor configured #878

Open kbtang88 opened 2 months ago

kbtang88 commented 2 months ago

I'm getting error

[14:44:46 WRN] Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed. For more information go to https://aka.ms/aspnet/dataprotectionwarning {EventId={Id=60, Name="UsingEphemeralFileSystemLocationInContainer"}, SourceContext="Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository", ThreadId=1} [14:44:46 WRN] No XML encryptor configured. Key {67af71a5-2d80-4417-a2c0-29b2a34eb323} may be persisted to storage in unencrypted form. {EventId={Id=35, Name="NoXMLEncryptorConfiguredKeyMayBePersistedToStorageInUnencryptedForm"}, SourceContext="Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager", ThreadId=1}

Hostname | ip-172-31-23-41 OS Information | linux x86_64 Ubuntu 22.04.4 LTS Kernel Version | 6.5.0-1014-aws Total CPU | 1 Total memory | 995.4 MB Version | 24.0.5 (API: 1.43) Root directory | /var/lib/docker Storage Driver | overlay2 Logging Driver | json-file Volume Plugins | local Network Plugins | bridge, host, ipvlan, macvlan, null, overlay

kulps commented 1 month ago

I'm encountering the same thing. There are no other logs and the container never finishes starting.

bitbound commented 3 weeks ago

That warning is normal. It's not storing data protection keys in persistent storage, both for security and because it's not worth the effort of implementing.

All this means is that the "Remember Me" checkbox doesn't survive container restarts.

The container not starting is due to something else, but I don't know what. Maybe a configuration issue in the compose file. You can also try pulling the preview tag and see if that helps.