New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database restore over web ui won't work #6820
Comments
@suikast42 |
That is the logging output
EDIT: I am running pgadmin behind traefik. I think the issue is pointing to https://stackoverflow.com/questions/64394628/csrf-token-is-missing-error-in-docker-pgadmin |
@suikast42 |
pgadmin:
image: dpage/pgadmin4:7.7
restart: always
mem_limit: 1024M
hostname: pgadmin
container_name: pgadmin
logging:
options:
max-size: '100m'
max-file: '1'
ports:
- 8080:80
environment:
PGADMIN_DEFAULT_EMAIL: foo@bar.com
PGADMIN_DEFAULT_PASSWORD: fizzbuzz
volumes:
- pgadmin-data:/var/lib/pgadmin
|
The same deployment works with 7.4 but not with 7.5+ |
@suikast42
And restart docker continuer. Try restore & provide docker logs for same. |
|
Ok I got the error. I have had try to provision the db connection with pgadmin. /pgadmin4/pass/dbpass
servers.json
With pgadmin4 v <'=7.4 I can connect query backup and resotre the db With pgadmin4 v > 7.4 I can connect and query the db but backup and restore not works with the error
But with pgadmin > v7.5 if I create a custom connection ( not the provisined one ) then everything works as expected. It seems so that soimething changes in thje connection provisioning ? |
@suikast42 Can you please share the small video for same? or detailed steps to reproduce the issue. |
I follow this setup here https://technology.amis.nl/continuous-delivery/provisioning/pgadmin-in-docker-provision-connections-and-passwords/ It works until v 7.4 not above |
@suikast42 Can you please try copying attached process.py file?
And restart the container & try again backup. Please provide logs for the same |
|
I have added more logging.Can you please try copying attached process.py file
|
I do that by adding the file in my docker file
|
Should be fine. Just wanted to get more information from logs. |
Please note that security bugs or issues should be reported to security@pgadmin.org.
Describe the bug
Backup DB over PGAdmin and recover again ends up with error
' TypeError: expected str, bytes or os.PathLike object, not NoneType '
To Reproduce
The revocery works fine until version 7.4. Since 7.5 it won't work
The text was updated successfully, but these errors were encountered: