Transmission starts with a wrong ConfigDIR with a "?"

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
axishero
Posts: 16
Joined: Thu Jun 10, 2010 8:20 am

Transmission starts with a wrong ConfigDIR with a "?"

Post by axishero »

I put start command as below into rc.local

Code: Select all

root@OpenWrt:~# cat /etc/rc.local 
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

transmission-daemon -g /mnt/sda1/transmission-daemon

exit 0
But everytime transmission-daemon initializes with a "?" attached to the right configDIR as below:

Code: Select all

root@OpenWrt:/mnt/sda1# ls -al | grep transmission-
drwxrwxrwx    5 root     root          4096 Feb 26 18:52 transmission-daemon
drwxrwxrwx    5 root     root          4096 Feb 26 19:11 transmission-daemon?
The result is that transmission-daemon failed to load right configuration.When I try to log in transmission-web.It gives me 403 errors.
But maually start with typing "transmission-daemon -g /mnt/sda1/transmission-daemon" is ok.
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Transmission starts with a wrong ConfigDIR with a "?"

Post by rb07 »

The "?" is probably a carriage-return (CR) that Windows' Notepad added...
axishero
Posts: 16
Joined: Thu Jun 10, 2010 8:20 am

Re: Transmission starts with a wrong ConfigDIR with a "?"

Post by axishero »

rb07 wrote:The "?" is probably a carriage-return (CR) that Windows' Notepad added...
No,I use vi to edit rc.local.
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Transmission starts with a wrong ConfigDIR with a "?"

Post by rb07 »

Have you checked with "vi -b" or a plain "od -c" ?

The editor vi doesn't show \r usually, and doesn't automatically correct DOS format files.
axishero
Posts: 16
Joined: Thu Jun 10, 2010 8:20 am

Re: Transmission starts with a wrong ConfigDIR with a "?"

Post by axishero »

rb07 wrote:Have you checked with "vi -b" or a plain "od -c" ?

The editor vi doesn't show \r usually, and doesn't automatically correct DOS format files.
I think is not that case.rc.local is gernerate by linux system itself.Format must be suitable,and I use vi to alter won't change format.
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: Transmission starts with a wrong ConfigDIR with a "?"

Post by Jordan »

axishero wrote:
rb07 wrote:Have you checked with "vi -b" or a plain "od -c" ?

The editor vi doesn't show \r usually, and doesn't automatically correct DOS format files.
I think is not that case.rc.local is gernerate by linux system itself.Format must be suitable,and I use vi to alter won't change format.
So in other words, you didn't check? :)

Anyway, this one has me stumped. I don't see anything in libtransmission that would account for that questionmark. It's possible that your OS is adding it as a warning to tell you something that's not right in the script, or with the /mount location when the script is run, but that's just a wild guess.

It's odd that things work when you run them by hand but not by the init script. You may want to ask the dd-wrt forums to look at your init script.
Post Reply