heroku-postgres

Playframework 2.1 and Heroku update problems

我是研究僧i 提交于 2020-01-05 10:13:32
问题 i've create a play framework 2.1.0 project and deployed it on heroku. Last friday I've had to change the data models to add some extra fields. Once i tried to deploy the changes, it gave me evolution errors. Unable to fixe the problem i've reverted the changed and deployed the old version but i still get an error. The current error i'm getting is this database [default] connected at jdbc:postgresql: ... Position: 27 [ERROR:0, SQLSTATE:42601] ERROR: syntax error at or near "FALSE" at play.api

Caused by: java.sql.SQLException: JDBC4 Connection.isValid() method not supported

烂漫一生 提交于 2020-01-03 13:06:48
问题 My play-framework project is running well in my local but when I am trying to deploy it in heroku I am getting following error. 2015-07-05T06:24:10.456657+00:00 app[web.1]: at com.google.inject.Guice.createInjector(Guice.java:73) 2015-07-05T06:24:10.456817+00:00 app[web.1]: at play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.scala:93) 2015-07-05T06:24:10.456702+00:00 app[web.1]: at com.google.inject.Guice.createInjector(Guice.java:62) 2015-07-05T06:24:10.456746+00

Postgress error- bundle install

爷,独闯天下 提交于 2019-12-25 02:38:11
问题 When I run $bundle install I am running the project on heroku so I had to switch to postgress. I keep getting this error for some reason. An error occurred while installing pg (0.15.1), and Bundler cannot continue. Make sure that gem install pg -v '0.15.1' succeeds before bundling. source 'https://rubygems.org' ruby '2.0.0' gem 'rails', '4.0.1' gem 'bootstrap-sass', '2.3.2.0' gem 'bcrypt-ruby', '3.1.2' gem 'faker', '1.1.2' gem 'will_paginate', '3.0.4' gem 'bootstrap-will_paginate', '0.0.9'

How can I set logging level for Heroku Postgresql?

丶灬走出姿态 提交于 2019-12-22 08:26:48
问题 Using Heroku with the Postgresql add-on. Upon reviewing my logs, it seems postgresql is logging every ... single ... transaction. I understand you can set the log level by doing something like (https://www.postgresql.org/docs/9.1/static/runtime-config-logging.html) ALTER DATABASE my_database SET log_statement=error; However, Heroku says ERROR: permission denied to set parameter "log_statement" Note that might be a possible duplicate of how to turn off Heroku SQL logs from postgres but they

Can't deploy to Heroku because the server refused the connection

依然范特西╮ 提交于 2019-12-21 09:26:15
问题 I wanted to deploy my local Rails app (that works perfectly) to Heroku, but get the following error message: rake aborted! could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432? /tmp/build_21pkcz898c28o/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:1216:in `initialize' Followed by many lines about postgres_adapter . I'm a bit disappointed because I

How to use php artisan migrate command of Laravel4 in Heroku?

荒凉一梦 提交于 2019-12-21 07:22:05
问题 I am suing Heroku dev plan for creating database using PostgreSQL . Database is created in Heroku. After running heroku pg:info command $ heroku pg:info === HEROKU_POSTGRESQL_XXX_URL Plan: Hobby-dev Status: available Connections: 1 PG Version: 9.3.1 Created: 2013-11-27 04:00 UTC Data Size: 6.4 MB Tables: 0 Rows: 0/10000 (In compliance) Fork/Follow: Unsupported Rollback: Unsupported Result shows zero tables, which is correct. In my local machine tables are created by using following command

How to use php artisan migrate command of Laravel4 in Heroku?

烈酒焚心 提交于 2019-12-21 07:21:41
问题 I am suing Heroku dev plan for creating database using PostgreSQL . Database is created in Heroku. After running heroku pg:info command $ heroku pg:info === HEROKU_POSTGRESQL_XXX_URL Plan: Hobby-dev Status: available Connections: 1 PG Version: 9.3.1 Created: 2013-11-27 04:00 UTC Data Size: 6.4 MB Tables: 0 Rows: 0/10000 (In compliance) Fork/Follow: Unsupported Rollback: Unsupported Result shows zero tables, which is correct. In my local machine tables are created by using following command

Heroku + Sidekiq: ActiveRecord::StatementInvalid: PG::UnableToSend: SSL SYSCALL error: EOF detected

跟風遠走 提交于 2019-12-18 14:13:04
问题 Hi we are running on Heroku's Cedar stack with Unicorn and Sidekiq. We intermittently get the following errors BurnThis ActiveRecord::StatementInvalid: PG::UnableToSend: SSL SYSCALL error: EOF detected ActiveRecord::StatementInvalid: PG::ConnectionBad: PQconsumeInput() SSL SYSCALL error: Connection timed out Does anyone have any insight what the direct cause of these errors? Is it too many connections to our database? We have our forking set up already in the following way: unicorn.rb worker

Heroku code=H10 desc=“App crashed” - Can't figure out why it's crashing

孤街醉人 提交于 2019-12-18 03:55:28
问题 I've been searching around on this one for a while and can't find anything that seems to be applicable in my situation. I've been staring at these logs and I can't see what the problem is. This has happened during deployments before, but always seemed to resolve itself. Now this just happened on its own (no deployment) and I can't get out of it. Tried reverting back to a previous version of the app, but it appears I'm stuck. I've reset the dyno and have also done a rake db:migrate. There are

Push database to heroku: how to use heroku pg:push

走远了吗. 提交于 2019-12-18 02:40:13
问题 I want to push my local postgresql database to heroku, using heroku pg:push command. The command looks like this: heroku pg:push mylocaldb DATABASE --app sushi according to the heroku document: https://devcenter.heroku.com/articles/heroku-postgresql. Here is my local database info: Name: mysitedb User: bill Password: bill The DATABASE_URL environment variable in my machine is set to: postgres://bill:bill@localhost/mysitedb . My app's name is secure-gorge-4090 . I tried heroku pg:push mysitedb