When I start Java application from command line on AIX 6.1 machine the application just doesn't start. All I get is a blinking cursor, hitting CTRL+C doesn't help. It seats in the list of processes all the time.
Even running the following command produces the same result so I don't think it is program related.
java -version
Cursor is blinking on the next line and nothing happens. When I open second session and type
ps -ef
I get the following:
tomcat 32243914 31850686 0 13:50:27 pts/7 0:00 -ksh
tomcat 5439538 32243914 1 13:50:50 pts/7 0:00 /usr/java6/jre/bin/java -version
On Windows my program runs just fine. So I think it is JRE or Unix related.
I'm not a Unix expert so I would appreciate any suggestions on how to trouble shoot this.
sounds strange , it seems that your process does not give hands back... No return
Do you have top binary installed on your AIX machine ?
Could you check that this machine follows the long list of requirements to run the java binary ? You may find useful information on the IBM java package webpage I guess...
Do you have lsof binaries or any other standard debuging tool ? lsof would point to any problem related to your AIX machine
HTH
Jerome
We have an intermittent similar issue with Java on Solaris. Sometimes rebooting the machine helps. Other times we have to remove the .java file from the user's home directory. Very random and annoying. The box can be up for months before it happens, or mere hours...
Related
Yesterday I compiled AzerothCore on Windows 10 64bit, setup database, configuration files and data files, started authserver, worldserver, heidisql and started to play.
Today when I started authserver it did launch and after a few seconds it closed, I wanted to restart but the file is no longer present, nowhere to be found. I am very confused about that and would appreciate any clue, thank you!
After new build: I did get it work, and again on the second start, authserver exe file goes away.
There is some problem that makes it quit. In order to see what the error is, run it via the terminal so you will see which error is making it fail.
I am new to these forums and to using Ubuntu and linux and UNIX. I really need some help here. I hope I haven't shot myself in the foot already. I have been trying to complete a UNIX carpentry lesson on the internet for an assignment. I am learning the basics about UNIX. I am not using a Mac, I am using a PC that I did not configure in any way (maybe that's my problem). I am using windows 10 on a lenovo and trying to the command prompt on Ubuntu to find my desktop where a file called "data-shell" is located. The problem: IT IS NOT FINDING THE DESKTOP. Upon further inspection, I have been looking through the location of my desktop and "data-shell" file and found it in the Users location under a number 12094, which I am assuming is the serial number for the computer. I have NEVER fiddled with the software at all with this computer as it cost me a lot of money, but I really do not want to be stopped in the tracks already. I have the following images numbered in the order that I discovered everything; they are posted here. I would really appreciate the help. P.S.: Since I am using a PC and not mac, I thought I had to use another command line like BASH or the terminal on my PCor doI just use Ubuntu? The UNIX shell is supposed to start with a $, right? Please correct me if I a wrong and thank you for your help
.
linux commands on windows can be ran via cmder or git bash (what i had used in past)
and in linux the desktop is at the path
/home/< username>/Desktop
whereas in windows its
C:\Users<username>\Desktop
both windows (DOS) and ubuntu/mac(linux) environment are entirely different you can directly run commands of one on the other environment, you do need to "setup" that env first if the command is not native to that.
Now, since its assignments that you are doing and all you need is bare-min linux env
you can give https://repl.it/ a try and create a new project in bash
Also, when you install Ubuntu on windows you dont get acces to windows like path, like "C:...", in ubuntu c:\ of windows is mounted to some other path in ubuntu
search on google how to access windows desktop from ubuntu shell after installing ubuntu inside of windows
When using Windows Subsystem for Linux (WSL), your C drive is located under /mnt/c.
Judging from the screenshot, you are user 12094, so you can either accept this, or you need to actually configure your machine. Also if you look in the screenshot you provided, there is a /home folder which I am betting is actually pointing to /mnt/c/, and your home folder will be under /home/12094, which is also the same as what is stored in $HOME.
To find the location of a file called data-shell, you can run the following linux command while in your home folder:
find $HOME -type f -name 'data-shell'
This command recursively searches for files in your home directory, with the name data-shell
I am new to Julia. I am looking for a Process Manager for It, specifically for Genie Apps. (In the other words, something equivalent to PM2 for Node.JS). Could anyone help please?
Adrian here, creator of Genie.
I haven't used PM2 but I have used supervisord and I presume they are similar in their approach. Genie apps run in Julia processes which are regular OS processes. What have you tried and what issues have you encountered?
Fiddled a bit with pm2 and the process seems to be straightforward. I'm sure it can be improved by setting up more complex pm2 configuration files, but for a quick solution, this seems to do the trick.
I'm on a windows machine so I confirmed it to work on both Win 10 and WSL/Ubuntu. Let's say we have a Genie app called MyGenieApp, then we run:
Windows PowerShell:
PS C:\MyGenieApp\bin> pm2 start cmd -- -- /k .\server.bat
This will open a CMD window and start the Genie app with the parent cmd process under pm2 control.
WSL/Ubuntu
(MyGenieApp) $ pm2 start bash -- bin/server
Should work the same as WSL for macOS and other *nix OS.
Notice that for Windows you need run it from within bin/ while for *nix from the app's folder (so one level higher, in ../bin). You can edit the files to adjust the paths as needed.
For some reason, on windows, pm2 needs -- -- otherwise it does not pass the arguments to the script. Might a bug in pm2.
I have installed riak and erlang as mentioned in the basho website.
But when i try to start riak with the command:
/etc/init.d/riak start
or
service riak start
I get the following error:
Starting Riak: Riak failed to start within 15 seconds,
see the output of 'riak console' for more information.
If you want to wait longer, set the environment variable
WAIT_FOR_ERLANG to the number of seconds to wait
I also checked with the command: riak ping, which gave the error:
Attempting to restart script through sudo -H -u riak
Node 'riak#sys_ip' not responding to pings
I am using 64 bit Centos 6.3 machine. Can anybody help me with this?
Initially when i had installed riak and checked the status, it showed that riak had started. Somewhere during the experimentation, it has stopped working. Not able to find, as to what might be the reason?
Thanks
Thanks all ! I found the solution to my problem. I was running the commands as root user. When I tried using the same commands as non-root user with sudo prefix, everything just worked fine ! :)
Try running following command, it runs diagnostic test over configuration settings and gives more verbose information if there is anything wrong.
riak console
riak start by default doesn't give verbose information about the issue. In my case issue was - missing write permissions on directory - /var/lib/riak/generated.configs.
As you didn't mention any version of Erlang, I would like to inform you that using Erlang R15B02 causes error with riak-admin status.It's better to use Erlang R15B01 with Riak 1.2 and 1.2.1. Riak 1.0 requires Erlang R15B03 and later versions.So, check whether you have installed compatible versions.And if that's not the issue, here is the same issue as yours. Riak - Riak failed to start within 15 seconds,
I'm trying to run "netsh mbn show interfaces" from a .bat or .jar file on a Windows 7 64bit system but every time I run my file, it results in "The following command was not found mbn show interfaces".
When I run that same command in a cmd.exe prompt, the result is correct and as expected.
When we run /? we see "mbn" in available commands. When we output that same result from a .bat or .jar, we don't see that "mbn" command in the available commands for netsh.
Anybody know what's happening?
We know there are 2 netsh.exe files, one in sys32 and one in syswow64.
All help is appreciated.
we solved the problem:
When running the command "netsh mbn show interface" was running the cmd as a 64bit operation.
When running the command from an application - that is 32bit - the cmd is run as a 32bit operation. And the mbn-context is not available in 32bit.
In a windows 64bit os, a behind the scenes function exists: file system redirection.
Meaning: a 64bit process will call the equivalent 32bit process.
The workaround is that you use a csharp script or something else where you can override the file system redirection:
IntPtr ptr = IntPtr.Zero;
Wow64DisableWow64FsRedirection(ref ptr);
// -- your proces information here --
Wow64RevertWow64FsRedirection(ptr);
//always revert the operation.
and that solved it!