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)
jperkin pushed a commit that referenced this issue May 17, 2024
0.21.0 (2024-03-10)
-------------------

- Improve documentation. [#483]

- Add a minimum version requirement for ``asdf-wcs-schemas``. [#491]

- Fix ``WCS.__str__`` for instances without transforms. [#489]

0.20.0 (2023-11-29)
-------------------

- Replace ``pkg_resources`` with ``importlib.metadata``. [#478]

- Serialize and deserialize ``pixel_shape`` with asdf. [#480]

0.19.0 (2023-09-15)
-------------------

Bug Fixes
^^^^^^^^^

- Synchronize ``array_shape`` and ``pixel_shape`` attributes of WCS
  objects. [#439]

- Fix failures and warnings with numpy 2.0. [#472]

other
^^^^^

- Remove deprecated old ``bounding_box``. The new implementation is released with
  astropy v 5.3. [#458]

- Refactor ``CoordinateFrame.axis_physical_types``. [#459]

- ``StokesFrame`` uses now ``astropy.coordinates.StokesCoord``. [#452]

- Dropped support for Python 3.8. [#451]

- Fixed a call to ``astropy.coordinates`` in ``wcstools.wcs_from_points``. [#448]

- Code and docstrings clean up. [#460]

- Register all available asdf extension manifests from ``asdf-wcs-schemas``
  except 1.0.0 (which contains duplicate tag versions). [#469]

- Register empty extension for 1.0.0 to avoid warning about a missing
  extension when opening old files. [#475]


0.18.3 (2022-12-23)
-------------------
Bug Fixes
^^^^^^^^^

- Fixed a bug in the estimate of pixel scale in the iterative inverse
  code. [#423]

- Fixed constant term in the polynomial used for SIP fitting.
  Improved stability and accuracy of the SIP fitting code. [#427]


0.18.2 (2022-09-07)
-------------------
Bug Fixes
^^^^^^^^^

- Corrected the reported requested forward SIP accuracy and reported fit
  residuals by ``to_fits_sip()`` and ``to_fits()``. [#413, #419]

- Fixed a bug due to which the check for divergence in ``_fit_2D_poly()`` and
  hence in ``to_fits()`` and ``to_fits_sip()`` was ignored. [#414]

New Features
^^^^^^^^^^^^

0.18.1 (2022-03-15)
-------------------
Bug Fixes
^^^^^^^^^

- Remove references to the ``six`` package. [#402]

0.18.0 (2021-12-22)
-------------------
Bug Fixes
^^^^^^^^^

- Updated code in ``region.py`` with latest improvements and bug fixes
  from ``stsci.skypac.regions.py`` [#382]

- Added support to ``_compute_lon_pole()`` for computation of ``lonpole``
  for all projections from ``astropy.modeling.projections``. This also
  extends support for different projections in ``wcs_from_fiducial()``. [#389]

New Features
^^^^^^^^^^^^

- Enabled ``CompoundBoundingBox`` support for wcs. [#375]

- Moved schemas to standalone package ``asdf-wcs-schemas``.
  Reworked the serialization code to use ASDF converters. [#388]

0.17.1 (2021-11-27)
-------------------

Bug Fixes
^^^^^^^^^

- Fixed a bug with StokesProfile and array types. [#384]


0.17.0 (2021-11-17)
-------------------
Bug Fixes
^^^^^^^^^

- `world_axis_object_components` and `world_axis_object_classes` now ensure
  unique keys in `CompositeFrame` and `CoordinateFrame`. [#356]

- Fix issue where RuntimeWarning is raised when there are NaNs in coordinates
  in angle wrapping code [#367]

- Fix deprecation warning when wcs is initialized with a pipeline [#368]

- Use ``CD`` formalism in ``WCS.to_fits_sip()``. [#380]


New Features
^^^^^^^^^^^^
- ``wcs_from_points`` now includes fitting for the inverse transform. [#349]

- Generalized ``WCS.to_fits_sip`` to be able to create a 2D celestial FITS WCS
  from celestial subspace of the ``WCS``. Also, now `WCS.to_fits_sip``
  supports arbitrary order of output axes. [#357]


API Changes
^^^^^^^^^^^
- Modified interface to ``wcs_from_points`` function to better match analogous function
  in astropy. [#349]

- ``Model._BoundingBox`` was renamed to ``Model.ModelBoundingBox``. [#376, #377]

0.16.1 (2020-12-20)
-------------------
Bug Fixes
^^^^^^^^^
- Fix a regression with ``pixel_to_world`` for output frames with one axis. [#342]

0.16.0 (2020-12-18)
-------------------
New Features
^^^^^^^^^^^^

- Added an option to `to_fits_sip()` to be able to specify the reference
  point (``crpix``) of the FITS WCS. [#337]

- Added support for providing custom range of degrees in ``to_fits_sip``. [#339]

Bug Fixes
^^^^^^^^^

- ``bounding_box`` now works with tuple of ``Quantities``. [#331]

- Fix a formula for estimating ``crpix`` in ``to_fits_sip()`` so that ``crpix``
  is near the center of the bounding box. [#337]

- Allow sub-pixel sampling of the WCS model when computing SIP approximation in
  ``to_fits_sip()``. [#338]

- Fixed a bug in ``to_fits_sip`` due to which ``inv_degree`` was ignored. [#339]
github-actions bot pushed a commit that referenced this issue Oct 13, 2024
## [2.1.0] - 2024-09-27

### Added

- Use `SLUMBER_CONFIG_PATH` to customize configuration (_not_ collection) file path [#370](LucasPickering/slumber#370)
- Add a dynamic variant to `!select` chain type, allowing your collection to present a list of values driven from the output of another chain. (thanks @anussel5559)
  - [See docs for more](https://slumber.lucaspickering.me/book/api/request_collection/chain_source.html#select)
- Cancel in-flight requests with the `cancel` action (bound to escape by default)
- Add `slumber new` subcommand to generate new collection files [#376](LucasPickering/slumber#376)
- Add `default` field to profiles
  - When using the CLI, the `--profile` argument can be omitted to use the default profile
- Reset edited recipe values to their default using `z`
  - You can [customize the key](https://slumber.lucaspickering.me/book/api/configuration/input_bindings.html) to whatever you want
- Add `selector_mode` field to chains, to control how single vs multiple results from a JSONPath selector are handled
  - Previously, if a selector returned multiple results, an error was returned. Now, the result list will be rendered as a JSON array. To return to the previous behavior, set `selector_mode: single` in your chain.
  - [See docs for more](https://slumber.lucaspickering.me/book/api/request_collection/chain.html#selector-mode)

### Changed

- Update file locations to adhere to XDG spec on Linux [#371](LucasPickering/slumber#371)
  - Move config file to [config dir](https://docs.rs/dirs/latest/dirs/fn.config_dir.html), which remains the same on MacOS/Windows but changes on Linux. For backward compatibility, the previous path ([data dir](https://docs.rs/dirs/latest/dirs/fn.data_dir.html)) will be checked and used if present
  - Move log files to [state dir](https://docs.rs/dirs/latest/dirs/fn.state_dir.html) on Linux and [cache dir](https://docs.rs/dirs/latest/dirs/fn.cache_dir.html) on MacOS/Windows
  - Database file remains in [data dir](https://docs.rs/dirs/latest/dirs/fn.data_dir.html) on all platforms
- Create config file on startup if it doesn't exist
- If config file fails to load during TUI startup, display an error and fall back to the default, rather than crashing
- De-deprecate `{{env.VARIABLE}}` template sources
  - They'll remain as a simpler alternative to `!env` chains

### Fixed

- Updated the Configuration docs to remove the non-existent `slumber show dir` command (thanks @SVendittelli)
- Retain all request history when collection file is reloaded
  - Previously, pending and failed requests were lost on reload within a single session. These will still be lost when a session is exited.
- Fix serialization of query parameter lists
- Don't update UI for useless events (e.g. cursor moves)

## [2.0.0] - 2024-09-06

2.0 is headlined by a highly requested feature: one-off edits to recipes! If you need to tweak a query parameter or edit a body, but don't want to modify your collection file, you can now highlight the value in question and hit `e` to modify it. The override will be retained until you modify the collection file or exit Slumber, at which point it will revert to its original value.

Aside from the major new feature, there is one breaking change to the escape syntax of templates. The old backslash-based syntax was fraught with edge cases and unpredictable behavior. This new syntax is simpler to use, simpler to implement, and much more bulletproof. This syntax was rare to use to begin with, so **most people will be unimpacted by this change.**

Here's the full list of changes:

### Breaking

- Replace backslash escape sequence with a simpler scheme based on `_`
  - For example, previously a key would be escaped as `\{{`. This introduced complexities around how to handle additional backslashes, and also required doubling up backslashes in YAML
  - The new equivalent would be `{_{`, which parses as `{{`
  - The goal of this change is to make escaping behavior simpler and more consistent
  - For more info on the new behavior, [see the docs](https://slumber.lucaspickering.me/book/api/request_collection/template.html#escape-sequences)
- Remove `--log` CLI argument
  - See note on log files in Changed section for why this is no longer necessary

### Added

- Edit recipe values (query params, headers, etc.) in the TUI to provide one-off values
  - Press `e` on any value you want to edit (you can [customize the key](https://slumber.lucaspickering.me/book/api/configuration/input_bindings.html))
- Add `editor` field to the config, allowing you to customize what editor Slumber opens for in-app editing
  - [See docs for more](https://slumber.lucaspickering.me/book/api/configuration/editor.html)
- Add `!select` chain type, allowing your collection to prompt the user to select a value from a static list (thanks @anussel5559)
  - [See docs for more](https://slumber.lucaspickering.me/book/api/request_collection/chain_source.html#select)

### Changed

- `!json` bodies are now prettified when sent to the server
- Use `vim` as default editor if none is configured
- Move logs back to a shared file
  - They had been split into one file per session, which made them hard to find
  - The file is now eventually deleted once it exceeds a certain size

### Fixed

- Fix basic auth being label as bearer auth in Recipe Authentication pane
- Use correct binding for `search` action in the placeholder of the response filter textbox
  - Previously it was hardcoded to display the default of `/`
- Fix response body filter not applying on new responses
- Support quoted arguments in editor commands
- Fix certain UI values not persisting correctly
- Propagate unconsumed key events from text boxes
  - E.g. F5 will now refresh the collection while a text box is in focus
- Redraw TUI when terminal is resized
- Clamp text window scroll state when window is resized or text changes
- Fix extraneous input events when exiting Vim [#351](LucasPickering/slumber#351)
- Improve performance and fix crashes when handling large request/response bodies [#356](LucasPickering/slumber#356)
  - Further improvements for large bodies will be coming in the future

## [1.8.1] - 2024-08-11

This release is focused on improving rendering performance. The TUI should generally feel more polished and responsive when working with large bodies, and CPU usage will be much lower.

### Added

- Add `debug` configuration field, to enable developer information

### Fixed

- Reduce CPU usage while idling
  - Previously, Slumber would re-render every 250ms while idling, which could lead to high CPU usage, dependending on what's on the screen. Now it will only update when changes occur, meaning idle CPU usage will be nearly 0
- Fix backlogged events when renders are slow
  - If renders are being particular slow, it was previously possible for input events (e.g. repeated scrolling events) to occur faster than the UI could keep up. This would lead to "lock out" behavior, where you'd stop scrolling and it'd take a while for the UI to catch up.
  - Now, the TUI will skip draws as necessary to keep up with the input queue. In practice the skipping should be hard to notice as it only occurs during rapid TUI movements anyway.
- Improve rendering performance for large bodies and syntax highlighting
- Fix incorrect decoration in folder tree visualization

## [1.8.0] - 2024-08-09

The highlight (no pun intended) of this release is syntax highlighting. Beyond that, the release contains a variety of small fixes and improvements.

### Added

- Add syntax highlighting to recipe, request, and response display [#264](LucasPickering/slumber#264)

### Changed

- Change layout of internal database for request and UI state storage
  - This _shouldn't_ have any user impact, it's just a technical improvement. If you notice any issues such as missing or incorrect request history, please [let me know](https://github.com/LucasPickering/slumber/issues/new?assignees=&labels=bug&projects=&template=bug_report.md)
- Upgrade to Rust 1.80
- Disable unavailable menu actions [#222](LucasPickering/slumber#222)
- Support template for header names in the `section` field of `!request` chains
- Expand `~` to the home directory in `!file` chain sources and when saving response body as a file
- Ignore key events with additional key modifiers
  - For example, an action bound to `w` will no longer match `ctrl w`
- Actions can now be unbound by specifying an empty binding
  - For example, binding `submit: []` will make the submit action inaccessible

### Fixed

- Fix `cargo install slumber` when not using `--locked`
- Don't type in text boxes when modifiers keys (other than shift) are enabled
  - Should mitigate some potential confusing behavior when using terminal key sequences
- Query parameter and header toggle rows no longer lose their state when switching profiles
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