Kentico 11 logging me out of admin

S T asked on November 26, 2019 15:32

I'm using Kentico v11.0.48 and when I set up my live site I didn't have these problems. Now every time when I log in as admin it keeps logging me out. I've managed to look into the CMS_EventLog table an this is the error that I get.

EventID: 4613 EventType: E EventTime: 11/26/2019 2:49:44 PM Source: Application EventCode: EndRequest UserID: 65 UserName: public IPAddress: 77.77.212.90 EventDescription: Message: Access to the path 'C:\Inetpub\vhosts\kukaj.ba\httpdocs\App_Data\CMSModules\WebFarm\webfarm.sync' is denied.

Exception type: System.UnauthorizedAccessException Stack trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at CMS.WebFarmSync.AnonymousTasksProcesor.NotifyServer(String notificationPath) at CMS.WebFarmSync.AnonymousTasksProcesor.get_NotifyWatcher() at CMS.WebFarmSync.AnonymousTasksProcesor.RegisterWatchers() at CMS.WebFarmSync.WebFarmSyncHandlers.<>c.b__0_0(Object sender, EventArgs args) at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler1 h, TArgs e) at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List1 list, TArgs e, Boolean important) at CMS.Base.SimpleHandler2.RaiseExecute(TArgs e) at CMS.Base.SimpleHandler2.RaiseExecute(TArgs e) at CMS.Base.SimpleHandler2.StartEvent(TArgs e) at CMS.DataEngine.CMSApplication.RaisePostStart() at CMS.Base.LockHelper.ExecuteOnceInLifetime(Action action, Object lockObject, Boolean& executedFlag) at CMS.DataEngine.CMSApplication.PostStart() at CMS.DataEngine.CMSApplication.PostStart(Object sender, EventArgs e) at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler1 h, TArgs e) at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List1 list, TArgs e, Boolean important) at CMS.Base.SimpleHandler2.RaiseExecute(TArgs e) at CMS.Base.SimpleHandler2.RaiseExecute(TArgs e) at CMS.Base.SimpleHandler2.StartEvent(TArgs e) at CMS.Base.ApplicationModule.EndRequest(Object sender, EventArgs e)

EventUrl: /CMSMessages/Error.aspx?aspxerrorpath=/CMSPages/logon.aspx EventMachineName: OWNEROR-C0D5OK4 EventUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36 EventUrlReferrer: http://www.kukaj.ba/CMSPages/logon.aspx?ReturnUrl=%2fAdmin%2fCMSAdministration.aspx

I've checked the cookies and the cookies remain the same when it logs me out as they are when Im logged in. What else do I need to check ?

Regards

Recent Answers


Brenden Kehren answered on November 26, 2019 15:37

The user running IIS (typically IIS_IUSRS) needs to have read/write permission to the \App_Data directory. More specifically, I'd suggest stopping the website and setting those permissions to ensure the files in the directory are not in use.

1 votesVote for this answer Mark as a Correct answer

S T answered on November 26, 2019 19:57

Hi @BrendanKehren

I'm using plesk so I cant really add the IIS_IUSRS there as a permission for that folder See screenshot https://ibb.co/7v8k611

Image Text

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on November 26, 2019 21:51

Are you running in a medium-trust environment? If so this will cause problems with being able to set permissions on those folders.

1 votesVote for this answer Mark as a Correct answer

S T answered on November 27, 2019 09:05

@Brendan as I've said I'm using plesk which was provided to me as a control panel from the hosting company (you can see it on the image). But is this really webfarm.sync file the problem for the site crashing and logging out the admin ? It's very unusual.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on November 27, 2019 16:39

Check your hosting specs or ask your hosting provider If it's medium trust or not.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.