Advertisement
Guest User

Untitled

a guest
Nov 9th, 2020
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.21 KB | None | 0 0
  1. Using a clean Ubuntu 20.04 install:
  2.  
  3. 1. Production instructions at /frappe/bench#docker-installation:
  4.  
  5. .env:
  6. ERPNEXT_VERSION=edge
  7. FRAPPE_VERSION=edge
  8. MARIADB_HOST=db.host.com
  9. MYSQL_ROOT_PASSWORD=<snip>
  10. SITES=my.hostname.com
  11.  
  12. Install:
  13. # docker-compose --project-name sensible -f installation/docker-compose-common.yml -f installation/docker-compose-erpnext.yml -f installation/docker-compose-networks.yml --project-directory installation up -d
  14. WARNING: The MYSQL_ROOT_PASSWORD variable is not set. Defaulting to a blank string.
  15. WARNING: The ERPNEXT_VERSION variable is not set. Defaulting to a blank string.
  16. WARNING: The SITES variable is not set. Defaulting to a blank string.
  17. WARNING: The LETSENCRYPT_EMAIL variable is not set. Defaulting to a blank string.
  18. WARNING: The MARIADB_HOST variable is not set. Defaulting to a blank string.
  19. WARNING: The FRAPPE_VERSION variable is not set. Defaulting to a blank string.
  20. ERROR: no such image: frappe/erpnext-worker:: invalid reference format
  21.  
  22. 2. Production instructions at /frappe/frappe_docker/blob/develop/docs/single-bench.md:
  23.  
  24. .env:
  25. ERPNEXT_VERSION=edge
  26. FRAPPE_VERSION=edge
  27. MARIADB_HOST=db.host.com
  28. MYSQL_ROOT_PASSWORD=<snip>
  29. SITES=`my.hostname.com`
  30. SITE_NAME=my.hostname.com
  31. DB_ROOT_USER=root
  32. ADMIN_PASSWORD=<snip>
  33. INSTALL_APPS=erpnext
  34. ENTRYPOINT_LABEL=traefik.http.routers.erpnext-nginx.entrypoints=websecure
  35. CERT_RESOLVER_LABEL=traefik.http.routers.erpnext-nginx.tls.certresolver=myresolver
  36. HTTPS_REDIRECT_RULE_LABEL=traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)
  37. HTTPS_REDIRECT_ENTRYPOINT_LABEL=traefik.http.routers.http-catchall.entrypoints=web
  38. HTTPS_REDIRECT_MIDDLEWARE_LABEL=traefik.http.routers.http-catchall.middlewares=redirect-to-https
  39. HTTPS_USE_REDIRECT_MIDDLEWARE_LABEL=traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https
  40.  
  41. Install:
  42. root@db-b ~/frappe_docker # docker-compose --project-name sensible up -d
  43. Creating network "sensible_default" with the default driver
  44. Creating sensible_redis-queue_1 ... done
  45. Creating sensible_redis-cache_1 ... done
  46. Creating sensible_mariadb_1 ... done
  47. Creating sensible_redis-socketio_1 ... done
  48. Creating sensible_traefik_1 ... done
  49. Creating sensible_erpnext-python_1 ... done
  50. Creating sensible_erpnext-nginx_1 ... done
  51. Creating sensible_erpnext-worker-long_1 ... done
  52. Creating sensible_erpnext-worker-default_1 ... done
  53. Creating sensible_erpnext-schedule_1 ... done
  54. Creating sensible_erpnext-worker-short_1 ... done
  55. Creating sensible_frappe-socketio_1 ... done
  56. Creating sensible_site-creator_1 ... done
  57.  
  58. I had great hope, but attempting to load in a web browser returns "Internal Server Error".
  59.  
  60. Fine, try Easy Install (/frappe/bench#easy-install-script) - this docker stuff is all to new for this old Unix hand. Let's go back to basics:
  61.  
  62. # python3 install.py --production
  63. Logs are saved under /tmp/logs/easy-install__2020-11-10__05-10.log
  64. W: GPG error: http://ams2.mirrors.digitalocean.com/mariadb/repo/10.4/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F1656F24C74CD1D8
  65. E: The repository 'http://ams2.mirrors.digitalocean.com/mariadb/repo/10.4/ubuntu focal InRelease' is not signed.
  66. Traceback (most recent call last):
  67. File "install.py", line 467, in <module>
  68. install_prerequisites()
  69. File "install.py", line 149, in install_prerequisites
  70. run_os_command({
  71. File "install.py", line 141, in run_os_command
  72. returncode = subprocess.check_call(command, shell=True, stdout=log_stream, stderr=sys.stderr)
  73. File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
  74. raise CalledProcessError(retcode, cmd)
  75. subprocess.CalledProcessError: Command 'sudo apt-get update' returned non-zero exit status 100.
  76.  
  77. One almost gets the sense this is an attempt to get users to buy the cloud hosted service and keep OSS as a ruse.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement