Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Dashboard not working #26

Open
c9mb opened this issue Jan 2, 2020 · 3 comments
Open

Dashboard not working #26

c9mb opened this issue Jan 2, 2020 · 3 comments

Comments

@c9mb
Copy link

c9mb commented Jan 2, 2020

I have the Toolkit installed and I can use the GetCropCdnUrl helper to convert media urls to Azure cached container urls.

I have the domain and azure-account keys configured and GetCropCdnUrl provide direct urls to cached media, while cached media is also returned using 302 redirects everywhere the standard GetCropUrl is still being used.

<add key="AzureCDNToolkit:Domain" value="http://mylocaldomain.com" /> <add key="AzureCDNToolkit:CdnUrl" value="https://myaccountname.blob.core.windows.net" />

However, the dashboard displays an empty server list, and no file lists.
image

I know it has to be something dumb - it's what I do best - but for the life of me I can't see what it is.

@c9mb
Copy link
Author

c9mb commented Jan 6, 2020

Moved.

1 similar comment
@c9mb
Copy link
Author

c9mb commented Jan 8, 2020

Moved.

@c9mb
Copy link
Author

c9mb commented Jan 13, 2020

So, the issue with the dashboard is that CacheApiController is using:
ApplicationContext.Services.ServerRegistrationService.GetActiveServers()

This simply doesn't return a value for my Umbraco-Cloud based projects.

To test it, I added my own UmbracoAuthorizedJsonController resource to fetch:
ApplicationContext.Current.Services.ServerRegistrationService.CurrentServerIdentity

and made that the default server, which then let me view the listing of cached image paths for the current server, which is all you have in that config.

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

No branches or pull requests

1 participant