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

MariaDB goes straight to maintenance after installing via pkgsrc #356

Closed
brianewell opened this issue Mar 5, 2023 · 5 comments
Closed
Assignees

Comments

@brianewell
Copy link

TL;DR: It appears that mariadb-server is currently configured to expect a mariadb:mariadb writable directory at /var/run/mariadb. Unfortunately, manually creating one at that path doesn't survive a reboot.

Steps to reproduce:

  1. Use the latest available SmartOS virtual machine zone-dataset image (e44ed3e0-910b-11ed-a5d4-00151714048c)
  2. Install the latest available MariaDB server (mariadb-server-10.4.20nb9)
  3. Manually create a database (mysql_install_db --user=mariadb --basedir=/opt/local --datadir=/var/mysql) since that's apparently broken right now too.
  4. Note that attempts to start mariadb via svcs are met with maintenance states. Dig through the service log (/var/svc/log/pkgsrc-mariadb:default.log) and get nowhere, dig through the mariadb error log and notice permission errors on creating /var/run/mariadb.
  5. Create the directory, clear maintenance state on the service, rejoice.
  6. Restart the container, return to step 4.
@brianewell
Copy link
Author

Do we actually even need a pid file if SMF is managing this process directly instead of wrapping it in a svc method script?

@bahamat
Copy link
Member

bahamat commented Mar 5, 2023

This seems to be a duplicate of #346.

@jperkin
Copy link
Collaborator

jperkin commented Mar 6, 2023

Sorry, there are two issues here:

I'll get working on both.

@jperkin
Copy link
Collaborator

jperkin commented Mar 7, 2023

Ok I've fixed the builds of 10.5 and 10.6 packages in NetBSD@4033f2d and NetBSD@13b9b4a, and also fixed creating the initial databases on first run in NetBSD@76ca8ff

I'll get these backported to 2022Q4 and let you know when the packages are available.

@jperkin
Copy link
Collaborator

jperkin commented Mar 9, 2023

Ok the following packages are now available in 2022Q4:

$ pkgin se mariadb-server
mariadb-server-10.6.11  MariaDB 10.6, a free MySQL compatible database (server)
mariadb-server-10.5.18  MariaDB 10.5, a free MySQL compatible database (server)
mariadb-server-10.4.20nb9  MariaDB 10.4, a free MySQL compatible database (server)

I've tested them all to check they all correctly start up on a clean system using the following routine:

$ pkgin in 'mariadb-server>10.4<10.5'
$ /usr/sbin/svcadm enable -r svc:/pkgsrc/mariadb:default

..check for running service, test with "mysql -uroot"..

$ /usr/sbin/svcadm disable svc:/pkgsrc/mariadb:default
$ pkg_delete mariadb\*
$ /usr/sbin/svccfg delete svc:/pkgsrc/mariadb
$ rm -rf /var/mysql /var/log/mariadb

Repeat for:

$ pkgin in 'mariadb-server>10.5<10.6'
$ pkgin in 'mariadb-server>10.6'

@jperkin jperkin closed this as completed Mar 9, 2023
jperkin pushed a commit that referenced this issue Mar 12, 2023
# httpuv 1.6.9

* Fixed #354: The incorrect method was called to clear a `vector`. (#355)

* The `src/Makevars` file no longer sets `CXX_STD=CXX11`, and the
  `DESCRIPTION` file no longer lists `SystemRequirements: C++11`,
  because newer R versions always support C++11. (#356, #357)


# httpuv 1.6.8

* Fixed #351: A race condition could cause httpuv to crash when
  starting the background thread for I/O. (#352)


# httpuv 1.6.7

* Fixed rstudio/shiny#3741: The `TZ` environment variable could get
  unset in some cases. (#346)

* Closed #302: Fixed potential thread-safety issues with `timegm2`
  implementation. (#346)


# httpuv 1.6.6

* Update docs for CRAN (#343)

* Updated to libuv 1.43.0. (#328)

* Fixed #336: `encodeURI()` and `encodeURIComponent()` printed a space
  instead of a leading zero, as in `"% A"` instead of `"%0A"`. (#337)
jperkin pushed a commit that referenced this issue May 2, 2023
Changes for v3.0.8 (2023-04-23)
===============================

-  Test suite shell wrapper: Accept OSError on exit

Changes for v3.0.7 (2023-04-23)
===============================

-  Test suite: Use general regex to cut zsh reset ANSI sequences (#425)

Changes for v3.0.6 (2023-04-22)
===============================

-  Allow importlib-metadata 6.x; skip test failures on Python 3.7 (#420,
   #424)

-  Note completers can return iterables of strings, not just lists
   (#422)

-  Documentation and test improvements

Changes for v3.0.5 (2023-03-25)
===============================

-  Call \_default as fallback in zsh global completion hook

-  Begin support for mapping-emitting completers

Changes for v3.0.4 (2023-03-21)
===============================

-  activate-global-python-argcomplete: do not overwrite existing dotfile
   in user directory

-  Add NOTICE file

-  Establish long term name for split_line as
   argcomplete.lexers.split_line

Changes for v3.0.3 (2023-03-20)
===============================

-  Re-add split_line to API (#419)

Changes for v3.0.2 (2023-03-19)
===============================

Fix zsh default completion issues

Changes for v3.0.1 (2023-03-19)
===============================

-  Fix zsh autoload issues

Changes for v3.0.0 (2023-03-19)
===============================

-  Fully support zsh. Argcomplete now supports completion descriptions
   and global completion in zsh.

-  Clean up top level namespace.

-  Documentation and test improvements.

Changes for v2.1.2 (2023-03-17)
===============================

-  Test infrastructure improvements

-  Indicate that there is no support commitment for fish and tcsh shells

Changes for v2.1.1 (2023-03-06)
===============================

-  Documentation and test improvements

Changes for v2.1.0 (2023-03-06)
===============================

-  Remove scripts for contrib-supported shells from global namespace

Changes for v2.0.6 (2023-03-06)
===============================

-  setup.py: exclude test.\* subpackages from find_packages (#406)

-  Support PowerShell (#405)

-  CI updates

Changes for v2.0.5 (2023-03-04)
===============================

-  Revert “Support powershell (#392)”

Changes for v2.0.4 (2023-03-04)
===============================

-  Fix interrupted release (v2.0.1)

Changes for v2.0.3 (2023-03-04)
===============================

-  Fix interrupted release (v2.0.1)

Changes for v2.0.2 (2023-03-04)
===============================

-  Fix interrupted release (v2.0.1)

Changes for v2.0.1 (2023-03-04)
===============================

-  Support powershell (#392)

-  Update importlib-metadata dependency to include versions 5.x (#389)

-  Test and documentation improvements

Changes for v2.0.0 (2022-01-03)
===============================

-  Truncate input after cursor. Fixes #351 (#352)

-  Support of path completion in fish #327 (#359)

-  Drop support for Python 2.7 and 3.5 (#361)

-  Add support for Python 3.10 (#356)

-  Test, documentation, and release infrastructure improvements
jperkin pushed a commit that referenced this issue May 5, 2023
v23.0.0
-------

February 15, 2023

 * Drop python2 support
 * Fix a bug with `CONTROLLER_WAIT` events


v22.0.0
-------

March 16, 2022

 * Use GitHub Action for CI (instead of Travis)
 * fix coveralls uploading of coverage


v21.1.0
-------

August 16, 2021

 * Fix some incorrect unit-test skipping logic (thanks `@exarkun
 <https://github.com/exarkun>`, `#354
 <https://github.com/meejah/txtorcon/issues/354>`_ and `#352
 <https://github.com/meejah/txtorcon/issues/352>`_)
 * Fix broken tests revealed by previous fixes (thanks `@exarkun
 <https://github.com/exarkun>`, `#356
 <https://github.com/meejah/txtorcon/issues/356>`_


v21.0.0
-------

August 7, 2021

 * Use GitHub Actions instead of Travis for CI
 * fix Python 3.x+ bug with `TorInfo` and `__class__` access (`#350
 <https://github.com/meejah/txtorcon/issues/350>`_)
jperkin pushed a commit that referenced this issue Jan 9, 2024
## 1.9.0 (2023.12.19)

ENHANCEMENTS:
* Refactor distro.info() method to return an InfoDict [#360]
* Ignore the file '/etc/board-release' [#353]
* Ignore the file '/etc/ec2_version' [#359]

RELEASE:
* Run Python 3.6 on Ubuntu 20.04 for CI and bump isort [#355]

TESTS:
* Test on modern versions of CPython and PyPy and macOS [#362]
* Add support for ALT Linux Server 10.1 distribution [#354]
* Add Debian Testing to the tests [#356]
* Update archlinux resource for tests [#352]
jperkin pushed a commit that referenced this issue Apr 9, 2024
[1.3.0] - 2024-04-08
 - Introduced thumbnail mode, enabling users to keep an eye on Sniffnet while
   doing other tasks (#484)
 - Added support for ICMP connections and messages (#417 — fixes #288)
 - Added capability to identify 6000+ upper layer services, protocols, trojans,
   and worms (#450 — fixes #374)
 - Added feature to optionally export the analysis as a PCAP file with a custom
   path (#473 — fixes #162 and #291)
 - Introduced new filtering capabilities to allow users specify custom values
   of ports and IP addresses (#414)
 - The size of text and widgets can now be customised by setting a proper zoom
   value (fixes #202 and #344)
 - Added possibility to totally customize the app's theme via styles defined in
   TOML files (#286 and #419)
 - Upgraded inspect page table: multiple new search filters, additional sorting
   options, and always keep a correct fields alignment (#442 — fixes #63)
 - Added support for more link types in addition to Ethernet: raw IP packets
   and null/loopback packets are now correctly parsed (#421)
 - Support changing sort strategy for network hosts and services in overview
   page, showing most recent items by default (#452)
 - IP addresses can now be copied to clipboard from the popup related to a
   given entry of the connections table, and a new search parameter has been
   introduced in Inspect page to allow users filter their connections based on
   IP address values (#409)
 - Traffic chart is now smoother and overall better-looking thanks to the new
   spline-based interpolation (#461)
 - Added Japanese translation 🇯🇵 (#343)
 - Added Uzbek translation 🇺🇿 (#385)
 - Window size and position are now remembered, so that Sniffnet can reopen
   with the same window properties
 - Users can now provide custom paths for MMDB files to allow using the
   commercial versions of the country and ASN databases (fixes #243)
 - Added new command line option --restore-default to restore the default
   configurations of the app (settings, window properties, and device selected
   at startup)
 - The app's configurations are now stored only on application close, instead
   of needlessly store them each time the settings popup is closed (#420)
 - The textual output report is not generated anymore
 - Settings "Language" tab has been removed. Language selection and other
   options are now included in a new settings tab "General" (#365)
 - Updated Portuguese translation to v1.2 (#398)
 - Cleaned code implementing the concept of first class theming (#339)
 - Migrate to Iced 0.12 (#470)
 - Added documentation about Sniffnet installation on Nix and Tiny Core Linux
   (respectively #394 and #341)
 - General aesthetic improvements
 - Fixed bug about not delivered favorite notifications in presence of old
   outgoing connections
 - Fixed bug causing the application's icon not to be visible in some Linux
   environments
 - Fixed a build failure on powerpc64 (#356fixes #353)
 - Fixed a typo in Russian translation (#389)
 - Fixed icon inconsistency in case of directed broadcast traffic
 - Made byte strings consistent across the app, and added support for Terabytes
   and Petabytes representations
 - Fixed hosts and services data bar lengths inconsistencies in overview page
 - Minor improvements to Spanish translation (#454)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants