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

Sympa does not start correctly after rebooting (debian package) #1200

Closed
Salo15 opened this issue Jun 24, 2021 · 11 comments
Closed

Sympa does not start correctly after rebooting (debian package) #1200

Salo15 opened this issue Jun 24, 2021 · 11 comments
Labels

Comments

@Salo15
Copy link

Salo15 commented Jun 24, 2021

Hello,

I have a question for the Debian packager.

After installing Sympa 6.2.40 as a Debian package on a Debian 10 machine, Sympa does not start correctly after rebooting the machine.
According to the log entries, Sympa cannot access the database (mariaDB):

Jun 24 06:37:04 lists-test task_manager[526]: err main::#148 > Sympa::Spindle::spin#78 > Sympa::Spool::next#124 > Sympa::Spool::Task::_load#57 > Sympa::Spool::Task::_create_all_tasks#93 > Sympa::List::get_lists#7525 > Sympa::DatabaseManager::instance#54 > Sympa: :DatabaseDriver::MySQL::connect#58 > Sympa::Database::connect#157 Can't connect to Database Sympa::DatabaseDriver::MySQL <db_host=localhost;db_name=sympa;db_port=3306;db_user=sympa>: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld. sock' (2)

The https://sympa-community.github.io/manual/install/automate-startup.html page documents how to configure systemd for automatic startup, but these instructions are actually for non-packaged installations.
I would expect the configuration of systemd to be included in the Debian package.
(But there is not even a directory /etc/systemd/system/sympa.service.d.)
Is this a bug in this debian package?

Kind regards,
Sabine

@ikedas
Copy link
Member

ikedas commented Jun 24, 2021

Hi @Salo15 ,

Could you please try:

  1. stopping all of the services corresponding to Sympa, then
  2. starting the services.

Please see Stopping and starting services in the manual for details.

@racke
Copy link
Contributor

racke commented Jun 24, 2021

@Salo15 You can use "systemctl edit sympa.service" to create this file.
Arguably this is a bug in the Debian package, so please open a bug report.

@Salo15
Copy link
Author

Salo15 commented Jun 24, 2021 via email

@Salo15
Copy link
Author

Salo15 commented Jun 24, 2021 via email

@racke
Copy link
Contributor

racke commented Jun 24, 2021

Instructions for bug report: https://www.debian.org/Bugs/Reporting

@ikedas
Copy link
Member

ikedas commented Jun 25, 2021

@Salo15 , could you please check if the drop-in unit fle in /etc/systemd/system/sympa.service.d/ directory is configured appropriately? For details see "Automate startup" in the manual.

@Salo15
Copy link
Author

Salo15 commented Jun 29, 2021 via email

@ikedas
Copy link
Member

ikedas commented Jun 29, 2021

No, the directory /etc/system/system/sympa.service.d/ does not exist on the server.

Please create a directory /etc/systemd/system/sympa.service.d/ and then create the file in it.

@racke
Copy link
Contributor

racke commented Jun 29, 2021

@ikedas The recommended way is using "systemctl edit sympa.service". No need to worry about the directory.

Closing the ticket in favor of the Debian bug report (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990441).

@racke racke closed this as completed Jun 29, 2021
@Salo15
Copy link
Author

Salo15 commented Jun 29, 2021 via email

@ikedas
Copy link
Member

ikedas commented Jun 29, 2021

For your information: I tested it and the error stopped occurring only after I created /etc/systemd/system/sympa.service.d/, /etc/systemd/system/sympa-archived.service.d/, /etc/systemd/system/sympa-bounced.service.d/, /etc/systemd/system/sympa-bulk.service.d/ and /etc/systemd/system/sympa-task_manager.service.d/ with the same dependencies in addition to the /etc/systemd/system/sympa.service.d/ directory.

You only have to create the first one.

Anyways please continue with Debian bug tracker. This issue was closed.

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

No branches or pull requests

3 participants