express42 / postgresql_lwrp

Express 42 postgresql cookbook
MIT License
55 stars 16 forks source link

Installation wal-e from archive d't working #51

Open Dezinger opened 3 years ago

Dezinger commented 3 years ago
"postgresql": {
  "cloud_backup": {
    "wal_e": {
      "install_source": "github",
      "github_repo": "https://github.com/Dezinger/wal-e",
      "version": "v1.1"
    }
  }
},

================================================================================ Error executing action install on resource 'python_package[wal-e]'

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of ["/opt/wal-e/bin/python", "-", "https://github.com/dezinger/wal-e/archive/v1.1.zip"] ----
STDOUT: 
STDERR: Traceback (most recent call last):
  File "<stdin>", line 43, in <module>
  File "/opt/wal-e/lib/python3.6/site-packages/pip/_internal/index.py", line 494, in find_requirement
    all_candidates = self.find_all_candidates(req.name)
  File "/opt/wal-e/lib/python3.6/site-packages/pip/_internal/index.py", line 412, in find_all_candidates
    index_locations = self._get_index_urls_locations(project_name)
  File "/opt/wal-e/lib/python3.6/site-packages/pip/_internal/index.py", line 402, in _get_index_urls_locations
    return [mkurl_pypi_url(url) for url in self.index_urls]
  File "/opt/wal-e/lib/python3.6/site-packages/pip/_internal/index.py", line 402, in <listcomp>
    return [mkurl_pypi_url(url) for url in self.index_urls]
  File "/opt/wal-e/lib/python3.6/site-packages/pip/_internal/index.py", line 392, in mkurl_pypi_url
    urllib_parse.quote(canonicalize_name(project_name)))
  File "/opt/wal-e/lib/python3.6/site-packages/pip/_vendor/packaging/utils.py", line 16, in canonicalize_name
    return _canonicalize_regex.sub("-", name).lower()
TypeError: expected string or bytes-like object
---- End output of ["/opt/wal-e/bin/python", "-", "https://github.com/dezinger/wal-e/archive/v1.1.zip"] ----
Ran ["/opt/wal-e/bin/python", "-", "https://github.com/dezinger/wal-e/archive/v1.1.zip"] returned 1

Cookbook Trace:
---------------
/var/chef/cache/cookbooks/poise-languages/files/halite_gem/poise_languages/command/mixin.rb:207:in `tap'
/var/chef/cache/cookbooks/poise-languages/files/halite_gem/poise_languages/command/mixin.rb:207:in `language_command_shell_out!'
/var/chef/cache/cookbooks/poise-languages/files/halite_gem/poise_languages/command/mixin.rb:222:in `block in language_command_mixin'
/var/chef/cache/cookbooks/poise-python/files/halite_gem/poise_python/resources/python_package.rb:329:in `pip_command'
/var/chef/cache/cookbooks/poise-python/files/halite_gem/poise_python/resources/python_package.rb:353:in `pip_outdated'
/var/chef/cache/cookbooks/poise-python/files/halite_gem/poise_python/resources/python_package.rb:221:in `check_package_versions'
/var/chef/cache/cookbooks/poise-python/files/halite_gem/poise_python/resources/python_package.rb:200:in `load_current_resource'
/var/chef/cache/cookbooks/postgresql_lwrp/resources/cloud_backup.rb:133:in `block in class_from_file'

Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/postgresql_lwrp/resources/cloud_backup.rb

 77:       python_package 'wal-e' do
 78:         package_name archive_url
 79:         virtualenv wal_e_attributes['path']
 80:       end
 81:     when 'pypi'

Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/postgresql_lwrp/resources/cloud_backup.rb:77:in `install_wal_e'

python_package("wal-e") do
  package_name "https://github.com/Dezinger/wal-e/archive/v1.1.zip"
  action [:install]
  default_guard_interpreter :default
  declared_type :python_package
  cookbook_name "test"
  parent_python python_virtualenv[/opt/wal-e]
  timeout 900
end

System Info:
------------
chef_version=13.12.14
platform=ubuntu
platform_version=18.04
ruby=ruby 2.4.5p335 (2018-10-18 revision 65137) [x86_64-linux]
program_name=chef-client worker: ppid=10656;start=17:55:27;
executable=/opt/chef/bin/chef-client