Skip to content

Failed to open http://localhost:3001 #20

@KristenZHANG

Description

@KristenZHANG

Hi,

I encountered a problem about managing the Virtuoso service and want to seek some help. Thanks in advance!
I followed the instruction:

  1. downloaded both virtuoso_db.zip via wget and virtuoso-opensource.x86_64-generic_glibc25-linux-gnu.tar.gz and unzip all.
  2. change the virtuosoPath in virtuoso.py to local virtuoso-opensource path
  3. put virtuoso_db under the same directory as the script virtuoso.py
  4. ran python3 virtuoso.py start 3001 -d virtuoso_db

However, I cannot open it via http://localhost:3001.

Here is the shell output

RUNNING: cat /proc/meminfo | grep MemTotal | awk '{print $2}'                                                                                                                                               
263737472 KB free, using 4945077.6 buffers, 2472538.8 dirty buffers                                                                                                                                         
[Database]                                                                                                                                                                                                  
DatabaseFile = virtuoso_db/virtuoso.db                                                                                                                                                                      
ErrorLogFile = virtuoso_db/virtuoso.log                                                                                                                                                                     
LockFile = virtuoso_db/virtuoso.lck                                                                                                                                                                         
TransactionFile = virtuoso_db/virtuoso.trx                                                                                                                                                                  
xa_persistent_file = virtuoso_db/virtuoso.pxa                                                                                                                                                               
ErrorLogLevel = 7                                                                                                                                                                                           
FileExtend = 200                                                                                                                                                                                            
MaxCheckpointRemap = 2000                                                                                                                                                                                   
Striping = 0                                                                                                                                                                                                
TempStorage = TempDatabase                                                                                                                                                                                  
                                                                                                                                                                                                            
[TempDatabase]                                                                                                                                                                                              
DatabaseFile = virtuoso_db/virtuoso-temp.db                                                                                                                                                                 
TransactionFile = virtuoso_db/virtuoso-temp.trx                                                                                                                                                             
MaxCheckpointRemap = 2000                                                                                                                                                                                   
Striping = 0                                                                                                                                                                                                
                                                                                                                                                                                                            
[Parameters]                                                                                                                                                                                                
ServerPort = 13001                                                                                                                                                                                          
LiteMode = 0                                                                                                                                                                                                
DisableUnixSocket = 1                                                                                                                                                                                       
DisableTcpSocket = 0                                                                                                                                                                                        
ServerThreads = 100 ; increased from 20                                                                                                                                                                     
CheckpointInterval = 60                                                                                                                                                                                     
O_DIRECT = 1 ; increased from 0                                                                                                                                                                             
CaseMode = 2   
MaxStaticCursorRows = 100000
CheckpointAuditTrail = 0
AllowOSCalls = 0            
SchedulerInterval = 10    
DirsAllowed = .      
ThreadCleanupInterval = 0 
ThreadThreshold = 10
ResourcesCleanupInterval = 0
FreeTextBatchSize = 100000
PrefixResultNames = 0
RdfFreeTextRulesSize = 100
IndexTreeMaps = 256        
MaxMemPoolSize = 200000000 
PrefixResultNames = 0
MacSpotlight = 0
IndexTreeMaps = 64      
NumberOfBuffers = 4945077.6                                                                           
MaxDirtyBuffers = 2472538.8                                                                           

[SPARQL]    
ResultSetMaxRows = 50000
MaxQueryCostEstimationTime = 600 ; in seconds (increased)
MaxQueryExecutionTime = 180; in seconds (increased) 

[HTTPServer]
ServerPort = 3001
Charset = UTF-8
ServerThreads = 15 ; increased from unknown


virtuoso_db/virtuoso.ini
==== Starting Virtuoso server for virtuoso_db on port 3001...
RUNNING: {MY_PATH}/virtuoso-opensource//bin/virtuoso-t +configfile virtuoso_db/virtuoso.ini +wait

Here is the log details

		Tue Aug 06 2024
00:29:36 OpenLink Virtuoso Universal Server
00:29:36 Version 07.20.3229-pthreads for Linux as of Aug 15 2018
00:29:36 uses parts of OpenSSL, PCRE, Html Tidy
00:29:45 Database version 3126
00:29:45 SQL Optimizer enabled (max 1000 layouts)
00:29:46 Compiler unit is timed at 0.000160 msec
00:30:08 built-in procedure "ld_dir" overruled by the RDBMS
00:30:08 built-in procedure "rdf_read_dir" overruled by the RDBMS
00:30:08 built-in procedure "ld_dir_all" overruled by the RDBMS
00:30:08 built-in procedure "ld_add" overruled by the RDBMS
00:30:08 built-in procedure "ld_ttlp_flags" overruled by the RDBMS
00:30:08 built-in procedure "ld_file" overruled by the RDBMS
00:30:08 built-in procedure "rdf_load_dir" overruled by the RDBMS
00:30:08 built-in procedure "ld_array" overruled by the RDBMS
00:30:08 built-in procedure "rdf_loader_run" overruled by the RDBMS
00:30:08 built-in procedure "rdf_load_stop" overruled by the RDBMS
00:30:08 built-in procedure "RDF_LOADER_RUN_1" overruled by the RDBMS
00:30:08 built-in procedure "rdf_ld_srv" overruled by the RDBMS
00:30:08 built-in procedure "load_grdf" overruled by the RDBMS
00:30:09 Roll forward started
00:30:09 Roll forward complete
00:30:11 Checkpoint started
00:30:11 Checkpoint finished, log reused
00:30:11 HTTP server online at 3001
00:30:11 Server online at 13001 (pid 385082)

And the process check ps -ef | grep virtuoso

User   385082       1 17 00:29 ?        00:00:20 {MY_PATH}/virtuoso-opensource//bin/virtuoso-t +configfile virtuoso_db/virtuoso.ini +wait

But opening http://localhost:3001 shows

Error HTTP/1.1 404 File not found
The requested URL was not found    URI  = '/'

Does anyone know the possible reason for that? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions