https://discord.umbraco.com
Join Discord
Docker access denied on startup when mounting volumes
f

Fritseriño

9 months ago
I first got this error (I use SQLite):
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 14: 'unable to open database file'
I then read on stackoverflow that i should mount a volume, but I then get this error when i add the volume from my local data folder to the container data folder: /app/umbraco/Data:
2025-02-01 02:06:49 [01:06:49 ERR] Unexpected exception attempting to obtain MainDom lock file handle /app/umbraco/Data/TEMP/MainDom_78900a17dd16e82bd2ba7db10a6d0183b0786ad0.lock, giving up
2025-02-01 02:06:49 System.UnauthorizedAccessException: Access to the path '/app/umbraco/Data' is denied.
2025-02-01 02:06:49  ---> System.IO.IOException: Permission denied
I'm quite new to this and have no idea 😅
f
a
s
  • 3
  • 2
  • 43
Umbraco 15: Get content URL in test with WebApplicationFactory
d

D_Inventor

8 months ago
I have an automated test that tests the response on the URL of a content page. This used to work in Umbraco 13, but no longer works in Umbraco 15: All content items return the same url "/", so I'm calling the wrong URL for my test. Has anyone run into a similar problem and knows a solution? This is what I do: - Boot website in-memory with WebApplicationFactory - Run uSync import on boot to build the content tree - Get umbraco context factory and find the homepage content page - get url from content item, request the URL from the application and check response Example test in first response
d
  • 1
  • 3
  • 43
Load testing tools/strategies
j

Jemayn

9 months ago
Looking to introduce load testing more on our sites, but it's something we do very little atm, so was hoping anyone here would have some experience to share 🙂 Been testing out k6.io as we'd want something that's quick to set up and easy to maintain. The ideal would be that we could continuously test a project while it's being developed and thus be able to catch poorly performing sections as they are made.
j
r
+2
  • 4
  • 6
  • 43
UserLogoutSuccessNotification does not seem to be triggered anymore by logout button.
j

Jack

over 1 year ago
Hey there! I have a Umbraco v13 project that listens to UserLogoutSuccessNotification
csharp
    public class UserLogoutSuccessEventHandler : INotificationHandler<UserLogoutSuccessNotification>
    {
        private readonly IOptions<AzureAdOptions> _azureOptions;

        public UserLogoutSuccessEventHandler(IOptions<AzureAdOptions> azureOptions)
        {
            _azureOptions = azureOptions;
        }

        public void Handle(UserLogoutSuccessNotification notification)
        {
            notification.SignOutRedirectUrl = $"{_azureOptions.Value.Instance}{_azureOptions.Value.TenantId}/oauth2/v2.0/logout?post_logout_redirect_uri={_azureOptions.Value.PostLogoutRedirectUri}";
        }
    }
(it is registered within a composer) This has worked without problem and was triggered when clicking on the logout button inside the backoffice. (see screenshot) Now when i try the same setup in Umbraco 14 it does not trigger anymore when clicking the logout button, is this a bug ? and are there any known workarounds. The event is still documented in v14 https://docs.umbraco.com/umbraco-cms/reference/security/backofficeusermanager-and-notifications as far as i can tell. https://cdn.discordapp.com/attachments/1267789349890822207/1267843240686653564/sidepanellogin.png?ex=66aa4287&is=66a8f107&hm=352555f384cf5c2d65750555cb3e96559170dbadd9f1035a561506d145be11e8&
j
a
a
  • 3
  • 4
  • 43
Polyfill supply chain attack hits 100K+ ...
r

rasmusjp

over 1 year ago
If you’re using polyfill.io on your sites you should remove the reference asap as the domain is now serving malware. https://sansec.io/research/polyfill-supply-chain-attack
r
s
i
  • 3
  • 2
  • 43
uSkinned Upgrade From Legacy uSkinned V8 Theme to Site Builder?
p

protherj

over 1 year ago
We have a client that is on Umbraco v8 and is using uSkinned. Unfortunately, they aren't using the Site Builder version of uSkinned. Question: Is it possible to upgrade or easily migrate to some version of Site Builder?
p
u
i
  • 3
  • 4
  • 43
Creating a Setting Type In Umbraco Forms v12
b

Blake Watt (Clerke)

over 1 year ago
Hi beautiful people! When checking out the docs for creating a setting type in umbraco forms it says to create a js view and controller at the following location: "/App_Plugins/UmbracoForms/backoffice/Common/SettingTypes/mysettingview.html". This is an html file so it is a bit confusing. Where should the JS controller for the setting live and be referenced? Docs for reference: https://docs.umbraco.com/umbraco-forms/v/12.forms.latest/developer/extending/adding-a-type/setting-types#creating-a-setting-type
b
l
r
  • 3
  • 28
  • 43
UI Builder and Content Picker
k

Kenneth Solberg

almost 2 years ago
Hi, I've got a 13.0.3 site with UI Builder. I've configured the Document Type "Event" and the DataType "Event Picker" (Content Picker). I've also created a POCO named EventBooking (Id (Guid), Name (string), EventId (int), DateCreated (DateTime)). I've configured UI Builder like as in the attached screenshot. If I go to the configured Booking-section and click 'Create Event booking', I can select a member as expected, but when I click 'Add' Event and select an Event I get this error notification (twice): Request error: The URL returned a 404 (not found): /umbraco/backoffice/umbracoapi/entity/GetByIds If I inspect in the browser developer tools I can see these in console: POST https://localhost:44360/umbraco/backoffice/umbracoapi/entity/GetByIds?type=Document 404 (Not Found) Possibly unhandled rejection: {"errorMsg":"Failed to retrieve entity data for ids 0,umb://document/f276c666524b4c6ebd58817914a8c071","data":"","status":404,"xhrStatus":"complete"} POST https://localhost:44360/umbraco/backoffice/umbracoapi/entity/GetUrlsByIds?type=Document&culture= 404 (Not Found) https://cdn.discordapp.com/attachments/1195276696446849024/1195276696677519460/image.png?ex=65b3672b&is=65a0f22b&hm=7e1df0a3f7c871090e72f5b3b90f5d70d5a5d42328e2de36eedcdf83a11a7f8a&
k
j
+2
  • 4
  • 18
  • 43
What would cause an MNTP to be greyed out?
c

Craig100

over 2 years ago
Umb V10.5.1 Multi-lingual site. Have a Products page (vary by culture) containing an MNTP (vary by culture) which is set to pick Category pages (vary by culture). But when I come to click on the MNTP to select a Category, the items to pick from are all greyed out, as can be seen below. I've set everything I can think of to "vary by culture", but is there something else I'm missing?
c
d
  • 2
  • 4
  • 43
Change Period not working in IRecurringBackgroundJob
c

Craig100

9 months ago
V13.6.0 Have implemented a recurring background job to delete some files on a regular basis. It works fine. The time period is set by the editors in the back office. However, it only works from app start. I followed the "Complex example" in the docs (https://docs.umbraco.com/umbraco-cms/13.latest/reference/scheduling) but don't see where it actually picks up the change. I've tried adding
Period = TimeSpan.FromMinutes(GetTime());
just before the return, outside the scope, but although I can see it picks up the new time there, the schedule is still running on the old time. Is there some tweak that's not in the docs or have I simply misunderstood how the PeriodChanged thing works? I note there is this section:-
private event EventHandler? _periodChanged;
    public event EventHandler PeriodChanged
    {
        add { _periodChanged += value; }
        remove { _periodChanged -= value; }
    }
Not sure what populates the
value
. Should that be my GetTime() function? Any advice appreciated. Thanks.
c
a
k
  • 3
  • 13
  • 42
Previous515253Next

Umbraco

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

Powered by