Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Sat Mar 30, 2024 12:30 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
PostPosted: Tue May 13, 2014 3:37 am 
Offline
Newbie

Joined: Fri Sep 16, 2011 8:03 pm
Posts: 12
I'm trying to upgrade do 1.2.1 from a pre-opmantek release on Ubuntu 10.04.
My problem is the omkd service. I had a first error, which I resolved replacing the link /bin/sh from the default /bin/dash to /bin/bash.

Now, when I start the omkd service, it says:
Shutting down omk daemon:
Starting omk daemon:

and in log:
root@STCTUX1:~/omk# tail /usr/local/omk/log/omkd_out.log
/usr/local/omk/script/opmantek.sh: line 4: ./opmantek.exe: cannot execute binary file

I installed winexe package and all the dependancies, what is the problem?

Thanks


Top
 Profile  
Reply with quote  
PostPosted: Tue May 13, 2014 10:23 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
Try this...

cd /usr/local/omk/script
./opmantek.exe

You should see console output and the application should run... If that doesn't run then there's a major issue "somewhere". We only "officially" support 12.04 and 14.04 LTS for Ubuntu. And Debian 6/7 and CentOS/RedHat 6/7.

Maybe try a more current distro?

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
PostPosted: Tue May 13, 2014 6:21 pm 
Offline
Newbie

Joined: Fri Sep 16, 2011 8:03 pm
Posts: 12
[quote="Mark"]Try this...

cd /usr/local/omk/script
./opmantek.exe

You should see console output and the application should run... If that doesn't run then there's a major issue "somewhere". We only "officially" support 12.04 and 14.04 LTS for Ubuntu. And Debian 6/7 and CentOS/RedHat 6/7.

Maybe try a more current distro?


I already tried that and the error was the same. I will upgrade.
Thanks

Top
 Profile  
Reply with quote  
PostPosted: Wed May 14, 2014 8:41 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
I doubt upgrading will fix the issue.
Ubuntu/Debian are not supported on 1.3.1 (we have a perl / SSL issue to sort out).
I would run through the [url=https://community.opmantek.com/display/OA/Installing+the+pre-reqs+on+Debian+and+Ubuntu]pre-req[/url] and [url=https://community.opmantek.com/display/OA/Linux+-+Installing]installation[/url] documentation on the [url=https://community.opmantek.com/display/OA/Home]wiki[/url] and double check (or even redo) every single step.

I would also be using 12.04 or 14.04 (but that's just me).

FYI - 1.3.2 will have an install script for Linux - yay :D

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
PostPosted: Fri May 16, 2014 5:27 pm 
Offline
Newbie

Joined: Fri Sep 16, 2011 8:03 pm
Posts: 12
[quote="sgiunchi"][quote="Mark"]
I doubt upgrading will fix the issue.
Ubuntu/Debian are not supported on 1.3.1 (we have a perl / SSL issue to sort out).
I would run through the pre-req and installation documentation on the wiki and double check (or even redo) every single step.

I would also be using 12.04 or 14.04 (but that's just me).

FYI - 1.3.2 will have an install script for Linux - yay :D


I upgraded Ubuntu to 12.04 (I meant that, not upgrade openaudit).
Anyway, I still have the sam problem. I tried to use strace, to see what is wrong:


[code]
root@STCTUX1:/usr/local/omk/script# strace ./opmantek.exe
execve("./opmantek.exe", ["./opmantek.exe"], [/* 18 vars */]) = -1 ENOEXEC (Exec format error)
dup(2) = 3
fcntl64(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7763000
_llseek(3, 0, 0xbfb5b9d0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: Exec format error\n", 32strace: exec: Exec format error
) = 32
close(3) = 0
munmap(0xb7763000, 4096) = 0
exit_group(1) = ?
[/code]
[code]
root@STCTUX1:/usr/local/omk/script# uname -a
Linux STCTUX1 3.2.0-61-generic #93-Ubuntu SMP Fri May 2 21:33:33 UTC 2014 i686 i686 i386 GNU/Linux
[/code]

Top
 Profile  
Reply with quote  
PostPosted: Fri May 16, 2014 7:24 pm 
Offline
Newbie

Joined: Fri Sep 16, 2011 8:03 pm
Posts: 12
I created a new VM with Ubuntu 14.04, and now openaudit 1.2.1 works.
I still have the old VM I did upgrade to 12.04, if you need feedback for testing.

Thanks
Stefano


Top
 Profile  
Reply with quote  
PostPosted: Sat May 17, 2014 7:34 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
Was your 12.04 VM a 32bit machine?
The Open-AudIT Enterprise side of things must have a 64bit machine (it's compiled).

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
PostPosted: Sat May 17, 2014 6:04 pm 
Offline
Newbie

Joined: Fri Sep 16, 2011 8:03 pm
Posts: 12
[quote="Mark"]Was your 12.04 VM a 32bit machine?
The Open-AudIT Enterprise side of things must have a 64bit machine (it's compiled).


[code]
root@STCTUX1:/usr/local/omk/script# uname -a
Linux STCTUX1 3.2.0-61-generic #93-Ubuntu SMP Fri May 2 21:33:33 UTC 2014 i686 i686 i386 GNU/Linux[/code]

Yes, that's the problem. I thought that the "i686" meant that it is 64bit, but a real 64bit is "x86_64 x86_64 x86_64 GNU/Linux"

You could put some kind of alert in opmantek.sh, before launching opmantek.exe.
Or maybe, don't know, just update the doc.

Thanks.

Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group