ShokoAnime / ShokoServer

Repository for Shoko Server.
https://shokoanime.com/
MIT License
404 stars 74 forks source link

I don't have a database, fresh install "Failed to start review database" #817

Closed ghost closed 4 years ago

ghost commented 4 years ago

I didn't do anything just logged on my anidb account and tested. Sucessfully but it said after than failed to start review database. Using latest stable. 2020-04-26.log

da3dsoul commented 4 years ago

Try daily

ghost commented 4 years ago

It doesn't even open. I'm using w8.1

ElementalCrisis commented 4 years ago
[2020-04-26 23:48:31:622] Error|BackgroundWorker.OnDoWork => ShokoServer.WorkerSetupDB_DoWork => DatabaseFactory.InitDB DATABASE ERROR: 4.1 ALTER TABLE AnimeGroup ADD DefaultAnimeSeriesID int NULL | System.Data.SQLite.SQLiteException (0x80004005): SQL logic error or missing database
duplicate column name: DefaultAnimeSeriesID
   at System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain)
   at System.Data.SQLite.SQLiteCommand.BuildNextCommand()
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
   at Shoko.Server.Databases.SQLite.Execute(SQLiteConnection connection, String command) in D:\Documents\GitHub\ShokoServer\Shoko.Server\Databases\SQLite.cs:line 759
   at Shoko.Server.Databases.SQLite.ExecuteCommand(SQLiteConnection connection, String command) in D:\Documents\GitHub\ShokoServer\Shoko.Server\Databases\SQLite.cs:line 746

@da3dsoul seems there was an error altering the SQLite DB.

Navigate to C:\ProgramData\ShokoServer and delete the SQLite folder and then try running Server again.

da3dsoul commented 4 years ago

What he said

da3dsoul commented 4 years ago

That could possibly happen if the server is killed or something else interferes at just the wrong time

ghost commented 4 years ago

Yes wrong time.

da3dsoul commented 4 years ago

It works then? Cool