netjuke

Place to discuss Fedora and/or Red Hat

netjuke

Postby kovax » Sun Mar 27, 2005 8:01 pm

has anyone been able to get netjuke to work on fedora core? i know that there are similarites to red hat but i netjuke working on redhat 9 but having trouble getting it to work on fedora core 3.
I a dbconn error when i try to setup netjule.

thanks
kovax
scripter
scripter
 
Posts: 85
Joined: Mon Jan 24, 2005 9:47 am
Location: Jacksonville, USA

Postby kovax » Sat Apr 02, 2005 10:08 pm

No one out there uses Netjuke???
You have to be kidding me!!!!
Well i have another question:

What if i want to move my music folder to /opt/MUSIC?
What changes need to be done to make this happen?
kovax
scripter
scripter
 
Posts: 85
Joined: Mon Jan 24, 2005 9:47 am
Location: Jacksonville, USA

Postby Void Main » Sun Apr 03, 2005 6:15 am

Is this a trick question or is it netjuke related? Normally you would just "mv /somedir/MUSIC /opt/MUSIC". But if you are asking for how that will impact applications that were looking for your music in /somedir/MUSIC I guess that would depend on the application. They obviously would need to be reconfigured to look in the new directory or create a symbolic link after moving it (ln -s /opt/MUSIC /somedir/MUSIC).

P.S. I just downloaded and installed netjuke on my FC3 desktop with no problems. What problem are you having? I noticed after filling out the install for it goes to a blank page. It's not really blank though, if you view source you see that it is the source for the preferences file you are supposed to save in the etc directory. I saved it there and it seems to work fine (at least the interface does, I don't know how to use it so....). I have to assume that either your MySQL database isn't running, or you entered the wrong credentials. I created a "netjuke" database under my user account and used that:

Code: Select all
voidmain$ mysql -p
(enter my MySQL user password)
mysql> create database netjuke;


I enter my username (voidmain), MySQL password, "localhost" for the hostname, and "netjuke" for the database name in the installation page and everything worked with no problem.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby kovax » Fri Apr 08, 2005 7:53 am

I think my main issue was mysql. I have since slicked the box and moved back to RedHat.

Thanks for the reply.
kovax
scripter
scripter
 
Posts: 85
Joined: Mon Jan 24, 2005 9:47 am
Location: Jacksonville, USA

Postby Void Main » Fri Apr 08, 2005 8:01 am

MySQL on Fedora worked fine for me.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Here is my error

Postby kovax » Tue Apr 12, 2005 10:06 am

I decided to try again. On the setup screen i get the following error:
Cant connect to the database using the privided information. ($dbconn-> PConnect)

I can connect when i type mysql -u netjukeuser -p
kovax
scripter
scripter
 
Posts: 85
Joined: Mon Jan 24, 2005 9:47 am
Location: Jacksonville, USA

Postby Void Main » Tue Apr 12, 2005 10:15 am

And what was your other "provided information"? That is, what did you tell it for hostname, database name, did you create the database, etc. Also, there might be more clues in your Apache error log (/var/log/httpd/error_log by default). Also, when you connect locally also add in the hostname and database name and see if you still have success:

$ mysql yournetjukedatabase -h localhost -u netjuke -p
Last edited by Void Main on Tue Apr 12, 2005 10:18 am, edited 1 time in total.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby kovax » Tue Apr 12, 2005 10:17 am

DB Type= Mysql
DB Host= localhost
DB User= netjukeuser
DB Pass= password
DB Name= netjuke

sysadmin
sysadmin pass
sysadmin pass
kovax
scripter
scripter
 
Posts: 85
Joined: Mon Jan 24, 2005 9:47 am
Location: Jacksonville, USA

Postby Void Main » Tue Apr 12, 2005 10:21 am

You show "netjukeuser" in your PHP form but you show user "netjuke" on the command line. Which one is correct? Also I edited my previous message, you probably didn't get it. When you use this command locally does it still let you in and use your netjuke database:

$ mysql yournetjukedatabase -h localhost -u netjukeuser -p
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

error log

Postby kovax » Tue Apr 12, 2005 10:26 am

PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/netjuke/lib/adodb/drivers/adodb-mysql.inc.php on line 251, referer: http://192.168.xx.xx/netjuke/installer/ ... stall+Form
kovax
scripter
scripter
 
Posts: 85
Joined: Mon Jan 24, 2005 9:47 am
Location: Jacksonville, USA

Postby Void Main » Tue Apr 12, 2005 10:42 am

Ok, a few questions:

1) Are you running a stock Fedora Core 3?
2) With the stock FC3 mysql, httpd, php and php-mysql installed?
3) Is the system updated with all the FC3 updates?
4) Which exact version of netjuke did you install?
5) Is your system configure with selinux turned on? If so run system-config-securitylevel to turn it off and see if this changes anything.
6) Is iptables blocking anything? Turn it off with "service iptables stop" as root
7) Is mysql listening? Do a "netstat -an | grep 3306" where you should see a line with "0.0.0.0:3306" and "LISTENING" at the end.

If all the above answers match how I have my systems set up I might have to do a clean FC3 install to see if I might have changed some

EDIT: I just installed it on another server that had FC3 installed from scratch. I installed mysql-server and php-mysql, started httpd and mysqld, created a "netjuke" database and "netjuke" mysql user and granted permissions to that user on the netjuke database:

Code: Select all
# mysql
mysql> create database netjuke;
mysql> grant all on netjuke.* to netjuke@localhost identified by 'netjukepassword';


I used the netjuke-1.0-rc2.tar.gz to install and I didn't have to modify any configurations to make anything work.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby kovax » Tue Apr 19, 2005 5:54 am

I have set up Netjuke in many locations. I have done it in Red Hat and even Windoze. The Fedora MySQL seems to be what is bitting me. I set up everything through the command line. I am able to connect and log in to the database that way. When it comes to setting up Netjuke via the http://localhost/installer/installer.php is where I hiccup.

I have gone through my apache logs and it may be some config issue with Apache.

Is there anytning special that I need to do to open it up?

Thanks

Void Main wrote:And what was your other "provided information"? That is, what did you tell it for hostname, database name, did you create the database, etc. Also, there might be more clues in your Apache error log (/var/log/httpd/error_log by default). Also, when you connect locally also add in the hostname and database name and see if you still have success:

$ mysql yournetjukedatabase -h localhost -u netjuke -p
kovax
scripter
scripter
 
Posts: 85
Joined: Mon Jan 24, 2005 9:47 am
Location: Jacksonville, USA

Postby Void Main » Tue Apr 19, 2005 9:30 am

Well like I said, I installed it on two FC3 machines without a problem. You didn't answer a single question that I asked so it's very hard to help here...
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby kovax » Tue Apr 19, 2005 10:14 am

1- I am runing FC3
2- They are installed
3- I didnt do the updates because my server is not on the internet
4- Netjuke version 1.0-rc1
5- I turned off selinux
6- iptables are not blocking anyting
7- Mysql is listening on the correct port

Maybe it could be that my machine does not have the updates like yours. I will try the updates and go from there.

Thanks for all your help.

Void Main wrote:Ok, a few questions:

1) Are you running a stock Fedora Core 3?
2) With the stock FC3 mysql, httpd, php and php-mysql installed?
3) Is the system updated with all the FC3 updates?
4) Which exact version of netjuke did you install?
5) Is your system configure with selinux turned on? If so run system-config-securitylevel to turn it off and see if this changes anything.
6) Is iptables blocking anything? Turn it off with "service iptables stop" as root
7) Is mysql listening? Do a "netstat -an | grep 3306" where you should see a line with "0.0.0.0:3306" and "LISTENING" at the end.

If all the above answers match how I have my systems set up I might have to do a clean FC3 install to see if I might have changed some

EDIT: I just installed it on another server that had FC3 installed from scratch. I installed mysql-server and php-mysql, started httpd and mysqld, created a "netjuke" database and "netjuke" mysql user and granted permissions to that user on the netjuke database:

Code: Select all
# mysql
mysql> create database netjuke;
mysql> grant all on netjuke.* to netjuke@localhost identified by 'netjukepassword';


I used the netjuke-1.0-rc2.tar.gz to install and I didn't have to modify any configurations to make anything work.
kovax
scripter
scripter
 
Posts: 85
Joined: Mon Jan 24, 2005 9:47 am
Location: Jacksonville, USA

Postby Void Main » Tue Apr 19, 2005 10:32 am

I notice you are using a different version of netjuke than I used. Try the most recent one like I used and see if that solves your problem, otherwise it could be the FC3 updates but I would guess more the netjuke version.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA


Return to Fedora/Red Hat

Who is online

Users browsing this forum: No registered users and 2 guests

cron