Forum Discussion
renojim
16 years agoCommunity Streaming Expert
"markhood" wrote:
Dang. That's really one of the problems with the embedded Linux distributions -- there's no standard boot process. You might even be running everything from flash instead of the hard drive, which means you can't alter the boot up at all. I'm not familiar with Dockstar (though I'm thinking of getting one); do you happen to know what Linux distro is running on it? Do you perhaps have a directory /etc/rc3.d that has links to a bunch of scripts in /etc/init.d?
As far as I know, it's just called Plugbox Linux. I've seen reference to people using a Debian distro, but I'm not sure what Plugbox is based on. The way I understand it, the Dockstar flash is rewritten to look for a USB device to boot from. If there's no USB device, then it boots the old Dockstar code, otherwise it boots from a flash drive. The only 'rc' directory in /etc is rc.d. The rc.x scripts in /etc are:
rc.conf rc.local.shutdown rc.shutdown rc.sysinit rc.local rc.multi rc.single
"markhood" wrote:
Hmm, I've always had that problem. I think it was discussed way back in this thread and had to do with non-ASCII or non-Latin UTF8 characters in folder names and a bug in the ID3 library, and the work around was to rename the folders. I only encountered it with album folders, and I don't normally use MyMedia for audio, so I pretty much forgot about it. Maybe somebody else knows?
I don't have any non-ASCII characters in folder names, but I do in a few file names. It looks like it gets the exception when it searches the folders for album art.
"markhood" wrote:
The script I posted always kills the server if it's already running and then restarts it; it's a typical boot script for Optware ports but it looks like it might not be the right script for you. But are you saying that you don't have the problem with the non-ASCII characters if you're root and restart the server? I'm not sure what to make of that; perhaps root has a different library load path than a normal user and is running different code?
Yes. It works fine if I just log in as root and run the same script that's run from rc.local. Trying to track down the problem, I think it's a Python problem, but I don't know what to do about it. If I start Python with the -v parameter and save the output, starting from rc.local or starting from the command line I get the exact same output except for the following line:
started from rc.local
import encodings.ascii # precompiled from /opt/lib/python2.6/encodings/ascii.pyc
started from the command line
import encodings.utf_8 # precompiled from /opt/lib/python2.6/encodings/utf_8.pyc
I'm guessing the ascii vs. utf_8 is the problem, but now what?
Thanks for your help!
-JT