[Bug 1958641] Re: Apport hook failures: missing conf dir; add_info() takes 1 positional argument but 2 were given

2022-02-23 Thread Launchpad Bug Tracker
This bug was fixed in the package mysql-8.0 - 8.0.28-0ubuntu3

---
mysql-8.0 (8.0.28-0ubuntu3) jammy; urgency=medium

  * d/a/source_mysql-8.0.py: Improve apport hook
- Update call signature for add_info() (LP: #1922413)
- Skip non-existing conf dirs (LP: #1958641)
- If /etc/mysql missing, ask confirmation (LP: #1922412)
- Fix all lint/flakes warnings
  + python3 -m py_compile source_mysql-8.0.py
  + pyflakes3 source_mysql-8.0.py
  + pylint source_mysql-8.0.py

 -- Bryce Harrington   Wed, 16 Feb 2022 19:07:41
-0800

** Changed in: mysql-8.0 (Ubuntu)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958641

Title:
  Apport hook failures: missing conf dir; add_info() takes 1 positional
  argument but 2 were given

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1958641/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 1958641] Re: Apport hook failures: missing conf dir; add_info() takes 1 positional argument but 2 were given

2022-02-22 Thread Jarjan Fisher
Thanks for the work and the updates.

I know I'm responding very late but to answer earlier questions:
I did not do any manual deletion of directories after uninstalling 
But I did install the MariaDB package in R (through R Studio). So maybe the 
error did have something to do with the difficulties that MySQL and MariaDB 
have together.

I manually recreated the missing directory, after that the install did
seem to work. But I've not really used MySQL since. (I installed it as
part of a course in R that in following.)

Hope that helps, thanks again!
JJ

-- 
Jarjan Fisher

W: www.jarjan.net
T: @JarjanF

W: www.iomm.net 
I: images.on.my.mind

E: j...@jarjan.net

On Tue, 22 Feb 2022, at 21:12, Bryce Harrington wrote:
> ** Changed in: mysql-8.0 (Ubuntu)
>Status: New => Fix Committed
>
> -- 
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1958641
>
> Title:
>   Apport hook failures: missing conf dir; add_info() takes 1 positional
>   argument but 2 were given
>
> Status in mysql-8.0 package in Ubuntu:
>   Fix Committed
>
> Bug description:
>  
>   Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/apport/report.py", line 228, 
> in _run_hook
>   symb['add_info'](report, ui)
>   TypeError: add_info() takes 1 positional argument but 2 were given
>
>   During handling of the above exception, another exception occurred:
>
>   Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/apport/report.py", line 233, 
> in _run_hook
>   symb['add_info'](report)
> File "/usr/share/apport/package-hooks/source_mysql-8.0.py", line 
> 56, in add_info
>   for f in os.listdir(d):
>   FileNotFoundError: [Errno 2] No such file or directory: 
> '/etc/mysql/conf.d'
>
>  
>   ### Original Report ###
>   Tried re-installing mysql server after uninstalling
>
>   ProblemType: Package
>   DistroRelease: Ubuntu 20.04
>   Package: mysql-server-8.0 8.0.27-0ubuntu0.20.04.1
>   ProcVersionSignature: Ubuntu 5.13.0-27.29~20.04.1-generic 5.13.19
>   Uname: Linux 5.13.0-27-generic x86_64
>   NonfreeKernelModules: nvidia_modeset nvidia
>   ApportVersion: 2.20.11-0ubuntu27.21
>   Architecture: amd64
>   CasperMD5CheckResult: skip
>   Date: Fri Jan 21 12:49:56 2022
>   ErrorMessage: installed mysql-server-8.0 package post-installation 
> script subprocess returned error exit status 1
>   InstallationDate: Installed on 2022-01-15 (5 days ago)
>   InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 
> (20210819)
>   Logs.var.log.daemon.log:
>
>   Logs.var.log.mysql.error.log:
>   MySQLConf.etc.mysql.my.cnf: Error: [Errno 40] Too many levels of 
> symbolic links: '/etc/mysql/my.cnf'
>   ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-5.13.0-27-generic 
> root=UUID=ca44c4aa-b984-4c55-b9be-a12dcc4637ed ro quiet splash 
> vt.handoff=7
>   Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 
> 3.8.2-0ubuntu2
>   PythonDetails: N/A
>   RelatedPackageVersions:
>    dpkg 1.19.7ubuntu3
>    apt  2.0.6
>   SourcePackage: mysql-8.0
>   Title: package mysql-server-8.0 8.0.27-0ubuntu0.20.04.1 failed to 
> install/upgrade: installed mysql-server-8.0 package post-installation 
> script subprocess returned error exit status 1
>   UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1958641/+subscriptions

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958641

Title:
  Apport hook failures: missing conf dir; add_info() takes 1 positional
  argument but 2 were given

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1958641/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1958641] Re: Apport hook failures: missing conf dir; add_info() takes 1 positional argument but 2 were given

2022-02-22 Thread Bryce Harrington
** Changed in: mysql-8.0 (Ubuntu)
   Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958641

Title:
  Apport hook failures: missing conf dir; add_info() takes 1 positional
  argument but 2 were given

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1958641/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1958641] Re: Apport hook failures: missing conf dir; add_info() takes 1 positional argument but 2 were given

2022-02-16 Thread Launchpad Bug Tracker
** Merge proposal linked:
   
https://code.launchpad.net/~bryce/ubuntu/+source/mysql-8.0/+git/mysql-8.0/+merge/415713

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958641

Title:
  Apport hook failures: missing conf dir; add_info() takes 1 positional
  argument but 2 were given

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1958641/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1958641] Re: Apport hook failures: missing conf dir; add_info() takes 1 positional argument but 2 were given

2022-02-16 Thread Bryce Harrington
** Changed in: mysql-8.0 (Ubuntu)
 Assignee: (unassigned) => Bryce Harrington (bryce)

** Changed in: mysql-8.0 (Ubuntu)
   Status: Incomplete => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958641

Title:
  Apport hook failures: missing conf dir; add_info() takes 1 positional
  argument but 2 were given

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1958641/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1958641] Re: Apport hook failures: missing conf dir; add_info() takes 1 positional argument but 2 were given

2022-01-24 Thread Bryce Harrington
By chance, when you reinstalled did you manually delete
/etc/mysql/conf.d?  (The installer might not be accounting for manual
steps done when removing the old package.)

Also, at one point did you have mariadb installed?  I notice a mention
in your logs:

Start-Date: 2022-01-16  18:13:21
Commandline: apt install libmariadb-dev
Requested-By: jarjan (1000)

(mariadb is known to interfere with mysql since they have some files
named the same way.  To work around that it can be worth force purging
mariadb before fresh-installing mysql, and vice versa.)

** Changed in: mysql-8.0 (Ubuntu)
   Status: Triaged => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958641

Title:
  Apport hook failures: missing conf dir; add_info() takes 1 positional
  argument but 2 were given

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1958641/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs