Re: [Freevo-users] Error running freevo cache

2007-08-15 Thread Brian McKee
> As this question comes up quite a bit on the list, I have just added a
> wiki page http://freevo.sourceforge.net/cgi-bin/doc/MultiUser which need
> some more detailed instructions.
>
> The cache is shared and so need shared permissions. To set up freevo as
> a multi-user system you will need to do a bit of Linux system
> administration. To set the users and permissions correctly. After all it
> is Linux that is stopping the access of the files and not Freevo.

I hear you, but I guess I need more info on what files are involved.
I have the media files set up correctly - but the problems I was
referring to where things like the cache folder.  Could they not be
set up 2775 or something by default?

Brian

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Error running freevo cache

2007-08-15 Thread Duncan Webb
Brian McKee wrote:
> On Mon, 2007-13-08 at 09:22 +0200, Duncan Webb wrote:
>> Brian McKee wrote:
>>> I get this error when I run freevo cache
>>>
>>> Were is it saving this sqlite database?  
>>>
>>> Or it this indicative of a different problem?
>>>
>>> {snippage...}
>>> checking webserver thumbnails. 0 files
>>> creating audio metadata... done
>>> creating playlist metadata done
>>> checking database. 
>>>  Traceback (most recent call last):
>>> File "/usr/lib/python2.4/site-packages/freevo/helpers/cache.py", line
>>> 579, in ? create_metadata()
>>> File "/usr/lib/python2.4/site-packages/freevo/helpers/cache.py", line
>>> 380, in create_metadata
>>> util.extendedmeta.addPathDB(dir[1], dir[0], verbose=False)
>>> File "/usr/lib/python2.4/site-packages/freevo/util/extendedmeta.py",
>>> line 94, in addPathDB
>>> db.runQuery(make_query(song,dirtitle))
>>> File "/usr/lib/python2.4/site-packages/freevo/util/dbutil.py", line 94,
>>> in runQuery
>>> self.cursor.execute(query)
>>> File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 244, in
>>> execute  self.rs = self.con.db.execute(SQL)
>>> _sqlite.DatabaseError: attempt to write a readonly database
>> Do you have sqlite installed?
>>
>> If so then maybe the owner is root and your running from a user with the
>> incorrect permissions. The database is in /freevo.sqlite,
>> where cachedir is /tmp/freevo or /var/cache/freevo
>>
> 
> 
> Thanks Duncan
>   The owner was another user on the same box.  I just ended up
> deleting /var/cach/freevo and letting freevo rebuild it.
> 
>   I've run into a couple of problems with freevo that in retrospect were
> possibly similar issues around running freevo under multiple accounts.
> For now I'll avoid it.
> 
>   To me that's a bug - I made an entry on the sourceforge site under
> bugs  
> referring to freevo cache but I'm not sure that's the only spot problems
> may occur.   Wasn't there discussion earlier about a problem that didn't
> show up when freevo was run as root?

As this question comes up quite a bit on the list, I have just added a
wiki page http://freevo.sourceforge.net/cgi-bin/doc/MultiUser which need
some more detailed instructions.

The cache is shared and so need shared permissions. To set up freevo as
a multi-user system you will need to do a bit of Linux system
administration. To set the users and permissions correctly. After all it
is Linux that is stopping the access of the files and not Freevo.

Duncan


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Error running freevo cache

2007-08-14 Thread Brian McKee
On Mon, 2007-13-08 at 09:22 +0200, Duncan Webb wrote:
> Brian McKee wrote:
> > I get this error when I run freevo cache
> > 
> > Were is it saving this sqlite database?  
> > 
> > Or it this indicative of a different problem?
> > 
> > {snippage...}
> > checking webserver thumbnails. 0 files
> > creating audio metadata... done
> > creating playlist metadata done
> > checking database. 
> >  Traceback (most recent call last):
> > File "/usr/lib/python2.4/site-packages/freevo/helpers/cache.py", line
> > 579, in ? create_metadata()
> > File "/usr/lib/python2.4/site-packages/freevo/helpers/cache.py", line
> > 380, in create_metadata
> > util.extendedmeta.addPathDB(dir[1], dir[0], verbose=False)
> > File "/usr/lib/python2.4/site-packages/freevo/util/extendedmeta.py",
> > line 94, in addPathDB
> > db.runQuery(make_query(song,dirtitle))
> > File "/usr/lib/python2.4/site-packages/freevo/util/dbutil.py", line 94,
> > in runQuery
> > self.cursor.execute(query)
> > File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 244, in
> > execute  self.rs = self.con.db.execute(SQL)
> > _sqlite.DatabaseError: attempt to write a readonly database
> 
> Do you have sqlite installed?
> 
> If so then maybe the owner is root and your running from a user with the
> incorrect permissions. The database is in /freevo.sqlite,
> where cachedir is /tmp/freevo or /var/cache/freevo
> 


Thanks Duncan
  The owner was another user on the same box.  I just ended up
deleting /var/cach/freevo and letting freevo rebuild it.

  I've run into a couple of problems with freevo that in retrospect were
possibly similar issues around running freevo under multiple accounts.
For now I'll avoid it.

  To me that's a bug - I made an entry on the sourceforge site under
bugs  
referring to freevo cache but I'm not sure that's the only spot problems
may occur.   Wasn't there discussion earlier about a problem that didn't
show up when freevo was run as root?

Brian


signature.asc
Description: This is a digitally signed message part
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Error running freevo cache

2007-08-13 Thread Duncan Webb
Brian McKee wrote:
> I get this error when I run freevo cache
> 
> Were is it saving this sqlite database?  
> 
> Or it this indicative of a different problem?
> 
> {snippage...}
> checking webserver thumbnails. 0 files
> creating audio metadata... done
> creating playlist metadata done
> checking database. 
>  Traceback (most recent call last):
> File "/usr/lib/python2.4/site-packages/freevo/helpers/cache.py", line
> 579, in ? create_metadata()
> File "/usr/lib/python2.4/site-packages/freevo/helpers/cache.py", line
> 380, in create_metadata
> util.extendedmeta.addPathDB(dir[1], dir[0], verbose=False)
> File "/usr/lib/python2.4/site-packages/freevo/util/extendedmeta.py",
> line 94, in addPathDB
> db.runQuery(make_query(song,dirtitle))
> File "/usr/lib/python2.4/site-packages/freevo/util/dbutil.py", line 94,
> in runQuery
> self.cursor.execute(query)
> File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 244, in
> execute  self.rs = self.con.db.execute(SQL)
> _sqlite.DatabaseError: attempt to write a readonly database

Do you have sqlite installed?

If so then maybe the owner is root and your running from a user with the
incorrect permissions. The database is in /freevo.sqlite,
where cachedir is /tmp/freevo or /var/cache/freevo

If not then it need to be installled, see:
http://freevo.sourceforge.net/cgi-bin/doc/SourceDependencies

Duncan


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


[Freevo-users] Error running freevo cache

2007-08-11 Thread Brian McKee
I get this error when I run freevo cache

Were is it saving this sqlite database?  

Or it this indicative of a different problem?

{snippage...}
checking webserver thumbnails. 0 files
creating audio metadata... done
creating playlist metadata done
checking database. 
 Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/freevo/helpers/cache.py", line
579, in ? create_metadata()
File "/usr/lib/python2.4/site-packages/freevo/helpers/cache.py", line
380, in create_metadata
util.extendedmeta.addPathDB(dir[1], dir[0], verbose=False)
File "/usr/lib/python2.4/site-packages/freevo/util/extendedmeta.py",
line 94, in addPathDB
db.runQuery(make_query(song,dirtitle))
File "/usr/lib/python2.4/site-packages/freevo/util/dbutil.py", line 94,
in runQuery
self.cursor.execute(query)
File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 244, in
execute  self.rs = self.con.db.execute(SQL)
_sqlite.DatabaseError: attempt to write a readonly database


signature.asc
Description: This is a digitally signed message part
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Error running 'freevo cache'

2006-10-08 Thread Duncan Webb
Jean-Tristan Chanegue wrote:
> Hi,
> 
> I'm using freevo 1.5.4 on Kubuntu dapper, using the following packages :
> deb http://ubuntu.geole.info/ dapper universe multiverse
> 
> When i launch the "freevo cache" command i've got the following error :
> 
> creating playlist metadata
> Traceback (most recent call last):
>   File "/usr/lib/python2.4/site-packages/freevo/helpers/cache.py",
> line 447, in ?
> create_metadata()
>   File "/usr/lib/python2.4/site-packages/freevo/helpers/cache.py",
> line 253, in create_metadata
> items = playlist.mimetype.get(None, util.misc.unique(pl))
>   File "/usr/lib/python2.4/site-packages/freevo/playlist.py", line 532, in get
> display_type=display_type, build=True))
>   File "/usr/lib/python2.4/site-packages/freevo/playlist.py", line
> 100, in __init__
> self.build()
>   File "/usr/lib/python2.4/site-packages/freevo/playlist.py", line 247, in 
> build
> self.read_m3u(playlist)
>   File "/usr/lib/python2.4/site-packages/freevo/playlist.py", line
> 129, in read_m3u

looks like a play list is corrupt, the error doesn't say which file. So
you could check your *.m3u files.

> if os.path.exists(os.path.join(curdir,line)):
>   File "/usr/lib/python2.4/posixpath.py", line 171, in exists
> st = os.stat(path)
> TypeError: stat() argument 1 must be (encoded string without NULL
> bytes), not str
> [EMAIL PROTECTED]:~/.freevo$
> 
> 
> Have you any idea of the origin of the problem ?
> 
> Thanks,
> Jean-Tristan Chanegue
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Freevo-users mailing list
> Freevo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freevo-users
> 



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


[Freevo-users] Error running 'freevo cache'

2006-10-08 Thread Jean-Tristan Chanegue
Hi,

I'm using freevo 1.5.4 on Kubuntu dapper, using the following packages :
deb http://ubuntu.geole.info/ dapper universe multiverse

When i launch the "freevo cache" command i've got the following error :

creating playlist metadata
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/freevo/helpers/cache.py",
line 447, in ?
create_metadata()
  File "/usr/lib/python2.4/site-packages/freevo/helpers/cache.py",
line 253, in create_metadata
items = playlist.mimetype.get(None, util.misc.unique(pl))
  File "/usr/lib/python2.4/site-packages/freevo/playlist.py", line 532, in get
display_type=display_type, build=True))
  File "/usr/lib/python2.4/site-packages/freevo/playlist.py", line
100, in __init__
self.build()
  File "/usr/lib/python2.4/site-packages/freevo/playlist.py", line 247, in build
self.read_m3u(playlist)
  File "/usr/lib/python2.4/site-packages/freevo/playlist.py", line
129, in read_m3u
if os.path.exists(os.path.join(curdir,line)):
  File "/usr/lib/python2.4/posixpath.py", line 171, in exists
st = os.stat(path)
TypeError: stat() argument 1 must be (encoded string without NULL
bytes), not str
[EMAIL PROTECTED]:~/.freevo$


Have you any idea of the origin of the problem ?

Thanks,
Jean-Tristan Chanegue

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users