【问题标题】:Custom Opsworks layer fails while deploying new Postgresql server部署新 Postgresql 服务器时自定义 Opsworks 层失败
【发布时间】:2014-01-27 05:52:09
【问题描述】:

我正在按照this 指南在 Opsworks 中创建自定义 Postgresql 层,以便为我的 Ruby on Rails 应用程序构建服务器。我正在使用博客文章中提供的这个自定义 JSON:

{
  "postgresql" : {
    "password" : {
      "postgres" : "unhackablepassword"
    },
    "contrib" : {
      "packages" : ["postgresql-contrib-9.2"],
      "extensions" : ["hstore"]
    }
  }
}

使用以下自定义食谱 (git://github.com/growthrepublic/cookbooks.git)

  • postgresql::contrib
  • postgresql::ruby
  • postgresql::server
  • postgresql

实例设置失败并显示以下错误消息:

[2014-01-08T20:36:49+00:00] FATAL: Chef::Exceptions::Package: package[postgresql-contrib-9.2] (postgresql::contrib line 24) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for postgresql-contrib-9.2

我是 Chef 和 Opsworks 的新手,有人知道为什么会失败吗?

谢谢! 弗朗西斯

【问题讨论】:

  • 你试过运行 apt-get update 吗?
  • 您找到解决方案了吗?
  • @enricostn 不,不幸的是......
  • 您找到解决方案了吗?
  • @Rob3 nope 好久没看问题了...

标签: amazon-web-services chef-infra aws-opsworks


【解决方案1】:

我通过添加操作系统包获得了成功:postgresql-server-dev-9.3

【讨论】:

    猜你喜欢
    • 2016-05-22
    • 2013-08-07
    • 2014-12-10
    • 2015-05-01
    • 2021-12-21
    • 2019-12-24
    • 1970-01-01
    • 2019-05-07
    • 2020-11-18
    相关资源
    最近更新 更多