Guest User

Untitled

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