Git not found when starting as service

Hi,

I've installed Node-Red v2.0.3 on a VM in Oracle Cloud und manually Installed Git V2.x as described here ORACLE-BASE - Git 2.x Installation on Linux

When starting NR manually at bash everything is finde, the projects extension is working:

[opc@node-red ~]$ node-red
27 Jul 06:34:45 - [info] 

Willkommen bei Node-RED!
===================

27 Jul 06:34:45 - [info] Node-RED Version: v2.0.3
27 Jul 06:34:45 - [info] Node.js  Version: v14.17.2
27 Jul 06:34:45 - [info] Linux 5.4.17-2102.202.5.el7uek.aarch64 arm64 LE
27 Jul 06:34:45 - [info] Paletten-Nodes werden geladen
node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated.
In the future, you will have to enable it yourself.
See https://github.com/yagop/node-telegram-bot-api/issues/319. internal/modules/cjs/loader.js:1085:14
27 Jul 06:34:46 - [info] Einstellungsdatei: /home/opc/.node-red/settings.js
27 Jul 06:34:46 - [info] Kontextspeicher: default [module=memory]
27 Jul 06:34:46 - [info] Benutzerverzeichnis: /home/opc/.node-red
27 Jul 06:34:46 - [info] Projektverzeichnis: /home/opc/.node-red/projects
27 Jul 06:34:46 - [info] Server wird jetzt auf http://127.0.0.1:1880/ ausgeführt
27 Jul 06:34:46 - [info] Aktives Projekt: wxbot
27 Jul 06:34:46 - [info] Flow-Datei: /home/opc/.node-red/projects/wxbot/flow.json
27 Jul 06:34:46 - [info] Flows werden gestartet
27 Jul 06:34:46 - [info] Flows sind gestartet

but when starting the nodered .service the project extension is deactivated because git is not found

[opc@node-red ~]$ node-red-start

Start Node-RED
 
Once Node-RED has started, point a browser at http://10.0.0.122:1880
On Pi Node-RED works better with the Firefox or Chrome browser
 
Use   node-red-stop                          to stop Node-RED
Use   node-red-start                         to start Node-RED again
Use   node-red-log                           to view the recent log output
Use   sudo systemctl enable nodered.service  to autostart Node-RED at every boot
Use   sudo systemctl disable nodered.service to disable autostart on boot
 
To find more nodes and example flows - go to http://flows.nodered.org
 
Starting as a systemd service.
Started Node-RED graphical event wiring tool.
27 Jul 06:37:53 - [info]
Welcome to Node-RED
===================
27 Jul 06:37:53 - [info] Node-RED version: v2.0.3
27 Jul 06:37:53 - [info] Node.js  version: v14.17.2
27 Jul 06:37:53 - [info] Linux 5.4.17-2102.202.5.el7uek.aarch64 arm64 LE
27 Jul 06:37:53 - [info] Loading palette nodes
Tue, 27 Jul 2021 06:37:54 GMT node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated.
In the future, you will have to enable it yourself.
See https://github.com/yagop/node-telegram-bot-api/issues/319. at internal/modules/cjs/loader.js:1085:14
27 Jul 06:37:54 - [info] Settings file  : /home/opc/.node-red/settings.js
27 Jul 06:37:54 - [info] Context store  : 'default' [module=memory]
27 Jul 06:37:54 - [info] User directory : /home/opc/.node-red
27 Jul 06:37:54 - [warn] Projects disabled : git command not found
27 Jul 06:37:54 - [info] Flows file     : /home/opc/.node-red/flows.json
27 Jul 06:37:54 - [info] Creating new flow file
27 Jul 06:37:54 - [warn]
---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------
27 Jul 06:37:54 - [info] Server now running at http://127.0.0.1:1880/
27 Jul 06:37:54 - [info] Starting flows
27 Jul 06:37:54 - [info] Started flows

git v2.2.2 installed and working from the bash.

pls help I am not very skilled in linux...

Thanks!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.