Re: import upload file to pgadmin get CSRF error

2019-08-11 Thread Wh isere
Thank you very much Devrim for the replies. I can run yum upgrade pgadmin4 without problem just pgadmin4* or pgadmin* were not accepted. The output of rpm -qa|grep pgadmin is sudo rpm -qa|grep pgadmin pgadmin4-python-flask-wtf-0.14.2-1.rhel7.noarch pgadmin4-python-pyrsistent-0.14.2-1.rhel7.1.x86_

Re: import upload file to pgadmin get CSRF error

2019-08-09 Thread Devrim Gündüz
Hi, On Wed, 2019-08-07 at 10:23 +1000, Wh isere wrote: > I have checked both /usr/lib/python2.7/site-packages/pgadmin4-web/ and > /usr/pgadmin4/ were untouched by the re-installation and update. I have > also tried rename these folders but no new folders were created after > re-installation. For

Re: import upload file to pgadmin get CSRF error

2019-08-09 Thread Devrim Gündüz
Hi, On Wed, 2019-08-07 at 10:23 +1000, Wh isere wrote: > I have tried remove and reinstall pgadmin4 but nothing changed. What is the output of rpm -qa|grep pgadmin Regards, -- Devrim Gündüz Open Source Solution Architect, Red Hat Certified Engineer Twitter: @DevrimGunduz , @DevrimGunduzTR s

Re: import upload file to pgadmin get CSRF error

2019-08-09 Thread Devrim Gündüz
Hi, On Tue, 2019-08-06 at 09:02 +0100, Dave Page wrote: > My second guess is that config.py has been directly edited on the server so > when the RPMs were upgraded, the original config.py wasn't replaced, thus > pgAdmin is reporting the version number from the previous version (the > version numb

Re: import upload file to pgadmin get CSRF error

2019-08-09 Thread Devrim Gündüz
Hi, On Tue, 2019-08-06 at 16:36 +1000, Wh isere wrote: > I also run yum upgrade pgadmin4*, but it said yum: No match. Are you sure you got this message? No match is thrown if there are no such packages in the repo. You already have pgadmin4 stuff. The message should be "Nothing to do." Regards,

Re: import upload file to pgadmin get CSRF error

2019-08-07 Thread Dave Page
Hi On Wed, Aug 7, 2019 at 12:01 PM Wh isere wrote: > They seem the same, all files are still there, the date of the files > inside were showing created/modified long ago not today. I also tried > rename the folders but the install process didn't create new folders. I don't know then. I'm not

Re: import upload file to pgadmin get CSRF error

2019-08-07 Thread Wh isere
They seem the same, all files are still there, the date of the files inside were showing created/modified long ago not today. I also tried rename the folders but the install process didn't create new folders. On Wednesday, August 7, 2019, Dave Page wrote: > > > On Wed, Aug 7, 2019 at 11:05 AM

Re: import upload file to pgadmin get CSRF error

2019-08-07 Thread Dave Page
On Wed, Aug 7, 2019 at 11:05 AM Wh isere wrote: > I can remove pgadmin with yum erase without problem but the web folders > mentioned before were not changed, even after yum erase pgadmin4 and then > yum install pgadmin4 again. The os is redhat 7. Thanks! > Is there anything left in the folder

Re: import upload file to pgadmin get CSRF error

2019-08-07 Thread Wh isere
I can remove pgadmin with yum erase without problem but the web folders mentioned before were not changed, even after yum erase pgadmin4 and then yum install pgadmin4 again. The os is redhat 7. Thanks! On Wednesday, August 7, 2019, Dave Page wrote: > Hi > > On Wed, Aug 7, 2019 at 1:24 AM Wh i

Re: import upload file to pgadmin get CSRF error

2019-08-07 Thread Dave Page
Hi On Wed, Aug 7, 2019 at 1:24 AM Wh isere wrote: > I have tried remove and reinstall pgadmin4 but nothing changed. > I have checked both /usr/lib/python2.7/site-packages/pgadmin4-web/ and > /usr/pgadmin4/ were untouched by the re-installation and update. I have > also tried rename these folders

Re: import upload file to pgadmin get CSRF error

2019-08-06 Thread Wh isere
I have tried remove and reinstall pgadmin4 but nothing changed. I have checked both /usr/lib/python2.7/site-packages/pgadmin4-web/ and /usr/pgadmin4/ were untouched by the re-installation and update. I have also tried rename these folders but no new folders were created after re-installation. For s

Re: import upload file to pgadmin get CSRF error

2019-08-06 Thread Wh isere
And I did restart httpd after running 'yum update pgadmin4' but it didn't work. On Wed, Aug 7, 2019 at 8:38 AM Wh isere wrote: > Thank you all! Sorry for the late reply due to timezone difference. Yes > the pgadmin4 is on web mode. I run '/usr/pgadmin4/bin/pgadmin4-web-setup.sh' > to set it up a

Re: import upload file to pgadmin get CSRF error

2019-08-06 Thread Wh isere
Thank you all! Sorry for the late reply due to timezone difference. Yes the pgadmin4 is on web mode. I run '/usr/pgadmin4/bin/pgadmin4-web-setup.sh' to set it up after installing with 'yum install pgadmin4' before. currently under /usr/pgadmin4/ there is only a bin folder with pgadmin4-web-setup.sh

Re: import upload file to pgadmin get CSRF error

2019-08-06 Thread Dave Page
Hi On Tue, Aug 6, 2019 at 8:43 AM Fahar Abbas wrote: > Hi Avin, > > Please replay on Ashesh question: Is it running in 'web' or 'desktop' > mode? > Ashesh asked Wh isere that question, not Avin. > > Also adding Dave Page for his further inputs about shutdown pgadmin4 > server process. > If

Re: import upload file to pgadmin get CSRF error

2019-08-06 Thread Fahar Abbas
Hi Avin, Please replay on Ashesh question: Is it running in 'web' or 'desktop' mode? Also adding Dave Page for his further inputs about shutdown pgadmin4 server process. Kind Regards, On Tue, Aug 6, 2019 at 12:06 PM Avin Kavish wrote: > You can use any one of ps, top, htop, or systemctl to

Re: import upload file to pgadmin get CSRF error

2019-08-06 Thread Avin Kavish
You can't just randomly install GUIs every time a process needs to be terminated. On Tue, Aug 6, 2019 at 12:19 PM Fahar Abbas wrote: > Hi, > > On Tue, Aug 6, 2019 at 11:36 AM Wh isere wrote: > >> Thank you! I am running pgadmin on a remote server, so there is not Gui >> interface, is there comm

Re: import upload file to pgadmin get CSRF error

2019-08-06 Thread Avin Kavish
You can use any one of ps, top, htop, or systemctl to view running services/processes and kill them On Tue, Aug 6, 2019 at 12:21 PM Ashesh Vashi wrote: > On Tue, Aug 6, 2019 at 12:18 PM Fahar Abbas > wrote: > >> Hi, >> >> On Tue, Aug 6, 2019 at 11:36 AM Wh isere wrote: >> >>> Thank you! I am r

Re: import upload file to pgadmin get CSRF error

2019-08-05 Thread Ashesh Vashi
On Tue, Aug 6, 2019 at 12:18 PM Fahar Abbas wrote: > Hi, > > On Tue, Aug 6, 2019 at 11:36 AM Wh isere wrote: > >> Thank you! I am running pgadmin on a remote server, so there is not Gui >> interface, is there command to shut down pgadmin4 server? >> I also run yum upgrade pgadmin4*, but it said

Re: import upload file to pgadmin get CSRF error

2019-08-05 Thread Fahar Abbas
Hi, On Tue, Aug 6, 2019 at 11:36 AM Wh isere wrote: > Thank you! I am running pgadmin on a remote server, so there is not Gui > interface, is there command to shut down pgadmin4 server? > I also run yum upgrade pgadmin4*, but it said yum: No match. > Kindly first install GUI on remote machine an

Re: import upload file to pgadmin get CSRF error

2019-08-05 Thread Wh isere
Thank you! I am running pgadmin on a remote server, so there is not Gui interface, is there command to shut down pgadmin4 server? I also run yum upgrade pgadmin4*, but it said yum: No match. Thanks. On Tue, Aug 6, 2019 at 4:25 PM Fahar Abbas wrote: > Please find attached the snapshot for pgadmin

Re: import upload file to pgadmin get CSRF error

2019-08-05 Thread Fahar Abbas
Yes it's due to pgadmin4 is not properly upgrade on your system. Why not you try yum upgrade pgadmin4* include (*) Can you do following steps. 1. Clear you cache 2. Please shutdown the pgadmin4 server through elephant icon 3. then try yum upgrade pgadmin4* If you are still getting any error m

Re: import upload file to pgadmin get CSRF error

2019-08-05 Thread Wh isere
Thanks, I have tried yum upgrade pgadmin4, it is still the same. here is the output from previous yum update pgadmin4, and screen shot of pgadmin4 attached.: sudo yum update pgadmin4 Loaded plugins: enabled_repos_upload, package_upload, product-id, search- : disabled-repos, subscrip

Re: import upload file to pgadmin get CSRF error

2019-08-05 Thread Fahar Abbas
Hi, Can you please try yum upgrade pgadmin4* and check the pgadmin4? On Tue, Aug 6, 2019 at 10:39 AM Wh isere wrote: > It is web browser cache we need to clean or other cache? Thanks. > > On Tue, Aug 6, 2019 at 3:27 PM Wh isere wrote: > >> Thanks. I cleaned the cache, but it is still the same

Re: import upload file to pgadmin get CSRF error

2019-08-05 Thread Wh isere
It is web browser cache we need to clean or other cache? Thanks. On Tue, Aug 6, 2019 at 3:27 PM Wh isere wrote: > Thanks. I cleaned the cache, but it is still the same. > > On Tue, Aug 6, 2019 at 3:18 PM Ashesh Vashi > wrote: > >> Would please try to clear the cache? >> >> -- >> >> Thanks & Reg

Re: import upload file to pgadmin get CSRF error

2019-08-05 Thread Wh isere
Thanks. I cleaned the cache, but it is still the same. On Tue, Aug 6, 2019 at 3:18 PM Ashesh Vashi wrote: > Would please try to clear the cache? > > -- > > Thanks & Regards, > > Ashesh Vashi > EnterpriseDB INDIA: Enterprise PostgreSQL Company > > > > *http://www.lin

Re: import upload file to pgadmin get CSRF error

2019-08-05 Thread Ashesh Vashi
Would please try to clear the cache? -- Thanks & Regards, Ashesh Vashi EnterpriseDB INDIA: Enterprise PostgreSQL Company *http://www.linkedin.com/in/asheshvashi* On Tue, Aug 6, 2019 at 10:47 AM Wh isere wrote: > I run '

Re: import upload file to pgadmin get CSRF error

2019-08-05 Thread Wh isere
I run 'yum update pgadmin4' it appears pgadmin4 already 4.11, but on the web interface under about it still shows 4.8. Any idea? Thanks. On Tue, Aug 6, 2019 at 3:08 PM Wh isere wrote: > Hello, we have updated pgadmin4 to 4.11 but this problem is still there. > Thanks. > > On Fri, Jun 28, 2019 at

Re: import upload file to pgadmin get CSRF error

2019-08-05 Thread Wh isere
Hello, we have updated pgadmin4 to 4.11 but this problem is still there. Thanks. On Fri, Jun 28, 2019 at 3:09 PM Murtuza Zabuawala < murtuza.zabuaw...@enterprisedb.com> wrote: > > On Fri, Jun 28, 2019 at 10:18 AM Where is Where wrote: > >> Thanks for the clarification Murtuza. Any idea about wh

Re: import upload file to pgadmin get CSRF error

2019-06-27 Thread Murtuza Zabuawala
On Fri, Jun 28, 2019 at 10:18 AM Where is Where wrote: > Thanks for the clarification Murtuza. Any idea about when it might be, eg > the packages in here: > https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7Server-x86_64/ > . Thanks! > Not sure, that is something handled by Postgres

Re: import upload file to pgadmin get CSRF error

2019-06-27 Thread Where is Where
Thanks for the clarification Murtuza. Any idea about when it might be, eg the packages in here: https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7Server-x86_64/ . Thanks! On Fri, Jun 28, 2019 at 1:55 PM Murtuza Zabuawala < murtuza.zabuaw...@enterprisedb.com> wrote: > On Fri, Jun 28,

Re: import upload file to pgadmin get CSRF error

2019-06-27 Thread Murtuza Zabuawala
On Fri, Jun 28, 2019 at 6:31 AM Where is Where wrote: > Is there a way to apply this bug fix on a installation on redhat?The 4.9 > redhat yum package is not available yet. Thanks! > No, Release version of JS files are bundled by webpacker, so it is not feasible to patch them. You have to wait un

Re: import upload file to pgadmin get CSRF error

2019-06-27 Thread Where is Where
Is there a way to apply this bug fix on a installation on redhat?The 4.9 redhat yum package is not available yet. Thanks! On Tue, Jun 25, 2019 at 9:30 AM Where is Where wrote: > Thank you! I will wait for the release on Thursday. Will the redhat yum > package be updated too? Or can I download th

Re: import upload file to pgadmin get CSRF error

2019-06-24 Thread Where is Where
Thank you! I will wait for the release on Thursday. Will the redhat yum package be updated too? Or can I download the tar file and use some file from it to replace the file on the server? Thanks. On Mon, Jun 24, 2019 at 4:25 PM Khushboo Vashi < khushboo.va...@enterprisedb.com> wrote: > > > On Mo

Re: import upload file to pgadmin get CSRF error

2019-06-23 Thread Khushboo Vashi
On Mon, Jun 24, 2019 at 11:42 AM Where is Where wrote: > Thank you! I just saw that too. I tried to apply that diff only: > https://redmine.postgresql.org/projects/pgadmin4/repository/revisions/08b78fb6a11283731cdf59d2a29fdc75e459582e/diff/web/pgadmin/misc/file_manager/static/js/utility.js > But

Re: import upload file to pgadmin get CSRF error

2019-06-23 Thread Where is Where
Thank you! I just saw that too. I tried to apply that diff only: https://redmine.postgresql.org/projects/pgadmin4/repository/revisions/08b78fb6a11283731cdf59d2a29fdc75e459582e/diff/web/pgadmin/misc/file_manager/static/js/utility.js But it doesn't seem to fix the problem. * // We need to a

Re: import upload file to pgadmin get CSRF error

2019-06-23 Thread Khushboo Vashi
On Mon, Jun 24, 2019 at 11:13 AM Where is Where wrote: > Hello, we are trying to import csv file to database from pgadmin, but when > uploading file it reports ' > 400 Bad Request Bad Request The CSRF token is missing. ' > I looked at config.py but can't find any related setting. > Any idea is mu

import upload file to pgadmin get CSRF error

2019-06-23 Thread Where is Where
Hello, we are trying to import csv file to database from pgadmin, but when uploading file it reports ' 400 Bad Request Bad Request The CSRF token is missing. ' I looked at config.py but can't find any related setting. Any idea is much appreciated.