Bug 243102 - sysutils/bareos-server: make_catalog_backup.pl can't find mysqldump
Summary: sysutils/bareos-server: make_catalog_backup.pl can't find mysqldump
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Jose Alonso Cardenas Marquez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-05 03:27 UTC by Ryan
Modified: 2024-12-17 08:19 UTC (History)
6 users (show)

See Also:
bugzilla: maintainer-feedback? (acm)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan 2020-01-05 03:27:30 UTC
Line 101 of /usr/local/lib/bareos/scripts/make_catalog_backup.pl calls for `mysqldump` however, when run from bconsole or on a schedule, the script fails and Bareos displays the following:

BeforeJob: sh: mysqldump: not found
Error: Runscript: BeforeJob returned non-zero status=127. ERR=Child exited with code 127

If I prepend `/usr/local/bin/` to `mysqldump` on line 101 it resolves the issue.

I have a feeling there's a better way to fix this, I'm just not sure how. I tried adding a `.profile` file exporting PATH to bareos's home directory but that didn't seem to make a difference.
Comment 1 Ryan 2020-01-05 03:32:46 UTC
Relates to bug #209811
Comment 2 Leo L. Schwab 2020-03-16 07:14:52 UTC
I bumped in to a relative of this today while setting up a new install.  My setup is using postgresql, and the log message read:

15-Mar 22:14 xxxxx JobId 5: BeforeJob: sh: pg_dump: not found

`pg_dump` was definitely installed.  I spent a few hours diagnosing it.  Essentially the problem is that rc.d launches bareos-dir with the PATH set to "/sbin:/bin:/usr/sbin:/usr/bin".  However, the postgresql11-client package installs all the utilities in /usr/local/bin, so job scripts launched from bareos-dir won't find it.

I'm not sure what the Correct Way to fix this is.  I managed to work around the issue by adding the following line to /etc/rc.conf:

bareos_dir_env="PATH=$PATH:/usr/local/sbin:/usr/local/bin"

And then restarting bareos-dir.  I then ran the catalog backup job manually from `bconsole`, which completed successfully.

Note that this trick only appears to work from within `run_rc_command` itself.  If you use `sysrc -A` to check the setting, the "$PATH" part won't be expanded correctly, instead displaying as:

bareos_dir_env: PATH=:/usr/local/sbin:/usr/local/bin
Comment 3 junemartin 2023-09-05 07:19:06 UTC
LOT Polish Airlines is situated at Terminal An at Newark Freedom Worldwide Air terminal (EWR). Explorers flying with LOT Polish Airlines can track down their registration, takeoff entryways, and different administrations inside Terminal A. LOT Polish Newark Terminal offers a scope of conveniences and offices to guarantee a smooth and lovely travel insight for travelers flying with LOT Polish Airlines.
https://airlinesbuddy.com/lot-polish-airlines-newark-liberty-airport-terminal-ewr/
Comment 4 jacsonmarg 2024-11-29 07:23:24 UTC
Jetblue Terminal LAS Vegas at McCarran International offers a modern, streamlined experience with ample amenities, including lounges, dining, and shopping. Serving both domestic and international flights, it ensures a smooth travel experience with clear signage and friendly staff. Conveniently located in Terminal 1, Jetblue LAS Vegas Terminal caters to all passenger needs

https://www.airportsnetworks.com/jetblue-airlines/jetblue-las-vegas-terminal/
https://www.airports-terminals.com/frontier-airlines/frontier-airlines-jfk-terminal/
https://www.airportterminal.co.uk/delta-airlines/what-terminal-is-delta-airlines-at-jfk/
https://www.reservierungsnummer.de/blog/condor-airlines-rollstuhlhilfe/
Comment 5 williambaker 2024-12-05 05:33:29 UTC
https://allairportsoffices.com/airlines-offices/turkish-airlines/turkish-airlines-houston-office-in-texas/
The Turkish Airlines Houston Office in Texas is a dedicated service center that caters to the travel needs of passengers in the region. Whether you’re looking to book flights, modify reservations, address baggage issues, or get the latest travel guidelines, the office provides personalized support to ensure a seamless experience. For more information or assistance, visit the Turkish Airlines Houston Office in Texas and connect with their expert team.
Comment 7 williambaker 2024-12-16 04:36:48 UTC
The Air France Manhattan Office is situated in one of the busiest and most accessible parts of New York City. Located in the vibrant heart of Manhattan, this office is easily reachable by subway, bus, or cab, making it an excellent resource for locals and travelers navigating the city. Its strategic location ensures you don’t have to go far to get personalized support for your travel plans.
https://allairportsoffices.com/airlines-offices/air-france/air-france-manhattan-office-in-new-york/
Comment 8 daisyden878 2024-12-16 09:01:19 UTC
Spirit Airlines at Dallas Fort Worth International Airport offers travelers a budget-friendly yet efficient way to explore domestic and international destinations. By understanding the terminal layout, services, and policies, passengers can enjoy a stress-free journey. Whether you’re a seasoned traveler or flying Spirit Airlines for the first time, Terminal E at DFW is well-equipped to meet your travel needs. So, pack your bags, plan ahead, and get ready for an unforgettable travel experience with Spirit Airlines!
https://airportsterminalhub.com/airlines/spirit-airlines/spirit-airlines-dallas-fort-worth-international-airport-dfw-terminal/
Comment 9 Joseph Haydn 2024-12-17 08:19:51 UTC
Flying Delta from Phoenix Sky Harbor? Head to Terminal 3! Modern, spacious, and full of dining and shopping options, Terminal 3 makes your pre-flight experience smooth and enjoyable. Delta's efficient check-ins and friendly service ensure a stress-free start to your trip. Travel smarter with Delta at Sky Harbor!
https://flightsterminal.airlinesassistantdeals.com/delta-airlines/delta-airlines-phx-terminal-phoenix-sky-harbour-airport/