Unable to import database in Vertica Management Console - vertica

I have problem with importing database in Vertica Management console 7.2.3.
Whenever I try to connect to database it complains about password:
{"message":"Could not connect to the database. Invalid Password","status":"invalidPwd"}
That is the same password and user dbadmin which I use to connect to the same database via admintools. It works in admintools.
In the agent.log I could only find following:
INFO:wsgi:10.14.44.102 - - [26/Apr/2017:14:04:09 +0000] "POST /databases/dwh_vertica/users/null HTTP/1.1" 401 167 "-" "Apache-HttpClient/4.5 (Java/1.7.0_80)"
INFO:wsgi:10.14.44.102 - - [26/Apr/2017:14:06:16 +0000] "POST /databases/dwh_vertica/users/null HTTP/1.1" 401 167 "-" "Apache-HttpClient/4.5 (Java/1.7.0_80)"
Could you please do let me know why I can't connect?

Related

Python Flask WkHTMLtoPDF not loading local CSS and files

I am getting the following error, despite adding the appropriate options
rendered= render_template('data.html', data=data)
options = {'enable-local-file-access' : True}
pdf = pdfkit.from_string(rendered,False,configuration=config,options=options)
From what I read I need to give the file access, hence I defined that options to allow local file access. But it still throws a bunch of weird errors
OSError: wkhtmltopdf reported an error:
Loading pages (1/6)
Error: Failed to load file:///static/css/bootstrap.min.css, with network status code 203 and http status code 0 - Error opening /static/css/bootstrap.min.css: The system cannot find the path specified.
Warning: Failed to load file:///static/css/all.css (ignore)
Warning: Failed to load file:///static/css/base.css (ignore)
Error: Failed to load file:///static/js/jquery-3.2.1.slim.min.js, with network status code 203 and http status code 0 - Error opening /static/js/jquery-3.2.1.slim.min.js: The system cannot find the path specified.
Warning: Failed to load file:///static/js/sweetalert2#11.js (ignore)
Warning: Failed to load file:///static/css/modern.css (ignore)
Error: Failed to load file:///static/js/survey.jquery.min.js, with network status code 203 and http status code 0 - Error opening /static/js/survey.jquery.min.js: The system cannot find the path specified.
Error: Failed to load file:///static/js/jquery-3.6.0.min.js, with network status code 203 and http status code 0 - Error opening /static/js/jquery-3.6.0.min.js: The system cannot find the path specified.
Error: Failed to load file:///static/js/popper.min.js, with network status code 203 and http status code 0 - Error opening /static/js/popper.min.js: The system cannot find the path specified.
Error: Failed to load file:///static/js/bootstrap.min.js, with network status code 203 and http status code 0 - Error opening /static/js/bootstrap.min.js: The system cannot find the path specified.
Warning: Failed to load file:///static/img/logo.png (ignore)
Error: Failed to load http://true/, with network status code 3 and http status code 0 - Host true not found
Error: Failed loading page http://true (sometimes it will work just to ignore this error with --load-error-handling ignore)
Exit with code 1 due to network error: ContentNotFoundError
192.168.50.219 - - [05/Aug/2021 21:56:12] "GET /responses/2?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
192.168.50.219 - - [05/Aug/2021 21:56:12] "GET /responses/2?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
192.168.50.219 - - [05/Aug/2021 21:56:12] "GET /responses/2?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
192.168.50.219 - - [05/Aug/2021 21:56:12] "GET /responses/2?__debugger__=yes&cmd=resource&f=ubuntu.ttf HTTP/1.1" 200 -
192.168.50.219 - - [05/Aug/2021 21:56:12] "GET /responses/2?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
ContentNotFoundError seems to occur when another file that is loaded in the file in error cannot be found.
An example of this is loading font files.
Bootstrap contains a lot of fonts and they cause errors.
I also don't know how to get all fonts to load correctly.
If you simply read the font with CSS, there is a way to convert it to base64

How do I stop Spring Boot from printing a stack trace for ; security errors?

How do I stop this exception from being printed in the log file catalina.out? It takes up a lot of room in the log file.
2018-10-12 02:25:20.394 ERROR 20077 --- [nio-8080-exec-7] o.s.boot.web.support.ErrorPageFilter : Forwarding to error page from request [/home] due to exception [The request was rejected because the URL contained a potentially malicious String ";"]
org.springframework.security.web.firewall.RequestRejectedException: The request was rejected because the URL contained a potentially malicious String ";"
at org.springframework.security.web.firewall.StrictHttpFirewall.rejectedBlacklistedUrls(StrictHttpFirewall.java:265) ~[spring-security-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.security.web.firewall.StrictHttpFirewall.getFirewalledRequest(StrictHttpFirewall.java:245) ~[spring-security-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
+50 more lines
I don't mind the single line ERROR but I'd rather not see the stack trace while scrolling through the log.
They are caused by testing requests like
172.31.43.154 - - [12/Oct/2018:07:52:42 +0000] "POST /dologin HTTP/1.1" 302 0 "-" "python-requests/2.18.4" "99.99.99.99"
172.31.43.154 - - [12/Oct/2018:07:52:42 +0000] "GET /home;jsessionid=4B9B7C8FFC2EA0B7A8E0C2E20E0B4D79 HTTP/1.1" 200 27 "-" "python-requests/2.18.4" "99.99.99.99"
I don't know if the tester is manually adding the cookie to the URL or being redirected to that path. It works in the browser and I already have
server.session.tracking-modes=cookie

NullPointerException while analyzing a project in SonarQube

I am getting a "Synchronization issues have encountered a problem" along with a NullPointerException while analyzing a project in SonarQube 6.2.
I am using Eclipse Mars 4.5.2 and I tried using SonarLint but didnt find it very useful because it didnt show me SonarQube Issues view and all the errors were not listed in there. So, I instead downloaded the SonarQube plugin (http://downloads.sonarsource.com/eclipse/eclipse/)
I see the below issues in the access.log (in SonarQube directory) -
127.0.0.1 - - [15/Feb/2017:11:40:50 -0500] "GET /api/resources?resource=ffsUser%3AffsUser&verbose=false& HTTP/1.1" 200 237 "-" "Apache-HttpClient/4.3.6 (java 1.5)" "AVpCmoaydo39Zfz7AAAv"
127.0.0.1 - - [15/Feb/2017:11:40:50 -0500] "GET /api/issues/search?componentRoots=ffsUser:ffsUser&pageIndex=1&pageSize=-1&resolved=false HTTP/1.1" 200 - "-" "Java/1.8.0_45" "AVpCmoaydo39Zfz7AAAw"
It's not surprising that you're encountering problems attempting to run the old Eclipse plugin against a current version of SonarQube. There are reasons that plugin as abandoned.
Your best bet would be to try again with SonarLint, which is designed to help you keep new code clean and to clean up the code you're already working on anyway

Fetching image with curl is smaller than original

I found the problem in some PHP code I'm working on but I can reproduce it using wget and curl, from the linux terminal. When I use the respective programmes to fetch the same image file from my server, the file sizes are different and the smaller curl file is corrupt. This happens on all image files, but doesn't always corrupt the file.
0.0.0.0 - - [18/Aug/2013:23:41:48 +0200] "GET /test.png HTTP/1.1" 200 555247 "-" "Wget/1.13.4 (linux-gnu)"
0.0.0.0 - - [18/Aug/2013:23:42:53 +0200] "GET /test.png HTTP/1.1" 200 555191 "-" "curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3"
You will notice the png file downloaded with curl is 56bytes smaller, which is enough to corrupt the image.
The server in question is my own server running ubuntu server, and apache, as far as I'm aware there is nothing none standard on it, or my curl\wget setup. (And yes I fudged the IP address for security)
Any help most appreciated.

magento logs out everytime I run an import

Everytime I run an import profile in Magento after about 2 - 3 minutes it logs me out. I have checked the apache error logs, this is the lead up to the log out:
[13/Sep/2012:14:58:41 +0100] "POST /index.php/admin/system_convert_gui/batchRun/key/151d60f07b9e68b0023da294f315c3cc/?isAjax=true HTTP/1.1" 200 52
[13/Sep/2012:14:58:42 +0100] "POST /index.php/admin/system_convert_gui/batchRun/key/151d60f07b9e68b0023da294f315c3cc/?isAjax=true HTTP/1.1" 200 52
[13/Sep/2012:14:58:44 +0100] "POST /index.php/admin/system_convert_gui/batchRun/key/151d60f07b9e68b0023da294f315c3cc/?isAjax=true HTTP/1.1" 200 148
[13/Sep/2012:14:58:44 +0100] "GET /index.php/admin/index/login/key/70f0f08a622f871979b3890c5f769bf4/ HTTP/1.1" 200 1001
In the system log I get:
2012-09-13T14:13:00+00:00 DEBUG (7): Cannot send headers; headers already sent in /var/www/vhosts/httpdocs/app/code/core/Mage/Adminhtml/Block/System/Convert/Profile/Run.php, line 278
2012-09-13T14:13:00+00:00 DEBUG (7): HEADERS ALREADY SENT: [0] /var/www/vhosts/httpdocs/app/code/core/Mage/Core/Controller/Response/Http.php:44
Nothing in the exception log. I have researched the headers already sent issue but nothing has fixed this. Any suggestions would be greatly appreciated.
Magento version 1.4.0.1
It's an annoyance. I get it on ee 1.8 during any import/export process that counts the items processed as it goes.
I solved it by adding ob_start() just before that line throwing the error.
I realize I should override the function, but I'm using an old version and will upgrade soon. Hopefully this is fixed in 1.12

Resources