I have not run bash -x, however I have run rsyncd-enable with -V which shows
all the debug output. Here, is a snip of that. Note the "solr\r", yet in my
.conf file I have only "user=solr". If I run the script using this command
"./solr/bin/rsyncd-enable -u solr -V" everything works fine.

Also, if this helps, I'm running Red Hat ES 4.


[EMAIL PROTECTED] apache-tomcat]# ./solr/bin/rsyncd-enable -V
+ ./solr/bin/rsyncd-enable -V
+ fixUser -V
 ]][ -z solr
++ whoami
 ]][ root != solr
+ sudo -u $'solr\r' ./solr/bin/rsyncd-enable -V
!udo: no passwd entry for solr
+ exit 1
++ echo -ne '\033]0;[EMAIL PROTECTED]:/usr/local/apache-tomcat\007'

Dan


Bill Au wrote:
> 
> What does your directory structure looks like?  Have you tried running
> rsyncd-enable with "bash -x" to see how/what $user is set?
> 
> Bill
> 
> On 4/9/07, realw5 <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hello,
>> I'm having troubles getting replication to work using the supplied solr
>> scripts. I've been doing alot of digging today, going though all the bash
>> scripts that make all this happen using rsync. I'm pretty sure I've
>> boiled
>> it down to the scripts.conf file. When I make my settings in this file
>> and
>> try to run say rsyncd-enable, I get an error saying "no passwd for user
>> solr". But yet, when I pass in the argument -u solr, it works just fine!
>> My
>> though is the scripts.conf file has bad line characters or something
>> along
>> those lines, however when I check it out in VI, I see nothing odd.
>>
>> Any help would be appeciated! This is my last step to an otherwise
>> successful solr setup.
>>
>> Dan
>>
>> my scripts.conf file:
>> # Licensed to the Apache Software Foundation (ASF) under one or more
>> # contributor license agreements.  See the NOTICE file distributed with
>> # this work for additional information regarding copyright ownership.
>> # The ASF licenses this file to You under the Apache License, Version 2.0
>> # (the "License"); you may not use this file except in compliance with
>> # the License.  You may obtain a copy of the License at
>> #
>> #     http://www.apache.org/licenses/LICENSE-2.0
>> #
>> # Unless required by applicable law or agreed to in writing, software
>> # distributed under the License is distributed on an "AS IS" BASIS,
>> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>> implied.
>> # See the License for the specific language governing permissions and
>> # limitations under the License.
>> user=solr
>> solr_hostname=localhost
>> solr_port=8080
>> rsyncd_port=18080
>> data_dir=
>> webapp_name=solr
>> master_host=
>> master_data_dir=
>> master_status_dir=
>> --
>> View this message in context:
>> http://www.nabble.com/Solr-Scripts.conf-Parsing-Error-tf3550726.html#a9912973
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Solr-Scripts.conf-Parsing-Error-tf3550726.html#a9943328
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to