firebase sometimes Error while making request: timeout of 10000ms exceeded - node.js

similar issue Firebase Messaging: app/network-timeout (Error while making request: timeout of 10000ms exceeded) but i didnt solve with anything.
here is my configuration
const options = {
priority: "high",
timeToLive: 60 * 60 * 24
};
// i have an option like that
const headLine = 'hello' // under 30 characters
const message_notification = {
notification: {
title: 'title not long sometimes under 15 - 20 characters',
body: headLine,
url: req.body.url,
// other: 'other data',
// tag: req.body.tag,
}
};
// i use sendToTopic
package.json
"firebase-admin": "^11.0.0",
what should i do ? what best practice to sent a notification ?
should i make it queue ? or just make dead lock ( infinity loop ) until success on sent notification ?
sometimes work sometimes timeout like that .
i have already deploy (production) on VPS Server.
➜ ~ uname -a
Linux xxxx 5.4.0 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64 x86_64 x86_64 GNU/Linux
➜ ~ cat /proc/meminfo
MemTotal: 3145728 kB
MemFree: 1884388 kB
MemAvailable: 2210944 kB
Cached: 305012 kB
Buffers: 0 kB
Active: 737292 kB
Inactive: 423988 kB
Active(anon): 550516 kB
Inactive(anon): 310112 kB
Active(file): 186776 kB
Inactive(file): 113876 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 4 kB
Writeback: 0 kB
AnonPages: 860628 kB
Shmem: 4360 kB
Slab: 68948 kB
SReclaimable: 25904 kB
SUnreclaim: 43044 kB

Related

SSL_ERROR_SYSCALL (error 35) when running newer version of cURL

I'm having trouble getting an WSDL file via cURL. I think it has to be related to the cURL version. The command is working in a Docker image based on Debian 9, cURL version:
# curl --version
curl 7.52.1 (x86_64-pc-linux-gnu) libcurl/7.52.1 OpenSSL/1.0.2l zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL
However, the baseimage was updated to Debian 10 and there the command is not running. cURL Version:
# curl --version
curl 7.64.0 (x86_64-pc-linux-gnu) libcurl/7.64.0 OpenSSL/1.1.1d zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3
Release-Date: 2019-02-06
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL
I can download the WSDL with wget or with an browser but I need cURL for this command. I found this answer and I tried the cURL command copied from Chromium but get the same result...
The command:
# curl -vvv -k --header "Authorization: Basic <B64Encoded>" https://IP/service.asmx?WSDL -o /dev/null
outputs on debian 9 (cURL 7.52.1):
* Trying IP...
* TCP_NODELAY set
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to IP (IP) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:#STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
} [5 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.2 (IN), TLS handshake, Server hello (2):
{ [81 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [753 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [333 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [70 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
{ [1 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-SHA384
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: CN=WMSvc-VS47558B
* start date: Sep 5 11:51:31 2016 GMT
* expire date: Sep 3 11:51:31 2026 GMT
* issuer: CN=WMSvc-VS47558B
* SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
} [5 bytes data]
> GET /service.asmx?WSDL HTTP/1.1
> Host: IP
> User-Agent: curl/7.52.1
> Accept: */*
> Authorization: Basic RUNTOnA5NDEtRUNTMjAyMQ==
>
{ [5 bytes data]
< HTTP/1.1 200 OK
< Cache-Control: private, max-age=0
< Content-Type: text/xml; charset=utf-8
< Server: Microsoft-IIS/8.5
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< Date: Fri, 12 Mar 2021 21:41:16 GMT
< Content-Length: 243498
<
{ [16151 bytes data]
* Curl_http_done: called premature == 0
100 237k 100 237k 0 0 2083k 0 --:--:-- --:--:-- --:--:-- 2104k
* Connection #0 to host IP left intact
* List item
and on Debian 10 (cURL 7.64.0)
* Expire in 0 ms for 6 (transfer 0x5555fcd9df50)
* Trying IP...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x5555fcd9df50)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to IP (IP) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to IP:443
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 0
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to IP:443
Does it something have to do with the ca-certs?
On Debian 10 this package is installed: ca-certificates/now 20200601~deb10u1 all [installed,local]
On Debian 9 ca-certs is not installed
Forcing a TLS Version below 1.3 gives the same result. The remote server is a Windows Server 2012, I think they are using just outdated ciphers or something. But how can I proove that and is there a workaround? In the cURL changelogs I didn't find a change like 'drop support for....' or something.

How to create JWT for Google service account using Node.js?

According to this guide i have successfully create JWT for Google service account using Java example and it's worked. However, these lines are still "magical" for me:
GoogleCredential credential = GoogleCredential.fromStream(resourceAsStream);
PrivateKey privateKey = credential.getServiceAccountPrivateKey();
But i can't repeat it using Node.js. Postman says "Could not get any response".
Here is my code.
const jwt = require('jsonwebtoken');
const TOKEN_DURATION_IN_SECONDS = 3600;
const issueJWT = (
issuedAt = Math.floor(Date.now() / 1000),
serviceAccount = require('path/to/service-account.json')
) =>
jwt.sign(
{
'iss': serviceAccount.client_email,
'sub': serviceAccount.client_email,
'aud': `https://${SERVICE_NAME}/${API_NAME}`,
'iat': issuedAt,
'exp': issuedAt + TOKEN_DURATION_IN_SECONDS,
},
serviceAccount.private_key,
{
algorithm: 'RS256',
header: {
'kid': serviceAccount.private_key_id,
'typ': 'JWT',
'alg': 'RS256',
},
}
);
Onlinde decoder show same header and body for tokens created using Node.js and Java.
So, i assume that signatures are different.
Via jwt from java:
curl --header "Authorization: Bearer {jwt-from-java}" https://bigtableadmin.googleapis.com/v2/projects/{project-name}/instances -v
>
* schannel: client wants to read 102400 bytes
* schannel: encdata_buffer resized 103424
* schannel: encrypted data buffer: offset 0 length 103424
* schannel: encrypted data got 836
* schannel: encrypted data buffer: offset 836 length 103424
* schannel: decrypted data length: 773
* schannel: decrypted data added: 773
* schannel: decrypted data cached: offset 773 length 102400
* schannel: encrypted data length: 34
* schannel: encrypted data cached: offset 34 length 103424
* schannel: decrypted data length: 5
* schannel: decrypted data added: 5
* schannel: decrypted data cached: offset 778 length 102400
* schannel: encrypted data buffer: offset 0 length 103424
* schannel: decrypted data buffer: offset 778 length 102400
* schannel: schannel_recv cleanup
* schannel: decrypted data returned 778
* schannel: decrypted data buffer: offset 0 length 102400
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=UTF-8
< Vary: X-Origin
< Vary: Referer
< Date: Sat, 21 Jul 2018 00:11:31 GMT
< Server: ESF
< Cache-Control: private
< X-XSS-Protection: 1; mode=block
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< Alt-Svc: quic=":443"; ma=2592000; v="44,43,39,35"
< Accept-Ranges: none
< Vary: Origin,Accept-Encoding
< Transfer-Encoding: chunked
<
{
"instances": [
...
]
}
* Connection #0 to host bigtableadmin.googleapis.com left intact
Via jwt from node.js:
curl --header "Authorization: Bearer {jwt-from-node}" https://bigtableadmin.googleapis.com/v2/projects/{project-name}/instances -v
>
* schannel: client wants to read 102400 bytes
* schannel: encdata_buffer resized 103424
* schannel: encrypted data buffer: offset 0 length 103424
* schannel: encrypted data got 836
* schannel: encrypted data buffer: offset 836 length 103424
* schannel: decrypted data length: 773
* schannel: decrypted data added: 773
* schannel: decrypted data cached: offset 773 length 102400
* schannel: encrypted data length: 34
* schannel: encrypted data cached: offset 34 length 103424
* schannel: decrypted data length: 5
* schannel: decrypted data added: 5
* schannel: decrypted data cached: offset 778 length 102400
* schannel: encrypted data buffer: offset 0 length 103424
* schannel: decrypted data buffer: offset 778 length 102400
* schannel: schannel_recv cleanup
* schannel: decrypted data returned 778
* schannel: decrypted data buffer: offset 0 length 102400
< HTTP/1.1 401 Unauthorized
< WWW-Authenticate: Bearer realm="https://accounts.google.com/"
< Vary: X-Origin
< Vary: Referer
< Content-Type: application/json; charset=UTF-8
< Date: Sat, 21 Jul 2018 00:08:58 GMT
< Server: ESF
< Cache-Control: private
< X-XSS-Protection: 1; mode=block
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< Alt-Svc: quic=":443"; ma=2592000; v="44,43,39,35"
< Accept-Ranges: none
< Vary: Origin,Accept-Encoding
< Transfer-Encoding: chunked
<
{
"error": {
"code": 401,
"message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"status": "UNAUTHENTICATED"
}
}
* Connection #0 to host bigtableadmin.googleapis.com left intact
How can i create JWT for Google service account using Node.js?
So from the error message it looks like this is not a JWT specific issue. This Google Groups post shows that the issue is due an incorrect CURL command being used. Check the curl command syntax and access token placement to make sure it is valid.
Suddenly, now it's works without any changes in code.

jhipster 8080 blank page on windows

I am generating a jhipster project with yoeman on the windows terminal. Everytime i try to generate a new project, i get a blank page on localhost:8080 when i run mvnw and yarn start.
Github link : https://github.com/Fosio/JALPlanning.git
Here is the build i am using :
{
"generator-jhipster": {
"promptValues": {
"packageName": "com.jalarue.jalplanning",
"nativeLanguage": "fr"
},
"jhipsterVersion": "4.13.0",
"baseName": "JALPlanning",
"packageName": "com.jalarue.jalplanning",
"packageFolder": "com/jalarue/jalplanning",
"serverPort": "8080",
"authenticationType": "jwt",
"hibernateCache": "ehcache",
"clusteredHttpSession": false,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"prodDatabaseType": "mssql",
"searchEngine": "elasticsearch",
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "maven",
"enableSocialSignIn": false,
"enableSwaggerCodegen": false,
"jwtSecretKey": "73f9ef15682487a68491ce79f5c3352d0aa0aaab",
"clientFramework": "angularX",
"useSass": false,
"clientPackageManager": "yarn",
"applicationType": "monolith",
"testFrameworks": [
"gatling",
"cucumber",
"protractor"
],
"jhiPrefix": "jhi",
"enableTranslation": true,
"nativeLanguage": "fr",
"languages": [
"fr",
"en"
]
}
}
I have the following version of the requirement installed
node v9.3.0
yarn v1.3.2
Java 8
Here is the yarn start
Microsoft Windows [version 10.0.15063]
(c) 2017 Microsoft Corporation. Tous droits réservés.
C:\Users\Simon Frenette\Documents\GitHub\JALPlanning>yarn start
yarn run v1.3.2
$ yarn run webpack:dev
$ yarn run webpack-dev-server -- --config webpack/webpack.dev.js --progress --inline --hot --profile --port=9060 --watch-content-base
warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
$ node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js --config webpack/webpack.dev.js --progress --inline --hot --profile --port=9060 --watch-content-base
10% building modules 3/3 modules 0 active[HPM] Proxy created: [ '/api',
'/management',
'/swagger-resources',
'/v2/api-docs',
'/h2-console',
'/auth' ] -> http://127.0.0.1:8080
Project is running at http://localhost:9060/
webpack output is served from /
Content not from webpack is served from ./target/www 11% building modules 11/17 modules 6 acti
ve ...modules\style-loader\lib\addStyles.jsWarning: The 'no-unused-variable' rule requires type infomation.
[at-loader] Using typescript#2.5.3 from typescript and "tsconfig.json" from C:\Users\Simon Frenette\Documents\GitHub\JALPlanning/tsconfig.json.
11558ms building modules
31ms sealing
0ms optimizing
1ms basic module optimization
36ms module optimization
1ms advanced module optimization
28ms basic chunk optimization
0ms chunk optimization
0ms advanced chunk optimization
5ms module and chunk tree optimization
1ms chunk modules optimization
0ms advanced chunk modules optimization
73ms module reviving
11ms module order optimization
24ms module id optimization
5ms chunk reviving
1ms chunk order optimization
24ms chunk id optimization
37ms hashing
1ms module assets processing
3756ms chunk assets processing
204ms additional chunk assets processing
1ms recording
1ms additional asset processing
0ms chunk asset optimization
94% asset optimization
[at-loader] Checking started in a separate process...
[at-loader] Ok, 0.176 sec.
MergetJsonsWebpackPlugin compilation started...
MergetJsonsWebpackPlugin compilation completed... 299ms asset optimizatio
n
95% emittingMergetJsonsWebpackPlugin emit starts...
MergetJsonsWebpackPlugin emit completed... 304ms emittin
g
MergetJsonsWebpackPlugin emit starts...
MergetJsonsWebpackPlugin emit completed...
Hash: 9f78c5679d4cae109731
Version: webpack 3.10.0
Time: 16199ms
43 assets
[./node_modules/css-loader/index.js!./src/main/webapp/content/css/global.css] ./node_modules/css-loader!./src/main/webapp/content/css/global.css 5.09 kB {3} [built]
[] -> factory:269ms building:3900ms = 4169ms
[./node_modules/webpack-dev-server/client/index.js?http://localhost:9060] (webpack)-dev-server/client?http://localhost:9060 7.95 kB {1} [built]
[] -> factory:40ms building:29ms dependencies:497ms = 566ms
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.73 kB {1} [built]
[] -> factory:24ms building:774ms = 798ms
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.05 kB {1} [built]
[] -> factory:24ms building:769ms = 793ms
[./node_modules/webpack/hot ^\.\/log$] (webpack)/hot nonrecursive ^\.\/log$ 170 bytes {1} [built]
[] -> factory:14ms building:9ms dependencies:848ms = 871ms
[./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.61 kB {1} [built]
[] -> factory:74ms building:14ms = 88ms
[./node_modules/webpack/hot/emitter.js] (webpack)/hot/emitter.js 77 bytes {1} [built]
[] -> factory:3ms building:769ms = 772ms
[./node_modules/webpack/hot/log-apply-result.js] (webpack)/hot/log-apply-result.js 1.31 kB {1} [built]
[] -> factory:853ms building:3534ms dependencies:0ms = 4387ms
[./src/main/webapp/app/app.main.ts] ./src/main/webapp/app/app.main.ts 590 bytes {2} [built]
[] -> factory:562ms building:3865ms = 4427ms
[./src/main/webapp/app/polyfills.ts] ./src/main/webapp/app/polyfills.ts 2.63 kB {1} [built]
[] -> factory:302ms building:4140ms = 4442ms
[./src/main/webapp/content/css/global.css] ./src/main/webapp/content/css/global.css 1.05 kB {3} [built]
[] -> factory:284ms building:15ms = 299ms
[0] multi (webpack)-dev-server/client?http://localhost:9060 webpack/hot/dev-server ./src/main/webapp/app/polyfills 52 bytes {1} [built]
factory:0ms building:2ms = 2ms
[1] multi (webpack)-dev-server/client?http://localhost:9060 webpack/hot/dev-server ./src/main/webapp/content/css/global.css 52 bytes {3} [built]
factory:0ms building:1ms dependencies:72ms = 73ms
[2] multi (webpack)-dev-server/client?http://localhost:9060 webpack/hot/dev-server ./src/main/webapp/app/app.main 52 bytes {2} [built]
factory:0ms building:0ms dependencies:72ms = 72ms
[./src/main/webapp/manifest.webapp] ./src/main/webapp/manifest.webapp 61 bytes {1} [built]
[] -> factory:383ms dependencies:2ms building:753ms = 1138ms
+ 1042 hidden modules
Child html-webpack-plugin for "index.html":
1 asset
[./node_modules/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.html] ./node_modules/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.html 883 bytes {0} [built]
factory:101ms building:854ms = 955ms
webpack: Compiled successfully.
Hash: 9f78c5679d4cae109731
Version: webpack 3.10.0
Time: 16588ms
43 assets
[./node_modules/css-loader/index.js!./src/main/webapp/content/css/global.css] ./node_modules/css-loader!./src/main/webapp/content/css/global.css 5.09 kB {3} [built]
[] -> factory:269ms building:3900ms = 4169ms
[./node_modules/webpack-dev-server/client/index.js?http://localhost:9060] (webpack)-dev-server/client?http://localhost:9060 7.95 kB {1} [built]
[] -> factory:40ms building:29ms dependencies:497ms = 566ms
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.73 kB {1} [built]
[] -> factory:24ms building:774ms = 798ms
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.05 kB {1} [built]
[] -> factory:24ms building:769ms = 793ms
[./node_modules/webpack/hot ^\.\/log$] (webpack)/hot nonrecursive ^\.\/log$ 170 bytes {1} [built]
[] -> factory:14ms building:9ms dependencies:848ms = 871ms
[./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.61 kB {1} [built]
[] -> factory:74ms building:14ms = 88ms
[./node_modules/webpack/hot/emitter.js] (webpack)/hot/emitter.js 77 bytes {1} [built]
[] -> factory:3ms building:769ms = 772ms
[./node_modules/webpack/hot/log-apply-result.js] (webpack)/hot/log-apply-result.js 1.31 kB {1} [built]
[] -> factory:853ms building:3534ms dependencies:0ms = 4387ms
[./src/main/webapp/app/app.main.ts] ./src/main/webapp/app/app.main.ts 590 bytes {2} [built]
[] -> factory:562ms building:3865ms = 4427ms
[./src/main/webapp/app/polyfills.ts] ./src/main/webapp/app/polyfills.ts 2.63 kB {1} [built]
[] -> factory:302ms building:4140ms = 4442ms
[./src/main/webapp/content/css/global.css] ./src/main/webapp/content/css/global.css 1.05 kB {3} [built]
[] -> factory:284ms building:15ms = 299ms
[0] multi (webpack)-dev-server/client?http://localhost:9060 webpack/hot/dev-server ./src/main/webapp/app/polyfills 52 bytes {1} [built]
factory:0ms building:2ms = 2ms
[1] multi (webpack)-dev-server/client?http://localhost:9060 webpack/hot/dev-server ./src/main/webapp/content/css/global.css 52 bytes {3} [built]
factory:0ms building:1ms dependencies:72ms = 73ms
[2] multi (webpack)-dev-server/client?http://localhost:9060 webpack/hot/dev-server ./src/main/webapp/app/app.main 52 bytes {2} [built]
factory:0ms building:0ms dependencies:72ms = 72ms
[./src/main/webapp/manifest.webapp] ./src/main/webapp/manifest.webapp 61 bytes {1} [built]
[] -> factory:383ms dependencies:2ms building:753ms = 1138ms
+ 1042 hidden modules
Child html-webpack-plugin for "index.html":
1 asset
[./node_modules/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.html] ./node_modules/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.html 883 bytes {0} [built]
factory:101ms building:854ms = 955ms
webpack: Compiled successfully.
[Browsersync] Proxying: http://localhost:9060
[Browsersync] Access URLs:
--------------------------------------
Local: http://localhost:9000
External: http://192.168.0.111:9000
--------------------------------------
UI: http://localhost:3001
UI External: http://192.168.0.111:3001
--------------------------------------
Here is the mvnw
C:\Users\Simon Frenette\Documents\GitHub\JALPlanning>mvn
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JAL Planning 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:1.5.9.RELEASE:run (default-cli) > test-compile # jal-planning >>>
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:copy-resources (default-resources) # jal-planning ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 17 resources
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) # jal-planning ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 17 resources
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) # jal-planning ---
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:copy-resources (docker-resources) # jal-planning ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-unit-tests) # jal-planning ---
[INFO] argLine set to "-javaagent:C:\\Users\\Simon Frenette\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.7.9\\org.jacoco.agent-0.7.9-runtime.jar=destfile=C:\\Users\\Simon Frenette\\Documents\\GitHub\\JALPlanning\\target\\test-results\\coverage\\jacoco\\ja
coco.exec" -Djava.security.egd=file:/dev/./urandom -Xmx256m
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) # jal-planning ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 78 source files to C:\Users\Simon Frenette\Documents\GitHub\JALPlanning\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) # jal-planning ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) # jal-planning ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< spring-boot-maven-plugin:1.5.9.RELEASE:run (default-cli) < test-compile # jal-planning <<<
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.9.RELEASE:run (default-cli) # jal-planning ---
[INFO] Attaching agents: []
The Class-Path manifest attribute in C:\Users\Simon Frenette\.m2\repository\org\liquibase\liquibase-core\3.5.3\liquibase-core-3.5.3.jar referenced one or more files that do not exist: file:/C:/Users/Simon%20Frenette/.m2/repository/org/liquibase/liquibase-core/3
.5.3/lib/snakeyaml-1.13.jar
11:33:06.583 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Included patterns for restart : []
11:33:06.585 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Excluded patterns for restart : [/spring-boot-starter/target/classes/, /spring-boot-autoconfigure/target/classes/, /spring-boot-starter-[\w-]+/, /spring-boot/target/classes/
, /spring-boot-actuator/target/classes/, /spring-boot-devtools/target/classes/]
11:33:06.585 [main] DEBUG org.springframework.boot.devtools.restart.ChangeableUrls - Matching URLs for reloading : [file:/C:/Users/Simon%20Frenette/Documents/GitHub/JALPlanning/target/classes/]
██╗ ██╗ ██╗ ████████╗ ███████╗ ██████╗ ████████╗ ████████╗ ███████╗
██║ ██║ ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
██║ ████████║ ██║ ███████╔╝ ╚█████╗ ██║ ██████╗ ███████╔╝
██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
:: JHipster ? :: Running Spring Boot 1.5.9.RELEASE ::
:: http://www.jhipster.tech ::
2017-12-17 11:33:07.438 INFO 6324 --- [ restartedMain] com.jalarue.jalplanning.JalPlanningApp : Starting JalPlanningApp on SimonFrenette with PID 6324 (started by Simon Frenette in C:\Users\Simon Frenette\Documents\GitHub\JALPlanning)
2017-12-17 11:33:07.439 DEBUG 6324 --- [ restartedMain] com.jalarue.jalplanning.JalPlanningApp : Running with Spring Boot v1.5.9.RELEASE, Spring v4.3.13.RELEASE
2017-12-17 11:33:07.439 INFO 6324 --- [ restartedMain] com.jalarue.jalplanning.JalPlanningApp : The following profiles are active: swagger,dev
2017-12-17 11:33:07.663 DEBUG 6324 --- [kground-preinit] org.jboss.logging : Logging Provider: org.jboss.logging.Slf4jLoggerProvider found via system property
2017-12-17 11:33:09.670 DEBUG 6324 --- [ restartedMain] c.j.j.config.AsyncConfiguration : Creating Async Task Executor
2017-12-17 11:33:10.365 DEBUG 6324 --- [ restartedMain] class org.ehcache.core.Ehcache-users : Initialize successful.
2017-12-17 11:33:10.374 DEBUG 6324 --- [ restartedMain] c.e.c.E.jalarue.jalplanning.domain.User : Initialize successful.
2017-12-17 11:33:10.377 DEBUG 6324 --- [ restartedMain] c.e.c.E.j.jalplanning.domain.Authority : Initialize successful.
2017-12-17 11:33:10.383 DEBUG 6324 --- [ restartedMain] c.e.c.E.j.j.domain.User.authorities : Initialize successful.
2017-12-17 11:33:10.612 DEBUG 6324 --- [ restartedMain] c.j.j.config.MetricsConfiguration : Registering JVM gauges
2017-12-17 11:33:10.627 DEBUG 6324 --- [ restartedMain] c.j.j.config.MetricsConfiguration : Monitoring the datasource
2017-12-17 11:33:10.627 DEBUG 6324 --- [ restartedMain] c.j.j.config.MetricsConfiguration : Initializing Metrics JMX reporting
2017-12-17 11:33:11.349 DEBUG 6324 --- [ restartedMain] c.j.jalplanning.config.WebConfigurer : Registering CORS filter
2017-12-17 11:33:11.474 INFO 6324 --- [ restartedMain] c.j.jalplanning.config.WebConfigurer : Web application configuration, using profiles: swagger
2017-12-17 11:33:11.475 DEBUG 6324 --- [ restartedMain] c.j.jalplanning.config.WebConfigurer : Initializing Metrics registries
2017-12-17 11:33:11.479 DEBUG 6324 --- [ restartedMain] c.j.jalplanning.config.WebConfigurer : Registering Metrics Filter
2017-12-17 11:33:11.480 DEBUG 6324 --- [ restartedMain] c.j.jalplanning.config.WebConfigurer : Registering Metrics Servlet
2017-12-17 11:33:11.483 DEBUG 6324 --- [ restartedMain] c.j.jalplanning.config.WebConfigurer : Initialize H2 console
2017-12-17 11:33:11.484 INFO 6324 --- [ restartedMain] c.j.jalplanning.config.WebConfigurer : Web application fully configured
2017-12-17 11:33:11.746 DEBUG 6324 --- [ restartedMain] c.j.j.config.DatabaseConfiguration : Configuring Liquibase
2017-12-17 11:33:11.761 WARN 6324 --- [ning-Executor-1] i.g.j.c.liquibase.AsyncSpringLiquibase : Starting Liquibase asynchronously, your database might not be ready at startup!
2017-12-17 11:33:12.772 DEBUG 6324 --- [ning-Executor-1] i.g.j.c.liquibase.AsyncSpringLiquibase : Liquibase has updated your database in 1010 ms
2017-12-17 11:33:19.682 DEBUG 6324 --- [ restartedMain] i.g.j.c.apidoc.SwaggerConfiguration : Starting Swagger
2017-12-17 11:33:19.689 DEBUG 6324 --- [ restartedMain] i.g.j.c.apidoc.SwaggerConfiguration : Started Swagger in 6 ms
2017-12-17 11:33:20.763 INFO 6324 --- [ restartedMain] com.jalarue.jalplanning.JalPlanningApp : Started JalPlanningApp in 14.159 seconds (JVM running for 14.612)
2017-12-17 11:33:20.764 INFO 6324 --- [ restartedMain] com.jalarue.jalplanning.JalPlanningApp :
----------------------------------------------------------
Application 'JALPlanning' is running! Access URLs:
Local: http://localhost:8080
External: http://192.168.0.111:8080
Profile(s): [swagger, dev]
----------------------------------------------------------
Any help would be appreciated
Regards
Simon

CDbConnection failed to open the DB connection: could not find driver on install

Hi I m trying to setup limesurvey on xampp on linux . I want the setup to use msssql server on a windows box. I have successfully setup xampp and modified the config.php in application/config folder of lime survey to point to sql server. when i try to launch http://host.name.com:8080/limesurvey/admin it shrows error as below
CDbConnection failed to open the DB connection: could not find driver
/opt/lampp/htdocs/limesurvey/framework/db/CDbConnection.php(382)
370 throw new CDbException('CDbConnection.connectionString cannot be empty.');
371 try
372 {
373 Yii::trace('Opening DB connection','system.db.CDbConnection');
374 $this->_pdo=$this->createPdoInstance();
375 $this->initConnection($this->_pdo);
376 $this->_active=true;
377 }
378 catch(PDOException $e)
379 {
380 if(YII_DEBUG)
381 {
382 throw new CDbException('CDbConnection failed to open the DB connection: '.
383 $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
384 }
385 else
386 {
387 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
388 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
389 }
390 }
391 }
392 }

Memory leak in MySQL Client

I have a simple piece of code that creates a MySQL connection:
MYSQL *conn = mysql_init(NULL);
if(conn == NULL){
fprintf(stderr, "Error: can't create MySQL-descriptor\n");
exit(1);
}
if(!mysql_real_connect(conn,"my_host.com","my_server","psw",NULL,NULL,NULL,0)){
fprintf(stderr, "Error: can't connect to database %s\n", mysql_error(conn));
} else {
fprintf(stdout, "MySQL connect Success!\n");
}
mysql_close(conn);
The valgrind says:
==3283== LEAK SUMMARY:
==3283== definitely lost: 0 bytes in 0 blocks
==3283== indirectly lost: 0 bytes in 0 blocks
==3283== possibly lost: 0 bytes in 0 blocks
==3283== still reachable: 61,512 bytes in 17 blocks
==3283== suppressed: 0 bytes in 0 blocks
It is an actual memory leak?

Resources