Bug 15252 - TinySC logs should be available via Samba
: TinySC logs should be available via Samba
Status: CLOSED FIXED
Product: SB Touch
Classification: Unclassified
Component: TinySC
: 7.5.0
: Other Other
: P1 normal (vote)
: 7.5.0
Assigned To: Vahid Fereydouny
: TinySC
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-04 22:07 UTC by Andy Grundman
Modified: 2010-04-08 17:25 UTC (History)
6 users (show)

See Also:
Category: Task


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Grundman 2009-12-04 22:07:01 UTC
Either we need to log to the media, or export /var/log over Samba as read-only. 
 Logs are going to syslog now, I wonder if this will be OK or if we need a 
separate server.log.  Maybe we can configure this with syslog?
Comment 1 Chris Owens 2010-01-20 10:54:01 UTC
Vahid says he will have a look
Comment 2 Jim McAtee 2010-01-20 17:34:26 UTC
In the meantime, is it possible to move the logdir to /media/sda1?  If so, how is it done?
Comment 3 Vahid Fereydouny 2010-01-25 14:27:13 UTC
The configuration files for the samba are located under /etc/samba/. It seems to me that by adding the /var/log as a share point in the /etc/samba/smb.conf the log files could be accessed.
Comment 4 Jim McAtee 2010-01-25 17:44:10 UTC
(In reply to comment #3)
> It seems to me that by adding the /var/log as a share point in the 
> /etc/samba/smb.conf the log files could be accessed.

I tried that, but it looks like smb.conf is overwritten at boot time.  Is that really necessary?
Comment 5 Vahid Fereydouny 2010-01-25 17:48:09 UTC
The smb.conf is overwritten by the samba program whenever it starts. The key is changing the samab to add the logs as a read-only folder. I made the necessary changes in samab script and I will commit it by tomorrow.
Comment 6 Jim McAtee 2010-01-25 18:44:35 UTC
Ah, ok... It looks like the /etc/init.d/samba script builds smb.conf from smb.conf.dist.  You just need to edit smb.conf.dist, not change the script.

Now what about moving server and squeezeplay logging out of syslog?
Comment 7 Vahid Fereydouny 2010-01-25 18:53:13 UTC
Not sure about that. The .dist is just a template, so the smb.conf is built based on the template. I think that the samba script should be changed to add it to the share points.
Comment 8 Vahid Fereydouny 2010-01-26 11:04:21 UTC
I am ready to commit my changes that exports the /var/log as a read-only folder. Is it good enough to consider this bug fixed?
Comment 9 Vahid Fereydouny 2010-01-28 17:18:51 UTC
I checked in the code that exports the /var/log directory as a read-only folder. This should enable the monitoring of the log files including the samba logs.
Comment 10 Jim McAtee 2010-01-28 18:17:41 UTC
We're not going to address breaking the SP and SbS logging out of the syslog into their own log(s)?
Comment 11 Vahid Fereydouny 2010-01-28 18:32:14 UTC
I leave the decision to Chris. The changes I made will fix this bug. If he thinks it is necessary to keep them in a separate logs, then we may want to create a new bug to track it.
Comment 12 Jim McAtee 2010-02-02 02:52:11 UTC
Should this be seen in the current firmware?  I'm not seeing the share.
Comment 13 Vahid Fereydouny 2010-02-02 10:36:33 UTC
Please try 7.5.0.r8443. It should have the fix. I had to make some changes in poky to include my changes in the build.
Comment 14 Chris Owens 2010-04-08 17:25:55 UTC
This bug has been marked fixed in a released version of Squeezebox Server or the accompanying firmware or mysqueezebox.com release.

If you are still seeing this issue, please let us know!