Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KristenZHANG opened this issue Aug 5, 2024 · 2 comments
Open

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

KristenZHANG opened this issue Aug 5, 2024 · 2 comments

Comments

@KristenZHANG
Copy link

KristenZHANG commented Aug 5, 2024

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!

@cssx1234
Copy link

cssx1234 commented Aug 9, 2024

Did you manage to solve the problem? I'm facing the same issue

@liujiangning30
Copy link

http://localhost:3001/sparql is ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants