【问题标题】:Cannot start a service instance in Virtuoso-opensource无法在 Virtuoso-opensource 中启动服务实例
【发布时间】:2017-03-01 13:18:03
【问题描述】:

我正在尝试创建和启动服务实例。但它没有开始。 这是我运行的命令:

virtuoso-t +service start +instance MyService

这是我的输出:

The Virtuoso_MyService service is being started

但是localhost:8890无法加载。

详情:

  • 以管理员身份打开 CMD。
  • 3 天前运行相同的命令,服务运行良好,直到我重新启动系统。
  • 随后的命令。

    C:\Users\username\Desktop\foldername\MyWork\virtuoso-opensource\bin>virtuoso-t +service create +instance MyService +configfile ..\database\virtuoso.ini
    
    [Using virtuoso.ini in C:\Users\username\Desktop\foldername\MyWork\virtuoso-opensource\database]
    The Virtuoso_MyService service has been registered
      and is associated with the executable 
    
    C:\Users\username\Desktop\foldername\MyWork\virtuoso-opensource\bin\virtuoso-t.exe
    
    C:\Users\username\Desktop\foldername\MyWork\virtuoso-opensource\bin>virtuoso-t +service start +instance MyService
    The Virtuoso_MyService service is being started
    
    C:\Users\username\Desktop\foldername\MyWork\virtuoso-opensource\bin>virtuoso-t +service list +instance MyService
    MyService            Stopped
    

按照@TallTed 的建议,我已经添加了日志:

            Wed Mar 01 2017
16:27:37 { Loading plugin 1: Type `plain', file `wikiv' in `../hosting'
16:27:37   WikiV version 0.6 from OpenLink Software
16:27:37   Support functions for WikiV collaboration tool
16:27:37   SUCCESS plugin 1: loaded from ..\hosting\wikiv.dll }
16:27:37 { Loading plugin 2: Type `plain', file `mediawiki' in `../hosting'
16:27:37   MediaWiki version 0.1 from OpenLink Software
16:27:37   Support functions for MediaWiki collaboration tool
16:27:37   SUCCESS plugin 2: loaded from ..\hosting\mediawiki.dll }
16:27:37 { Loading plugin 3: Type `plain', file `creolewiki' in `../hosting'
16:27:37   CreoleWiki version 0.1 from OpenLink Software
16:27:37   Support functions for CreoleWiki collaboration tool
16:27:37   SUCCESS plugin 3: loaded from ..\hosting\creolewiki.dll }
16:27:37 { Loading plugin 4: Type `plain', file `im' in `../hosting'
16:27:37   IM version 0.6 from OpenLink Software
16:27:37   Support functions for Image Magick 6.6.7
16:27:37   SUCCESS plugin 4: loaded from ..\hosting\im.dll }
16:27:37 { Loading plugin 5: Type `plain', file `wbxml2' in `../hosting'
16:27:37   WBXML2 version 0.9 from OpenLink Software
16:27:37   Support functions for WBXML2 0.10.7 Library
16:27:37   SUCCESS plugin 5: loaded from ..\hosting\wbxml2.dll }
16:27:37 Unable to create file virtuoso.lck (File exists).
16:27:37 This probably means you either do not have permission to start
16:27:37 this server, or that virtuoso-t is already running.
16:27:37 If you are absolutely sure that this is not the case, please try
16:27:37 to remove the file virtuoso.lck and start again.

【问题讨论】:

  • 您是否查看过C:\Users\username\Desktop\foldername\MyWork\virtuoso-opensource\database\virtuoso.log 是否有任何错误或其他消息?
  • @TallTed 我已经添加了日志。我可以看到问题并尝试删除已经存在的 virtuoso.lck 文件。它奏效了。谢谢你。这是一个很大的帮助。

标签: cmd open-source virtuoso


【解决方案1】:

答案在 Virtuoso 日志文件中 --

16:27:37 Unable to create file virtuoso.lck (File exists).
16:27:37 This probably means you either do not have permission to start
16:27:37 this server, or that virtuoso-t is already running.
16:27:37 If you are absolutely sure that this is not the case, please try
16:27:37 to remove the file virtuoso.lck and start again.

按照那里的建议删除 virtuoso.lck 应该可以解决问题。

在正常关机时,Virtuoso 会清理这个文件。如果重新启动电源,或者 Virtuoso 进程以其他方式不干净地终止,则此文件可能会持续存在,就像在这种情况下一样,因此需要手动删除。

Virtuoso website 包含大量信息,包括official Virtuoso manualevolving docs, covering Open Source in more detail

ObDisclaimer:OpenLink Software 产生 Virtuoso,并雇用我。

【讨论】:

  • 我刚刚开始学习演奏大师。您能否建议一些提供示例的良好资源。谢谢。
  • @KrishnaChouhan - 查看编辑后的答案,有几个链接
【解决方案2】:

我在 Windows 10 上遇到了同样的问题。我通过访问我的解决了

C:\Program Files\OpenLink Software\Virtuoso OpenSource 7.2\database

并手动删除virtuoso.lck文件

重新启动我的服务器,现在一切正常!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-05-31
    • 2014-02-02
    • 1970-01-01
    • 1970-01-01
    • 2020-07-10
    • 2013-06-26
    • 2017-05-27
    相关资源
    最近更新 更多