Install Porb bei Yacy

Hier finden YaCy User Hilfe wenn was nicht funktioniert oder anders funktioniert als man dachte. Bei offensichtlichen Fehlern diese bitte gleich in die Bugs (http://bugs.yacy.net) eintragen.
Forumsregeln
In diesem Forum geht es um Benutzungsprobleme und Anfragen für Hilfe. Wird dabei ein Bug identifiziert, wird der thread zur Bearbeitung in die Bug-Sektion verschoben. Wer hier also einen Thread eingestellt hat und ihn vermisst, wird ihn sicherlich in der Bug-Sektion wiederfinden.

Install Porb bei Yacy

Beitragvon heermann » Mi Feb 03, 2010 7:25 pm

Hallo,

das Installieren von yacy unter Debian per aptitude schlägt bei mir fehl.

Kann es was mit dem initSkript oder der Conf-Datei zu tun haben ?
Java version ?



# java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (build 1.6.0_0-b11)
OpenJDK Server VM (build 1.6.0_0-b11, mixed mode)


Beim Installieren läuft was mit den Initskripten falsch ...
# aptitude install yacy
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Lese Status-Informationen ein... Fertig
Lese erweiterte Statusinformationen
Initialisiere Paketstatus... Fertig
Lese Task-Beschreibungen... Fertig
Die folgenden teilweise installierten Pakete werden konfiguriert:
yacy
0 Pakete aktualisiert, 0 zusätzlich installiert, 0 werd
en entfernt und 1114 nicht aktualisiert.
Muss 0B an Archiven herunterladen. Nach dem Entpacken werden 0B zusätzlich belegt sein.
Schreibe erweiterte Statusinformationen... Fertig
Richte yacy ein (0.93svn6615) ...
Starting YaCy P2P Web Searches: failed.
invoke-rc.d: initscript yacy, action "start" failed.
dpkg: Fehler beim Bearbeiten von yacy (--configure):
Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
yacy
E: Sub-process /usr/bin/dpkg returned an error code (1)
Ein Paket konnte nicht installiert werden. Versuche zu lösen:
Richte yacy ein (0.93svn6615) ...
Starting YaCy P2P Web Searches: failed.
invoke-rc.d: initscript yacy, action "start" failed.
dpkg: Fehler beim Bearbeiten von yacy (--configure):
Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
yacy
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Lese Status-Informationen ein... Fertig
Lese erweiterte Statusinformationen
Initialisiere Paketstatus... Fertig
Lese Task-Beschreibungen... Fertig
#



scheint also das beim Starten von yacy per init-Script was nicht funzt.
"Mein" Init-script sieht wie folgt aus:
#!/bin/bash
#
# init script for YaCy
#
# Provided by Matthias Kempka, 26.12.2004
# Updated by Florian Richter, 17.7.2008
#
### BEGIN INIT INFO
# Provides: yacy
# Required-Start: $network
# Required-Stop: $network

# Default-Start: 2
# Default-Stop:
# Short-Description: Distributed web search engine
# Description: yacy is a distributed search engine
# config-file is /etc/yacy/yacy.conf
### END INIT INFO

NAME="yacy"
DESC="YaCy P2P Web Searches"
YACY_HOME="/usr/share/yacy"
DATA_HOME="/var/lib/yacy"
PID_FILE="/var/run/yacy.pid"
USER=yacy


# Set this to the maximum number of seconds the script should try to shutdown
# yacy. You might want to increase this on slower peers or for bigger
# databases.
SHUTDOWN_TIMEOUT=50

# Default niceness if not set in config file
NICE_VAL=0

JAVA_ARGS="-server -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+UseAdaptiveSizePolicy"
#check if system supports large memory pages and enable it if possible
HUGEPAGESTOTAL="$(cat /proc/meminfo | grep HugePages_Total | sed s/[^0-9]//g)"
if [ -n "$HUGEPAGESTOTAL" ] && [ $HUGEPAGESTOTAL -ne 0 ]
then
JAVA_ARGS="$JAVA_ARGS -XX:+UseLargePages"
fi

if [ "$(id -u)" != "0" -a "$(whoami)" != "$USER" ] ; then
echo "please run this script as root!"
exit 4
fi

JAVA=$(which java 2> /dev/null)
if [ ! -x "$JAVA" ]; then
echo "The 'java' command is not executable."
echo "Either you have not installed java or it is not in your PATH"
if [ $1 == "stop" -a $2 == "--force" ]; then exit 0; else exit 1; fi
fi

cd $YACY_HOME

JAVA_ARGS="$JAVA_ARGS -Djava.awt.headless=true"
#get javastart args
if [ -f DATA/SETTINGS/yacy.conf ]
then
# startup memory
for i in Xmx Xms; do
j=$(grep javastart_$i DATA/SETTINGS/yacy.conf | sed 's/^[^=]*=//');
if [ -n $j ]; then JAVA_ARGS="-$j $JAVA_ARGS"; fi;
done

# Priority
j=$(grep javastart_priority DATA/SETTINGS/yacy.conf | sed 's/^[^=]*=//');

if [ ! -z "$j" ];then
if [ -n $j ]; then NICE_VAL=$j; fi;
fi

else
JAVA_ARGS="-Xmx120m -Xms120m $JAVA_ARGS"
fi

# generating the proper classpath
CP=/usr/share/java/yacy.jar:$YACY_HOME/htroot
for name in /usr/share/java/yacy/*.jar; do
CP=$CP:$name
done

CP="$CP:/usr/share/java/javatar.jar"
CP="$CP:/usr/share/java/commons-httpclient.jar"
CP="$CP:/usr/share/java/commons-fileupload.jar"
CP="$CP:/usr/share/java/commons-logging.jar"
CP="$CP:/usr/share/java/commons-codec.jar"
CP="$CP:/usr/share/java/commons-discovery.jar"
CP="$CP:/usr/share/java/commons-io.jar"
CP="$CP:/usr/share/java/pdfbox.jar"
CP="$CP:/usr/share/java/bcprov.jar"
CP="$CP:/usr/share/java/bcmail.jar"
CP="$CP:/usr/share/java/jakarta-poi.jar"
CP="$CP:/usr/share/java/jakarta-poi-scratchpad.jar"
CP="$CP:/usr/share/java/oro.jar"
CP="$CP:/usr/share/java/xerces.jar"
CP="$CP:/usr/share/java/jsch.jar"
CP="$CP:/usr/share/java/ant.jar" # bzip-stuff
CP="$CP:/usr/share/java/jmimemagic.jar"
CP="$CP:/usr/share/java/log4j-1.2.jar"
CP="$CP:/usr/share/java/odfutils.jar"
CP="$CP:/usr/share/java/jrpm.jar"
CP="$CP:/usr/share/java/tmextractors.jar"
CP="$CP:/usr/share/java/servlet-api.jar"
CP="$CP:/usr/share/java/j7zip.jar"
CLASSPATH=$CP

if [ -f $PID_FILE ]; then
pid=$(cat "$PID_FILE")
pidno=$( ps ax | grep "$pid" | awk '{ print $1 }' | grep "$pid" )
fi

RETVAL=0
case "$1" in
start)
if [ -n "$pidno" ]; then
echo "already running"
exit 0
fi

echo -n "Starting $DESC: "
ARGS="$JAVA_ARGS -classpath $CLASSPATH net.yacy.yacy"



/sbin/start-stop-daemon --start --background --make-pidfile --chuid $USER\
--pidfile $PID_FILE --chdir $YACY_HOME --startas $JAVA\
--nicelevel $NICE_VAL\
-- $ARGS
sleep 1
ps ax|grep "^ *$(cat $PID_FILE)" > /dev/null
if [ "$?" == "0" ]; then

echo "$NAME."
RETVAL=0
chown yacy:root $PID_FILE
else

echo "failed."
RETVAL=1
fi
;;

stop)
if [ -n "$pidno" ]; then

echo -n "Stopping $DESC: "
cd $YACY_HOME
cmdline="$JAVA $JAVA_ARGS -cp $CLASSPATH net.yacy.yacy -shutdown"
if [ "$(whoami)" != "$USER" ]; then
sudo -u yacy $cmdline &>/dev/null &
else
$cmdline &>/dev/null &
fi
shutdown_pid=$!

timeout=$SHUTDOWN_TIMEOUT
while [ -n "$pidno" ]; do
let timeout=$timeout-1
if [ $timeout -eq 0 ]; then
start-stop-daemon --stop --pidfile $PID_FILE --oknodo
# dont forget to kill shutdown process if necessary
shutdown_pid=$( ps ax | grep $shutdown_pid | awk '{ print $1 }' | grep $shutdown_pid )
if [ -n "$shutdown_pid" ] ; then
kill -9 $shutdown_pid
fi
break
fi
echo -n "."
sleep 1
pidno=$( ps ax | grep $pid | awk '{ print $1 }' | grep $pid )
done
if [ "$2" != "--leave-pidfile" ]; then
rm $PID_FILE
fi
cd - >/dev/null

echo "$NAME."
exit 0
fi
echo "not running."
;;

restart)
$0 stop --leave-pidfile
sleep 1
$0 start
;;
reload)
$0 restart
;;
force-reload)
$0 restart
;;
status)
# needed by Fedora
if [ -n "$pidno" ]; then
echo "is running."
exit 0
else
if [ -f $PID_FILE ]; then
echo "is dead, but pid file exists."
exit 1
else
echo "is not running."
exit 3
fi
fi
;;
*)
echo "Usage: $0 {start|stop|restart}" >&2
exit 1
;;
esac

exit $RETVAL


/etc/yacy/yacy.conf:

# This is an automatically generated file, updated by serverAbstractSwitch and initialized by defaults/yacy.init
indexDistribution.startChunkSize=200
content.phpbb3.dbuser=notroot
searchProcessRemoteTime_o=10
useYacyReferer=false
keyStore=
40_peerseedcycle_busysleep=1200000
searchProcessRemoteTime_r=8
crawlOrder=true
searchProcessLocalCount_u=10000
seedFilePath=
searchProcessRemoteTime_s=5
searchProcessRemoteTime_f=5
msgForwardingTo=root@localhost
restart.time=0
segment.process.dhtin_tmp=default
searchProcessRemoteTime_j=8
workPath=DATA/WORK
mimeTable=defaults/httpd.mime
keyStorePassword=
seedFTPPassword=
crawler.clientTimeout=9000
crawlOrderDelay=8
listsPath=DATA/LISTS
searchProcessRemoteTime_u=20
remoteProxyPwd=
segment.process.default_tmp=default
crawlPause.proxy=15000
about.headline=
restart.hour=03
disk.free=3000
# pkcs12ImportPwd=test
update.time.deploy=0
yacyDebugMode=false
minimumGlobalDelta=500
searchProcessLocalCount_c=10000000
storeHTCache=false
CRDist0Percent=0
proxyCacheSize=32768
indexTransfer.maxOpenFiles=800
indexText=true
filterOutStopwordsFromTopwords=true
searchProcessLocalCount_j=1000000
currentSkin=pdblue
searchProcessRemoteTime_c=44
searchProcessLocalCount_f=100
network.unit.definition=defaults/yacy.network.freeworld.unit
searchProcessLocalCount_s=30
searchProcessLocalCount_r=100000
62_remotetriggeredcrawl_busysleep=1000
seedFTPServer=
searchProcessLocalCount_o=100
filesize.max.win=2147483647
#serverAccount=admin:mysecretpassword
search.audio=true
proxyCookieBlackList=cookie.default.black
server.maxTrackingHostCount=100
50_localcrawl_busysleep=20
peerName=anomic
60_remotecrawlloader_memprereq=12582912
crawler.http.acceptEncoding=gzip
#to run yacy on port 8080, reachable from port 80, set bindPort=8080, port=80 and use
indexDistribution.timeout=60000
# count=maximum number of snipptes to be fetched
proxyYellowList=yacy.yellow
crawlingQ=false
content.phpbb3.dbpw=joshua
BlackLists.Shared=url.default.black
search.video=true
CRDist1Target=kaskelix.de:8080,yacy.dyndns.org:8000
adminAccountBase64MD5=
crawlResponseDepth=0
performanceIO=10
surrogates.out=DATA/SURROGATES/out
proxyClient=localhost,127.0.0.1,192.168.*,10.*
30_peerping_memprereq=2097152
restart.cycle=20
performanceProfile=defaults/yacy.init
cgi.suffixes=cgi,pl
update.deleteOld=30
search.text=true
performanceSpeed=100
proxyYacyOnly=false
msgForwardingCmd=/usr/sbin/sendmail
parser.mime.deny=
staticIP=
adminAccountForLocalhost=true
proxy.sendViaHeader=true
allowDistributeIndexWhileIndexing=true
crawler.MaxActiveThreads=200
crawlingDomFilterDepth=-1
seedScpAccount=
isTransparentProxy=false
htRootPath=htroot
crawlingIfOlder=-1
segment.process.remotecrawling_tmp=default
remoteProxyUse4SSL=true
# if you want to switch on the proxy use, set remoteProxyUse=true
62_remotetriggeredcrawl_isPaused=false
crawlPause.localsearch=9000
segment.process.receipts_tmp=default
50_localcrawl_idlesleep=2000
use_proxyAccounts=false
cleanup.deletionPublishedNews=true
xdstopw=true
update.process=manual
wikiParser.class=de.anomic.data.wikiCode
WikiAccess=admin
content.phpbb3.ppf=1000
content.phpbb3.dbhost=localhost
content.phpbb3.dbname=forum
update.cycle=168
seedUploadMethod=none
xpstopw=true
content.phpbb3.dumpfile=
indexDistribution.maxChunkFails=1
indexControl.timeout=60000
connectionKeepAliveSupport=true
xsstopw=true
releases=DATA/RELEASE
indexMedia=true
update.time.download=0
CRDistOn=true
seedScpServer=
crawlOrderDepth=0
timeout_text=10000
crawler.http.acceptCharset=ISO-8859-1,utf-8;q=0.7,*;q=0.7
crawler.http.acceptLanguage=en-us,en;q=0.5
90_cleanup_memprereq=0
rankingPath=DATA/RANKING
routing.deleteOldSeeds.permission=true
msgForwardingEnabled=false
htTemplatePath=htroot/env/templates
defaultWordReceiveFrequency=100
timeout_media=15000
skinPath=DATA/SKINS
fileHost=localpeer
update.time.lookup=0
defaultLinkReceiveFrequency=30
locale.source=locales
YaCyHop=true
crawlingFilter=.*
compare_yacy.right=YaCy
proxyPrefetchDepth=0
peerCycle=2
serverAccount=
indexDistribution.maxOpenFiles=800
20_dhtdistribution_idlesleep=15000
indexDistribution.minChunkSize=10
seedScpServerPort=
62_remotetriggeredcrawl_memprereq=12582912
cleanup.deletionProcessedNews=true
surftips.BlackLists=url.default.black
proxyBlueList=yacy.blue
indexPrimaryPath=DATA/INDEX
locale.translated_html=DATA/LOCALE/htroot
60_remotecrawlloader_isPaused=false
allowReceiveIndex=true
autoReCrawl_memprereq=-1
70_surrogates_busysleep=0
cluster.peers.yacydomain=localpeer.yacy
indexTransfer.timeout=120000
cluster.peers.ipport=localhost:8080
trayIcon.force=false
crawlingDepth=3
50_localcrawl_isPaused=false
proxy.clientTimeout=30000
svnRevision=0
bindPort=
proxyStoreHTCache=true
70_surrogates_memprereq=12582912
javastart_priority=10
proxyIndexingLocalMedia=true
CRDist0Path=GLOBAL/010_owncr
browserPopUpPage=ConfigBasic.html
CRDist0Method=1
externalRedirector=
indexTransfer.gzipBody=true
40_peerseedcycle_memprereq=4194304
indexDistribution.maxChunkSize=1000
BlackLists.DefaultList=url.default.black
search.app=true
crawler.http.maxFileSize=1048576
javastart_Xms=Xms180m
segment.process.queries_tmp=default
indexDistribution.gzipBody=true
ramcopy=false
index.storeCommons=false
routing.deleteOldSeeds.time=30
# keyStorePassword=mypwd
seedScpPath=
indexer.slots=100
30_peerping_idlesleep=120000
segment.process.localcrawling_tmp=default
server.maxTrackingCount=1000
50_localcrawl_memprereq=12582912
remoteProxyPort=4239
90_cleanup_idlesleep=300000
locale.lang=default/English,de/Deutsch,fr/Français,nl/Nederlands,it/Italiano,es/Español,pt/Portugês,fi/Suomi,se/Svenska,dk/Dansk,gr/Eλληvικα,sk/Slovensky
crawler.BlackLists=url.default.black
90_cleanup_busysleep=300000
memory.acceptDHT=50000
20_dhtdistribution_busysleep=2000
locale.language=default
CRDist0Target=
search.BlackLists=url.default.black
wordCacheMaxCount=100000
upnp.enabled=
network.group.definition=defaults/yacy.network.group
#proxyClient=192.168.0.4
repositoryPath=DATA/HTDOCS/repository
content.phpbb3.dbtype=mysql
search.items=10
indexReceiveBlockBlacklist=true
port=8080
dictionaries=DATA/DICTIONARIES
crawlingDomMaxPages=-1
pkcs12ImportFile=
browserPopUpApplication=firefox
proxy.BlackLists=url.default.black
server.maxTrackingTime=3600000
enableTemplateCache=true
news.BlackLists=url.default.black
40_peerseedcycle_idlesleep=1800000
exceed134217727=false
surrogates.in=DATA/SURROGATES/in
promoteSearchPageGreeting=P2P Web Search
stacker.slots=2000
proxy.sendXForwardedForHeader=true
javastart_Xmx=Xmx180m
serverClient=*
about.body=
cluster.mode=publicpeer
restart.process=off
content.phpbb3.dbport=3306
allowDistributeIndexWhileCrawling=false
segment.process.dhtout_tmp=default
browserPopUpTrigger=true
browserintegration=false
locale.work=DATA/LOCALE/locales
promoteSearchPageGreeting.smallImage=/env/grafics/YaCyLogo_60ppi.png
clientTimeout=10000
60_remotecrawlloader_busysleep=10000
plasmaBlueList=yacy.blue
crawlResponse=true
parser.extensions.deny=
httpdMaxBusySessions=200
pkcs12ImportPwd=
#adminAccount=admin:mysecretpassword
seedFTPAccount=
minimumLocalDelta=0
promoteSearchPageGreeting.largeImage=/env/grafics/YaCyLogo_120ppi.png
62_remotetriggeredcrawl_idlesleep=10000
defaultFiles=ConfigBasic.html,index.html,index.htm,default.html,search.html,console.html,control.html,welcome.html,wiki.html,forum.html,blog.html,email.html,content.html,monitor.html,share.html,dir.html,readme.txt
trayIcon=true
httpd.robots.txt=locked,dirs
proxy.monitorCookies=false
remoteProxyHost=192.168.2.2
proxyCookieWhiteList=cookie.default.black
tray.label=YaCy
promoteSearchPageGreeting.homepage=http://yacy.net
30_peerping_busysleep=120000
indexControl.gzipBody=true
disk.free.hardlimit=1000
# time=time to fetch snippets for selected URLs
htDefaultPath=htroot
update.onlySignedFiles=1
upnp.remoteHost=
CRDist1Method=9
search.images=true
dht.BlackLists=url.default.black
segment.process.proxy_tmp=default
thumbnailProgram=
promoteSearchPageGreeting.useNetworkName=false
20_dhtdistribution_memprereq=12582912
70_surrogates_idlesleep=10000
proxyCache=DATA/HTCACHE
content.phpbb3.tableprefix=phpbb_
# WIN: -20=realtime;-15=high;-10=above;0=normal;10=below;20=low
searchProcessLocalTime_o=10
crawler.ftp.maxFileSize=1048576
bootstrapLoadTimeout=6000
searchProcessLocalTime_u=20
content.phpbb3.urlstub=http://<mydomain>/
cgi.allow=false
searchProcessLocalTime_s=5
remoteProxyUse4Yacy=true
update.blacklist=...[123]
searchProcessLocalTime_r=8
secureHttps=true
rankingProfile=
storeTXCache=true
filesize.max.other=8589934591
update.concept=any
# the htLocaleSelection selects from the given locales, value=one-of-<dir>
allowDistributeIndex=true
CRDist1Path=GLOBAL/014_othercr
remoteProxyUser=
proxyIndexingLocalText=true
autoReCrawl_busysleep=3600000
publicSearchpage=true
# order=parameters for requester; response=parameters for responder
remoteProxyUse=false
# keyStore=c:/yacy/DATA/SETTINGS/mySrvKeystore
adminAccount=
httpc.nameCacheNoCachingPatterns=.*.ath.cx,.*.blogdns.*,.*.boldlygoingnowhere.org,.*.dnsalias.*,.*.dnsdojo.*,.*.dvrdns.org,.*.dyn-o-saur.com,.*.dynalias.*,.*.dyndns.*,.*.ftpaccess.cc,.*.game-host.org,.*.game-server.cc,.*.getmyip.com,.*.gotdns.*,.*.ham-radio-op.net,.*.hobby-site.com,.*.homedns.org,.*.homeftp.*,.*.homeip.net,.*.homelinux.*,.*.homeunix.*,.*.is-a-chef.*,.*.is-a-geek.*,.*.kicks-ass.*,.*.merseine.nu,.*.mine.nu,.*.myphotos.cc,.*.podzone.*,.*.scrapping.cc,.*.selfip.*,.*.servebbs.*,.*.serveftp.*,.*.servegame.org,.*.shacknet.nu
CRDist1Percent=30
# pkcs12ImportFile=c:/temp/keystore.pkcs12
crawlPause.remotesearch=3000
seedScpPassword=
searchProcessRemoteCount_u=1000
remoteProxyNoProxy=192.*,10.*,127.*,localhost
searchProcessRemoteCount_s=10
htDocsPath=DATA/HTDOCS
searchProcessRemoteCount_r=1000
searchProcessRemoteCount_o=1000
publicSurftips=true
autoReCrawl_idlesleep=3600000
allowUnlimitedReceiveIndexFrom=
searchProcessRemoteCount_j=1000000
60_remotecrawlloader_idlesleep=60000
searchProcessLocalTime_c=44
serverAccountBase64MD5=
seedFTPPath=
searchProcessRemoteCount_f=100
searchProcessRemoteCount_c=1000000
searchProcessLocalTime_f=5
compare_yacy.left=YaCy
searchProcessLocalTime_j=8
#network.unit.definition=defaults/yacy.network.intranet.unit
proxyIndexingRemote=false
# EOF


Tipps Hinweise wären super nett !

Danke + Gruß

Christian
heermann
 
Beiträge: 2
Registriert: Mi Feb 03, 2010 5:42 pm

Zurück zu Fragen und Antworten

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast