Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sander van de Pas 74 posts 147 karma points
    Mar 04, 2022 @ 09:23
    Sander van de Pas
    0

    Upgrading uSync to latest version (9.2.0) results in server Not Found

    Hi,

    I'm running uSync 9.2.0 on Umbraco 9.3.1. Before I upgraded uSync and Umbraco to the latest versions our TEST server was reachable and we could pull data from local to the TEST server.

    After the upgrades the TEST server couldn't be found anymore, while the url works and I got Umbraco access.

    What could be the problem in this case?

    Below a screenshot of the server setup and appsettings.config file:

    enter image description here enter image description here

    Any help much appreciated.

    Thanks in advance!

    Grtz Sander

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Mar 04, 2022 @ 09:29
    Kevin Jump
    0

    Hi,

    The "Not found" error is a 404 so that would imply that the Test server doesn't have Complete installed any more or that there is some URL mismatch somewhere ?

    if you look in the logs (on the machine trying to reach TEST) then there should be something in the logs with the connection error that may shine a bit more light on the issue ?

    Kevin

  • Sander van de Pas 74 posts 147 karma points
    Mar 04, 2022 @ 09:53
    Sander van de Pas
    0

    Hi Kevin,

    Thanks for the quick reply.

    That's the weird part, the url is right and I can access the url as well an can see in the uSync Settings that Complete is installed, see below:

    enter image description here

    When I take a look at the log files I see this one:

    enter image description here

    When I go to the url https://xxxxxxxx.azurewebsites.net/umbraco/uSyncReceive/uSyncReceiveApi/Enabled I got a Page Not Found with in the url:

    /Account/AccessDenied?ReturnUrl=%2Fumbraco%2FuSyncReceive%2FuSyncReceiveApi%2FEnabled

    Maybe this will help to found the problem?

    Grtz Sander

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Mar 04, 2022 @ 09:59
    Kevin Jump
    0

    Hi,

    yes i think this is a authentication problem - do you have additional auth (e.g other providers/ 2 factor) setup on the site ? - I suspect that interferes with the URL. but i am not 100% sure.

    this url isn't authenticated by the Umbraco process(its a 'normal' UmbracoApiController which uses the key/appid to sign the traffic between sites). - so it shouldn't go through any auth - but maybe it is ?

    Kevin

  • Sander van de Pas 74 posts 147 karma points
    Mar 04, 2022 @ 10:08
    Sander van de Pas
    0

    Hi,

    We don't have any additional authentication at all.

    Before the upgrade to 9.2.0 this all worked fine.

    Hopefully we can found the problem as soon as possible, because our client can't test everything right now.

    Grtz Sander

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Mar 04, 2022 @ 10:18
    Kevin Jump
    0

    Hi,

    I have just done the upgrade myself, (to uSync 9.2.0 and Umbraco 9.3.1) and it is working locally, i don't get the 404 error you see, (i get 401 unauthorized if i go direct).

    Is there anything else maybe 'non vanilla' about your setup , azure vpn/frontdoor ? anything like that ?

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Mar 04, 2022 @ 10:19
    Kevin Jump
    0

    If you go to the back office in TEST - can you see the servers ?

    if you add TEST to it self in the publisher dashboard as a server, can it see itself via that ?

  • Sander van de Pas 74 posts 147 karma points
    Mar 04, 2022 @ 10:30
    Sander van de Pas
    0

    Hi,

    Very strange at all.

    When I go to the backoffice on the TEST url the TEST server was already added by myself earlier, but is there Unavailable too:

    enter image description here

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Mar 04, 2022 @ 10:49
    Kevin Jump
    0

    Hi,

    yeah not being able to see itself is certainly odd 🤔

    does going to /umbraco/uSyncReceive/uSyncReceiveApi/GetApi return anything ? - (call should just return "" - there is no auth on it and the code it quite literally return "";)

  • Sander van de Pas 74 posts 147 karma points
    Mar 04, 2022 @ 10:55
    Sander van de Pas
    0

    Hi,

    That throws a Page Not Found error as well.

    Grtz Sander

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Mar 04, 2022 @ 11:24
    Kevin Jump
    0

    Hi,

    Sadly (for this issue) i can confirm that the latest version does work on azure. (Windows - so quick check are you running windows or linux webapp?)

    Just published my upgraded site to azure now and everything is connecting.

    So i suspect this is some deep setting change either in Umbraco or your azure setup. if there is anything you can think off that you might have changed from the default config that would help greatly.

    as an example this is my vinallia appsettings.json file for the site i have just published:

    {
      "$schema": "./umbraco/config/appsettings-schema.json",
      "Serilog": {
        "MinimumLevel": {
          "Default": "Information",
          "Override": {
            "Microsoft": "Warning",
            "Microsoft.Hosting.Lifetime": "Information",
            "System": "Warning"
          }
        }
      },
      "ConnectionStrings": {
        "umbracoDbDSN": "*********
      },
      "Umbraco": {
        "CMS": {
          "Hosting": {
            "Debug": false
          },
          "Content": {
            "ContentVersionCleanupPolicy": {
              "EnableCleanup": true
            }
          },
          "Global": {
            "Id": "36d55688-dfce-4341-9f22-92d59569044b"
          }
        }
      },
      "uSync": {
        "Publisher": {
          "Settings": {
            "IncomingEnabled": true,
            "AppId": "******",
            "AppKey": "******"
          }
        }
      }
    }
    

    and the startup.cs and program.cs haven't been altered. (stattup.cs below)

       public void ConfigureServices(IServiceCollection services)
        {
    #pragma warning disable IDE0022 // Use expression body for methods
            services.AddUmbraco(_env, _config)
                .AddBackOffice()
                .AddWebsite()
                .AddComposers()
                .Build();
    #pragma warning restore IDE0022 // Use expression body for methods
    
        }
    
        /// <summary>
        /// Configures the application.
        /// </summary>
        /// <param name="app">The application builder.</param>
        /// <param name="env">The web hosting environment.</param>
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
    
            app.UseUmbraco()
                .WithMiddleware(u =>
                {
                    u.UseBackOffice();
                    u.UseWebsite();
                })
                .WithEndpoints(u =>
                {
                    u.UseInstallerEndpoints();
                    u.UseBackOfficeEndpoints();
                    u.UseWebsiteEndpoints();
                });
        }
    }
    

    And i don't have any other packages installed in the csproj

    <ItemGroup>
        <PackageReference Include="Umbraco.Cms" Version="9.3.0" />
        <PackageReference Include="uSync.Complete" Version="9.2.0" />
    </ItemGroup>
    

    If any of this is different - or indeed if there are settings you think you have on your Azure web app. it would be good to know ?

Please Sign in or register to post replies

Write your reply to:

Draft