简体   繁体   English

echoprint-停止服务Solr,我丢失了数据库

[英]echoprint - stopping the service Solr, I lose the database

As I can do to stop the service and tt solr correctly. 我可以做的就是停止服务并正确tt solr。 What I do is restart the PC and then wake up services, but to perform validation of a song, I get a message as if the database has been damaged. 我要做的是重新启动PC,然后唤醒服务,但是要执行歌曲验证,我会收到一条消息,好像数据库已损坏。 I wonder what is the right way to close the service to run and test after songs but not the database is damaged. 我想知道什么是关闭服务以在歌曲之后运行和测试的正确方法,但数据库没有损坏。 Greetings and thanks. 问候和感谢。

  1. Start the tts / usr/local/tokyotyrant-1.1.33/bin/ttservercd echoprint-server/solr/solr 启动tts / usr / local / tokyotyrant-1.1.33 / bin / ttservercd echoprint-server / solr / solr
  2. java -Dsolr.solr.home=/home/user01/echoprint-server/solr/solr/solr/ -Djava.awt.headless=true -DSTOP.PORT=8079 -DSTOP.KEY=mykey -jar start.jar java -Dsolr.solr.home = / home / user01 / echoprint-server / solr / solr / solr / -Djava.awt.headless = true -DSTOP.PORT = 8079 -DSTOP.KEY = mykey -jar start.jar
  3. Ingest new song 摄取新歌
  4. I stop Solr java -DSTOP.PORT=8079 -DSTOP.KEY=mykey -jar start.jar --stop 我停止Solr java -DSTOP.PORT = 8079 -DSTOP.KEY = mykey -jar start.jar --stop

Now, when I start the service and I want to make a song compracion some that I have in the database sends me an error. 现在,当我启动服务时,我想对数据库中的某些歌曲进行歌颂,这会给我发送错误。

Traceback (most recent call last): File "lookup.py", line 51, in lookup (sys.argv [1]) File "lookup.py", line 35, in lookup result = fp.best_match_for_query (decoded) File ".. / API / fp.py ", line 194, in best_match_for_query get_tyrant tcodes = (). 追溯(最近一次通话最后一次):查找中的文件“ lookup.py”,第51行(sys.argv [1])查找结果中的文件“ lookup.py”,行35,查找结果= fp.best_match_for_query(已解码)文件“ .. / API / fp.py“,第194行,在best_match_for_query get_tyrant tcodes =()中。 multi_get (trackids) File".. / API / pytyrant.py ", line 296, in multi_get raise KeyError (" Missing a result, unusable response in 1.1.10 ") KeyError: 'Missing a result, unusable response in 1.1.10' multi_get中的multi_get(trackids)文件” .. / API / pytyrant.py“,第296行,请引发KeyError(”在1.1.10中缺少结果,响应不可用“)KeyError:'在1.1.10中缺少结果,响应不可用'

How should initiate and terminate service without losing any information.? 如何在不丢失任何信息的情况下启动和终止服务?

well I found my mistake and if the ttserver. 好吧,我发现了我的错误,如果发现了ttserver。 Thanks Alexandre for that data. 感谢Alexandre提供的数据。 Well the right way to make it work would be this 那么使它起作用的正确方法就是

/usr/local/tokyotyrant-1.1.33/bin/ttserver casket.tch /usr/local/tokyotyrant-1.1.33/bin/ttserver casket.tch

there indicated the name of the on-disk hash, that will make persistent. 那里表示磁盘上哈希的名称,它将保持不变。 Then start Solr normally and I can enter and view songs without problems :) 然后正常启动Solr,我可以毫无问题地输入和查看歌曲了:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM