want to run this app in erpnext deployed on Kubernetes
Actual behaviour
should run without crashloopbackoff in Kubernetes,
scheduler pod logs
config file not created, retry 1
Attempt 1 to connect to mariadb.erpnext.svc.cluster.local:3306
Attempt 1 to connect to frappe-erpnext-redis-queue:12000
Attempt 1 to connect to frappe-erpnext-redis-cache:13000
Attempt 1 to connect to frappe-erpnext-redis-socketio:11000
Connections OK
Starting background scheduler . . .
Traceback (most recent call last):
File "/home/frappe/frappe-bench/commands/background.py", line 11, in <module>
main()
File "/home/frappe/frappe-bench/commands/background.py", line 6, in main
start_scheduler()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 34, in start_scheduler
schedule.every(frappe.get_conf().scheduler_tick_interval or 60).seconds.do(enqueue_events_for_all_sites)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 254, in get_conf
with init_site(site):
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 263, in __enter__
init(self.site)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 187, in init
setup_module_map()
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1047, in setup_module_map
for module in get_module_list(app):
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 913, in get_module_list
return get_file_items(os.path.join(os.path.dirname(get_module(app_name).__file__), "modules.txt"))
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 871, in get_module
return importlib.import_module(modulename)
File "/opt/bitnami/python/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'frappe-attachments-s3'
Expected behaviour
want to run this app in erpnext deployed on Kubernetes
Actual behaviour
should run without
crashloopbackoff
in Kubernetes, scheduler pod logsredis & maridb connections are fine
Step to reproduce
docker build --no-cache . -t xxxxxx
RUN install_app frappe-attachments-s3 https://github.com/zerodhatech/frappe-attachments-s3
docker build --no-cache . -t xxxxxx
COPY ./install_app.sh /install_app RUN /install_app frappe-attachments-s3 https://github.com/zerodhatech/frappe-attachments-s3
FROM frappe/erpnext-nginx:edge
COPY --from=0 /home/frappe/frappe-bench/sites/ /var/www/html/ COPY --from=0 /rsync /rsync RUN echo -n "\nfrappe-attachments-s3" >> /var/www/html/apps.txt
VOLUME [ "/assets" ]
ENTRYPOINT ["/docker-entrypoint.sh"] CMD ["nginx", "-g", "daemon off;"]
values.yaml
of erpnext helm chart as per these Manual way step,pythonImage: repository: docker.io/pratikimprowise/frappe-attachments-s3-worker tag: 1.0.1 pullPolicy: Always
Version
Docker v19.06 k3s version v1.19.3 helm version v3.3.4 frappe-attachments-s3-worker frappe-attachments-s3-nginx