While installing the Weblogic in windows 10 using jar file, I am getting the error message as Unable to access or modify the system registry. Select Run as Administrator when opening the Command Prompt and try again. though am executing as Administrator. From the log file I got the below error.
WARNING [1] com.oracle.cie.common.jni.WinRegistryHelper - Create Key Failed: HKEY_LOCAL_MACHINE\Software\Oracle
2017-10-06 11:19:54,972 SEVERE [1] com.oracle.cie.nextgen.launcher.PlatformHelper - createRegistry to add a value failed
2017-10-06 11:19:54,972 SEVERE [1] com.oracle.cie.nextgen.launcher.Launcher - Unable to access or modify the system registry. Select Run as Administrator when opening the Command Prompt and try again.
I understood that on making the System Registry entry HKEY_LOCAL_MACHINE\Software\Oracle, it is failing because the same entry already exists in my system as HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE. Though system registry is case-insensitive, weblogic is failing on making entries to this registry. Is there any solution to overcome this? The same issue has been already posted in different sites but not yet answered.Any help to solve this issue will be really appreciable.
I had the same problem, the next lines works to solve the problem.
Open cmd like administrator.
java -d64 -jar fmw_12.2.1.3.0_wls.jar If you don't have correctly configured the JAVA_HOME, you can replace the word "java", for the path where you have installed de JDK. Something like this:
C:\JRockit\jdk1.8.0_144\bin\java.exe
Related
I'm trying to install PostgreSQL 9.0.1 on Windows Server 2008, but every time, there will be such error message
"Problem running post-install step. Installation may not complete
correctly. Failed to start the database server"
in the installation log, it is due to a failure in initdb.exe, error is
"The program postgres is needed by initdb, but was not found in the
same directory as D:\PostgreSQL\9.0\bin\initdb.exe, Check your
installation."
I searched such error in internet and tried the solution in this page "Installing PostgreSQL on Windows Server 2008", but no help.
After reading code of initdb, I know it is caused by the window api CreateProcess in the function pipe_read_line. the calling of CreateProcess returned -5 (access denied). it is because initdb was executed in a subprocess invoked in the functiion CreateRestrictedProcess.
I know it is due to privilege setting, I ran gpedit.msc to add users group (even everyone) into almost all privilege policy, but the error was still there.
I also assigned full control rights of the install target folder to everyone, no help!
I also tried postgresql 9.6.2, the error was still there :-)
from the code, I know if there is the environment variable PG_RESTRICT_EXEC with value 1, initdb will not executed in a restricted process. so before run initdb.exe, I set an environment PG_RESTRICT_EXEC=1 in command prompt, then run initdb.exe. this time such error was gone!!
So I wonder how to change the os settings to allow the installation running without error!
I installed PostgreSql on my Windows machine.
I can connect to PostgreSql through cmd.
But when I want to launch pgAdmin I am getting this error message.
Failed to connect to the pgAdmin application server. Click here to try again.
I have also Mysql installed on my machine if it can make any complications.
The same problem happened to me today:
And this is how I've solved it:
1) Use a text editor to open the config_distro.py file under the c:\Program Files\pgAdmin 4\v1\web folder. Change the value for SERVER_MODE from True to False, then save the change. (I have run Notepad++ as an Administrator, in order to be able to save in this protected folder.)
2) Go to folder c:\Users\your_name\AppData\Roaming\pgAdmin and make sure there is nothing there (delete all the files, as they are temporary and will be restored after starting pgAdmin)
3) Start pgAdmin
4) This time you will see a white box that sits - at least, on my slow laptop - about 20 seconds. (You may briefly see the original error message, but do not worry).
5) Meanwhile, the temporary files - required for running the application - are created.
6) Once the temporary files process is over, the application starts as expected.
Try starting the pgAdmin as administrator.
My config_distro.py was missing this line:
MINIFY_HTML=False
I added it as in the above steps and it works
In my case, SERVER_MODE was already False in config_distro.py. I then proceeded to start pgadmin4 as an administrator. This also did not work. Finally, I resolved this by restarting postgresql service in services.msc.
postgres service restart
In my case, the problem was non-ascii username.
Find pgAdmin installation and open/create config_local.py in editor, add this:
DATA_DIR = "C:/Data/pgAdmin" # set non-ascii path here
and run setup.py using python interpreter.
You can start the server manually - any errors will echo on the terminal. The windows app seems touchy on timing - this allows the server to take as much time as needed to start up.
Assuming you installed version 3 into "p:\pgAdmin 4" run the following commands"
p:
cd "\pgAdmin 4\v3\web"
set PYTHONPATH=P:\pgAdmin 4\v3\venv\Lib;P:\pgAdmin 4\v3\venv\DLLs
python pgAdmin4.py
When I run that I get the following output:
Starting pgAdmin 4. Please navigate to http://127.0.0.1:5050 in your browser.
I ran into this today even though the service was running in Windows 10. I just stopped the service, gave it a few seconds, and restarted it. I was able to connect with pgAdmin 4.
In my case the problem was solved by restarting the postgresql service.
Windows-> Service -> find for postgreSQL -> Stop and then Start
I try to start opensshd app by following command line: net start opensshd but i encounter below message after press enter in CMD:
The OpenSSH Server service is starting.
The OpenSSH Server service could not be started.
A system error has occurred.
System error 1067 has occurred.
The process terminated unexpectedly.
i install openssh.
please Help Me!
I got the similar problem that i cannot startup the "OpenSSH SSH Serve" service after following the instructions in https://hostadvice.com/how-to/how-to-install-an-openssh-server-client-on-a-windows-2016-server/
I later on found out that this is the security problem in the C:\ProgramData\ssh\ssh_host*key files. All the key files in this folder should ONLY be owned by following 2 system users:
BUILTIN\Administrators
NT AUTHORITY\SYSTEM
In the Powershell under the C:\ProgramData\ssh folder, issue following command can list out the owners of the file ssh_host_dsa_key:
PS C:\ProgramData\ssh> icacls .\ssh_host_dsa_key
.\ssh_host_dsa_key BUILTIN\Administrators:(F)
NT AUTHORITY\SYSTEM:(F)
xxdomain\otheruser:(M)
Successfully processed 1 files; Failed processing 0 files
Obviously we need to remove the user "xxdomain\otheruser" from the owner list
Resolution
Updated on Nov 25, 2019: Found out that the OpenSSH-Win64.zip file already contained a powershell script: FixHostFilePermissions.ps1
What you need to do is to run following inside the powershell:
cd 'C:\Program Files\OpenSSH-Win64'
.\FixHostFilePermissions.ps1
And press 'Enter' for each question to update the permission.
just write this command in PowerShell
cd 'C:\Program Files\OpenSSH-Win64'
.\FixHostFilePermissions.ps1
then press enter .
I got this error, and it turned out in my case to be an error I'd made editing sshd_config, so be sure to check this. Spent ages trying to diagnose this.
Hope that saves someone some pain.
I got the same error by installing OpenSSH on Windows 7...
Open "services.msc" and try to start the service from there.
If it still doesn't work then you can try to follow the steps in this tutorial:
http://www.techpaste.com/2015/06/windows-ssh-server-setup-and-configuration/
One important thing: Try to download an older version of OpenSSH
Download Link: http://www.mls-software.com/opensshd.html#botpage
(I recommend you the version "setupssh-7.3p1-2")
Hope it works
Cheers
For me the solution was to download and install an MSI from this github repo
I have a fresh installation of Cassandra 3.7 with DatStax DDC in Windows. I am trying to start the Cassandra database as a service.I am using net start DataStax_DDC_Server to start the service. The service is not starting and exiting without reporting an error. I am getting the following error in the logs.
java.lang.RuntimeException: Failed to create failed snapshot tracking file [C:\Cassandra\.toDelete]. Aborting
at org.apache.cassandra.db.WindowsFailedSnapshotTracker.deleteOldSnapshots(WindowsFailedSnapshotTracker.java:99)
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:177)
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:585)
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:714)
What is causing this error and how do I fix this?
Look at the logs in the installation folder. E.g. c:\Program Files\DataStax-DDC\logs.
The datastax_ddc_server-stderr.xxxxx.log will give you details about what the problem is. For me the error was cdc_raw_directory is missing and -Dcassandra.storagedir is not set so i opened c:\Program Files\DataStax-DDC\apache-cassandra\conf\cassandra.yaml, found the cdc_raw_directory setting and simply uncommented it.
After fixing that you also get an Error when you will try to run cassandra.bat from command line.
it will tell you that \conf\\\hotspot_compiler cannot be found
Fix:
go to C:\Program Files\DataStax-DDC\apache-cassandra\conf
modify cassandra-env.ps1
just change CASSANDRA_CONF\conf\hotsport_compiler
to CASSANDRA_HOMEconf\hotsport_compiler
WITHOUT the backslash... this is not a typo ^^
finally cassandra.bat will start and cqlshell will work.
.. then close the command window where you started cassandra.bat (as admin) press CONTROL+C
..and finally you can start the service as admin: net start DataStax_DDC_Server
Below is the process that i followed to get my cqlsh working on windows 10 (64 bit)
Msi Installation file used : datastax-ddc-64bit-3.9.0
After i have installed datastax:
1) Opened cqlsh, it started closing on me.
2) researched answers in stack overflow and found that i need to add raw directory.
3) Based on TugboatCaptain answer I enclosed cdc_raw_directory based on my installation folder in conf\cassandra.yaml file
4) Opened Errlog file and noticed there is mistake showing in the path "C:\Program Files\DataStax-DDC\data\cdc_raw" at "\DataStax-DDC" error while scanning double quoted scalar.
5) I removed "\" before "DataStax-DDC" from cdc_raw_directory value in conf\cassandra.yaml file and started Datastax DDC Server 3.9.0
6) Opened again the Err file and noticed the error is shifted to "\data"
7) I removed "\" from cdc_raw_directory in conf\cassandra.yaml file and saved the file and started Datastax DDC Server 3.9.0
8) Opened again the Err file and noticed the error is shifted to "\data"
9) repeated the process of removing "\" and saved the file until i was able to start the service.
10) Finally my service started, Hope this helps and also attached screenshots from my pc.
Finally my cdc_raw_directory value looked like below:
Final Image from "conf\cassandra.yaml" once my service has started
This is the my cqsl shell screenshot
Mylog file(logs\datastax_ddc_server-stderr.2019-03-24.log) screenshot
I had the same problem (I'd start and it automatically says service stopped). I got it fixed as follows:
go to C:\Program Files\DataStax-DDC\apache-cassandra\conf
edit cassandra.yaml
change
cdc_raw_directory: /var/lib/cassandra/cdc_raw
to:
cdc_raw_directory: "C:/Program Files/DataStax-DDC/data/cdc_raw"
Make sure that there are no spaces before "cdc_raw_directory" i.e. not " cdc_raw_directory" because Python is space sensitive
Try running the CMD prompt as administrator, that fixed the problem for me.
I'm installing sonarqube on Windows Server 2012.
I have followed the following steps:
Downloaded sonarqube4.4 and extracted to C:\Sonarqube
Downloaded Java JDK 1.7.0_60 and jre 1.7.0_67 as well as jre7
Installed Windows SDK 7 and .NET Framework 4
Navigated to C:\sonar\bin\windows x86-64 and ran StartSonar.bat as an administrator, this ran ok with no output and Ihad to hot ctrl- Z to break
I then ran \windows-x86-64\InstallNTService.bat as an administrator and I am seeing the sonarQube services was launched, but failed to start.
Not sure what the problem is.
I believe you first ran \windows-x86-64\InstallNTService.bat successfully and then StartSonar.bat unsuccessfully (the inverse order of what you describe).
You probably have [this problem]: http://qualilogy.com/fr/wp-content/uploads/sites/2/2013/09/Sonar_ServiceLaunchError2.jpg
Windows could not start the Sonar service on Local Computer.
Error 1067: The process terminated unexpectedly.
In that case, the solution is to change the user/rights to launch the Sonar service: https://qualilogy.com/en/migrate-sonarqube-tomcat-to-windows-service/
Go to the Services window, find the Sonar service, and open the Properties windows to change the user it logs on as to one with sufficient permissions.
I was able to solve this problem by creating a new folder named “Temp” in C:\Windows\System32\config\systemprofile\AppData\Local\
The Log-File will show only
--> Wrapper Started as Service
Cleaning or creating >temp directory C:\Program Files (x86)\SonarQube\sonarqube\temp
<-- Wrapper Stopped
The SonarQube service was launched, but failed to start.
After a long search, I came up to this site http://zen-and-art-of-programming.blogspot.de/2013/03/installing-and-running-sonar-source.html.
Solution:
Navigate to C:\Windows\system32\config\systemprofile\AppData\Local\ and create the directory Temp
2: Set the user rights to full access
3: Run the StartNTService.bat