https://discord.umbraco.com
Join Discord
[Solved] Error unprotecting the session cookie & other errors
c

Craig100

over 1 year ago
Just recreating (rather then upgrading) my own little site to V13.0.1. It's running but for every page request (front end or back office) I get the following error in the dotnet console:- `[16:57:51 WRN] Error unprotecting the session cookie. System.Security.Cryptography.CryptographicException: The payload was invalid. For more information go to https://aka.ms/aspnet/dataprotectionwarning at Microsoft.AspNetCore.DataProtection.Managed.ManagedAuthenticatedEncryptor.Decrypt(ArraySegment`1 protectedPayload, ArraySegment`1 additionalAuthenticatedData) at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, Boolean allowOperationsOnRevokedKeys, UnprotectStatus& status) at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Unprotect(Byte[] protectedData) at Microsoft.AspNetCore.Session.CookieProtection.Unprotect(IDataProtector protector, String protectedText, ILogger logger)` I'm running on Linux Mint with no TLS cert (cos it's too mind bending to sort out!). Do people see this on Windows too? Also the Umbraco log is filling up with "Error uprotecting the section cookie" Warnings and "Keep alive failed at ("http://localhost:1234/api/keepalive/ping") Errors, like over 1,000 of them in a couple of hours. This is on my dev machine, not a live site. Any advice appreciated.
c
c
  • 2
  • 11
  • 2188
[SOLVED] Backoffice: in Block list, show image name in label
j

jacksorjacksor (Richard Jackson)

over 1 year ago
Happy Monday! In the backoffice (v10) I have a block list editor with image rows. That image row has an Image Media Picker, with the alias "image". I would like to show the name of that image in the block list editor's label for that row. I have tried label values such as
Image: {{ image.name }}
and
Image: {{ image }}
but to no joy. Fields such as "caption" can be accessed happily though
{{ caption }}
, the problem arises because
image
is an Umbraco.MediaPicker3 and I'm trying to access the name of that specific piece of picked media (3). I have scoured @Joe Glombek 's EXCELLENT [blog post](https://joe.gl/ombek/blog/umbraco-angularjs-filter-cheat-sheet) but alas I am without results. Please do consider helping a boy out on a cold, autumnal Monday morning. TIA!
j
j
a
  • 3
  • 30
  • 2033
NuCache\NuCache.Content.db' because it is being used by another process. - in Umbraco 12
j

jonroberts

over 1 year ago
Hi - how can we fix this type of error from happening again in Umbraco 12? System.IO.IOException: The process cannot access the file 'C:\home\site\wwwroot\umbraco\Data\TEMP\NuCache\NuCache.Content.db' because it is being used by another process. Thanks
j
r
+3
  • 5
  • 9
  • 1345
Failed to acquire write lock for id: -33...
h

Harry Gordon

about 1 year ago
Hi all! I've been looking into locking issues in Umbraco and I've found a possible cause. From what I can tell
ScopeProvider
is a singleton that manages all scopes (across all requests/threads) and seems to expect them to dispose in order. To top it off,
Scope
throws when it disposes if its "child" scope hasn't been disposed of, meaning any locks are not released 💥. Happy to hear everyone's thoughts, particularly if you think I'm wrong and/or know more about this area of Umbraco than me . https://harrygordon.co.uk/blog/not-thread-safe-obviously/ Here's the relevant thread on Github: https://github.com/umbraco/Umbraco-CMS/issues/14195#issuecomment-2117072274
h
s
  • 2
  • 15
  • 799
SQLite Error 5: 'database is locked'
t

TackleMcClean 🏅

about 1 year ago
During our local development we keep seeing errors saying that the SQLite database is locked. We have yet to figure out what triggers this. Anyone know what could be causing this or what we could try to solve it? Excerpt from the error output:
[17:34:51 ERR] Exception (fb9b415c).
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 5: 'database is locked'.
   at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
The full console output from this error is attached. https://cdn.discordapp.com/attachments/1229093653243494420/1229093653331443822/message.txt?ex=662e6daa&is=661bf8aa&hm=86e492a87d45b892d906cb3c6c8b68b28ebe8380687f97a2552259db3dbdc559&
t
w
+5
  • 7
  • 24
  • 574
How to get the correct root node for a mutisite Umbraco install?
m

Matthew Alexandros

over 1 year ago
Up until now my instance of Umbraco only housed one website so to get the root node I would simply use the code: var context = _umbracoContextAccessor.GetRequiredUmbracoContext(); var site = context.Content.GetAtRoot().First(); But now I will be adding adtional sites to the instance which will be using the same doc types and templates as the existing site. So how can I get the correct root node for the site the user is visiting?
m
j
  • 2
  • 4
  • 498
Error running new project in visual studio (V13)
b

brightertools

over 1 year ago
I am looking at using Umbraco for client projects (specifed by them) I followed the Visual studio install, ie instaklled the templates and started a new project I get the error: Microsoft.Data.SqlClient.SqlException: 'Invalid object name 'umbracoOpenIddictApplications'.' Latest VS, .net8, Umbraco 13.0.3 I tried restarting VS, restoring the packages and also needed to update connection string in appsettings.devleopment.json as that was different? Looked at the forums, they selection only goes to V8, so assume this is the priimary go-to for help?
b
m
+4
  • 6
  • 45
  • 498
Migration of Nested Content to Block List with Deploy
b

Bjarne Fyrstenborg

about 1 year ago
I have a project migrated from Umbraco 8 to latest Umbraco 13 on Umbraco Cloud, where it has a single Nested Content datatype instance I want to replace with Block List instead. I came across this https://docs.umbraco.com/umbraco-deploy/v/12.deploy.latest/deployment-workflow/import-export
using Umbraco.Cms.Core.Composing;
using Umbraco.Deploy.Core.Migrators;
using Umbraco.Deploy.Infrastructure.Migrators;

internal class ArtifactMigratorsComposer : IComposer
{
    public void Compose(IUmbracoBuilder builder)
    {
        builder.DeployArtifactMigrators()
            .Append<ReplaceNestedContentDataTypeArtifactMigrator>();

        builder.DeployPropertyTypeMigrators()
            .Append<NestedContentPropertyTypeMigrator>();
    }
}
I tried adding the composer to the project and restarted the application, but the property and datatype still seems to use Nested Content. Anything else which need to be configured?
b
d
r
  • 3
  • 5
  • 492
Faceted search in v10+ with examine
s

skttl

almost 2 years ago
How are people doing faceted search in new Umbraco projects? I've used Bobo before, but doesn't look like it's updated for net core.
s
d
+6
  • 8
  • 102
  • 483
Umbraco 15, bad idea? Is it another case of far from finished but still released?I
j

Jaddie

5 months ago
I'm just wondering what people reckon, would it be a good idea to stay on Umbraco 13? I'm trying using 15 at the moment for a scoping build, but it seem lovely and fast, but also very... rough, a classic Umbraco "new" release so am used to it, but I was a bit taken aback by some of the things that are still not working, like the blocklist clipboard there's no copy button?
j
s
+16
  • 18
  • 46
  • 468
12Next

Umbraco

A hub and casual space for you to interact with fellow community members and learn more about Umbraco!

Powered by