-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
1.1.0 can't start again when I use SQLite #1178
Comments
@andreynering maybe you can confirm this one. |
Not happening to me |
@papiorasu please give more detail since @geek1011 and I cannot reproduce it. |
@papiorasu could you show your config file? |
I see. |
APP_NAME = Gitea: Git with a cup of tea RUN_USER = PAPIORASU$ RUN_MODE = prod [database] DB_TYPE = sqlite3 HOST = 127.0.0.1:3306 NAME = gitea USER = gitea PASSWD = SSL_MODE = disable PATH = C:/gitea/data/gitea.sqlite3 [repository] ROOT = C:/gitea/gitea-repositories [server] SSH_DOMAIN = localhost HTTP_PORT = 3000 ROOT_URL = http://localhost:3000/ DISABLE_SSH = false SSH_PORT = 22 LFS_START_SERVER = false OFFLINE_MODE = false [mailer] ENABLED = false [service] REGISTER_EMAIL_CONFIRM = false ENABLE_NOTIFY_MAIL = false DISABLE_REGISTRATION = false ENABLE_CAPTCHA = false REQUIRE_SIGNIN_VIEW = false DEFAULT_KEEP_EMAIL_PRIVATE = false NO_REPLY_ADDRESS = noreply.example.org [picture] DISABLE_GRAVATAR = false ENABLE_FEDERATED_AVATAR = false [session] PROVIDER = file [log] MODE = file LEVEL = Info ROOT_PATH = C:/gitea/log [security] INSTALL_LOCK = true SECRET_KEY = 34T7KAqOzV And MySQL is not installed in my environment. Furthermore I did a more detailed test.
I prepared a database that is running (generated by 1.0) and newly generated one (generated by 1.0.2 and 1.1.0). I used the following files. |
Are you running a windows service? |
Yes. I referred to Gitea 's blog. |
I confirmed that Gitea can be started by changing the "Version" table of the used SQLite database. The above-mentioned problem that does not start "30/30 times" has been solved. |
So what's the issue it is? |
First, It is a bug that Gitea has failed to change the "Version" of the used database. Second, Windows services often do not start up. |
So let's discuss there. |
[x]
):Description
A database file of SQLite not exists:
The file of the default is generated, and Gitea starts.
A database file of SQLite exists:
The service of Gitea does not start. (system error 1067)
System error 1067 is MySQL error.
I think that Gitea choose a database unlike setting.
The text was updated successfully, but these errors were encountered: