COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > NINJAM Discussion > NINJAM Developer Discussion

Reply
 
Thread Tools Display Modes
Old 10-13-2013, 08:21 AM   #1
gcpmusic
Human being with feelings
 
Join Date: Oct 2013
Posts: 7
Default Please I need help to set up NINJAM Mac OS X Server!

Hi

I follow the instruction to set up NINJAM server but when finally I try to run it I have this error:

gCs-MacBook-Pro-2:NinjamOSXServer gc$ ./ninjamsrv Server.cfg

NINJAM Server v0.01a ALPHA built on Jul 7 2005 at 14:26:31 starting up...
Copyright (C) 2005, Cockos, Inc.
[config] error opening configfile 'Server.cfg'
Error loading config file!

Any help please? I even tryed with the untuched example.cfg, some results.

Thnx in advance
gC
gcpmusic is offline   Reply With Quote
Old 10-13-2013, 09:11 AM   #2
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 592
Default

Have you spelled the config file name correctly?
__________________
Quote:
Originally Posted by Tony Williams
...Playing fast around the drums is one thing. But to play with people for others, to listen to, that's something else. That's a whole other world.
pljones is offline   Reply With Quote
Old 10-13-2013, 09:40 AM   #3
gcpmusic
Human being with feelings
 
Join Date: Oct 2013
Posts: 7
Default

Yes, would I normally do, I just drag the file in terminal. I found this quite odd, even the sample file named "example.cfg" has the some issue.

I don't know how important this is but I forgot to mention I am on a PowerBook running Snow Leopard 10.6.8.

Thank you for any idea.
gcpmusic is offline   Reply With Quote
Old 10-13-2013, 12:56 PM   #4
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 592
Default

Is the file in the directory you're running the server? (I know nothing about MacOS, so I'm just guess at possible problems that could give a "file not found".)
__________________
Quote:
Originally Posted by Tony Williams
...Playing fast around the drums is one thing. But to play with people for others, to listen to, that's something else. That's a whole other world.
pljones is offline   Reply With Quote
Old 10-13-2013, 12:57 PM   #5
gcpmusic
Human being with feelings
 
Join Date: Oct 2013
Posts: 7
Default

yes pljones, it is. However I have solved this problem and the server start up but I bumbed in this other one:

gCs-MacBook-Pro-2:NinjamOSXServer gc$ ./ninjamsrv Server.cfgNINJAM Server v0.01a ALPHA built on Jul 7 2005 at 14:26:31 starting up...
Copyright (C) 2005, Cockos, Inc.
Server starting up...
Port: 2049
Error listening on port 2049!
Using defaults 120 BPM 8 BPI

I have the port open in my router and I also tryed to disable #ACL 10.0.0.0/8 deny line but still the server can't listen to the port!

I am trying to run this from a folder on desktop.

More help please?

Last edited by gcpmusic; 10-13-2013 at 01:03 PM.
gcpmusic is offline   Reply With Quote
Old 10-13-2013, 02:18 PM   #6
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 592
Default

Only two things I can think of:

- Something else is already using 2049

- 2049 is "privileged"

In either case, you could try a different port. Try something around 17000 initially.
__________________
Quote:
Originally Posted by Tony Williams
...Playing fast around the drums is one thing. But to play with people for others, to listen to, that's something else. That's a whole other world.
pljones is offline   Reply With Quote
Old 10-13-2013, 02:49 PM   #7
gcpmusic
Human being with feelings
 
Join Date: Oct 2013
Posts: 7
Default

Many thanks pljones but unfortunatelly I have the some results.

I think your first thout is correct, I noticed that ninjamsrv process is running many time with different pid numbers, even with the terminal off and actually I dont know how to stop it! that's really odd.

I just re-booted the computer and doesn't complain anymore about the port:

NINJAM Server v0.01a ALPHA built on Jul 7 2005 at 14:26:31 starting up...
Copyright (C) 2005, Cockos, Inc.
Server starting up...
Port: 2049
Using defaults 120 BPM 8 BPI

but just stoped here waiting for something, what I suppose to do now to complete the sturtup?

also how can I stop the process, if I quit the terminal the process still gos on and if I try again, onther process starts and obviously start complain again. The killall -HUP ninjamsrv command at bottom of the setup guide doesn't work.

Looks that this guide for Mac is quite dated as the ninjamsrv is a PPC process, any chance for new guide for intel mac osx?

Thanks for your patience.

Last edited by gcpmusic; 10-13-2013 at 03:18 PM.
gcpmusic is offline   Reply With Quote
Old 10-01-2015, 12:45 AM   #8
ecl
Human being with feelings
 
ecl's Avatar
 
Join Date: Jul 2014
Posts: 362
Default

Hi I´m right now trying to use ninjam

I have already done everything as the manual says and stopped in the step were I have changed renamed the example.txt into the mine.cfg file.

What are the following steps ?? I´m totally lost in open ports, where to locate the file...

I´m on line right now THANKS if somebody helps me ¡¡
ecl is offline   Reply With Quote
Old 10-01-2015, 02:14 AM   #9
ecl
Human being with feelings
 
ecl's Avatar
 
Join Date: Jul 2014
Posts: 362
Default Steps already done

I downloaded ninja server for OS X from here

http://www.cockos.com/ninjam/#Downloads

Made all these instructions

http://www.cockos.com/ninjam/server-guide.php

But I´m totally stopped there ...

What are the next step for open a private server??

I tried to describe all the steps a had already done so you can have all the information for helping better.

THANKS
ecl is offline   Reply With Quote
Old 10-01-2015, 02:27 AM   #10
ecl
Human being with feelings
 
ecl's Avatar
 
Join Date: Jul 2014
Posts: 362
Default

The last thing I´m doing is this:

Once you've set the configuration the way you think you will like it, you can run the server:
On OS X/Linux/FreeBSD (OS X will require you to open a terminal and go to the proper directory):
./ninjamsrv configfilename.cfg
On Windows (after opening a command line, and going to the proper directory):
ninjamsrv configfilename.cfg


I open terminal and run the path of the file

/ECL/eclninjamserver

But Terminal tells me this:

-bash: /ECL/eclninjamserver: is a directory
ecl is offline   Reply With Quote
Old 10-01-2015, 10:15 AM   #11
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 592
Default

Quote:
Originally Posted by ecl View Post
On OS X/Linux/FreeBSD (OS X will require you to open a terminal and go to the proper directory):
./ninjamsrv configfilename.cfg
Which bit of that does not work?
__________________
Quote:
Originally Posted by Tony Williams
...Playing fast around the drums is one thing. But to play with people for others, to listen to, that's something else. That's a whole other world.
pljones is offline   Reply With Quote
Old 10-01-2015, 01:23 PM   #12
ecl
Human being with feelings
 
ecl's Avatar
 
Join Date: Jul 2014
Posts: 362
Default

Quote:
Originally Posted by pljones View Post
Which bit of that does not work?
Sorry pljones for me being so nuisance...

I´m really in a mess with this but I know I´m near.

Today I could connect to a public server and I´ve been jamming with some user.

The only thing I need are the last step for configuring my private server for practising with my band companion who is not living near me right now.

Then... what I should exactly have to do, write this in terminar and that´s it??


./ninjamsrv "my template changed file name".cfg

Thanks and sorry again...I now nothing about server cofigurations and all that.
ecl is offline   Reply With Quote
Old 10-01-2015, 02:34 PM   #13
cyrano
Human being with feelings
 
cyrano's Avatar
 
Join Date: Jun 2011
Location: Belgium
Posts: 3,239
Default

Quote:
Originally Posted by ecl View Post
The last thing I´m doing is this:

Once you've set the configuration the way you think you will like it, you can run the server:
On OS X/Linux/FreeBSD (OS X will require you to open a terminal and go to the proper directory):
./ninjamsrv configfilename.cfg
On Windows (after opening a command line, and going to the proper directory):
ninjamsrv configfilename.cfg


I open terminal and run the path of the file

/ECL/eclninjamserver

But Terminal tells me this:

-bash: /ECL/eclninjamserver: is a directory
Fine. That's the directory where your Ninjam server lives, I suppose. You just need to add the program to start. Please try in Terminal:

Code:
./ninjamsrv configfilename.cfg
or

Code:
~/ECL/eclninjamserver/ninjamsrv configfilename.cfg
You did open "configfilename.cfg" in a text editor and changed whatever needed to be changed and saved that?

It could be configfilename.cfg has been saved (by you?) under a different filename. Ninjam.cfg, fi. To find that out:

Code:
cd ~/ECL/eclninjamserver/
ls -al
That will list everything in that directory. And you'll see the .cfg file.

Also, note that you need to forward a port in your local router. Your internet box. Port forwarding might be named differently, since you mention you've "opened" a port. That might look like:

Code:
forward 2049 -> 192.168.2.2
But your ip (192.168.2.2 in the example) is dynamic, driven by the DHCP server in the router. It will change some day, to 192.168.2.4, fi. To do this reliably, you might consider setting up your PC with a static ip. That doesn't change and port forwarding will keep working.

I hope this makes a bit of sense. If not, ask.
cyrano is online now   Reply With Quote
Old 10-02-2015, 02:17 AM   #14
ecl
Human being with feelings
 
ecl's Avatar
 
Join Date: Jul 2014
Posts: 362
Default

Thanks a lot ¡¡¡

I´ll try and let you know ¡¡¡

ecl is offline   Reply With Quote
Old 10-02-2015, 02:28 AM   #15
ecl
Human being with feelings
 
ecl's Avatar
 
Join Date: Jul 2014
Posts: 362
Default

Quote:
Originally Posted by cyrano View Post

You did open "configfilename.cfg" in a text editor and changed whatever needed to be changed and saved that?
Yes I did.

About the port I have opened nothing yet because I don't know how to do it.
When I was yesterday connected to the public server it did it automatically.

I tried everything you said ... ufffff


This is the report, please have a look to want am I doing wrong .... ( AHHHHHHH ¡¡¡¡¡)

Last login: Fri Oct 2 11:14:38 on console
Macintosh-de-ECL:~ ECL$ ./ninjamsrv eclservere.cfg
-bash: ./ninjamsrv: No such file or directory

Macintosh-de-ECL:~ ECL$ ~/ECL/eclninjamserver/ninjamsrv eclserver.cfg
-bash: /Users/ECL/ECL/eclninjamserver/ninjamsrv: No such file or directory

Macintosh-de-ECL:~ ECL$ /ECL/eclninjamserver/ninjamsrv eclserver.cfg
-bash: /ECL/eclninjamserver/ninjamsrv: Bad CPU type in executable

Macintosh-de-ECL:~ ECL$ cd ~/ECL/eclninjamserver/
-bash: cd: /Users/ECL/ECL/eclninjamserver/: No such file or directory

Macintosh-de-ECL:~ ECL$ ls -al
total 56
drwxr-xr-x+ 17 ECL staff 578 2 oct 11:20 .
drwxr-xr-x 5 root admin 170 2 oct 00:27 ..
-r-------- 1 ECL staff 7 22 sep 14:04 .CFUserTextEncoding
-rw-r--r--@ 1 ECL staff 18436 1 oct 18:16 .DS_Store
drwx------ 2 ECL staff 68 2 oct 11:14 .Trash
-rw------- 1 ECL staff 102 1 oct 11:27 .bash_history
drwxr-xr-x 3 ECL staff 102 2 oct 11:20 .bash_sessions
drwxr-xr-x 3 ECL staff 102 29 sep 11:02 .config
drwx------+ 6 ECL staff 204 1 oct 19:21 Desktop
drwx------+ 6 ECL staff 204 2 oct 11:19 Documents
drwx------+ 6 ECL staff 204 2 oct 01:16 Downloads
drwx------+ 49 ECL staff 1666 2 oct 01:41 Library
drwx------+ 3 ECL staff 102 22 sep 14:04 Movies
drwx------+ 3 ECL staff 102 22 sep 14:04 Music
drwx------+ 3 ECL staff 102 22 sep 14:04 Pictures
drwxr-xr-x+ 6 ECL staff 204 1 oct 16:31 Public
drwxr-xr-x 9 ECL staff 306 29 sep 15:31 Wine Files
Macintosh-de-ECL:~ ECL$
ecl is offline   Reply With Quote
Old 10-02-2015, 04:07 AM   #16
cyrano
Human being with feelings
 
cyrano's Avatar
 
Join Date: Jun 2011
Location: Belgium
Posts: 3,239
Default

Quote:
Originally Posted by ecl View Post
Yes I did.

About the port I have opened nothing yet because I don't know how to do it.
When I was yesterday connected to the public server it did it automatically.
Ah. OK. Didn't remember that ninjamsrv drilled it's way out. Fine. Maybe it works without forwarding ports.

Quote:
I tried everything you said ... ufffff
Yeah. I know. Lots of tests cause I don't know the directory structure on your machine.


Quote:
This is the report, please have a look to want am I doing wrong .... ( AHHHHHHH ¡¡¡¡¡)


Macintosh-de-ECL:~ ECL$ /ECL/eclninjamserver/ninjamsrv eclserver.cfg
-bash: /ECL/eclninjamserver/ninjamsrv: Bad CPU type in executable
You're not doing anything wrong. I cut the tests that gave no result.

Your ninjam server lives in ~/ECL/eclninjamserver/. Now it still doesn't start, but we have a different error. I think "bad CPU type in executable" means you have found an ancient version that no longer runs on recent Macs. Or is this a bogus error? I'm lost here.


Quote:
Macintosh-de-ECL:~ ECL$ ls -al
total 56
drwxr-xr-x+ 17 ECL staff 578 2 oct 11:20 .
drwxr-xr-x 5 root admin 170 2 oct 00:27 ..
-r-------- 1 ECL staff 7 22 sep 14:04 .CFUserTextEncoding
-rw-r--r--@ 1 ECL staff 18436 1 oct 18:16 .DS_Store
drwx------ 2 ECL staff 68 2 oct 11:14 .Trash
-rw------- 1 ECL staff 102 1 oct 11:27 .bash_history
drwxr-xr-x 3 ECL staff 102 2 oct 11:20 .bash_sessions
drwxr-xr-x 3 ECL staff 102 29 sep 11:02 .config
drwx------+ 6 ECL staff 204 1 oct 19:21 Desktop
drwx------+ 6 ECL staff 204 2 oct 11:19 Documents
drwx------+ 6 ECL staff 204 2 oct 01:16 Downloads
drwx------+ 49 ECL staff 1666 2 oct 01:41 Library
drwx------+ 3 ECL staff 102 22 sep 14:04 Movies
drwx------+ 3 ECL staff 102 22 sep 14:04 Music
drwx------+ 3 ECL staff 102 22 sep 14:04 Pictures
drwxr-xr-x+ 6 ECL staff 204 1 oct 16:31 Public
drwxr-xr-x 9 ECL staff 306 29 sep 15:31 Wine Files
Macintosh-de-ECL:~ ECL$
This is not the listing I was hoping for.

In the Finder, make a new window. Click on your user folder (ECL) in the sidebar.

See if you find a folder "eclninjamserver" there. Open it and do command-a followed by command-c. Paste here. That might allow me to see versions etc.
cyrano is online now   Reply With Quote
Old 10-02-2015, 04:37 AM   #17
cyrano
Human being with feelings
 
cyrano's Avatar
 
Join Date: Jun 2011
Location: Belgium
Posts: 3,239
Default

OK.

Decided to look up the latest version. If this page is current,

http://www.cockos.com/ninjam/

It no longer runs on Intel Macs. Since a while now, the PPC emulator isn't part of OSX anymore. So the error isn't bogus and there's no fix. Sorry.
cyrano is online now   Reply With Quote
Old 10-02-2015, 10:36 AM   #18
ecl
Human being with feelings
 
ecl's Avatar
 
Join Date: Jul 2014
Posts: 362
Default

Quote:
Originally Posted by cyrano View Post
OK.

Decided to look up the latest version. If this page is current,

http://www.cockos.com/ninjam/

It no longer runs on Intel Macs. Since a while now, the PPC emulator isn't part of OSX anymore. So the error isn't bogus and there's no fix. Sorry.
So... by the moment I can´t create a private server...

I understood Right ??
ecl is offline   Reply With Quote
Old 10-02-2015, 12:39 PM   #19
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 592
Default

No.

It means you can't use the pre-compiled binary on the web site.

That does not stop you compiling the source.

http://forum.cockos.com/showthread.php?t=165468
__________________
Quote:
Originally Posted by Tony Williams
...Playing fast around the drums is one thing. But to play with people for others, to listen to, that's something else. That's a whole other world.
pljones is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:25 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.