Windows Services blocking application of patchset for 11.1.0.7

I'm trying to apply the patchset to bring Oracle database from 11.1.0.6 to 11.1.0.7. Things are running smoothly as-is, but I want to be current. When I try to apply the patchset, it complains that 37(!) windows services are holding files that oracle needs to update. Some of the services I can stop (and I do), but some I can't, either because windows immediately restarts the service or there simply isn't a Stop capability available (e.g. DCOM Server Process Launcher).
I've tried rebooting (several times) - no luck. (BtW, This is on XP Pro, SP3).
Any suggestions on how to get around this? Even to discover what files are being held might help. The log files just list the services causing the problems.
Thanks for any help!

That's a known problem on XP,although I didn't yet see that almost all services are involved. Normally the installer complains about some locked DLLs only. Nevertheless try the following workaround (and make sure - as already said - no Oracle service is running):
1) Rename $ORACLE_HOME\bin to something else
2) Reboot the machine
3) Rename back to $ORACLE_HOME\bin and try again
Werner

Similar Messages

  • How to configure windows services alerts in SCOM 2012 for all agent servers. For eg, Terminal Services, Netlogon, RPC etc..

    Hi,
    I need to configure different windows services alerts in SCOM 2012. Below are some of the windows services I need to monitor through SCOM.
    Serivce: Windows Management Instrumentation
    Service: Netlogon
    Service: Remote Procedure Call (RPC)
    Service: Server Service
    Service: Terminal Services
    Service: Windows Time
    Service: Workstation
    Service : WWW Publishing Service
    Could some one please assist or share me the details, how to configure these services for windows agent servers.
    Thanks..
    Regards, Rajeev Parambil

    Hi,
    A certain set of services are monitored by default on all agents:
    DNS Client
    DHCP Client
    RPC
    Workstation
    Server
    For all the other services you could create a service monitor.
    A nice blog series outlining this process can be found here: http://www.bictt.com/blogs/bictt.php/2011/03/16/scom-monitoring-a-service-part1
    It's doing common things uncommonly well that brings succes. Check out my SCOM link blog:
    SCOM link blog

  • Conver weblogic Admin server to a windows service

    I used the following scripts to conver weblogic Admin server to a windows service :
    SETLOCAL
    set DOMAIN_NAME=Sayesaman
    set USERDOMAIN_HOME=C:\jdev11.1.1.6\user_projects\domains\Sayesaman
    set SERVER_NAME=Sayesaman
    set WL_HOME=C:\jdev11.1.1.6\wlserver_10.3
    set WLS_USER=weblogic
    set WLS_PW=weblogic110
    set PRODUCTION_MODE=false
    set MEM_ARGS=-Xms512m –Xmx512m
    call "C:\jdev11.1.1.6\wlserver_10.3\server\bin\installSvc.cmd"
    ENDLOCAL
    after running these scripts the windows service created successfully and running properly .
    but the state of all web application is failed and even I can't deploy any web application and I get the following error :
    Class Not Found : oracle.dms.wls.DMSServletFilterr
    Please help me to conver weblogic Admin server to a windows service correctly .
    Edited by: 950222 on Aug 1, 2012 2:46 AM

    Request you to share the entire stack of error.
    Meanwhile,I would recommend that you deleet the existing service created and re-create the service by following the below steps:-
    1. Create a text file
    %MIDDLEWARE_HOME%\user_projects\domains\servers\AdminServer\security\boot.properties
    Add the following lines
    username=weblogic
    password=
    Important to Note:
    a. If this step is not performed you will see the following generic error when the Admin Server is started in " background mode " via an MS Windows Service.
    BEA-090403 Authentication for user weblogic denied
    This error occurs because, by default, startup of Admin Server interactively prompts for the weblogic username and password. If the password is not supplied the error is thrown.
    b. As soon as you start the Admin Server the username and password values in this file will be encrypted. Be sure to stop / start the Admin Server as soon as possible to ensure the credentials are not exposed for longer than necessary.
    2. Create a command script called installAdmServer_Service.cmd which has lines like
    SETLOCAL
    set DOMAIN_NAME=ClassicDomain
    set USERDOMAIN_HOME=C:\middleware\FMW11g\user_projects\domains\ClassicDomain
    set SERVER_NAME=AdminServer
    set PRODUCTION_MODE=true
    cd %USERDOMAIN_HOME%
    call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
    call "C:\middleware\FMW11g\wlserver_10.3\server\bin\installSvc.cmd"
    ENDLOCAL
    3. For troubleshooting / debugging purposes it is helpful to redirect standard out and error to a text file. Although most information is captured in the AdminServer server log files, you will not see all standard out and error when the server is started via a MS Windows Service (unlike when you start an AdminServer from the command prompt using startWebLogic.cmd). To redirect standard out to a text file, backup and edit installSvc.cmd and change the line at the bottom of the file so it include the -log parameter e.g
    "%WL_HOME%\server\bin\beasvc" -install
    -svcname:"%DOMAIN_NAME%_%SERVER_NAME%"
    -javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%"
    -extrapath:"%WL_HOME%\server\bin" -password:"%WLS_PW%"
    -cmdline:%CMDLINE%
    -log:"C:\Middleware\FMW11g\user_projects\domains\ClassicDomain\%SERVER_NAME%-stdout.txt"
    4. Now run "installAdmServer_Service.cmd". The Service should be installed, it will have a name like ""beasvc %DOMAIN_NAME%_%SERVER_NAME%" e.g
    beasvc ClassicDomain_AdminServer
    The Service "Startup Type" will be 'Automatic'. Just like any other MS Windows Service you can change the 'Startup Type' to 'Manual'.
    Start the Service. The Service will come back fairly quickly to say it is started. The actual time taken for AdminServer to start and reach a state of 'RUNNING' will be longer - perhaps two or three minutes. The state of the server can be monitored by reviewing the stdout txt file.
    Notes:
    An alternative to the boot.properties approach to specifying the Admin Server weblogic username / password is to add the following environment variables to your wrapper cmd script - installAdmServer_Service.cmd
    set WLS_USER=weblogic
    set WLS_PW=manager11g
    The beasvc utility encrypts the login credentials and stores them in the Windows registry.
    This is one of two possible methods for avoiding the username/password prompt when a server instance starts. The disadvantage to this method is that changing the username or password for the server instance requires you to delete the Windows service and set up a new one with the new username and password. Instead of this method, you can use a boot identity file. With a boot identity file, you can change the login credentials without needing to modify the Windows service.
    Create a MS Windows Service for a Managed Server e.g WLS_FORMS
    Important to Note:
    1. The ADMIN_URL value should reference the AdminServer hostname and listen port.
    2. The SERVER_NAME value is case sensitive. For example, if you are creating a MS Windows service for a different managed server such as 'wls_ods1' then the value needs to match the case of the server name otherwise the startup of the server via the MS Windows service will fail.
    3. Be careful that there are no trailing spaces after each line in the command file - trailing spaces will cause the managed server to fail at startup. For example a trailing space in the ADMIN_URL value will result in the error
    <Error> <EmbeddedLDAP> <BEA-171524> <Cannot determine the Listen address for the Admin server
    3. Now run "installAdmServer_Service.cmd". The Service should be installed, it will have a name like ""beasvc %DOMAIN_NAME%_%SERVER_NAME%" e.g
    beasvc ClassicDomain_AdmServer
    The Service "Startup Type" will be 'Automatic'. Just like any other MS Windows Service you can change the 'Startup Type' to 'Manual'.
    Start the Service. The Service will come back fairly quickly to say it is started. The actual time taken for the managed server to start and reach a state of 'RUNNING' will be longer - perhaps two or three minutes. The state of the server can be monitored by reviewing the stdout txt file.
    Hope this helps!
    -Sandeep

  • Problem with SJAS EE 9.1 start and stop (Windows Service Mode)

    Hi
    Thank you for reading my post
    Sun Java application server enterprise edition 9.1 (SJAS EE 9.1+HADB) asks for admin password each time windows try to start it as windows service.
    Also HADB asks for password on start.
    Is there any way to make it automatic without requiring password?
    Thanks

    You need to add a password.txt file to your app server path. See the section Security for Automatic Restarts in the administration guide for details.
    You may also need to recreate the service to use the passwordfile option.  If it is prompting you for a master password also you may need to have your domain and node agents created with the savemasterpassword option. I believe you will have to recreate the node agents, but you can use the asadmin command change-master-password for the domain and specify the --savemasterpassword option.
    I have not used the service for the HADB yet, but I believe the procedure is probably similar.

  • Windows Service no longer able to print PDF files using Adobe Reader 11.0.07.79

    We have a Windows Service that watches a folder for PDF files to be deposited.  Once awakened, it executes the Adobe Reader in command line mode to print the PDF files to secure check printers. The Windows Service was working fine with 11.0.06.70 but no longer works with 11.0.07.79.
    There are no event viewer errors or errors returned to our Process.Start() call.  The Windows Service is running under the identify of an administrator account and has explicit full access to the printer.  We have also tried the local computer's Administrator account as well as the default Local Service, but none work.
    Using ProcMon to examine the failure, it showed Adobe Reader making many successful registry and file accesses.  Adobe Reader then creates a new process, another instance of itself to read in the PDF file and print to the printer.  However, ProcMon only shows Adobe Reader accessing AcroRd32.exe, syswow.dll (sp) and ntdll.dll and then the thread and process immediately exits with an exit code of 0 (no file or registry accesses).  So, something is causing the instantiated process to fail immediately.
    After more research and trying many things, we disabled "Enable Protected Mode at Startup".  This enabled things to work again.
    We are concerned that disabling this feature might expose security concerns for our customers.
    We are suspecting that some security concerns were tightened with 11.0.07.79 that has inadvertently caused printing from Windows Services to falsely be identified as security violations.  Can you please investigate and provide a resolution?
    Thank you.
    Craig Keating
    Alliance Enterprises, Inc.
    [email protected]

    Hi,
    Can you please give the following details:
    1) Command (given in command line)used to print PDF files?
    2) Is the issue reproducible with other printers as well?
    3) Is directly printing the PDF from that folder using command line i.e without using windows service works fine or not?
    Thanks,
    Shakti K

  • Which solution is better for schedules task? Console application or windows service?

    I have a "MULTI-LEVEL" XML file that I will be getting on daily basis and I want to accomplish following tasks:
    1) I have to read and parse the "MULTI-LEVEL" XML data
    2) Then I have to set or create some kind of .net service (c#) that read the xml and parse the data once a day (daily)?
    3) Now I have SOAP service from other software where I want to feed this XML data to. The schedules service will compare the XML data with software data and update (or add) based on the comparision.
    For this task, I come to conclusion that there are 2 best ways to do this:
    1) Create a console application and use windows task scheduler to run it everyday
    2) Create a windows service that runs in the background
    Which is a better way (or reliable)  solution to do this task? Please advise

    There are several things to keep in mind when writing an app that is designed to run without a user logged in. One of the most common mistakes is requiring some sort of user input.  Since the task will run without user intervention you don't want
    any sort of calls to Console.ReadLine, MessageBox.Show, etc.  They will cause the task to freeze and eventually need to be terminated.  You also don't want to rely on any sort of desktop apps running since a user may or may not be logged on at the
    time.
    Also be aware that a task can be scheduled to run under any user context.  As such you either need to ensure it runs under an account with sufficient privileges or that your app needs no special privileges.  You mentioned you tried to run it from
    bin\debug but you most likely have your project under your Documents directory.  Only you would have permissions to that folder and therefore will run into issues if the task is run under a different context.  You also mentioned you put it in the
    C:\ but users don't have write privileges to that folder and therefore if you tried to write a file out it would fail. If you need to read/write files then you should pick a common location that all users have access to or at least the one that will run the
    scheduled task. Be aware that, by default, Task Scheduler will not run a task elevated. You need to check the option to run elevated when you configure the user to run the task under.
    One of the key things to ensure you do with a task is verify it is working properly as a normal app.  You should also ensure that you have good logging so that if it does fail you can trace down the failure more easily.  One common thing that people
    tend to do in console apps is put a try-catch around the main function and display a message if an unhandled exception occurs. This is going to cause problems in a task.  Simply log the exception and rethrow it so Task Scheduler will flag the run as a
    failure.
    If you still cannot figure out why your task is failing then please add some logging and then tell us what code is being run at the time and what the failure is.

  • Application Restart and Recovery APIs doesn't work for windows services

    I am using the Application Restart and Recovery mechanism (provided in Windows API Code Pack for Microsoft.NET Framework) to collect some information (i.e. stack information when there's an unhandledexception)  before my windows service crash down.
    It works well for windows form applications, but the callback method wouldn't be called if the host is a windows service. 
    I have checked the article: https://msdn.microsoft.com/zh-cn/subscriptions/downloads/cc303708
    But it doesn't specify clearly whether it works for a windows service. It seems that the recovery will only be activated when the user interacts with the error dialog of Windows Error Reporting (clicking "close" on the dialog, for example).
    So I am wondering is my guess right that the Application Restart and Recovery mechanism doesn't work for windows services. Or is there a better way to meet my requirement? 

    I would suggest trying ARR if that's what you want to use.  The restart portion won't work, but it doesn't need to as if you fail out of your service, the Windows service controller will handle recovery (up to and including restarting your service).
     You configure those recovery actions either through code or one of the built in administrative tools for services such as services.msc.  
    DebugDiag/ADplus and similar tools ultimately do use built-in APIs; you don't need to add anything external to collect debugging information.  You do however have to write a good deal of code to do somethings.  It's pretty simple to use the unmanaged
    function that I pointed out before and
    MiniDumpWriteDump to write a minidump when you hit an unexpected error(the dbghelp.dll that comes installed with Windows has it so you don't need anything additional installed).  You can even write a basic debugger that literally debugs a process using
    only kernel32 functions (see
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms679301(v=vs.85).aspx if you're interested).  
    WinSDK Support Team Blog: http://blogs.msdn.com/b/winsdk/

  • Windows Service Enterprise Library Data Access Application Blocks Connection Pooling Issue

    Hello,
    We are developing a windows service using c# .net v 4.5.1 which communicates with SQL database (SQL 2008 R2 x64), communication with SQL server is done using Enterprise Library data access block v 6, The windows service does a file copy process in bulk &
    updates the database about the status of file copy, it is observed that as soon as we start the service the number of connections get max out & we start receiving a "Timeout expired.  The timeout period elapsed prior to obtaining a connection
    from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached."
    This issue is only observed when we run the code logic by deploying it as a windows service, When we run the exactly same code as a standalone exe (right click -> run as administrator) / non windows service, the connections on database are not exceeded
    & we do not receive the above mentioned error.
    The code block which makes calls to the database is under the c# "using" statement, hence connection pooling should be handled by default.
    Could you please recommend any suggestions on areas which I might have missed on to investigate this issue.
    Thanks in advance.

    Hi
    The issue got resolved after refresh the SCOM Data base access service  account in SQL 2012.
    Unable to launch the operations manager 2012 R2 console after extended the C drive of the SQl server ,getting error "The Data
    Access service is either not
    running or not yet initialized.
    Got to your SQL server -->databases-operationsmanager--security-users--locate the daa service account and refresh.issue fixed and am able to luanch.

  • How to launch an application with elevated administrator account privilege from windows service even if the account has not yet logon

    Here is the case:
    OS environment: Windows 7
    There are two user accounts in my system, standard user "S" and administrator account "A", and there is a windows service running with "Local System" privilege.
    Now i logged-in with account "S", and i want to launch an application with elevated administrator account "A" from that service program, so here is the code snippet:
    int LaunchAppWithElevatedPrivilege (
    LPTSTR lpszUsername, // client to log on
    LPTSTR lpszDomain, // domain of client's account
    LPTSTR lpszPassword, // client's password
    LPTSTR lpCommandLine // command line to execute e.g. L"C:\\windows\\regedit.exe"
    DWORD dwExitCode = 0;
    HANDLE hToken = NULL;
    HANDLE hFullToken = NULL;
    HANDLE hPrimaryFullToken = NULL;
    HANDLE lsa = NULL;
    BOOL bResult = FALSE;
    LUID luid;
    MSV1_0_INTERACTIVE_PROFILE* profile = NULL;
    DWORD err;
    PTOKEN_GROUPS LocalGroups = NULL;
    DWORD dwLength = 0;
    DWORD dwSessionId = 0;
    LPVOID pEnv = NULL;
    DWORD dwCreationFlags = 0;
    PROCESS_INFORMATION pi = {0};
    STARTUPINFO si = {0};
    __try
    if (!LogonUser( lpszUsername,
    lpszDomain,
    lpszPassword,
    LOGON32_LOGON_INTERACTIVE,
    LOGON32_PROVIDER_DEFAULT,
    &hToken))
    LOG_FAILED(L"GetTokenInformation failed!");
    __leave;
    if( !GetTokenInformation(hToken, (TOKEN_INFORMATION_CLASS)19, (VOID*)&hFullToken,
    sizeof(HANDLE), &dwLength))
    LOG_FAILED(L"GetTokenInformation failed!");
    __leave;
    if(!DuplicateTokenEx(hFullToken, MAXIMUM_ALLOWED, NULL,
    SecurityIdentification, TokenPrimary, &hPrimaryFullToken))
    LOG_FAILED(L"DuplicateTokenEx failed!");
    __leave;
    DWORD dwSessionId = 0;
    WTS_SESSION_INFO* sessionInfo = NULL;
    DWORD ndSessionInfoCount;
    bResult = WTSEnumerateSessions(WTS_CURRENT_SERVER_HANDLE, 0, 1, &sessionInfo, &ndSessionInfoCount);
    if (!bResult)
    dwSessionId = WTSGetActiveConsoleSessionId();
    else
    for(unsigned int i=0; i<ndSessionInfoCount; i++)
    if( sessionInfo[i].State == WTSActive )
    dwSessionId = sessionInfo[i].SessionId;
    if(0 == dwSessionId)
    LOG_FAILED(L"Get active session id failed!");
    __leave;
    if(!SetTokenInformation(hPrimaryFullToken, TokenSessionId, &dwSessionId, sizeof(DWORD)))
    LOG_FAILED(L"SetTokenInformation failed!");
    __leave;
    if(CreateEnvironmentBlock(&pEnv, hPrimaryFullToken, FALSE))
    dwCreationFlags |= CREATE_UNICODE_ENVIRONMENT;
    else
    pEnv=NULL;
    if (! ImpersonateLoggedOnUser(hPrimaryFullToken) )
    LOG_FAILED(L"ImpersonateLoggedOnUser failed!");
    __leave;
    si.cb= sizeof(STARTUPINFO);
    si.lpDesktop = L"winsta0\\default";
    bResult = CreateProcessAsUser(
    hPrimaryFullToken, // client's access token
    NULL, // file to execute
    lpCommandLine, // command line
    NULL, // pointer to process SECURITY_ATTRIBUTES
    NULL, // pointer to thread SECURITY_ATTRIBUTES
    FALSE, // handles are not inheritable
    dwCreationFlags, // creation flags
    pEnv, // pointer to new environment block
    NULL, // name of current directory
    &si, // pointer to STARTUPINFO structure
    &pi // receives information about new process
    RevertToSelf();
    if (bResult && pi.hProcess != INVALID_HANDLE_VALUE)
    WaitForSingleObject(pi.hProcess, INFINITE);
    GetExitCodeProcess(pi.hProcess, &dwExitCode);
    else
    LOG_FAILED(L"CreateProcessAsUser failed!");
    __finally
    if (pi.hProcess != INVALID_HANDLE_VALUE)
    CloseHandle(pi.hProcess);
    if (pi.hThread != INVALID_HANDLE_VALUE)
    CloseHandle(pi.hThread);
    if(LocalGroups)
    LocalFree(LocalGroups);
    if(pEnv)
    DestroyEnvironmentBlock(pEnv);
    if(hToken)
    CloseHandle(hToken);
    if(hFullToken)
    CloseHandle(hFullToken);
    if(hPrimaryFullToken)
    CloseHandle(hPrimaryFullToken);
    return dwExitCode;
    I passed in username and password of account "A" to method "LaunchAppWithElevatedPrivilege", and also the application i want to launch, e.g. "C:\windows\regedit.exe", but when i run the service program, i found it do launch
    "regedit.exe" with elevated account "A", but the content of regedit.exe is pure back. screenshot as below:
    Can anyone help me on this?

    You code is not dealing with the DACL access to Winsta0\Default.  Only the LocalSystem account will have full access and the interactively logged on user which is why regedit is not displaying properly.  You'll need to grant access to your user. 
    You also need to deal with UAC since that code is going to give you a non-elevated token via LogonUser().  You need to get the full token via a call to GetTokenInformation() + TokenLinkedToken.
    thanks
    Frank K [MSFT]
    Follow us on Twitter, www.twitter.com/WindowsSDK.

  • Group policy preventing write access to hard drive for Windows Service

    I recently stood up several SharePoint Servers which use various domain user accounts as service accounts. Everything was going fine until the servers were moved from the staging OU to the production OU which has a server hardening GPO applied to it. Once
    this occurred, all of SharePoint's logging via the Tracing service broke--because this account doesn't run as Local Service, but rather one of the domain user accounts.
    After examining the Application event log, I saw it filled with errors indicating the E:\Logs\ULS and E:\Logs\Usage were not accessible due to error 0x5 -- access denied.
    I explicitly granted permissions to the service account to these folders, and gave Full Control perms. I then restarted the service, but the Access Denied errors persisted. I granted Full Control to the entire E: drive -- the root folder -- with inheritance,
    and made sure the permissions were inherited. And yet the problem persisted.
    I installed a different application which can log to different drives, and it writes to the E: drive just fine when run as Local System. If I change it to one of the domain service accounts, it too produces Access Denied errors trying to write to the E:
    drive, regardless of the NTFS perms.
    The E: drive is a hard drive, not a USB or removable drive.
    I found several posts here that explain how to disable write access to USB and DVD media, but I cannot find anything how to block writing to a hard drive. The server hardening GPO contains thousands of different settings and it'll take days to comb through
    them all. Does anyone know of a GPO setting that can block writing to a hard drive, regardless of NTFS perms?
    The servers in question are running Windows Server 2012 standard (not R2).
    UPDATE: If I grant the service account the ability to log on locally (i.e. add it to the local Users group), and open a command prompt with "Run as User," I can write to the E: drive just fine. But the access denied
    persists when running as a service. This leads me to believe a GPO is blocking the write access to a
    service user but allowing the same account when logging in as an interactive
    user.

    I created a test Windows service that does nothing more than open two StreamWriter objects -- one to write into E:\Logs\ULS and the other into C:\ProgramData\Logs. The former writes dummy text once per second, while the latter writes errors. So error messages
    will get written into C:\ProgramData\Logs.
    I set up this test Windows Service and set it up to use my SharePoint app pool account, and this was written to the error log - the first line indicates the account being used.
    [8/22/2014 12:01:25 PM] - Error writer is initialized and ready. Execution context svc_SPSvcApp_J
    [8/22/2014 12:01:25 PM] - Directory E:\Logs\ULS does not exist.
    [8/22/2014 12:01:25 PM] - Failed to set up the log writer. Access to the path 'E:\Logs\ULS' is denied.
    System.UnauthorizedAccessException: Access to the path 'E:\Logs\ULS' is denied.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
    at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
    at ServiceLogWriter.Service1.Compose()
    I then tried this with my Farm account. For TEST purposes, I TEMPORARILY put this account in the local Administrators group (I removed it after the test). And
    STILL does not see the E: drive or any folders it contains.
    [8/22/2014 12:05:08 PM] - Error writer is initialized and ready. Execution context svc_SPFarm_J
    [8/22/2014 12:05:08 PM] - Quick test to look for things we KNOW exist on the Server. We know there is an E: drive, and we know there's a folder named E:\Logs\ULS.
    [8/22/2014 12:05:08 PM] - Windows reports E:\ does not exist. This is bad.
    [8/22/2014 12:05:08 PM] - Windows reports E:\Logs does not exist. This is very bad.
    [8/22/2014 12:05:08 PM] - Windows reports E:\Logs\ULS does not exist. In the words of the late Captain Phil Harris, "This is bad. This is bad bad."
    [8/22/2014 12:05:08 PM] - Directory E:\Logs\ULS does not exist (we'll try to create it).
    [8/22/2014 12:05:08 PM] - Failed to set up the log writer. Access to the path 'E:\Logs\ULS' is denied.
    System.UnauthorizedAccessException: Access to the path 'E:\Logs\ULS' is denied.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
    at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
    at ServiceLogWriter.Service1.Compose()
    Next I tried my own ID to run the same service. I'm a Domain Admin so I should have ruler of the roost perms 
    [8/22/2014 12:12:35 PM] - Error writer is initialized and ready. Execution context sawyemat
    [8/22/2014 12:12:35 PM] - Quick test to look for things we KNOW exist on the Server. We know there is an E: drive, and we know there's a folder named E:\Logs\ULS.
    [8/22/2014 12:12:35 PM] - Windows reports E:\ does not exist. This is bad.
    [8/22/2014 12:12:35 PM] - Windows reports E:\Logs does not exist. This is very bad.
    [8/22/2014 12:12:35 PM] - Windows reports E:\Logs\ULS does not exist. In the words of the late Captain Phil Harris, "This is bad. This is bad bad."
    [8/22/2014 12:12:35 PM] - Directory E:\Logs\ULS does not exist (we'll try to create it).
    [8/22/2014 12:12:35 PM] - Failed to set up the log writer. Access to the path 'E:\Logs\ULS' is denied.
    System.UnauthorizedAccessException: Access to the path 'E:\Logs\ULS' is denied.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
    at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
    at ServiceLogWriter.Service1.Compose()
    Mind you I'm starting and stopping the service while logged in interactively -- I can CLEARLY SEE there's an E: drive and E:\Logs\ULS folder!
    It is quite evident to me that there is a policy blocking Windows services from seeing the E:
    drive.
    Run this under the LocalSystem (SYSTEM) account, and all is well.
    [8/22/2014 12:15:18 PM] - Error writer is initialized and ready. Execution context SYSTEM
    [8/22/2014 12:15:18 PM] - Quick test to look for things we KNOW exist on the Server. We know there is an E: drive, and we know there's a folder named E:\Logs\ULS.
    [8/22/2014 12:15:18 PM] - So far so good - Windows reports E:\ exists.
    [8/22/2014 12:15:18 PM] - Windows reports E:\Logs exists.
    [8/22/2014 12:15:18 PM] - Awesome - Windows reports E:\Logs\ULS exists.
    [8/22/2014 12:15:18 PM] - Log writer is set up successfully.
    [8/22/2014 12:15:25 PM] - Shutdown in progress.

  • Port blocked when Tomcat is made a windows service

    Hi All
    I have a web application which listens on some port for server response .That port gets blocked when Tomcat is made a windows service.But if i run tomcat normally this problem does not occure.So i am not getting what is exact problem?

    Huh?
    As a guess you mean that you when you run Tomcat the server port doesn't work.
    The difference is because in one case you are running as one user and in the other you are running as a different user. On windows you are probably running 'without' a user because you didn't explicitly set one up.
    The solution is to use an explicit user. That is also the way you should test. Log in as that user and run tomcat from the command line as that user.

  • Permissions for Windows Service on Server

    Post Author: bdimon
    CA Forum: Authentication
    I wrote a Windows service running as an Active Directory user. It cannot print on the Windows Server so I wrote a windows application to test the permissions. When a user with local admin rights runs the test application, it prints. He starts the program using the "Run As" option and enters the Active Directory user from the service, he gets the same error as the Windows Service gets. This must be permissions-based.
    When I installed this Windows Service on a staging server, everything was fine. However the staging server was not "secured" by the network team so the Active Directory user had Read/Execute permissions on the C: drive. I do not want to ask for these permissions on the production server's C: drive.
    The error is:
    System.Exception: Load report failed. ---> System.Runtime.InteropServices.COMException (0x800002AD): Error in File UNKNOWN.RPT:
    The request could not be submitted for background processing.
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
       at WindowsApplication1.frmTestServerPrint.PrintCrystalReport(String& ErrorText, String ReportFileName, String PrinterLocation, Int32 PayTransStatusCode)

    Post Author: jgreg311
    CA Forum: Authentication
    I believe I'm having a similar problem, and was hoping to see if either you have found an answer to the problem or reactivate this thread in hopes someone will finally answer us.I'm creating reports using a windows service as well.  The report files are compiled into the DLL, and they are being exported to save them to disk.   The error is being generated when the report object is first accessed (which happens to be when attempting to set the Text property on a TextObject).  It works fine on my development machine.  I've installed the service on the production server using a Visual Studio 2005 Setup and Deployment project.  I added the 2005 Crystal merge module to the setup, so all necessary files should exist on the server.  The service is running as a domain user that has admin rights on the local machine, but we're still getting this error that seems, according to posts I've found online, to be a permissions issue.Here is the exception in its entirety:
    Exception Type:
    System.Exception
    Exception Message:
    Load report failed.
    Exception Stack Trace:
    at
    CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String
    filename, OpenReportMethod openMethod, Int16 parentJob) at
    CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String
    reportName, OpenReportMethod openMethod, Int16 parentJob) at
    CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport()
    at
    CrystalDecisions.CrystalReports.Engine.ReportDocument.get_ReportDefinition()
    at ...
    Inner Exception:
    System.Runtime.InteropServices.COMException (0x800002AD): Error in File
    UNKNOWN.RPT: The request could not be submitted for background
    processing. at
    CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object&
    DocumentPath, Int32 Options) at
    CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object&
    DocumentPath, Int32 Options) at
    CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() Any help with this would be GREATLY appreciated.  Once again Crystal Reports are the only thing holding up an important project.

  • Application runs but not as a Windows service oracore

    I have a weird problem and I was hoping somebody might be able to help me. I have an application that we developed that uses an Oracle database. The application can be run in user mode(double clicking on the file) or as a Windows service. We have always used the Oracle Database client to connect to the Database in user mode and it has worked. Using the same configuration we were able to run our application as a service and it has always worked. The problem now is that if we use a newer Oracle Client (>= 10.2) it will not work as a service. When I say it doesn't work I mean that the application never starts and the Windows Event Viewer log states an APPCRASH in oracore10.dll or oracore11.dll.
    It doesn't seem to matter which database we use, 10G, 11G, because if we use the 10.1 version of the Oracle Database Client to connect to these databases it works. However if we use any client>=10.2 the application crashes.
    Any suggestions?
    Edited by: 945875 on Jul 11, 2012 1:45 PM

    So I stopped any Oracle windows services that were running, deleted the only oracle directory on the machine, and reinstalled 11.2 client. The same results occur, I can connect to and start my application in user mode but not as a service. I checked the version# of OCI.dll, 1 instance of it on the machine, and it does state that it is version 11.2.0.1. The setup I have is:
    Machine 1: Server 2008 R2
    Oracle 11g database
    Oracle 11g client
    my application
    Machine 2: Windows 7 64-bit
    Oracle 11g client
    my application
    I get the exact same results if I try to run my application on the same machine as the database (machine 1) or across the network (machine 2).
    I've setup the connection using Oracle Client's Net Configuration Assistant, added the Local Net Service Name Configuration, and am using TCP. At the end of the Local Net Service Name Configuration I get "Success" when talking to the database.
    Thank you for any help you might be able to provide.

  • Powershell unzip with shell.application not working when launched from windows service

    I have a deployment agent on a machine implemented as a windows service. Service is 32-bit and runs on windows server 2008R2 x64 SP1 with powershell V2. Powershell script requires elevation and to run under x64 because of dependency to powershell module
    'IIS Administration'. To achieve this, the service starts a cmd file which in turn launches powershell x64 console:
    C:\WINDOWS\sysnative\WindowsPowerShell\v1.0\powershell.exe "Start-Process C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell -ArgumentList '-ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File C:\Temp\EndJobCmd\Install.ps1' -Verb RunAs"
    This seems to work well. The problem I have is that the script has a sequence where it unpacks a zip file to a destination folder using shell.application, this works fine when triggered manually on the server or through the task scheduler, but when triggered
    from the service it does not extract any files at all (cannot see any errors thrown by the script but it seems to continue to execute as it logs a successful message to the event log after finishing).
    Unzip sequence looks like:
    $shell = New-Object -com shell.application
    $pkg = $shell.namespace($sourceFile)
    $installDir = $shell.namespace($targetDir)
    $installDir.Copyhere($pkg.items(), 20)
    Any advice greatly appreciated. I have searched some and seen a few people with similar issue but have yet to find a solution.

    If it's still actual, I managed to fix this with having CopyHere params equal 1564. 
    So in my case extract zip function looks like:
    function Expand-ZIPFile{
    param(
    $file, $destination
    $shell = new-object -com shell.application
    $zip = $shell.NameSpace($file)
    foreach($item in $zip.items())
    $shell.Namespace($destination).copyhere($item,1564)
    "$($item.path) extracted"
    1564 description can be found here - http://msdn.microsoft.com/en-us/library/windows/desktop/bb787866(v=vs.85).aspx:
    (4) Do not display a progress dialog box.
    (8) Give the file being operated on a new name in a move, copy, or rename operation if a file with the target name already exists.
    (16) Respond with "Yes to All" for any dialog box that is displayed.
    (512) Do not confirm the creation of a new directory if the operation requires one to be created.
    (1024) Do not display a user interface if an error occurs.

  • Problem in executing client application as windows service

    Hi
    I have a client program that sends client ip address to server.
    My Requirement is to run this client program as windows service.
    For this, i have created a jar and after that i have created a .exe file.
    now using sc command in DOS i was created a service named as ClientService
    But when i am trying to start this service like other services, it is giving error saying that "The Service did not respond to the start in a timely fashion"
    Please help me in this issue

    1.Can i lock my mobile phone from J2Me Application.In J2ME you can not.
    2.How can i register J2ME application as service,means
    it started when mobile start and continously Run on my
    mobile. can these problem have a solution ,if yes then
    how..I haven't seen any device that lets you run a J2ME app at start up as a service like windowsNT. May be you can do the above two things if you dig more in to Symbian OS programming.
    Good luck
    Manas

Maybe you are looking for

  • Bad bind variable error in oracle forms 10g

    i have a created a table in oracle database 10g create table myimage(image_id number, image_name BLOB); i want insert an image and retrieve an image through programing(don't want block level) in oracle forms 10g without using java beans(and finely wo

  • Date mapping 2 dates to 0calquarter

    Hello BI experts, BI 7.0, I mapped  Date1 & Date 2 to 0calquarter based on a condition at field level. Code: IF DATE1< 01jan2010       RESULT = DATE1.     ElSEIF  DATE2>= '20100101'.       RESULT = DATE2.     ENDIF. But when i give DATE1 = 13.03.2010

  • Using Creative Cloud 2014 apps, but Creative Cloud 2014 desktop app never installed.

    I have been trying to solve this issue for months now. When I installed the 2014 update for Creative Cloud, my CC desktop app disappeared (the app that shows you updates and is a shortcut to all apps, etc). Now, applying updates and getting fonts is

  • Template - Multiple Designers

    Hello!  So I work with multiple designers for a large organization. We work out of Dreamweaver and use templates for most sections of our web site.  Because we all update the site, we use a checkout method for pages.  (In other words if one person ha

  • Infotype 0002-field Nickname (P0002-RUFNM) Screen Spain (04) & Mexico (32)

    Hi, There is a requirement in which we have to add the field Nickname (P0002-RUFNM) in the 'Name' subscreen of transaction PA30. PA30-> Personal Data-> Display/Edit-> 'Name' Subscreen. This has to be done for two Countries- Spain (Alternative Screen