简体   繁体   English

Serverless-framework postgresql版本升级问题

[英]Serverless-framework postgresql version upgrading problem

We use serverless-framework and Postgresql.我们使用无服务器框架和 Postgresql。

Type: AWS::RDS::DBInstance
Properties:
  EngineVersion: 11.8

It was 11.8 before, we successfully upgraded it from 11.8 to 11.9 by changing the version in serverless.yml in EngineVersion .之前是 11.8,我们通过更改serverless.ymlEngineVersion中的版本,成功将其从 11.8 升级到 11.9。 But now we need to upgrade it to 11.10 and we have the following issue:但是现在我们需要将它升级到 11.10,我们有以下问题:

The error message:错误信息:

Cannot upgrade postgres from 11.9 to 11.1 (Service: AmazonRDS; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: e0d1923a-cf98-44ea-a9e4-bc3871e33bf6; Proxy: null).

So it looks like it tries to upgrade to 11.1 rather than 11.10.所以看起来它试图升级到 11.1 而不是 11.10。

It seems like Serverless ignores '0' in Engine Version that you are trying to set up.似乎无服务器忽略了您尝试设置的引擎版本中的“0”。 Could you try to escape version with quotes?你能尝试用引号转义版本吗?

It will look like this:它看起来像这样:

Type: AWS::RDS::DBInstance
Properties:
  EngineVersion: '11.10'

It should help to solve the problem and upgrade version successfully它应该有助于解决问题并成功升级版本

The 11.10 value you're specifying for the EngineVersion property is processed as a number by the YAML engine since you're not using quotes, so the trailing zeros are removed and the resulting value is 11.1 .您为EngineVersion属性指定的11.10值由 YAML 引擎作为数字处理,因为您没有使用引号,因此删除了尾随零,结果值为11.1 You need to specify the value in quotes, like this: "11.10"您需要在引号中指定值,例如: "11.10"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无服务器框架中的 where 子句 + postgresql - where clause in serverless framework + postgresql 升级 postgresql 版本时是否应该使用 airflow 升级版? - Should I use airflow upgradedb when upgrading the postgresql version? 使用 sequelize orm 向数据库发出请求时,无服务器功能(无服务器框架)出现问题 - Problem in serverless function (serverless framework) when using sequelize orm to make requests to the database 在 Mac 上升级 PostgreSQL 时无法打开版本文件“postgresql@10/PG_VERSION”失败 - could not open version file "postgresql@10/PG_VERSION" Failure when upgrading PostgreSQL on Mac 从 PostgreSQL 版本 11 恢复数据库时出现问题 - Problem in restoring database from PostgreSQL Version 11 在 Windows 10 上安装 PostgreSQL 版本 12.4 时出现问题 - Problem installing PostgreSQL version 12.4 on Windows 10 在 Kali 上安装 OpenVAS / Debian 问题 PostgreSQL 版本 - Installing OpenVAS on Kali / Debian problem with PostgreSQL version 在Heroku上升级Postgresql数据库 - Upgrading postgresql database on heroku 在ec2中升级postgresql - upgrading postgresql in ec2 将 postgresql 从版本 11 升级到 12 导致“您的安装引用了丢失的可加载库” - Upgrading postgresql from version 11 to 12 results in “Your installation references loadable libraries that are missing”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM