@lazylion_ca
@lemmy.caA Taco Bell finally opened up where I live, and we are going to go try it tonight. What should I try and what should I avoid?
Of course I know I should try another restaurant and avoid Taco Bell, that's too obvious, but what is life without a little Adventure.
Not necessarily your favorite, but something you recently discovered or rediscovered.
Hi all
I have an Alpine container on Proxmox that we use as a Zabbix Proxy. On it there is a PHP script (no web server). When I ssh in with my normal user account and run the PHP from cli, it works great. When I su to user root (for testing) it works fine. But when I su to user zabbix, I get:
Class "PhpOffice\PhpSpreadsheet\Spreadsheet" not found
This a problem because it will be Zabbix that triggers the script once a day. I get the same error whether zabbix triggers the script, or I trigger it from cli.
I have other ash, php, and python scripts on the proxy that run just fine when Zabbix triggers them.
The require statements at the top of the script don't throw an error:
require $folder . "/phpSpreadsheet/vendor/autoload.php";
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
The error happens farther down when it creates a new spreadsheet in memory: $spreadsheet = new Spreadsheet();
I had to use Composer to install the phpSpreadsheet library. I was getting a bunch of file & folder permissions errors but I'm certain I've covered that as this is not a file permissions error. I even reran composer as the zabbix user to check for permissions.
From googling I've found that the zabbix user is a "service account" as opposed to a user account. I used "su zabbix -s /bin/ash" get a cli going so I could test running the script directly. Running env shows that the Zabbix user's HOME directory is "/dev/null" Beyond that I'm not sure what differences there are between the accounts, or what would prevent a php class from loading.
Any help is welcome. Thanks.
I got a breadmaker as a present many years ago. Hasn't seen a lot of use but this week, it quit. We determined that the mixer paddle is no longer turning. I'm a reasonably handy guy with tools. I figure I'll take a stab at fixing it.
First problem, has the the belt slipped or broken. Should be easy, pop a bunch of screws out and see. Oh, two of those screws are tamper proof and I don't have the right combination of screw head and thin wall driver to get in there. No prob, off to the hardware store. $20 for the tool? No biggie.
Next up, replace the belt. Check Amazon, a new belt is $30 in Canadiano$. Ok.
Third, the spindle in the bread pan is seized. Pry the c-clip off the bottom, remove the thinger and a doohickey, clean some gunk off. Still stiff. How do I get the whole spindle out to clean it. Do I bash it with a hammer? If I wreck it... Check Amazon, hmm a replacement pan is $40.
Hmmm
20 + 30 + 40 = 90
90$ ? I can get a new machine for that. As much as I hate wasting things, and like fixing things, I'm not sure spending another $70 on a 12 year old machine is worth it, especially since we don't use it a lot.
Free to read all you want in-house, but if you want to take some home, you gotta pony up for that card.
Fortunately the card was usually cheap.