Questions tagged [heroku-postgres]
Heroku Postgres is the SQL database service run by Heroku that is provisioned and managed as an add-on.
990
questions
0
votes
1
answer
37
views
org.postgresql.util.PSQLException: The connection attempt failed. Caused by: java.net.UnknownHostException
I'm trying to connect to postgresql from Heroku (DB is by amazon aws) in Android java
In my host url address is like this
postgres://username:password@host:port/database
but with jdbc connect I'm ...
-1
votes
0
answers
30
views
Why is the data on my heroku website different from data on local dev?
New to django
I tried setting up a postgreSQL db and it works fine.
I use Retool to access the db and I can see the data I am adding when I modify my website locally through the admin site, but data ...
0
votes
0
answers
8
views
Limit access to Postgres functions
Using a standard plan I have access to the Postgres credentials in Heroku.
https://devcenter.heroku.com/articles/heroku-postgresql-credentials
Am I able to limited user access to running functions ...
0
votes
1
answer
25
views
Database protection using functions
Are functions a good way of protecting a database?
I am developing a website with a Postgresql back end and I wish to protect the database data & schema.
I have created Postgres function for all ...
0
votes
0
answers
11
views
Heroku Postgres filling up connections without any use
I have a Heroku Postgres DB(free tier) that's connected to my backend API for testing purposes. Today I tried accessing the database and I kept getting an error "too many connections for Role '...
0
votes
2
answers
19
views
Unable to push migrations to Heroku from Django
I am a student, going through a tutorial to build a website with Next.js and Django/Python. I have zero experience with this stuff and it's been a painful process so far.
At this point in the tutorial,...
0
votes
1
answer
18
views
On Heroku Postgres, how to change full-text search dictionary?
I'm wanting to change the default_text_search_config of my "Hobby Basic Heroku Postgres" database. After running
heroku pg:psql and
\dF,
I can see that Heroku has a preset stop dictionary ...
0
votes
0
answers
11
views
Heroku Postgres when doing the deploy it only creates 2 tables
how are you, a query, someone by chance knows if in the free heroku postgres database they can make more than 3 database tables. I am deploying my app in flask and when I deploy it only creates two ...
0
votes
0
answers
18
views
Ruby/Heroku app errors "We're sorry, but something went wrong" troubleshooting
I am trying to setup an Elo rating system for my local 8 ball pool league using:
https://github.com/elovation/elovation
The only changes I have made to above repo prior to deployment are specifying ...
0
votes
0
answers
26
views
sslmode value "require" invalid when SSL support is not compiled in
I'm trying to run my python code on AWS Lambda to send data to my postgres DB on Heroku. The code works totally fine in my local, but when I test it on AWS, I keep getting this error message:
[ERROR] ...
2
votes
1
answer
81
views
Postgres connection error when deploying on Heroku
I'm trying to deploy my Django Dash app on Heroku; the build succeeds, but I get the following error:
(psycopg2.OperationalError) connection to server on socket "/var/run/postgresql/.s.PGSQL.5432&...
0
votes
1
answer
19
views
Does Heroku block HTTP requests?
I'm trying to access a mySQL database using the requests library in Python from a REST API I made using Flask, hosted on Heroku. I'm running this script locally. I tried using the postgresql add-on, ...
-1
votes
0
answers
10
views
Error while viewing source code in Heroku [duplicate]
I have a web application that lets users create a blog with images.
I have a directory called static/images where I am saving those images.
Everything works well on my local development server. The ...
0
votes
0
answers
6
views
What is heroku database copy?
I messed up with my database and would like to do a rollback. Since I am using Heroku Postgress Hobby Basic plan which doesn't support automatic backups, there is no any backup which I can restore to.
...
0
votes
1
answer
30
views
I can't reach Postgresql database in my Heroku App, but I also don't get any error in the logs
My program works perfectly fine on my local environment. I deployed my server on heroku and tested again with my local frontend, database and my remote server which also worked.Then I created my ...
0
votes
0
answers
12
views
How to push table structure from local PostgreSQL database to Heroku database without data
I have used this command to push data into Heroku database from my local PostgreSQL database:
heroku pg:push <localdatabaseurl> <herokudatabaseurl> --app <APP>
The issue is this ...
0
votes
1
answer
26
views
Does Django 1.9.5 support PostgreSQL 11?
The end-of-life for Postgres 10 on Heroku is closer and closer, but I still have a legacy project on Django 1.9 using it there. Is it possible to migrate to Postgres 11 without troubles?
0
votes
0
answers
9
views
Heroku server does not showing changes i made in my local strapi
Hello There im a beginner and new to strapi..the scenario is i created a strapi project made some collection deployed it to heroku everthing works fine but after two days when i created new ...
0
votes
1
answer
53
views
Error adding New User to database with Next.js | Prisma | Heroku
I'm working on my first full-stack app project following along with an online course. I've hit a roadblock that I've been unable to resolve after hours of troubleshooting. The error occurs when ...
1
vote
0
answers
30
views
Django POST requests from Postman forbidden after HEROKU DEPLOYMENT
I uploaded my Django REST Framwork project to Heroku after following the steps carefully.
https://www.youtube.com/watch?v=TFFtDLZnbSs&t=193s&ab_channel=DennisIvy
In my project, I used BEARER ...
0
votes
1
answer
58
views
Getting H10 error when deploying Java project with Spring Boot in Heroku
I've been trying to deploy a API project made with Maven and Spring Boot. The issue is that my project gets the deploy done, but when checking it says:
Application error
An error occurred in the ...
0
votes
0
answers
17
views
how to update outdated version of heroku app
I have an app that was running on an older version of heroku and it no longer works, so I updated to the new stack but now I’m having trouble redeploying. I’ve played around with a few commands in the ...
0
votes
0
answers
21
views
How do I get my images to show on heroku?
I'm very new to using heroku. I deployed one of my projects on heroku : https://grace-barker-fsa.herokuapp.com/home
Everything seems to be working fine but my pictures aren't loading. The images are ...
0
votes
0
answers
43
views
Can't connect after database maintenance
I was using a PostgreSQL database in Heroku until today when they started an automated maintenance in it, then it stopped connecting despite doing it again with the new credentials.
[
{
&...
0
votes
0
answers
9
views
Heroku - Postgress database access denied [User does not have CONNECT privilege]
permission denied for table
From the last two days on Heroku, I can't get my Postgres database access anyone knows how to deal with these permission issues
0
votes
0
answers
22
views
Issue on laravel 8 heroku deployment
How can remove permission issues in laravel 8 and heroku
it shows below error while I want deploy api endpoints
file_put_contents(/app/storage/framework/sessions/...
0
votes
0
answers
10
views
it doesn't decrease when i delete a row in heroku postgresql,why? (Django)
I have a django application running on heroku. and it is using free postgresql in this application.but even if I delete 30 40 maybe more lines from the admin panel, the number of rows (lines) in the ...
0
votes
1
answer
93
views
Seeding using Prisma in Next.js app with a Heroku Postgresql db Timed out fetching a new connection
I have tried several ways to seed my database with a js file that I have.
data.ts
export const scheduleData: {
homeTeam: number;
awayTeam: number;
homeTeamConf: number;
...
0
votes
0
answers
32
views
Heroku postgres connection failure - host name lookup failure
I tried connecting to the Heroku Postgres database both my PSQL shell and my Django application but for some reason - it says there is a host lookup failure. I did try rechecking the credentials, it ...
0
votes
1
answer
75
views
Heroku database showing password authentication failed after maintenance
So i received a message from heroku saying it needs to carry out maintenance on my database and will be read only for a bit. However I go to check my site and the site isn't working for the pages that ...
2
votes
0
answers
21
views
Migrating from aws postgress to heroku postgress
I have a project that has a aws postgres database. I want to host that database on heroku how can i migrate from aws to heroku?
0
votes
0
answers
86
views
WARNING! Using –password via the CLI is insecure. Use –password-stdin
I started the build of the docker image in the ci cd pipeline and at the “build” step does not pass an authorization for a reason unknown to me, and gives an error:
Configure a credential helper ...
1
vote
0
answers
125
views
pg_restore -h '[CREDURL]' -d [CREDNAME]< out.sql returns error and nothing happens to my database
Password authentication fails for herokupush access to localdatabase since the PGUSER is wrong but SET PGUSER=postgres doesnt seem to affect it.
pg_restore -h '[CREDURL]' -d [CREDNAME]< out.sql
At ...
0
votes
0
answers
18
views
Rails/Heroku, switching between databases multiple times yields "can't create Thread: Resource temporarily unavailable" error
Setup: Ruby 2.5.9, Rails 5.2.2, Heroku-18, Postgres
Issue: I'm running a task on my Heroku staging database which compares data from two different databases (both hosted on Heroku as Heroku Postgres ...
1
vote
1
answer
122
views
Constantly getting new PSQL log notifications; no changes were made
My logs just started showing these messages constantly:
[ROSE] [13-1] sql_error_code = 00000 time_ms = "2022-05-10 20:34:02.227 UTC" pid="66624" proc_start_time="2022-05-10 ...
0
votes
0
answers
283
views
bash: alembic: command not found when migration
I'm trying to make migration to create Tables in my heroku-postgres-database.
I'm using this command:
heroku run "alembic upgrade head"
I got an error after 2 seconds:
Running alembic ...
0
votes
0
answers
9
views
Heroku Sidekiq Setup Still Getting ActiveRecord::ConnectionTimeoutError
I'm lost in the weeds. I'm trying to optimize my Sidekiq / Heroku setup with Puma. But I'm either getting a massive amount of jobs backed up in the queue or a huge amount failing and going in the ...
0
votes
1
answer
45
views
authentication failed after postgreSQL maintenance on Heroku
Today I got an email saying my database requires maintenance, it did the maintenance and reported that everything is back up. However now whenever I try to access the db trough my website I get an ...
0
votes
0
answers
28
views
Connecting to Heroku/Sanity via Node
I have a node file like so. This runs perfectly & I get the location logged in the console.
(this will not work for you becasue I have a dummy appid in the code below)
const HttpsProxyAgent = ...
0
votes
0
answers
19
views
Database page is not working when pushing rails code to heroku [duplicate]
These are the only logs I get when I try to access my database page that lists all objects. I moved sqlite to development only in gemfile and added pg gem to :production
Page error when I click db ...
0
votes
1
answer
30
views
Heroku wrong credentials for postgresql database
i’m using heroku for deploy a database (postgres) and connect to it.
I used it for 2 weeks but today it start rejecting my credential and i couldn’t login anymore, i checked if the credential are ...
0
votes
1
answer
20
views
How to connect to posgres in Heroku from Python?
I have followed the documentation and in my Python code I've added:
import os
import psycopg2
DATABASE_URL = os.environ['postgres://sficoXXX:842YYY@ec2-54-165-184-219.compute-1.amazonaws.com:5432/...
0
votes
0
answers
30
views
about heroku postgresql connecct failed
When I execute the code on the laptop, it can connect to postgresql.
DATABASE_URL = os.popen(config.get('postgresql', 'cmd')).read()[:-1]
db = psycopg2.connect(DATABASE_URL, sslmode='require')
Then ...
1
vote
2
answers
113
views
How can I fix raster_columns issue?
I am trying to open server with Heroku credentials on PostgreSQL. But when I create extension postgis, the "ERROR: relation "raster_columns" does not exist" error occurs. How can ...
0
votes
0
answers
71
views
Heroku postgres connection failed because of password auth
I want to connect to the heroku postgres database I have set up using spring boot java. But before that I wanted to try and connect using pgAdmin 4. When I tried this I got an error saying the ...
1
vote
1
answer
79
views
Pushing strapi to heroku is not generating .env file, cannot connect to postgres
I've been following the tutorial on strapi's website: https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/deployment/hosting-guides/heroku.html#heroku-install-requirements
however, I ...
0
votes
0
answers
69
views
Authentication failed Heroku / PostgreSQL
FATAL: password authentication failed for user "some_user" FATAL: no pg_hba.conf entry for host "some_IP", user "some_user", database "some_db", no encryption
...
0
votes
0
answers
30
views
Does heroku blocked connect to external databases? (postgres)
i had running my app on heroku for almost a year without any problem, my app update a postgres database on one external server and read from it, suddenly my app stopped writing and reading to/from my ...
0
votes
1
answer
42
views
Create table in Postgressql [duplicate]
I'm trying to create a data table in Postgress in Heroku.
While creating a table I'm getting ERROR: cannot execute CREATE TABLE in a read-only transaction error.
Select commands are working fine, but ...
1
vote
1
answer
101
views
Django: How to keep code and database sync'ed when deploying on Heroku?
Let's say we have a Django project called Alpha. Developers work on Alpha on their dev environment before deploying the Django project to Heroku. The Procfile may look something like:
release: python ...