This article is for OLDEST release of BioStar 2. Previous from 2.6


If your BioStar 2 setting is showing a service error, it may be caused by the following reasons




1. Configuration file has been corrupted by the system. 


2. Database is corrupted: refer to the following link to resolve your issue - [BioStar 2] Database Corruption


3. Server hard drive is full: This will corrupt your database.
In this case you will have to delete BioStar 2 and restore a old backup that you made before. 

Make sure your new server hard drive meets the server specification: [BioStar 2] System Requirements / Supported Operating System


If you don't have any backups, refer to the final section of the following article to make a clean install and restore users from your device: [BioStar 2] Database Corruption


The below instructions will show how to fix the issue #1. 


Fixing the BioStar 2 Configuration File


Your setting.conf file is found in C:\Program Files\BioStar 2(x64)



A proper setting.conf file should have the service listed:[a correct setting.conf file]


However a corrupted setting.conf file will not have the service items. That is why the services cannot run: 

[configuration file with issue]


In this case you can add the service lines back to the configuration file and save it to resolve the issue. 

* Make a backup copy of the setting.conf file in another location before you proceed in case you make wrong edits to the file. 

* Below configuration file requires that you have the database on the same PC as the server (remote_db:false) 



For BioStar 2.3 32bit

"service":

        {

            "use_remote_db": "false",

            "launcher": "BioStar 2 Launcher",

            "maria_db": "BioStar 2 MariaDB",

            "web": "BioStar 2 Web Server",

            "ta_web": "BioStar 2 TA Web Server" 

        },


For BioStar 2.4.0~2.4.1  64bit 


 "service": {

"use_remote_db": "false",

"launcher": "BioStar 2 Launcher(x64)",

"maria_db": "BioStar 2 MariaDB(x64)",

"web": "BioStar 2 Web Server(x64)",

"ta_web": "BioStar 2 TA Web Server(x64)",

 },


For BioStar 2.5  64bit 


 "service": {

"use_remote_db": "false",

"launcher": "BioStar 2 Launcher(x64)",

"maria_db": "BioStar 2 MariaDB(x64)",

"web": "BioStar 2 Web Server(x64)",

"ta_web": "BioStar 2 TA Web Server(x64)",

"video": "BioStar 2 Video Web Server(x64)"

 },