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

Server attempts to start without database connection #1

Closed
Costallat opened this issue Jul 28, 2021 · 6 comments
Closed

Server attempts to start without database connection #1

Costallat opened this issue Jul 28, 2021 · 6 comments
Assignees
Labels
Area: Docker Area: Source Priority: Low Minor impact Stale No activity Status: Pending Test This PR or Issue requires more testing Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@Costallat
Copy link
Contributor

Costallat commented Jul 28, 2021

Describe the bug

If the server is unable to connect to the database it says that it will close but it continues the start process, then it says that no services is running and that the server is not online, and if we add an 'exit(-1)' it crashes

How to Reproduce?

Start the server without any database running

Logs or errors

[2021-28-07 21:28:46.478] [error] Message: Can't connect to MySQL server on '127.0.0.1' (115)
[2021-28-07 21:28:46.478] [error] Failed to connect to database!
[2021-28-07 21:28:46.478] [error] The program will close after pressing the enter key...
[2021-28-07 21:28:46.478] [error] No services running. The server is NOT online!
/canary/start.sh: line 22: 12 Segmentation fault (core dumped) canary

Expected behavior

The server closes when it says that it is going to close and without a crash

Environment

  • OS (e.g. Windows): Linux
  • OTServ Version (e.g. commit): 1862d438e951bcd44e262c2742e36a6c0c3af49d
@Costallat Costallat added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Jul 28, 2021
@Costallat Costallat self-assigned this Jul 28, 2021
@hiPirate
Copy link
Contributor

Doesn't seem to be an issue anymore, might as well close this.

@dudantas
Copy link
Contributor

Doesn't seem to be an issue anymore, might as well close this.

It's in the docker these problems.

@hiPirate
Copy link
Contributor

Cool, I'll try to fix it while I'm looking at the market system bug.

@helenarubra helenarubra mentioned this issue Oct 12, 2021
1 task
@github-actions
Copy link
Contributor

This issue is stale because it has been open 120 days with no activity.

@github-actions github-actions bot added the Stale No activity label Nov 22, 2021
@andersonfaaria andersonfaaria changed the title BUG: Server attempts to start without database connection Apr 6, 2022
@andersonfaaria andersonfaaria added Priority: Low Minor impact Area: Source Area: Docker Status: Pending Test This PR or Issue requires more testing and removed Stale No activity labels Apr 6, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2022

This issue is stale because it has been open 120 days with no activity.

@Costallat
Copy link
Contributor Author

This was already fixed.

GODMoyano added a commit to GODMoyano/canary that referenced this issue Apr 12, 2023
@aokisama aokisama mentioned this issue May 29, 2023
5 tasks
luan pushed a commit that referenced this issue Jul 11, 2023
Removed several files and other unnecessary things
Converts ids to client id
Leshyah pushed a commit to Leshyah/canary that referenced this issue Nov 11, 2023
Removed several files and other unnecessary things
Converts ids to client id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Docker Area: Source Priority: Low Minor impact Stale No activity Status: Pending Test This PR or Issue requires more testing Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

4 participants