Author Topic: [solved sort of] Program does not start  (Read 1976 times)

Offline metro

  • Full Member
  • ***
  • Posts: 109
[solved sort of] Program does not start
« on: May 23, 2012, 03:07:00 AM »
I use a program that is not in the repository and have had only one issue with it in 3 years or so, see:http://www.pclinuxos.com/forum/index.php/topic,93206.0.html

I have an issue with the same program. In an earlier post muungwana showed me how to start this program from a terminal (was in readme with program)
I have posted on the runbasic Forum but its a bit quiet there and I believe its a linux problem not a software problem

I have opened a terminal as root and typed in "./rb101/rbp rb.im" (no quotes and as root ) and I get this error
Quote
[root@localhost laurie]# ./rb101/rbp rb.im
VisualWorks(R) 7.6 Feb 14 2008
Error: Can't open rb.im

usage: rbp -className -gui -guilib guilib.so -h bytes -ieeefp -l policy -noherald -v -xq -z bytes -? imagefile.im

usage: rbp [engine options] -=imagefile.im [image options]

as a normal user in a terminal or from the short cut I created 3 years ago the program hangs with no error message

as I have stated the program has worked fine for 3 or more years and only presented with a problem after an update a few days ago

I have just noticed in WebMin that the program has a Process ID
  4957    laurie    14:45    /home/laurie/rb101/rbp rb.im
so it is running but I have no GUI display

any help appreciated

metro
« Last Edit: May 30, 2012, 04:45:32 PM by metro »

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3980
Re: Program does not start
« Reply #1 on: May 23, 2012, 05:05:28 AM »
A process ID doesn't necessarily mean it's running. It could be a zombie (a program that has closed in a messy way and is still in the process table). Use Ctrl+Esc on GUI or top in a terminal to check that.

Have you tried grep on the files in /var/log for rpm to see whether there are any messages there about the problem.

root's inability to open the file might simply be a permissions issue (though it is unusual for root to be denied access).
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15279
  • ┌∩┐(◕_◕)┌∩┐
Re: Program does not start
« Reply #2 on: May 23, 2012, 06:19:32 AM »
Additionally have you tried the simple route of "killing" the process(es) and restarting the desktop?
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline metro

  • Full Member
  • ***
  • Posts: 109
Re: Program does not start
« Reply #3 on: May 23, 2012, 06:38:12 AM »
thanks guys
I did manage to stop the process and I have checked all files in /var/log by using MC (midnight commander) and found no references to rbp or rb.im
I also created a new folder and installed a fresh download. then changed permissions for the new folder and files
even re -booted so not even the new version will start

but all no good......got me stumped think I'm out of my depth here
need to know how to trap of find error logs but not sure if all errors are stored in /var/log or is it possible they could be elsewhere

metro

Offline metro

  • Full Member
  • ***
  • Posts: 109
Re: Program does not start
« Reply #4 on: May 23, 2012, 05:29:48 PM »
I spent the night creating a VirtualMachine running MintLinux
copied  the program via network to VM and program works as expected
I cant see how it can be a permission problem, can anyone shed some light on
any other way of looking at this

thanks in advance

metro

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Program does not start
« Reply #5 on: May 23, 2012, 05:38:11 PM »

Quote
[root@localhost laurie]# ./rb101/rbp rb.im
VisualWorks(R) 7.6 Feb 14 2008
Error: Can't open rb.im


please try as follow:
Code: [Select]
cd  rb101
./rbp  rb.im

running just fine here: (btw, in my case the directory is rb101free ... )


« Last Edit: May 23, 2012, 05:48:11 PM by AS »

Offline metro

  • Full Member
  • ***
  • Posts: 109
Re: Program does not start
« Reply #6 on: May 23, 2012, 06:47:52 PM »
Thanks AS
I have tried that and tried with full path, as stated above it works in a Virtual machine in Mint Linux
there is something blocking it on my system and i'm not clever enough to work out if the port is being blocked
or the program itself is being blocked by a firewall.....if so how do I find that out

thanks anyway

metro


Offline metro

  • Full Member
  • ***
  • Posts: 109
Re: Program does not start
« Reply #7 on: May 23, 2012, 07:09:23 PM »
from a terminal as root I can see the process is running and listening ??
Quote
[root@localhost laurie]# lsof -i :8008
COMMAND   PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
rbp     20898 laurie    7u  IPv4 929341      0t0  TCP *:http-alt (LISTEN)

I can see it in WebMin too, at a loss to understand where I look to see why the GUI is being blocked

Offline metro

  • Full Member
  • ***
  • Posts: 109
Re: Program does not start
« Reply #8 on: May 24, 2012, 02:53:47 AM »
Code: [Select]
[root@localhost laurie]# nmap -Pn 127.0.0.1

Starting Nmap 5.51.3 ( http://nmap.org ) at 2012-05-24 16:50 WST
Nmap scan report for PCLINUXOS (127.0.0.1)
Host is up (0.0000040s latency).
Not shown: 990 closed ports
PORT      STATE SERVICE
25/tcp    open  smtp
53/tcp    open  domain
111/tcp   open  rpcbind
139/tcp   open  netbios-ssn
199/tcp   open  smux
445/tcp   open  microsoft-ds
587/tcp   open  submission
631/tcp   open  ipp
8008/tcp  open  http
10000/tcp open  snet-sensor-mgmt

Nmap done: 1 IP address (1 host up) scanned in 0.07 seconds
[root@localhost laurie]# lsof -i :8008
COMMAND  PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
rbp     9014 laurie    7u  IPv4 442459      0t0  TCP *:http-alt (LISTEN)

after 24 hours of pain, I think I'm going to have to resort to re installing PCLinuxOS
 ???
« Last Edit: May 24, 2012, 03:04:12 AM by metro »

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Program does not start
« Reply #9 on: May 24, 2012, 02:57:04 AM »
Code: [Select]
[root@localhost laurie]# nmap -Pn 127.0.0.1

Starting Nmap 5.51.3 ( http://nmap.org ) at 2012-05-24 16:50 WST
Nmap scan report for PCLINUXOS (127.0.0.1)
Host is up (0.0000040s latency).
Not shown: 990 closed ports
PORT      STATE SERVICE
25/tcp    open  smtp
53/tcp    open  domain
111/tcp   open  rpcbind
139/tcp   open  netbios-ssn
199/tcp   open  smux
445/tcp   open  microsoft-ds
587/tcp   open  submission
631/tcp   open  ipp
8008/tcp  open  http
10000/tcp open  snet-sensor-mgmt

Nmap done: 1 IP address (1 host up) scanned in 0.07 seconds
[root@localhost laurie]# lsof -i :8008
COMMAND  PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
rbp     9014 laurie    7u  IPv4 442459      0t0  TCP *:http-alt (LISTEN)

after 24 hours of pain, I think I'm going to have to resort to re installing PCLinuxOS


what about to try to download the free version in a temp dir, and try again ?

Offline metro

  • Full Member
  • ***
  • Posts: 109
Re: Program does not start
« Reply #10 on: May 24, 2012, 03:04:46 AM »
will try right now AS

results of download to tmp
Code: [Select]
[root@localhost tmp]# ./rb101free/rbp rb.im
VisualWorks(R) 7.6 Feb 14 2008
Error: Can't open rb.im

usage: rbp -className -gui -guilib guilib.so -h bytes -ieeefp -l policy -noherald -v -xq -z bytes -? imagefile.im

usage: rbp [engine options] -=imagefile.im [image options]

I tried from within rb101free too with ./rbp rb.im but it just hangs

as I've said earlier I copied the offending original folder unchanged to a Virt Marchine running MINT Linux and the program launched with no problems at all

I really don't want to re install, but its not lookin good
« Last Edit: May 24, 2012, 03:26:15 AM by metro »

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Program does not start
« Reply #11 on: May 24, 2012, 04:29:41 AM »
will try right now AS

results of download to tmp
Code: [Select]
[root@localhost tmp]# ./rb101free/rbp rb.im
VisualWorks(R) 7.6 Feb 14 2008
Error: Can't open rb.im

usage: rbp -className -gui -guilib guilib.so -h bytes -ieeefp -l policy -noherald -v -xq -z bytes -? imagefile.im

usage: rbp [engine options] -=imagefile.im [image options]

I tried from within rb101free too with ./rbp rb.im but it just hangs

may be ... however you don't get the error anymore and to me it is just a confirmation that your original command is wrong:
Code: [Select]
./rb101free/rbp rb.im the above will never work, unless you move the file ./rb101/rb.im to ./rb.im ...

The fact it hangs ... may be ... or may be it is a display problem, because it seems from your previous report that there is a process listening on a tcp/ip port ...

Exactly which desktop are you running ? KDE, LXDE, ...  ?
Is your system fully updated ?
« Last Edit: May 24, 2012, 04:32:33 AM by AS »

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Program does not start
« Reply #12 on: May 24, 2012, 04:41:35 AM »
From the README file:

Quote
Run BASIC Personal Server - Release notes

Installation under Linux:

Since we don't have an actual Linux installer for Run BASIC yet,
simply extract to a convenient folder.

Starting Run BASIC:

-cd to the Run BASIC folder
-Type ./rbp rb.im

Note: If Run BASIC hangs on startup make sure there are no other
 applications running on port 8008
.


I would add that if an apps open a listening socket on a TCP/IP port, once you kill the process without closing it properly, the kernel will keep the port busy for a noticeable amount of time (may be 5 minutes ...), and therefore any next test will fail ... or as you may see ... just hang. (that's really depend from how is implemented the server ... )

Reboot your system and try to use the correct command from the first time.

AS

Offline metro

  • Full Member
  • ***
  • Posts: 109
Re: Program does not start
« Reply #13 on: May 24, 2012, 06:01:57 AM »
Hi again AS

Ok, I have an updated KDE version of PCLinuxOS_2012 of 5 mins ago
I re booted once updated, then I started two Terminals and SU'd to ROOT and navigated to my original RB101 Folder
in 2nd of the terminals I entered "lsof -i :8008" this showed me that no programs where using port 8008
Then in Terminal (1) typed ./rbp rb.im to start RunBAsic
back to terminal 2 and I confirmed that rb was running and using port 8008 ( I think  ::) )
Quote
[root@localhost laurie]# lsof -i :8008
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
rbp     4908 root    8u  IPv4  18874      0t0  TCP *:http-alt (LISTEN)


Terminal 1 was hanging so i started WebMin and observed process 4908 was running and using 0.1% of the CPU and that the program was in fact ./rbp rb.im using that process
I am able to terminate programs from WebMin so I did just that and confirmed with Terminal 2 that the lsof -i :8008 to show the process had terminated

I then had a thought if .rbp rb.im was running then was it serving ???
so I repeated the above steps to get things running again

and then I  typed the following into Firefox address bar to see if  RunBasic works
Quote
http://localhost:8008/seaside/go/runbasicpersonal
 ;D  ;D  ;D  it does

So whilst the normal start up screen does not appear for some reason


The actual program starts and must immediately start serving....(not designed that way)

I will post on the RunBasic site to see if the Author of RB has any clues he can offer
but I refer back to my earlier comment the original setup works as expected after just simply a straight copy to a Virtual Machine on the same computer
« Last Edit: May 24, 2012, 06:17:16 AM by metro »

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3980
Re: Program does not start
« Reply #14 on: May 24, 2012, 06:34:02 AM »
This sounds as if the program is looking for the X server or the Display in the wrong place. Check the files in /var/log/ as root for clues.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf