1 2 Previous Next 11 Replies Latest reply on Aug 23, 2010 6:01 AM by mcdave

    Failed to upload file SiteStat.xml to site <server>:<port>, error code 5 ( Access is denied. ), will retry -

    mcdave

      Hi,

       

      We're getting the message

      "Failed to upload file SiteStat.xml to site <server name>, error code 5 ( Access is denied. ), will retry"

      on several of our repositories during the replication process and which results in outdated repositories

       

      What could be the real cause of this?

       

      Re-installing the agent fix it for a while but it always reapears after a few days?

      Also cleaning the repository manually fixes it for a while.

       

       

      We're using:

      epo 4.5 +Patch1
      Agents 4.5.0.1270

      all our repositories are of the Super Agents type.

       

       

      regards

      Dave

        • 1. Re: Failed to upload file SiteStat.xml to site <server>:<port>, error code 5 ( Access is denied. ), will retry -
          mcdave

          Some additional info.

           

          EpoApSvr.log:

          20100819110626    I    #1472    SiteMgrWrap    Created instance of Site Manager
          20100819110626    I    #1472    SiteMgr     SetEPOMode: SiteMgr enter ePO mode, server=EPO01, port=80xx, EPOUser=, Password=********
          20100819110626    I    #1472    SiteMgr     DALInit: Connected to DAL successful
          20100819110626    I    #1472    SiteMgr     SetEPOMode: Set ePO mode successful
          20100819110626    I    #1472    SiteMgr     ReplicationThreadProc: Replication thread started
          20100819110626    I    #1472    SiteMgr     ReplicationThreadProc: Replication using 6 threads
          20100819110626    I    #1472    SiteMgr     Replication Temp dir: C:\WINDOWS\TEMP\nai10B8.tmp\00000000, 1
          20100819110626    I    #1472    SiteMgr     Replication determining master site size
          20100819110630    i    #1472    SiteMgr     ReplicationThreadProc: Skipping site Public Repository (epol.teleatlas.com), not included in replication task
          20100819110630    i    #1472    SiteMgr     ReplicationThreadProc: Uploading data to site ePOSA_FAILINGREPOSERVER
          20100819110630    i    #1472    SiteMgr     ReplicationThreadProc: Skipping site ePOSA_A, not included in replication task
          20100819110630    i    #1472    SiteMgr     ReplicationThreadProc: Skipping site ePOSA_B, not included in replication task
          20100819110630    i    #1472    SiteMgr     ReplicationThreadProc: Skipping site ePOSA_C, not included in replication task
          20100819110630    i    #1472    SiteMgr     ReplicationThreadProc: Skipping site ePOSA_D, not included in replication task
          20100819110630    i    #1472    SiteMgr     ReplicationThreadProc: Skipping site ePOSA_E, not included in replication task
          20100819110630    i    #1472    SiteMgr     ReplicationThreadProc: Skipping site ePOSA_F, not included in replication task
          20100819110630    I    #7584    SIM_InetMgr    Starting upload session for site 27898AA0-2F56-4C5C-B721-4E0957D4C24E
          20100819110630    I    #7584    naInet      HTTP Session initialized
          20100819110630    I    #7584    naInet      Connecting to HTTP Server in socket-mode
          20100819110630    I    #7584    naInet      Connecting to Real Server: FAILINGREPOSERVER on port: 80xx
          20100819110630    I    #7584    naInet      Connected to Real Server: FAILINGREPOSERVER on port: 80xx. No Proxy used!
          20100819110630    I    #7584    SIM_InetMgr    Started upload session 1 for site 27898AA0-2F56-4C5C-B721-4E0957D4C24E
          20100819110630    I    #6176    SiteMgr     ReplicationUploadFile: Uploading file SiteStat.xml to site ePOSA_FAILINGREPOSERVER::, retry limit remaining: 5
          20100819110630    I    #6176    SIM_InetMgr    Uploading file SiteStat.xml from session 1, LocalDir=C:\WINDOWS\TEMP\nai10B8.tmp\00000001, RemoteDir=
          20100819110630    I    #6176    naInet      Uploading file C:\WINDOWS\TEMP\nai10B8.tmp\00000001\SiteStat.xml to HTTP Server
          20100819110630    I    #6176    naInet      Connecting to Real Server: FAILINGREPOSERVER on port: 80xx
          20100819110630    I    #6176    naInet      Connected to HTTP Server: FAILINGREPOSERVER
          20100819110630    W    #6176    naihttp     failed upload file: /Software/SiteStat.xml
          20100819110630    I    #6176    SIM_InetMgr    Upload file SiteStat.xml failed in session 1, nainet ret=5
          20100819110630    I    #6176    SiteMgr     ReplicationUploadFile: Failed to upload file SiteStat.xml to site ePOSA_FAILINGREPOSERVER::, hr=-2147467259, retry limit remaining: 4
          20100819110630    I    #6176    SiteMgr     ReplicationUploadFile: Uploading file SiteStat.xml to site ePOSA_FAILINGREPOSERVER::, retry limit remaining: 4
          20100819110633    I    #6176    SIM_InetMgr    Uploading file SiteStat.xml from session 1, LocalDir=C:\WINDOWS\TEMP\nai10B8.tmp\00000001, RemoteDir=
          20100819110633    I    #6176    naInet      Uploading file C:\WINDOWS\TEMP\nai10B8.tmp\00000001\SiteStat.xml to HTTP Server
          20100819110633    I    #6176    naInet      Connecting to Real Server: FAILINGREPOSERVER on port: 80xx
          20100819110633    I    #6176    naInet      Connected to HTTP Server: FAILINGREPOSERVER
          20100819110633    W    #6176    naihttp     failed upload file: /Software/SiteStat.xml
          20100819110633    I    #6176    SIM_InetMgr    Upload file SiteStat.xml failed in session 1, nainet ret=5
          20100819110633    I    #6176    SiteMgr     ReplicationUploadFile: Failed to upload file SiteStat.xml to site ePOSA_FAILINGREPOSERVER::, hr=-2147467259, retry limit remaining: 3
          20100819110633    I    #6176    SiteMgr     ReplicationUploadFile: Uploading file SiteStat.xml to site ePOSA_FAILINGREPOSERVER::, retry limit remaining: 3
          20100819110635    I    #6176    SIM_InetMgr    Uploading file SiteStat.xml from session 1, LocalDir=C:\WINDOWS\TEMP\nai10B8.tmp\00000001, RemoteDir=
          20100819110635    I    #6176    naInet      Uploading file C:\WINDOWS\TEMP\nai10B8.tmp\00000001\SiteStat.xml to HTTP Server
          20100819110635    I    #6176    naInet      Connecting to Real Server: FAILINGREPOSERVER on port: 80xx
          20100819110635    I    #6176    naInet      Connected to HTTP Server: FAILINGREPOSERVER
          20100819110635    W    #6176    naihttp     failed upload file: /Software/SiteStat.xml
          20100819110635    I    #6176    SIM_InetMgr    Upload file SiteStat.xml failed in session 1, nainet ret=5
          20100819110635    I    #6176    SiteMgr     ReplicationUploadFile: Failed to upload file SiteStat.xml to site ePOSA_FAILINGREPOSERVER::, hr=-2147467259, retry limit remaining: 2
          20100819110635    I    #6176    SiteMgr     ReplicationUploadFile: Uploading file SiteStat.xml to site ePOSA_FAILINGREPOSERVER::, retry limit remaining: 2
          20100819110637    I    #6176    SIM_InetMgr    Uploading file SiteStat.xml from session 1, LocalDir=C:\WINDOWS\TEMP\nai10B8.tmp\00000001, RemoteDir=
          20100819110637    I    #6176    naInet      Uploading file C:\WINDOWS\TEMP\nai10B8.tmp\00000001\SiteStat.xml to HTTP Server
          20100819110637    I    #6176    naInet      Connecting to Real Server: FAILINGREPOSERVER on port: 80xx
          20100819110637    I    #6176    naInet      Connected to HTTP Server: FAILINGREPOSERVER
          20100819110638    W    #6176    naihttp     failed upload file: /Software/SiteStat.xml
          20100819110638    I    #6176    SIM_InetMgr    Upload file SiteStat.xml failed in session 1, nainet ret=5
          20100819110638    I    #6176    SiteMgr     ReplicationUploadFile: Failed to upload file SiteStat.xml to site ePOSA_FAILINGREPOSERVER::, hr=-2147467259, retry limit remaining: 1
          20100819110638    I    #6176    SiteMgr     ReplicationUploadFile: Uploading file SiteStat.xml to site ePOSA_FAILINGREPOSERVER::, retry limit remaining: 1
          20100819110640    I    #6176    SIM_InetMgr    Uploading file SiteStat.xml from session 1, LocalDir=C:\WINDOWS\TEMP\nai10B8.tmp\00000001, RemoteDir=
          20100819110640    I    #6176    naInet      Uploading file C:\WINDOWS\TEMP\nai10B8.tmp\00000001\SiteStat.xml to HTTP Server
          20100819110640    I    #6176    naInet      Connecting to Real Server: FAILINGREPOSERVER on port: 80xx
          20100819110640    I    #6176    naInet      Connected to HTTP Server: FAILINGREPOSERVER
          20100819110640    W    #6176    naihttp     failed upload file: /Software/SiteStat.xml
          20100819110640    I    #6176    SIM_InetMgr    Upload file SiteStat.xml failed in session 1, nainet ret=5
          20100819110640    I    #6176    SiteMgr     ReplicationUploadFile: Failed to upload file SiteStat.xml to site ePOSA_FAILINGREPOSERVER::, hr=-2147467259, retry limit remaining: 0
          20100819110640    I    #6176    SiteMgr     ReplicationUploadFile: Uploading file SiteStat.xml to site ePOSA_FAILINGREPOSERVER::, retry limit remaining: 0
          20100819110642    I    #6176    SIM_InetMgr    Uploading file SiteStat.xml from session 1, LocalDir=C:\WINDOWS\TEMP\nai10B8.tmp\00000001, RemoteDir=
          20100819110642    I    #6176    naInet      Uploading file C:\WINDOWS\TEMP\nai10B8.tmp\00000001\SiteStat.xml to HTTP Server
          20100819110642    I    #6176    naInet      Connecting to Real Server: FAILINGREPOSERVER on port: 80xx
          20100819110642    I    #6176    naInet      Connected to HTTP Server: FAILINGREPOSERVER
          20100819110642    W    #6176    naihttp     failed upload file: /Software/SiteStat.xml
          20100819110642    I    #6176    SIM_InetMgr    Upload file SiteStat.xml failed in session 1, nainet ret=5
          20100819110642    e    #6176    SiteMgr     ReplicationUploadFile: Failed to upload file SiteStat.xml to site ePOSA_FAILINGREPOSERVER::, hr=-2147467259, retry limit reached
          20100819110642    e    #7584    SiteMgr     WorkQueueUploadFile: Failed to upload file SiteStat.xml to site ePOSA_FAILINGREPOSERVER
          20100819110642    e    #7584    SiteMgr     ReplicateSite: Failed to upload file SiteStat.xml to site ePOSA_FAILINGREPOSERVER
          20100819110642    I    #7584    SrvEvtInf    Generating Event
          20100819110642    I    #7584    naInet      HTTP Session closed
          20100819110642    I    #7584    naInet      ------------------------------------------------------------
          20100819110642    I    #7584    SIM_InetMgr    Session 1 ended, result=1
          20100819110642    e    #7584    SiteMgr     ReplicationThreadProc: Upload data to site ePOSA_FAILINGREPOSERVER failed
          20100819110642    e    #1472    SiteMgr     ReplicationThreadProc: Replication finished with partial failure
          20100819110642    x    #1472    SiteMgr     SiteMgr main control final release...

           

          Replication.log:

          20100819110626: Replication started
          20100819110629: Approximately replication size 638521615 bytes, for 1 site(s)
          20100819110630: Performing incremental replication to site ePOSA_FAILINGREPOSERVER
          20100819110642: Replication to site ePOSA_FAILINGREPOSERVER failed
          20100819110642: Replication finished with partial failure
          20100819110642 Replication ended

          • 2. Re: Failed to upload file SiteStat.xml to site <server>:<port>, error code 5 ( Access is denied. ), will retry -
            JoeBidgood

            Check the agent log on the superagent machine - are there any errors that correspond with the time that the replication was occurring?

             

            Thanks -

             

            Joe

            • 3. Re: Failed to upload file SiteStat.xml to site <server>:<port>, error code 5 ( Access is denied. ), will retry -
              mcdave

              Part from Agent<superagent>.log:

               

              2010-08-20 05:46:42    I    #61724    LstnSvr    Rejected to create file D:\Data\McAfee-Repository\SiteStat.xml !
              2010-08-20 05:46:42    I    #61724    LstnSvr    'POST' request received from Host: xx.xx.xx.xx:1671
              2010-08-20 05:46:42    I    #61724    LstnSvr    process POST failed: -104
              ...

              2010-08-20 05:46:45    I    #97012    LstnSvr    Rejected to create file D:\Data\McAfee-Repository\SiteStat.xml !
              2010-08-20 05:46:45    I    #97012    LstnSvr    'POST' request received from Host: xx.xx.xx.xx:1672
              2010-08-20 05:46:45    I    #97012    LstnSvr    process POST failed: -104
              ...

              2010-08-20 05:46:47    I    #59736    LstnSvr    Rejected to create file D:\Data\McAfee-Repository\SiteStat.xml !
              2010-08-20 05:46:47    I    #59736    LstnSvr    'POST' request received from Host: xx.xx.xx.xx:1673
              2010-08-20 05:46:47    I    #59736    LstnSvr    process POST failed: -104

              ...

              2010-08-20 05:46:49    I    #61724    LstnSvr    Rejected to create file D:\Data\McAfee-Repository\SiteStat.xml !
              2010-08-20 05:46:49    I    #61724    LstnSvr    'POST' request received from Host: xx.xx.xx.xx:1674
              2010-08-20 05:46:49    I    #61724    LstnSvr    process POST failed: -104

              ...

              2010-08-20 05:46:52    I    #97012    LstnSvr    Rejected to create file D:\Data\McAfee-Repository\SiteStat.xml !
              2010-08-20 05:46:52    I    #97012    LstnSvr    'POST' request received from Host: xx.xx.xx.xx:1675
              2010-08-20 05:46:52    I    #97012    LstnSvr    process POST failed: -104
              ...

              2010-08-20 05:46:54    I    #59736    LstnSvr    Rejected to create file D:\Data\McAfee-Repository\SiteStat.xml !
              2010-08-20 05:46:54    I    #59736    LstnSvr    'POST' request received from Host: xx.xx.xx.xx:1676
              2010-08-20 05:46:54    I    #59736    LstnSvr    process POST failed: -104
              ...

               

               

              Part from Agent<superagent>_error.log:

               

              2010-08-20 05:45:48    E    #82356    Sched    nStartYear > 0 && nStartMonth > 0 && nStartDay > 0 && nStartHour >= 0 && nStartMinute >= 0--->false
              2010-08-20 05:45:48    E    #82356    Sched    m_lpSchedule->LoadSchedule --error
              2010-08-20 05:45:48    E    #82356    Sched    nStartYear > 0 && nStartMonth > 0 && nStartDay > 0 && nStartHour >= 0 && nStartMinute >= 0--->false
              2010-08-20 05:45:48    E    #82356    Sched    m_lpSchedule->LoadSchedule --error
              2010-08-20 05:45:49    E    #82356    Sched    Failed to load all the tasks from files
              2010-08-20 05:47:51    E    #59856    Logging    write error -1 (0) file [C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\Db\Agent_<superagent>.xml]
              2010-08-20 05:47:52    E    #59856    Logging    write error -1 (0) file [C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\Db\Agent_<superagent>.xml]
              2010-08-20 05:47:52    E    #59856    Logging    write error -1 (0) file [C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\Db\Agent_<superagent>.xml]
              2010-08-20 05:47:52    E    #59856    Logging    write error -1 (0) file [C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\Db\Agent_<superagent>.xml]
              2010-08-20 05:47:52    E    #59856    Logging    write error -1 (0) file [C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\Db\Agent_<superagent>.xml]

               

              Does this "process POST failed: -104" help?

              • 4. Re: Failed to upload file SiteStat.xml to site <server>:<port>, error code 5 ( Access is denied. ), will retry -
                JoeBidgood

                mcdave wrote:

                 

                Part from Agent<superagent>.log:

                 

                2010-08-20 05:46:42    I    #61724    LstnSvr    Rejected to create file D:\Data\McAfee-Repository\SiteStat.xml !
                2010-08-20 05:46:42    I    #61724    LstnSvr    'POST' request received from Host: xx.xx.xx.xx:1671
                2010-08-20 05:46:42    I    #61724    LstnSvr    process POST failed: -104


                 

                 

                Well, this is the interesting bit - the agent is unable to create the file. Check that there is sufficient disk space and so on, and that the account that the agent is running under (which should be System) has full control over all files and folders that comprose the repository. If necessary explicitly grant the permission.

                Is there anything in the security log that indicates access being denied?

                 

                Thanks -

                 

                Joe

                • 5. Re: Failed to upload file SiteStat.xml to site <server>:<port>, error code 5 ( Access is denied. ), will retry -
                  mcdave

                  It's no diskspace issue (+2.5GB free)
                  The Frameworkservice is staterd as "System" as should be.

                  There are no traces in the eventviewer of denied access.

                   

                  Checked the effective permissions for "D:\Data\McAfee-Repository\" and the 'System' account has full control.

                  • 6. Re: Failed to upload file SiteStat.xml to site <server>:<port>, error code 5 ( Access is denied. ), will retry -
                    JoeBidgood

                    Can you put the agent into log level 8, restart it, try the replication again and then post the agent log? This might give us some more detail...

                     

                    Thanks -

                     

                    Joe

                    • 7. Re: Failed to upload file SiteStat.xml to site <server>:<port>, error code 5 ( Access is denied. ), will retry -
                      mcdave

                      I surely can do that If I know how to set the logging to level 8.

                      • 8. Re: Failed to upload file SiteStat.xml to site <server>:<port>, error code 5 ( Access is denied. ), will retry -
                        Sk1dMARK

                        mcdave,

                         

                        I am getting a similar error on one of my repositories.  To workaround the issue, I have to "replicate" two times in quick succession to the failing site.  On the second attempt the error is gone and replication succeeds.

                         

                        My suspicion is that there are network issues at play in my case.  As the current infrastructure is going down in less than a month I have not tried to work it through the support channel.

                         

                         

                        You could try replicating to just one of your failing repositories twice or three times in quick succession to see if that allows you to replicate while you work through the issue to get a true resolution.  If it works you can perform the same on the others failing.

                         

                         

                        HTH,

                         

                         

                        Regards,

                         

                        Mark

                         

                        EDIT:  I believe this is the value you are looking for:  [HKEY_LOCAL_MACHINE\SOFTWARE\McAfee\ePolicy Orchestrator] "LogLevel"=dword:00000008

                         

                         

                        Message was edited by: Sk1dMARK on 8/20/10 3:53:00 PM EDT
                        • 9. Re: Failed to upload file SiteStat.xml to site <server>:<port>, error code 5 ( Access is denied. ), will retry -
                          mcdave

                          sk1dMARK:

                          I've tried your replicate trick without success.
                          BTW thx for the loglevel setting.

                           

                           

                           

                          In the meantime I've set the loglevel to 8,restarted, started replicate task and here is the resulting log (see attachment)

                          but at first sight I don't see any usefull info in there, only the same -104 error.

                          1 2 Previous Next