Unable to Install Helpdesk

i am unable to install helpdesk on ubuntu 22

login as: frappe
frappe@152.16.42.15’s password:
Welcome to Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-92-generic x86_64)

System information as of Sat Feb 3 07:25:32 AM UTC 2024

System load: 0.25244140625 Users logged in: 1
Usage of /: 56.5% of 23.45GB IPv4 address for docker0: 172.17.0.1
Memory usage: 34% IPv4 address for enp0s3: 10.0.2.15
Swap usage: 0% IPv4 address for enp0s8: 152.16.42.15
Processes: 138

Expanded Security Maintenance for Applications is not enabled.

4 updates can be applied immediately.
To see these additional updates run: apt list --upgradable

2 additional security updates can be applied with ESM Apps.
Learn more about enabling ESM Apps service at Ubuntu Expanded Security Maintenance | Security | Ubuntu

Last login: Sat Feb 3 07:20:30 2024

frappe@mohtashim:~$
frappe@mohtashim:~$ ls
frappe-bench
frappe@mohtashim:~$ cd frappe-bench/
frappe@mohtashim:~/frappe-bench$ ls
apps config frappe_docker logs Procfile
archived env lms patches.txt sites
frappe@mohtashim:~/frappe-bench$ cd apps/
frappe@mohtashim:~/frappe-bench/apps$ ls
agriculture custom_app erpnext frappe healthcare helpdesk hrms payments
frappe@mohtashim:~/frappe-bench/apps$ cd …
frappe@mohtashim:~/frappe-bench$ cd sites/
frappe@mohtashim:~/frappe-bench/sites$ ls
apps.json assets helpdesk.test node_modules yarn.lock
apps.txt common_site_config.json lms.test test.com
frappe@mohtashim:~/frappe-bench/sites$ bench --site helpdesk uninstall-app helpdesk.test --dry-run
Site helpdesk does not exist!
frappe@mohtashim:~/frappe-bench/sites$ bench drop-site helpdesk.test Taking backup of helpdesk.test
self=$$; ( mysqldump --single-transaction --quick --lock-tables=false -u _011f7aeb9ad26be4 -p********** _011f7aeb9ad26be4 -h 127.0.0.1 -P 3306 || kill $self ) | /usr/bin/gzip >> ./helpdesk.test/private/backups/20240203_125719-helpdesk_test-database.sql.gz

Backup Summary for helpdesk.test at 2024-02-03 12:57:20.525365
Config : ./helpdesk.test/private/backups/20240203_125719-helpdesk_test-site_config_backup.json 94.0B
Database: ./helpdesk.test/private/backups/20240203_125719-helpdesk_test-database.sql.gz 275.4KiB
Public : ./helpdesk.test/private/backups/20240203_125719-helpdesk_test-files.tar 10.0KiB
Private : ./helpdesk.test/private/backups/20240203_125719-helpdesk_test-private-files.tar 10.0KiB
Dropping site database and user
MySQL root password:
Moving site to archive under /home/frappe/frappe-bench/archived/sites
frappe@mohtashim:~/frappe-bench/sites$ ls
apps.json assets lms.test test.com
apps.txt common_site_config.json node_modules yarn.lock
frappe@mohtashim:~/frappe-bench/sites$ cd …
frappe@mohtashim:~/frappe-bench$ ls
apps config frappe_docker logs Procfile
archived env lms patches.txt sites
frappe@mohtashim:~/frappe-bench$ cd apps/
frappe@mohtashim:~/frappe-bench/apps$ ls
agriculture custom_app erpnext frappe healthcare helpdesk hrms payments
frappe@mohtashim:~/frappe-bench/apps$ bench uninstall-app helpdesk
Please specify --site sitename
frappe@mohtashim:~/frappe-bench/apps$ bench --site helpdesk.test uninstall-app helpdesk
Site helpdesk.test does not exist!
frappe@mohtashim:~/frappe-bench/apps$ ls
agriculture custom_app erpnext frappe healthcare helpdesk hrms payments
frappe@mohtashim:~/frappe-bench/apps$ bench uninstall-app --dry-run helpdesk Please specify --site sitename
frappe@mohtashim:~/frappe-bench/apps$ ls
agriculture custom_app erpnext frappe healthcare helpdesk hrms payments
frappe@mohtashim:~/frappe-bench/apps$
frappe@mohtashim:~/frappe-bench/apps$ ls
agriculture custom_app erpnext frappe healthcare helpdesk hrms payments
frappe@mohtashim:~/frappe-bench/apps$ bench start
07:31:43 system | redis_cache.1 started (pid=2633)
07:31:43 system | socketio.1 started (pid=2638)
07:31:43 system | web.1 started (pid=2641)
07:31:43 system | redis_queue.1 started (pid=2646)
07:31:43 system | schedule.1 started (pid=2647)
07:31:43 system | watch.1 started (pid=2648)
07:31:43 system | worker.1 started (pid=2653)
07:31:43 redis_cache.1 | 2636:C 03 Feb 2024 07:31:43.182 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
07:31:43 redis_cache.1 | 2636:C 03 Feb 2024 07:31:43.183 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=2636, just started
07:31:43 redis_cache.1 | 2636:C 03 Feb 2024 07:31:43.183 # Configuration loaded
07:31:43 redis_cache.1 | 2636:M 03 Feb 2024 07:31:43.194 * Increased maximum number of open files to 10032 (it was originally set to 1024).
07:31:43 redis_cache.1 | 2636:M 03 Feb 2024 07:31:43.197 # Could not create server TCP listening socket 127.0.0.1:13000: bind: Address already in use
07:31:43 system | redis_cache.1 stopped (rc=1)
07:31:43 system | sending SIGTERM to redis_queue.1 (pid 2646)
07:31:43 system | sending SIGTERM to web.1 (pid 2641)
07:31:43 system | sending SIGTERM to socketio.1 (pid 2638)
07:31:43 system | sending SIGTERM to watch.1 (pid 2648)
07:31:43 system | sending SIGTERM to schedule.1 (pid 2647)
07:31:43 system | sending SIGTERM to worker.1 (pid 2653)
07:31:43 system | worker.1 stopped (rc=-15)
07:31:43 system | socketio.1 stopped (rc=-15)
07:31:43 system | web.1 stopped (rc=-15)
07:31:43 system | redis_queue.1 stopped (rc=-15)
07:31:43 system | schedule.1 stopped (rc=-15)
07:31:43 system | watch.1 stopped (rc=-15)
frappe@mohtashim:~/frappe-bench/apps$ bench new-site helpdesk.test
MySQL root password:

Installing frappe…
Updating DocTypes for frappe : [====================] 100%
Updating country info : [====================] 100%
Set Administrator password:
Re-enter Administrator password:
Updating Dashboard for frappe
helpdesk.test: SystemSettings.enable_scheduler is UNSET
*** Scheduler is disabled ***
frappe@mohtashim:~/frappe-bench/apps$ bench --site helpdesk.test install-app helpdesk

Installing helpdesk…
Updating DocTypes for helpdesk : [========== ] 53%An error occurred while installing helpdesk: Module import failed for HD Ticket, the DocType you’re trying to open might be deleted.
Error: No module named ‘redis.commands’
Traceback (most recent call last):
File “apps/frappe/frappe/modules/utils.py”, line 245, in load_doctype_module
doctype_python_modules[key] = frappe.get_module(module_name)
File “apps/frappe/frappe/init.py”, line 1340, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1006, in _find_and_load_unlocked
File “”, line 688, in _load_unlocked
File “”, line 883, in exec_module
File “”, line 241, in _call_with_frames_removed
File “apps/helpdesk/helpdesk/helpdesk/doctype/hd_ticket/hd_ticket.py”, line 24, in
from helpdesk.search import HelpdeskSearch
File “apps/helpdesk/helpdesk/search.py”, line 11, in
from redis.commands.search.field import TagField, TextField
ModuleNotFoundError: No module named ‘redis.commands’

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “apps/frappe/frappe/commands/site.py”, line 415, in install_app
_install_app(app, verbose=context.verbose, force=force)
File “apps/frappe/frappe/installer.py”, line 297, in install_app
sync_for(name, force=force, reset_permissions=True)
File “apps/frappe/frappe/model/sync.py”, line 109, in sync_for
import_file_by_path(
File “apps/frappe/frappe/modules/import_file.py”, line 145, in import_file_by_path
import_doc(
File “apps/frappe/frappe/modules/import_file.py”, line 242, in import_doc
doc.insert()
File “apps/frappe/frappe/model/document.py”, line 289, in insert
self.run_post_save_methods()
File “apps/frappe/frappe/model/document.py”, line 1088, in run_post_save_methods
self.run_method(“on_update”)
File “apps/frappe/frappe/model/document.py”, line 915, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1277, in composer
return composed(self, method, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1259, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “apps/frappe/frappe/model/document.py”, line 912, in fn
return method_object(*args, **kwargs)
File “apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 407, in on_update
self.run_module_method(“on_doctype_update”)
File “apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 505, in run_module_method
module = load_doctype_module(self.name, self.module)
File “apps/frappe/frappe/modules/utils.py”, line 249, in load_doctype_module
raise ImportError(msg) from e
ImportError: Module import failed for HD Ticket, the DocType you’re trying to open might be deleted.
Error: No module named ‘redis.commands’

frappe@mohtashim:~/frappe-bench/apps$

Hi @Mohtashim_Shoaib,

Check Redis Installation: Ensure that Redis is installed and running. You may need to install or start Redis depending on your system. You can check the Redis status using:

redis-cli ping

If redis not installed then please install it.

Thank You!

frappe@mohtashim:~/frappe-bench/apps$ redis-cli ping
Could not connect to Redis at 127.0.0.1:6379: Connection refused
frappe@mohtashim:~/frappe-bench/apps$

Hi @Mohtashim_Shoaib,

restart the Redis server

sudo service redis-server start

Thank You!

for installation and redis i run somg commands but thats not word kindly check and now erp is not opening

login as: frappe
frappe@152.16.42.15’s password:
Welcome to Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-92-generic x86_64)

System information as of Sat Feb 3 07:25:32 AM UTC 2024

System load: 0.25244140625 Users logged in: 1
Usage of /: 56.5% of 23.45GB IPv4 address for docker0: 172.17.0.1
Memory usage: 34% IPv4 address for enp0s3: 10.0.2.15
Swap usage: 0% IPv4 address for enp0s8: 152.16.42.15
Processes: 138

Expanded Security Maintenance for Applications is not enabled.

4 updates can be applied immediately.
To see these additional updates run: apt list --upgradable

2 additional security updates can be applied with ESM Apps.
Learn more about enabling ESM Apps service at Ubuntu Expanded Security Maintenance | Security | Ubuntu

Last login: Sat Feb 3 07:20:30 2024

frappe@mohtashim:~$ cd frappe-bench/
frappe@mohtashim:~/frappe-bench$ ls
apps config frappe_docker logs Procfile
archived env lms patches.txt sites
frappe@mohtashim:~/frappe-bench$ cd apps/
frappe@mohtashim:~/frappe-bench/apps$ ls
agriculture custom_app erpnext frappe healthcare helpdesk hrms payments
frappe@mohtashim:~/frappe-bench/apps$ cd …
frappe@mohtashim:~/frappe-bench$ cd sites/
frappe@mohtashim:~/frappe-bench/sites$ ls
apps.json assets helpdesk.test node_modules yarn.lock
apps.txt common_site_config.json lms.test test.com
frappe@mohtashim:~/frappe-bench/sites$ bench --site helpdesk uninstall-app helpd esk.test --dry-run
Site helpdesk does not exist!
frappe@mohtashim:~/frappe-bench/sites$ bench drop-site helpdesk.test Taking backup of helpdesk.test
self=$$; ( mysqldump --single-transaction --quick --lock-tables=false -u _011f7 aeb9ad26be4 -p********** _011f7aeb9ad26be4 -h 127.0.0.1 -P 3306 || kill $self ) | /usr/bin/gzip >> ./helpdesk.test/private/backups/20240203_125719-helpdesk_t est-database.sql.gz

Backup Summary for helpdesk.test at 2024-02-03 12:57:20.525365
Config : ./helpdesk.test/private/backups/20240203_125719-helpdesk_test-site_con fig_backup.json 94.0B
Database: ./helpdesk.test/private/backups/20240203_125719-helpdesk_test-database .sql.gz 275.4KiB
Public : ./helpdesk.test/private/backups/20240203_125719-helpdesk_test-files.ta r 10.0KiB
Private : ./helpdesk.test/private/backups/20240203_125719-helpdesk_test-private- files.tar 10.0KiB
Dropping site database and user
MySQL root password:
Moving site to archive under /home/frappe/frappe-bench/archived/sites
frappe@mohtashim:~/frappe-bench/sites$ ls
apps.json assets lms.test test.com
apps.txt common_site_config.json node_modules yarn.lock
frappe@mohtashim:~/frappe-bench/sites$ cd …
frappe@mohtashim:~/frappe-bench$ ls
apps config frappe_docker logs Procfile
archived env lms patches.txt sites
frappe@mohtashim:~/frappe-bench$ cd apps/
frappe@mohtashim:~/frappe-bench/apps$ ls
agriculture custom_app erpnext frappe healthcare helpdesk hrms payments
frappe@mohtashim:~/frappe-bench/apps$ bench uninstall-app helpdesk
Please specify --site sitename
frappe@mohtashim:~/frappe-bench/apps$ bench --site helpdesk.test uninstall-app h elpdesk
Site helpdesk.test does not exist!
frappe@mohtashim:~/frappe-bench/apps$ ls
agriculture custom_app erpnext frappe healthcare helpdesk hrms payments
frappe@mohtashim:~/frappe-bench/apps$ bench uninstall-app --dry-run helpdesk Please specify --site sitename
frappe@mohtashim:~/frappe-bench/apps$ bench start
07:31:43 system | redis_cache.1 started (pid=2633)
07:31:43 system | socketio.1 started (pid=2638)
07:31:43 system | web.1 started (pid=2641)
07:31:43 system | redis_queue.1 started (pid=2646)
07:31:43 system | schedule.1 started (pid=2647)
07:31:43 system | watch.1 started (pid=2648)
07:31:43 system | worker.1 started (pid=2653)
07:31:43 redis_cache.1 | 2636:C 03 Feb 2024 07:31:43.182 # oO0OoO0OoO0Oo Redis i s starting oO0OoO0OoO0Oo
07:31:43 redis_cache.1 | 2636:C 03 Feb 2024 07:31:43.183 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=2636, just started
07:31:43 redis_cache.1 | 2636:C 03 Feb 2024 07:31:43.183 # Configuration loaded
07:31:43 redis_cache.1 | 2636:M 03 Feb 2024 07:31:43.194 * Increased maximum num ber of open files to 10032 (it was originally set to 1024).
07:31:43 redis_cache.1 | 2636:M 03 Feb 2024 07:31:43.197 # Could not create serv er TCP listening socket 127.0.0.1:13000: bind: Address already in use
07:31:43 system | redis_cache.1 stopped (rc=1)
07:31:43 system | sending SIGTERM to redis_queue.1 (pid 2646)
07:31:43 system | sending SIGTERM to web.1 (pid 2641)
07:31:43 system | sending SIGTERM to socketio.1 (pid 2638)
07:31:43 system | sending SIGTERM to watch.1 (pid 2648)
07:31:43 system | sending SIGTERM to schedule.1 (pid 2647)
07:31:43 system | sending SIGTERM to worker.1 (pid 2653)
07:31:43 system | worker.1 stopped (rc=-15)
07:31:43 system | socketio.1 stopped (rc=-15)
07:31:43 system | web.1 stopped (rc=-15)
07:31:43 system | redis_queue.1 stopped (rc=-15)
07:31:43 system | schedule.1 stopped (rc=-15)
07:31:43 system | watch.1 stopped (rc=-15)
frappe@mohtashim:~/frappe-bench/apps$ bench new-site helpdesk.test
MySQL root password:

Installing frappe…
Updating DocTypes for frappe : [====================] 100%
Updating country info : [====================] 100%
Set Administrator password:
Re-enter Administrator password:
Updating Dashboard for frappe
helpdesk.test: SystemSettings.enable_scheduler is UNSET
*** Scheduler is disabled ***
frappe@mohtashim:~/frappe-bench/apps$ bench --site helpdesk.test install-app helpdesk

Installing helpdesk…
Updating DocTypes for helpdesk : [========== ] 53%An error occurre d while installing helpdesk: Module import failed for HD Ticket, the DocType you 're trying to open might be deleted.
Error: No module named ‘redis.commands’
Traceback (most recent call last):
File “apps/frappe/frappe/modules/utils.py”, line 245, in load_doctype_module
doctype_python_modules[key] = frappe.get_module(module_name)
File “apps/frappe/frappe/init.py”, line 1340, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1006, in _find_and_load_unlocked
File “”, line 688, in _load_unlocked
File “”, line 883, in exec_module
File “”, line 241, in _call_with_frames_removed
File “apps/helpdesk/helpdesk/helpdesk/doctype/hd_ticket/hd_ticket.py”, line 24 , in
from helpdesk.search import HelpdeskSearch
File “apps/helpdesk/helpdesk/search.py”, line 11, in
from redis.commands.search.field import TagField, TextField
ModuleNotFoundError: No module named ‘redis.commands’

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “apps/frappe/frappe/commands/site.py”, line 415, in install_app
install_app(app, verbose=context.verbose, force=force)
File “apps/frappe/frappe/installer.py”, line 297, in install_app
sync_for(name, force=force, reset_permissions=True)
File “apps/frappe/frappe/model/sync.py”, line 109, in sync_for
import_file_by_path(
File “apps/frappe/frappe/modules/import_file.py”, line 145, in import_file_by
path
import_doc(
File “apps/frappe/frappe/modules/import_file.py”, line 242, in import_doc
doc.insert()
File “apps/frappe/frappe/model/document.py”, line 289, in insert
self.run_post_save_methods()
File “apps/frappe/frappe/model/document.py”, line 1088, in run_post_save_metho ds
self.run_method(“on_update”)
File “apps/frappe/frappe/model/document.py”, line 915, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1277, in composer
return composed(self, method, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1259, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “apps/frappe/frappe/model/document.py”, line 912, in fn
return method_object(*args, **kwargs)
File “apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 407, in on_upd ate
self.run_module_method(“on_doctype_update”)
File “apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 505, in run_mo dule_method
module = load_doctype_module(self.name, self.module)
File “apps/frappe/frappe/modules/utils.py”, line 249, in load_doctype_module
raise ImportError(msg) from e
ImportError: Module import failed for HD Ticket, the DocType you’re trying to op en might be deleted.
Error: No module named ‘redis.commands’

frappe@mohtashim:~/frappe-bench/apps$ ^C
frappe@mohtashim:~/frappe-bench/apps$
frappe@mohtashim:~/frappe-bench/apps$ redis-cli ping
Could not connect to Redis at 127.0.0.1:6379: Connection refused
frappe@mohtashim:~/frappe-bench/apps$ ^C
frappe@mohtashim:~/frappe-bench/apps$ pip install redis
Defaulting to user installation because normal site-packages is not writeable
Collecting redis
Downloading redis-5.0.1-py3-none-any.whl (250 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 250.3/250.3 KB 671.9 kB/s eta 0:00:00
Collecting async-timeout>=4.0.2
Downloading async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Installing collected packages: async-timeout, redis
Successfully installed async-timeout-4.0.3 redis-5.0.1
frappe@mohtashim:~/frappe-bench/apps$ sudo apt install redis-server
[sudo] password for frappe:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
redis-server is already the newest version (5:6.0.16-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
frappe@mohtashim:~/frappe-bench/apps$ sudo apt-get install python3.10-venv
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
python3.10-venv is already the newest version (3.10.12-1~22.04.3).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
frappe@mohtashim:~/frappe-bench/apps$ bench start
08:09:58 system | redis_cache.1 started (pid=3500)
08:09:58 redis_cache.1 | 3503:C 03 Feb 2024 08:09:58.291 # oO0OoO0OoO0Oo Redis i s starting oO0OoO0OoO0Oo
08:09:58 redis_cache.1 | 3503:C 03 Feb 2024 08:09:58.296 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=3503, just started
08:09:58 redis_cache.1 | 3503:C 03 Feb 2024 08:09:58.296 # Configuration loaded
08:09:58 redis_cache.1 | 3503:M 03 Feb 2024 08:09:58.298 * Increased maximum num ber of open files to 10032 (it was originally set to 1024).
08:09:58 redis_cache.1 | 3503:M 03 Feb 2024 08:09:58.299 # Could not create serv er TCP listening socket 127.0.0.1:13000: bind: Address already in use
08:09:58 system | redis_cache.1 stopped (rc=1)
08:09:58 system | web.1 started (pid=3506)
08:09:58 system | watch.1 started (pid=3509)
08:09:58 system | redis_queue.1 started (pid=3507)
08:09:58 system | worker.1 started (pid=3511)
08:09:58 system | socketio.1 started (pid=3510)
08:09:58 system | schedule.1 started (pid=3517)
08:09:58 system | sending SIGTERM to redis_queue.1 (pid 3507)
08:09:58 system | sending SIGTERM to web.1 (pid 3506)
08:09:58 system | sending SIGTERM to socketio.1 (pid 3510)
08:09:58 system | sending SIGTERM to watch.1 (pid 3509)
08:09:58 system | sending SIGTERM to schedule.1 (pid 3517)
08:09:58 system | sending SIGTERM to worker.1 (pid 3511)
08:09:58 system | redis_queue.1 stopped (rc=-15)
08:09:58 system | socketio.1 stopped (rc=-15)
08:09:58 system | web.1 stopped (rc=-15)
08:09:58 system | watch.1 stopped (rc=-15)
08:09:58 system | schedule.1 stopped (rc=-15)
08:09:58 system | worker.1 stopped (rc=-15)
frappe@mohtashim:~/frappe-bench/apps$ redis-cli ping
Could not connect to Redis at 127.0.0.1:6379: Connection refused
frappe@mohtashim:~/frappe-bench/apps$ redis-cli ping
Could not connect to Redis at 127.0.0.1:6379: Connection refused
frappe@mohtashim:~/frappe-bench/apps$ sudo supervisorctl stop all
frappe-bench-redis:frappe-bench-redis-cache: stopped
frappe-bench-web:frappe-bench-node-socketio: stopped
frappe-bench-workers:frappe-bench-frappe-schedule: stopped
frappe-bench-workers:frappe-bench-frappe-short-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-long-worker-0: stopped
frappe-bench-web:frappe-bench-frappe-web: stopped
frappe@mohtashim:~/frappe-bench/apps$ redis-cli ping
Could not connect to Redis at 127.0.0.1:6379: Connection refused
frappe@mohtashim:~/frappe-bench/apps$ redis-cli ping
Could not connect to Redis at 127.0.0.1:6379: Connection refused
frappe@mohtashim:~/frappe-bench/apps$ redis-cli shutdown
Could not connect to Redis at 127.0.0.1:6379: Connection refused
frappe@mohtashim:~/frappe-bench/apps$ redis-cli ping
Could not connect to Redis at 127.0.0.1:6379: Connection refused
frappe@mohtashim:~/frappe-bench/apps$ ^[[200~sudo supervisorctl start all~
sudo: command not found
frappe@mohtashim:~/frappe-bench/apps$ sudo supervisorctl start all
frappe-bench-redis:frappe-bench-redis-queue: ERROR (spawn error)
frappe-bench-redis:frappe-bench-redis-cache: started
frappe-bench-web:frappe-bench-frappe-web: started
frappe-bench-web:frappe-bench-node-socketio: started
frappe-bench-workers:frappe-bench-frappe-schedule: started
frappe-bench-workers:frappe-bench-frappe-short-worker-0: started
frappe-bench-workers:frappe-bench-frappe-long-worker-0: started
frappe@mohtashim:~/frappe-bench/apps$ ls -al logs | grep redis
ls: cannot access ‘logs’: No such file or directory
frappe@mohtashim:~/frappe-bench/apps$ cd …
frappe@mohtashim:~/frappe-bench$ ls -al logs | grep redis
-rw-r–r-- 1 root root 0 Jan 26 08:43 redis-cache.error.log
-rw-r–r-- 1 root root 15625 Feb 3 08:12 redis-cache.log
-rw-r–r-- 1 root root 0 Jan 26 08:43 redis-queue.error.log
-rw-r–r-- 1 root root 15233016 Feb 3 08:13 redis-queue.log
frappe@mohtashim:~/frappe-bench$ redis-cli ping
Could not connect to Redis at 127.0.0.1:6379: Connection refused
frappe@mohtashim:~/frappe-bench$ ls -al logs | grep redis
-rw-r–r-- 1 root root 0 Jan 26 08:43 redis-cache.error.log
-rw-r–r-- 1 root root 15625 Feb 3 08:12 redis-cache.log
-rw-r–r-- 1 root root 0 Jan 26 08:43 redis-queue.error.log
-rw-r–r-- 1 root root 15233508 Feb 3 08:13 redis-queue.log
frappe@mohtashim:~/frappe-bench$ less /var/log/nginx/error.log
/var/log/nginx/error.log: Permission denied
frappe@mohtashim:~/frappe-bench$ sudo supervisorctl start all
frappe-bench-redis:frappe-bench-redis-queue: ERROR (spawn error)
frappe@mohtashim:~/frappe-bench$ sudo service nginx stop
frappe@mohtashim:~/frappe-bench$ sudo bench setup requirements
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
Installing 8 applications…
Installing frappe
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e / home/frappe/frappe-bench/apps/frappe
ERROR: pip’s dependency resolver does not currently take into account all the pa ckages that are installed. This behaviour is the source of the following depende ncy conflicts.
virtualenv 20.25.0 requires filelock<4,>=3.12.2, but you have filelock 3.8.2 whi ch is incompatible.
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade cove rage~=6.5.0 Faker~=13.12.1 pyngrok~=5.0.5 unittest-xml-reporting~=3.0.4 watchdog ~=3.0.0 hypothesis~=6.68.2 freezegun~=1.2.2 responses==0.23.1
$ yarn install
yarn install v1.22.21
[1/5] Validating package.json…
error frappe-framework@: The engine “node” is incompatible with this module. Exp ected version “>=14”. Got “12.22.9”
error Found incompatible module.
info Visit yarn install | Yarn for documentation about this command.
ERROR: yarn install
subprocess.CalledProcessError: Command ‘yarn install’ returned non-zero exit sta tus 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
File “/usr/local/lib/python3.10/dist-packages/bench/cli.py”, line 132, in cli
bench_command()
File “/usr/local/lib/python3.10/dist-packages/bench/commands/setup.py”, line 2 30, in setup_requirements
bench.setup.requirements(apps=apps)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 105 , in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/bench.py”, line 464, in re quirements
app = App(path_to_app, bench=self.bench, to_clone=False).install(
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 126 , in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 249, in inst all
install_app(
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 732, in inst all_app
bench.run(yarn_install, cwd=app_path)
File “/usr/local/lib/python3.10/dist-packages/bench/bench.py”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/init.py”, line 1 69, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code , cmd)
bench.exceptions.CommandFailedError: yarn install

INFO: A newer version of bench is available: 5.21.0 → 5.21.3
frappe@mohtashim:~/frappe-bench$ bench start
08:41:28 system | redis_queue.1 started (pid=3832)
08:41:28 system | web.1 started (pid=3834)
08:41:28 system | redis_cache.1 started (pid=3829)
08:41:28 system | watch.1 started (pid=3842)
08:41:28 system | worker.1 started (pid=3843)
08:41:28 system | schedule.1 started (pid=3844)
08:41:28 system | socketio.1 started (pid=3845)
08:41:28 redis_queue.1 | 3841:C 03 Feb 2024 08:41:28.094 # oO0OoO0OoO0Oo Redis i s starting oO0OoO0OoO0Oo
08:41:28 redis_queue.1 | 3841:C 03 Feb 2024 08:41:28.095 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=3841, just started
08:41:28 redis_queue.1 | 3841:C 03 Feb 2024 08:41:28.095 # Configuration loaded
08:41:28 redis_queue.1 | 3841:M 03 Feb 2024 08:41:28.097 * Increased maximum num ber of open files to 10032 (it was originally set to 1024).
08:41:28 redis_queue.1 | 3841:M 03 Feb 2024 08:41:28.106 # Could not create serv er TCP listening socket 127.0.0.1:11000: bind: Address already in use
08:41:28 system | redis_queue.1 stopped (rc=1)
08:41:28 system | sending SIGTERM to redis_cache.1 (pid 3829)
08:41:28 system | sending SIGTERM to web.1 (pid 3834)
08:41:28 system | sending SIGTERM to socketio.1 (pid 3845)
08:41:28 system | sending SIGTERM to watch.1 (pid 3842)
08:41:28 system | sending SIGTERM to schedule.1 (pid 3844)
08:41:28 system | sending SIGTERM to worker.1 (pid 3843)
08:41:28 system | worker.1 stopped (rc=-15)
08:41:28 system | socketio.1 stopped (rc=-15)
08:41:28 system | redis_cache.1 stopped (rc=-15)
08:41:28 system | web.1 stopped (rc=-15)
08:41:28 system | watch.1 stopped (rc=-15)
08:41:28 system | schedule.1 stopped (rc=-15)
frappe@mohtashim:~/frappe-bench$ sudo supervisorctl stop all
sudo service nginx stop
sudo bench setup requirements
sudo bench setup socketio
sudo bench setup config
sudo bench setup redis
sudo bench setup supervisor
sudo bench setup procfile
bench start
frappe-bench-redis:frappe-bench-redis-cache: stopped
frappe-bench-web:frappe-bench-node-socketio: stopped
frappe-bench-workers:frappe-bench-frappe-schedule: stopped
frappe-bench-web:frappe-bench-frappe-web: stopped
frappe-bench-workers:frappe-bench-frappe-short-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-long-worker-0: stopped
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
Installing 8 applications…
Installing frappe
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e / home/frappe/frappe-bench/apps/frappe
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade cove rage~=6.5.0 Faker~=13.12.1 pyngrok~=5.0.5 unittest-xml-reporting~=3.0.4 watchdog ~=3.0.0 hypothesis~=6.68.2 freezegun~=1.2.2 responses==0.23.1
$ yarn install
yarn install v1.22.21
[1/5] Validating package.json…
error frappe-framework@: The engine “node” is incompatible with this module. Exp ected version “>=14”. Got “12.22.9”
error Found incompatible module.
info Visit yarn install | Yarn for documentation about this command.
ERROR: yarn install
subprocess.CalledProcessError: Command ‘yarn install’ returned non-zero exit sta tus 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
File “/usr/local/lib/python3.10/dist-packages/bench/cli.py”, line 132, in cli
bench_command()
File “/usr/local/lib/python3.10/dist-packages/bench/commands/setup.py”, line 2 30, in setup_requirements
bench.setup.requirements(apps=apps)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 105 , in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/bench.py”, line 464, in re quirements
app = App(path_to_app, bench=self.bench, to_clone=False).install(
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 126 , in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 249, in inst all
install_app(
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 732, in inst all_app
bench.run(yarn_install, cwd=app_path)
File “/usr/local/lib/python3.10/dist-packages/bench/bench.py”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/init.py”, line 1 69, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code , cmd)

node install with a compatible version.

Replace X.Y.Z with the version number you installed.

nvm install X.Y.Z
nvm alias default X.Y.Z

Thanks team for the support i run below given command and that help me to run my instance.

sudo service nginx start

But still Helpdesk is not installed in my instance what can i do now

what error is coming?

if Node version issue is coming then it will solved by this command.

Traceback (most recent call last):
** File “apps/frappe/frappe/commands/site.py”, line 415, in install_app**
** _install_app(app, verbose=context.verbose, force=force)**
** File “apps/frappe/frappe/installer.py”, line 295, in install_app**
** add_module_defs(name, ignore_if_duplicate=force)**
** File “apps/frappe/frappe/installer.py”, line 635, in add_module_defs**
** d.insert(ignore_permissions=True, ignore_if_duplicate=ignore_if_duplicate)**
** File “apps/frappe/frappe/model/document.py”, line 273, in insert**
** self.db_insert(ignore_if_duplicate=ignore_if_duplicate)**
** File “apps/frappe/frappe/model/base_document.py”, line 543, in db_insert**
** raise frappe.DuplicateEntryError(self.doctype, self.name, e)**
frappe.exceptions.DuplicateEntryError: (‘Module Def’, ‘Helpdesk’, IntegrityError (1062, “Duplicate entry ‘Helpdesk’ for key ‘PRIMARY’”))

frappe@mohtashim:~/frappe-bench$ ^C
frappe@mohtashim:~/frappe-bench$ ^C
frappe@mohtashim:~/frappe-bench$ ^C
frappe@mohtashim:~/frappe-bench$ ls
apps archived config env frappe_docker lms logs patches.txt Procfile sites
frappe@mohtashim:~/frappe-bench$ cd apps
frappe@mohtashim:~/frappe-bench/apps$ ls
agriculture custom_app erpnext frappe healthcare helpdesk hrms payments
frappe@mohtashim:~/frappe-bench/apps$ cd …
frappe@mohtashim:~/frappe-bench$ cd sites/
frappe@mohtashim:~/frappe-bench/sites$ ls
apps.json apps.txt assets common_site_config.json helpdesk.test lms.test node_modules test.com yarn.lock
frappe@mohtashim:~/frappe-bench/sites$

frappe@mohtashim:~/frappe-bench/sites$ ^C
frappe@mohtashim:~/frappe-bench/sites$ bench --site helpdesk.test add-to-hosts
127.0.0.1 helpdesk.test
frappe@mohtashim:~/frappe-bench/sites$

@Rehan_Ansari @erpadmin_pspl @NCP KINDLY HELP ME IN THIS REGARDS




Any update

Hi @Mohtashim_Shoaib ,

Module Def Helpdesk is created in a backend side. try to bench --site site_name reinstall first and also Please check I think you have installed a develop branch of erpnext version. Please check Once. When I installed a erpnext I have also faced this types of errors all of you get but at the end I realised that I am installing develop version of erpnext and then I installed version 14 running all commands smoothly.

Thanks!

No i am not using developer branch and yes it is created in the backend but does not show the apps in the desk.

Hi @Mohtashim_Shoaib ,

try to delete that module from backend first using frappe.delete_doc(“Module Def”, “Helpdesk”) and after that try to reinstall that module.

Thanks

i dont understand what issue you are facing ?