无法在Virtuoso-opensource中启动服务实例

时间:2017-03-01 13:18:04

标签: cmd open-source virtuoso

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

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.

2 个答案:

答案 0 :(得分:3)

答案在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,雇用我。

答案 1 :(得分:0)

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

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

并手动删除 virtuoso.lck 文件

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