Daily.sh fail

HI,

I’m having trouble with running the daily.sh script which keep failing.

Here’s what it outputs :
linuxadmin@srvapp30:/opt/librenms$ ./daily.sh
WARNING: You should run this script as librenms
fatal: detected dubious ownership in repository at ‘/opt/librenms’
To add an exception for this directory, call:

    git config --global --add safe.directory /opt/librenms

fatal: detected dubious ownership in repository at ‘/opt/librenms’
To add an exception for this directory, call:

    git config --global --add safe.directory /opt/librenms

fatal: detected dubious ownership in repository at ‘/opt/librenms’
To add an exception for this directory, call:

    git config --global --add safe.directory /opt/librenms

fatal: detected dubious ownership in repository at ‘/opt/librenms’
To add an exception for this directory, call:

    git config --global --add safe.directory /opt/librenms

Updating to latest codebase FAIL
fatal: detected dubious ownership in repository at ‘/opt/librenms’
To add an exception for this directory, call:

    git config --global --add safe.directory /opt/librenms

fatal: detected dubious ownership in repository at ‘/opt/librenms’
To add an exception for this directory, call:

    git config --global --add safe.directory /opt/librenms

WARNING: You should run this script as librenms
fatal: detected dubious ownership in repository at ‘/opt/librenms’
To add an exception for this directory, call:

    git config --global --add safe.directory /opt/librenms

./composer.json has been updated
Running composer update socialiteproviders/microsoft

LibreNMS\ComposerHelper::preUpdate
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
67 packages you are using are looking for funding.
Use the composer fund command to find out more!
Illuminate\Foundation\ComposerScripts::postUpdate
Found 13 security vulnerability advisories affecting 5 packages.
Run composer audit for a full list of advisories.
Updating Composer packages FAIL
LibreNMS\ComposerHelper::preInstall
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Generating optimized autoload files
Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
Discovered Package: fruitcake/laravel-cors
Discovered Package: genealabs/laravel-caffeine
Discovered Package: laravel-notification-channels/webpush
Discovered Package: laravel/socialite
Discovered Package: laravel/tinker
Discovered Package: laravel/ui
Discovered Package: librenms/laravel-vue-i18n-generator
Discovered Package: mews/purifier
Discovered Package: nesbot/carbon
Discovered Package: php-flasher/flasher-laravel
Discovered Package: socialiteproviders/manager
Discovered Package: tightenco/ziggy
Package manifest generated successfully.
67 packages you are using are looking for funding.
Use the composer fund command to find out more!
LibreNMS\ComposerHelper::postInstall
Illuminate\Foundation\ComposerScripts::postInstall
@php artisan vue-i18n:generate --multi-locales --format=umd

In Generator.php line 172:

file_put_contents(/opt/librenms/html/js/lang/it.js): failed to open stream:
Permission denied

Script @php artisan vue-i18n:generate --multi-locales --format=umd handling the post-install-cmd event returned with error code 1
fatal: detected dubious ownership in repository at ‘/opt/librenms’
To add an exception for this directory, call:

    git config --global --add safe.directory /opt/librenms

Updated from unset to OK
Updating SQL-Schema OK
Updating submodules FAIL
WARNING: You should run this script as librenms
fatal: detected dubious ownership in repository at ‘/opt/librenms’
To add an exception for this directory, call:

    git config --global --add safe.directory /opt/librenms

fatal: detected dubious ownership in repository at ‘/opt/librenms’
To add an exception for this directory, call:

    git config --global --add safe.directory /opt/librenms

Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
Caching Mac OUI data OK

Here’s my validate.php:

linuxadmin@srvapp30:/opt/librenms$ ./validate.php

Component Version
LibreNMS 22.8.0
DB Schema 2022_07_03_1947_add_app_data (244)
PHP 7.4.20
Python 3.6.9
Database MariaDB 10.5.10-MariaDB-1:10.5.10+maria~bionic
RRDTool 1.7.0
SNMP 5.7.3
====================================

[OK] Composer Version: 2.4.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK]
[OK] Database schema correct
[OK] MySQl and PHP time match
[WARN] PHP version 8.1 is the minimum supported version as of September, 2022. We recommend you update PHP to a supported version (8.1 suggested) to continue to receive updates. If you do not update PHP, LibreNMS will continue to function but stop receiving bug fixes and updates.
[OK] Active pollers found
[OK] Dispatcher Service is enabled
[OK] Locks are functional
[OK] Python wrapper cron entry is not present
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached
Not a git repository
To compare two paths outside a working tree:
usage: git diff [–no-index]
[FAIL] Failed to fetch version from local git: fatal: detected dubious ownership in repository at ‘/opt/librenms’
To add an exception for this directory, call:

    git config --global --add safe.directory /opt/librenms

[WARN] Your local git branch is not master, this will prevent automatic updates.
[FIX]:
You can switch back to master with git checkout master
[FAIL] You need to run this script as ‘librenms’ or root

Thanks for the help