Skip to content
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

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

Open
kbtang88 opened this issue Apr 19, 2024 · 3 comments
Open

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

kbtang88 opened this issue Apr 19, 2024 · 3 comments

Comments

@kbtang88
Copy link

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
Copy link

kulps commented May 4, 2024

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

@bitbound
Copy link
Collaborator

bitbound commented Jun 5, 2024

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.

@simhachalamnaidu
Copy link

Any update on this? i am also facing the same issue.

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

No branches or pull requests

4 participants