Jason Huck | 1 Jul 2003 04:49

Re: permissions on symlink/alias [solved]

It was the permissions on the parent directory (in this case my home
directory) that was causing the problem. I had to change this to 755 to get
apache to read its contents and generate an index.

> Apache 2.0 on Red Hat Linux (my new toy)
> 
> I created a sym link from '/home/jason/Music' to
> '/var/www/html/netjuke/var/music' by dragging the folder from one window to
> the other and selecting "Link to here." from the contextual menu. I assume
> this is the same as issuing 'ln -s ...etc...' from the terminal.
> 
> Unfortunately, whenever I try to get netjuke to look in this directory, I
> get an error saying the directory does not exist or is unreadable.
> 
> I've set permissions on both the original folder and the sym link to 777. I
> changed the owner to root. I changed the owner to Apache. No luck.
> 
> I checked my httpd.conf file and FollowSymLinks is included in the Options
> for the default host. There are no virtual hosts configured.
> 
> I also tried creating an Alias in httpd.conf and specifying Allow From All,
> just the example in the docs. No change.
> 
> What am I overlooking?

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
(Continue reading)

Jan Geldmacher | 3 Jul 2003 21:24

Cannot login into CVS version rc1

Hello,
I just have downloaded the latest cvs version (1.0-rc1) and replaced the
old version with it. (I did all the steps as described in the upgrade.txt.)

But when pointing my browser to the netjuke directory I get this
error message instead of the login form:

Fatal error: Call to a member function on a non-object in /var/www/html/netjuke/lib/inc-theme.php on
line 133

Is this a bug or did I make a mistake?

Thanks in advance,
Jan

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01

Automatic netjuke database maintenance

Hi:

In my configuration of netjuke I have all my files on a remote server that I
synchronise with my local music folder using rsync (this is a one way copy
done every night). 

I'd like to automate the maintenance process - specifically checking for
new/deleted/changed music files and reflect this in the netjuke system
without having to manually choose 1) recursive file find and then 2)
Maintain music database.

Ideally I need a single php script (e.g. based on db-maintain.php) that
performs both these functions without authentication (or with very simple
URL based authentication) that delivers some basic text output and I can
call using a text browser (e.g lynx) in a cron job nightly or at whatever
period I'd like.

Before I go and do this myself, anyone doing this already with netjuke ?

..Iain

--

-- 
Iain Donaldson
Iain at seatofthepants.net

-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
(Continue reading)

Florian Maul | 14 Jul 2003 10:34
Picon
Picon

Re: Cannot login into CVS version rc1

Hello Jan,

> I just have downloaded the latest cvs version (1.0-rc1) and replaced the
> old version with it. (I did all the steps as described in the upgrade.txt.)
> But when pointing my browser to the netjuke directory I get this
> error message instead of the login form:

> Fatal error: Call to a member function on a non-object in
> /var/www/html/netjuke/lib/inc-theme.php on line 133

> Is this a bug or did I make a mistake?
It was a bug in the update-script which caused the database not to be
updated. The bug is fixed in the CVS tree now, so you would have to
update the code from CVS and run the update process again.

Florian <fmaul <at> gmx.de>

-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
Chris Connors | 14 Jul 2003 18:26
Picon

login counter bug?

I was just noticing in the user maint section that my account hadn't 
logged in since 6/21/03. Since I use it daily I wasn't sure what's up.

So I explicitly logged out and logged back in, and the login count was 
incremented and the date updated.

Apparently, if a user has "remember me" checked when they log in, 
future connections are not tracked as "logins".

-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
Florian Maul | 14 Jul 2003 22:32
Picon
Picon

Re: login counter bug?

Hallo Chris,

> So I explicitly logged out and logged back in, and the login count
> was incremented and the date updated. Apparently, if a user has
> "remember me" checked when they log in, future connections are not
> tracked as "logins".
The logins are counted whenever the session in the database is
created. When 'remember me' me is activated the session entry in the
database is not deleted and the same session will be used for all
future transactions with netjuke, if I'm not mistaken.

I'm not completely aware of the session management but I think it's
not that easy to determine when to count your netjuke access as a
login when you never explicitly log out, since the current session
lives forever.

You are suggesting to count a new login when a certain time since the
last page access has been reached, aren't you?

Florian <fmaul <at> gmx.de>

-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
Chris Connors | 15 Jul 2003 01:39
Picon

Re: login counter bug?

I think I assumed that the "remember me" did something client side 
(with a cookie perhaps) so that a new session is created each time a 
user accesses netjuke, rather than create an indefinite session. Is 
this common practice?

It creates a problem from the user accounting side, but does it also 
leave vulnerable a session that can be hijacked? does it also leave 
httpd procs around indefinitely or is the session stored in the db only?

thanks-

chris

On Monday, July 14, 2003, at 03:32  PM, Florian Maul wrote:

> Hallo Chris,
>
>> So I explicitly logged out and logged back in, and the login count
>> was incremented and the date updated. Apparently, if a user has
>> "remember me" checked when they log in, future connections are not
>> tracked as "logins".
> The logins are counted whenever the session in the database is
> created. When 'remember me' me is activated the session entry in the
> database is not deleted and the same session will be used for all
> future transactions with netjuke, if I'm not mistaken.
>
> I'm not completely aware of the session management but I think it's
> not that easy to determine when to count your netjuke access as a
> login when you never explicitly log out, since the current session
> lives forever.
(Continue reading)

Florian Maul | 15 Jul 2003 02:19
Picon
Picon

Re[2]: login counter bug?

Hello Chris,

> I think I assumed that the "remember me" did something client side
> (with a cookie perhaps) so that a new session is created each time a
> user accesses netjuke, rather than create an indefinite session. Is
> this common practice?
A session is used for exactly this purpose: ensuring a user's identity
between multiple http accesses. The only difference here is, that in
case of the 'remember me' function there is no timeout for the session
and therefore the user remains logged in. If you would remove the
session you still need some way (cookie<->database) to keep track of
the user's identity for the 'remember me' function.

> It creates a problem from the user accounting side, but does it also
> leave vulnerable a session that can be hijacked?
Netjuke uses a cookie to identify the user (the session). To hijack
the session you would at least need the cookie and I think you also
need the same IP.

> does it also leave httpd procs around indefinitely or is the session
> stored in the db only?
The session is stored in the database (table netjuke_sessions) and a
reference as cookie on the client side. There are no processes running
on the server - that's why we need the session to save the current
state of our application ;-)

Florian <fmaul <at> gmx.de>

-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
(Continue reading)

Victor Lewis | 15 Jul 2003 20:46

Problems with import

After upgrading from b13 to b17 the "RECURSIVE AUDIO FILE FINDER" has
stopped working.  When I scan my music directory it finds the files and says
that it has inserted them but they don't actually show up in my music list
(i.e. the BROWSE section).

When I run the import in verbose mode the "Status" column says "Queued" but
the last message says they have been "inserted".  Is there another step I am
missing?

I cannot find any errors in /var/log/messages or in Apache's error_log.  Is
there somewhere else I should look for error messages?

Please help.  I have kind of gotten addicted to Netjuke.

Thanks,
  Victor

-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
Jan Geldmacher | 17 Jul 2003 13:32

Re: Cannot login into CVS version rc1

Hi Florian,

> > I just have downloaded the latest cvs version (1.0-rc1) and replaced the
> > old version with it. (I did all the steps as described in the upgrade.txt.)
> > But when pointing my browser to the netjuke directory I get this
> > error message instead of the login form:
> 
> > Fatal error: Call to a member function on a non-object in
> > /var/www/html/netjuke/lib/inc-theme.php on line 133
> 
> > Is this a bug or did I make a mistake?
> It was a bug in the update-script which caused the database not to be
> updated. The bug is fixed in the CVS tree now, so you would have to
> update the code from CVS and run the update process again.

I tried the latest CVS-version, and now its working fine. :-)
Thanks...
jan

-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0

Gmane