profile
viewpoint

frappe/frappe_docker 250

Docker images for production and development setups of the Frappe framework and ERPNext

girip11/code-repl 1

Contains documentation and sample code of various programming languages and frameworks

girip11/productivity-tools 1

List of tools for improve productivity and notes on using those

girip11/advent_of_code 0

Solutions to puzzles published at [adventofcode.com](https://adventofcode.com/)

girip11/awesome-system-design 0

A curated list of awesome system design mateiral

girip11/bash_scripting 0

Notes on bash scripting

girip11/bash_utils 0

My bash utilities

girip11/cassandra_tryouts 0

Examples and tryouts of Apache Cassandra based on the Datastax workshop

girip11/css_notes 0

Notes on CSS3

girip11/CustomMLTransformer 0

Tryout implementing a custom ML transformer that returns the width of the image given the image as byte array

issue commentfrappe/frappe_docker

Automatic database backup feature doesn't seem to work in single bench install.

I have been very happy with this container as a cronjob in the past I recommend it

https://hub.docker.com/r/willfarrell/crontab

On Thu, 21 Jan 2021 at 10:35, Revant Nandgaonkar notifications@github.com wrote:

https://github.com/crazy-max/swarm-cronjob this already does the cron

It runs 1 service to watch for labels and run cron.

If we make it part of yml it'll will work

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/frappe/frappe_docker/issues/405#issuecomment-764541311, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFC37R3ZZSQSFGFX2GIWTDS277NTANCNFSM4WDCHB7A .

hazkaz

comment created time in 21 minutes

startedsnok/pep585-upgrade

started time in an hour

issue commentfrappe/frappe_docker

Automatic database backup feature doesn't seem to work in single bench install.

https://github.com/crazy-max/swarm-cronjob this already does the cron

It runs 1 service to watch for labels and run cron.

If we make it part of yml it'll will work

hazkaz

comment created time in 5 hours

issue commentfrappe/frappe_docker

Automatic database backup feature doesn't seem to work in single bench install.

Could we have a long running container which just sleeps and runs the cron every 24 hours?

hazkaz

comment created time in 6 hours

issue commentfrappe/frappe_docker

Incorrect PDF View

@revant hi is this still relevent in the latest docker versions? I tried setting the config but it doesn't fix the issue. Do we need to use nginx hostname or something else instead?

khadijazaki2

comment created time in 6 hours

startedsonalimedani/TF_Quantization

started time in 9 hours

push eventfrappe/frappe_docker

Revant Nandgaonkar

commit sha 555aee2601ad9894d6cdf25a456ca25de8fb1248

fix: sites-vol owned by non-root user fixes permission denied error during site creation

view details

Revant Nandgaonkar

commit sha d9c77df3f2a5f5807c9a42f3e5b2341f22ec46c7

Merge pull request #409 from revant/fix-vol-perm fix: sites-vol owned by non-root user

view details

Revant Nandgaonkar

commit sha 6d32c561c13164d8b0410e036ef682cd50ddb489

Merge pull request #410 from frappe/develop fix: sites-vol permission

view details

push time in 9 hours

PR merged frappe/frappe_docker

fix: sites-vol permission
+1 -1

0 comment

1 changed file

revant

pr closed time in 9 hours

startedashishpatel26/keras-retinanet

started time in 9 hours

issue closedfrappe/frappe_docker

Crontab permission error when setting up bench with docker on Ubuntu 20.04

<!-- Welcome to the frappe_docker issue tracker! Before creating an issue, please heed the following:

  1. Is your issue relevant to the frappe_docker or the main Frappe framework? https://github.com/frappe/frappe . if It's the latter, publish the issue there.
  2. Use the search function before creating a new issue. Duplicates will be closed and directed to the original discussion.
  3. When making a bug report, make sure you provide all the required information. The easier it is for maintainers to reproduce, the faster it'll be fixed.
  4. If you think you know what the reason for the bug is, share it with us. Maybe put in a PR 😉 -->

Description of the issue

Following steps described on the development setup guide, leads to error with crontab. Read crontab frappe: crontabs/frappe/: fopen: Permission denied

Context information (for bug reports)

Operating system: Ubuntu 20.04 Docker version 20.10.2, build 2291f61 bench --version - 5.2.1

Permissions of crontab executable for reference:

frappe@3dc496fd0165:/workspace/development$ ls -l /etc/crontab
-rw-r--r-- 1 root root 1042 Oct 11  2019 /etc/crontab

frappe@3dc496fd0165:/workspace/development/frappe-bench$ ls -l /usr/bin/crontab
-rwxr-sr-x 1 root crontab 43568 Oct 11  2019 /usr/bin/crontab

Steps to reproduce the issue

  1. Follow the development setup guide till "setup first bench" stage: https://github.com/frappe/frappe_docker/blob/develop/development/README.md#setup-first-bench
  2. Upon setting up first bench you might see this error Read crontab frappe: crontabs/frappe/: fopen: Permission denied

Observed result

Following error occurs when setting up bench: Read crontab frappe: crontabs/frappe/: fopen: Permission denied

Expected result

This error should not occur.

Stacktrace / full error message if available

N/A

closed time in 10 hours

amenat

delete branch frappe/frappe_docker

delete branch : revert-402-arm64

delete time in 10 hours

PR opened frappe/frappe_docker

fix: sites-vol permission
+1 -1

0 comment

1 changed file

pr created time in 10 hours

startedapache/superset

started time in 19 hours

startedmartinzlocha/anchor-optimization

started time in 20 hours

fork ashishpatel26/drone-detection

A deep learning neural net model to detect drone/drones from a given picture using Using Fast R-CNN architecture via Keras-Retinanet Implementation. (Dataset and Pre-Trained model provided)

http://dronacharya.slapbot.me/

fork in 21 hours

startedSlapBot/drone-detection

started time in 21 hours

startedfbarez/RL_qt1

started time in a day

issue commentfrappe/frappe_docker

Automatic database backup feature doesn't seem to work in single bench install.

ah ok then. I thought only mine was acting up. Thanks for confirming and for the workaround.

hazkaz

comment created time in a day

issue closedfrappe/frappe_docker

Debug mode not work correctly - edit code not update

Description of the issue

When edit a py file, browser not get the modification if dont restart Bench Web

Steps to reproduce the issue

  1. install docker following this guide
  2. enable develop_mode and start Bench Web: This command starts all processes with the exception of Redis (which is already running in separate container) and the web process. The latter can can finally be started from the debugger tab of VSCode by clicking on the "play" button.
  3. edit a py file adding, for example, frappe.msgprint("hi")
  4. refresh your browser. It doesnt show anything
  5. restarting Bench Web
  6. browser show the message

Observed result

no message showing in the browser

Expected result

hi message

Stacktrace / full error message if available

no error appear

closed time in a day

GraficheAquilane2021

issue commentfrappe/frappe_docker

Debug mode not work correctly - edit code not update

If you use debugger feature auto reload won't work

https://github.com/frappe/erpnext/wiki/VSCode-Debugging-for-Frappe-Python#caveats

GraficheAquilane2021

comment created time in a day

issue commentfrappe/frappe_docker

Crontab permission error when setting up bench with docker on Ubuntu 20.04

Try installing the crontab or any other packages as needed.

You can even modify permissions of things using sudo.

sudo is available in the bench devcontainer for convenience.

Ideally this should not happen.

It is not happening on windows machine with docker desktop as well.

amenat

comment created time in a day

push eventfrappe/frappe_docker

Revant Nandgaonkar

commit sha 555aee2601ad9894d6cdf25a456ca25de8fb1248

fix: sites-vol owned by non-root user fixes permission denied error during site creation

view details

Revant Nandgaonkar

commit sha d9c77df3f2a5f5807c9a42f3e5b2341f22ec46c7

Merge pull request #409 from revant/fix-vol-perm fix: sites-vol owned by non-root user

view details

push time in a day

PR merged frappe/frappe_docker

fix: sites-vol owned by non-root user

fixes permission denied error during site creation Error faced in PWD and docker swarm

+1 -1

0 comment

1 changed file

revant

pr closed time in a day

issue commentfrappe/frappe_docker

Automatic database backup feature doesn't seem to work in single bench install.

bench cli sets up a local crontab that does the backups.

In case of docker, there is no crontab that runs in any container. So instead container based solution is recommended as mentioned in previous message.

thanks to Gavin D'Souza and Aditya Hase from frappe team for help

https://github.com/frappe/bench/blob/e16824f23e0afd1d74bf2290a580533239c04064/bench/utils.py#L388-L408

Solution:

  • [ ] edit single-bench and multi-bench compose files to accommodate https://github.com/crazy-max/swarm-cronjob
  • [ ] move backup cronjob part from wiki to docker swarm setup docs
  • [ ] Mention this as part of kubernetes setup docs
hazkaz

comment created time in a day

issue commentfrappe/frappe_docker

Automatic database backup feature doesn't seem to work in single bench install.

I can confirm this issue.

My backups are shown on page because I've a separate CronJob that does the backups every 12 hours.

Workaround: k8s : https://helm.erpnext.com/kubernetes-resources/create-backup-and-push-to-cloud-cronjob docker: https://github.com/frappe/frappe_docker/wiki/Backup-and-Push-to-cloud-Swarm-Cron-job

hazkaz

comment created time in a day

fork ashishpatel26/tf-estimator-tutorials-1

This repository includes tutorials on how to use the TensorFlow estimator APIs to perform various ML tasks, in a systematic and standardised way.

fork in a day

startedksalama/tf-estimator-tutorials

started time in a day

PR opened frappe/frappe_docker

fix: sites-vol owned by non-root user

fixes permission denied error during site creation Error faced in PWD and docker swarm

+1 -1

0 comment

1 changed file

pr created time in a day

more