I configured Xdebug according to this guide
It`s resulting xdebug_config:
zend_extension=xdebug
xdebug.remote_port=9004
xdebug.remote_host=172.24.240.47
xdebug.remote_enable=1
xdebug.remote_connect_back=0
xdebug.remote_log=/var/www/html/xdebug.log
In PhpStorm, I registered port 9004 in the Xdebug menu
It`s xdebug log:
[20] Log opened at 2022-03-23 10:29:32
[20] I: Connecting to configured address/port: 172.24.240.47:9004.
[20] I: Connected to client. :-)
[20] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///var/www/html/index.php" language="PHP" xdebug:language_version="7.2.34" protocol_version="1.0" appid="20" idekey="16813"><engine version="2.7.2"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2019 by Derick Rethans]]></copyright></init>
[20]
[20] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>
[20]
[20] Log closed at 2022-03-23 10:29:32
But breakpoint does not work :(
if I use xdebug3, i catch next error:
[17] Log opened at 2022-03-23 12:36:17.689724
[17] [Step Debug] INFO: Checking remote connect back address.
[17] [Step Debug] INFO: Checking header 'HTTP_X_FORWARDED_FOR'.
[17] [Step Debug] INFO: Checking header 'REMOTE_ADDR'.
[17] [Step Debug] INFO: Client host discovered through HTTP header, connecting to 172.25.0.1:9003.
[17] [Step Debug] WARN: Creating socket for '172.25.0.1:9003', poll success, but error: Operation now in progress (29).
[17] [Step Debug] WARN: Could not connect to client host discovered through HTTP headers, connecting to configured address/port: 172.24.240.47:9003. :-|
[17] [Step Debug] WARN: Creating socket for '172.24.240.47:9003', poll success, but error: Operation now in progress (29).
[17] [Step Debug] ERR: Could not connect to debugging client. Tried: 172.25.0.1:9003 (from REMOTE_ADDR HTTP header), 172.24.240.47:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(
[17] Log closed at 2022-03-23 12:36:17.691381
I tried to share port in docker-compose file
ports:
- 80:80
- 9009:9009
And log now
[19] Log opened at 2022-03-23 15:52:45.549575
[19] [Step Debug] INFO: Checking remote connect back address.
[19] [Step Debug] INFO: Checking header 'HTTP_X_FORWARDED_FOR'.
[19] [Step Debug] INFO: Checking header 'REMOTE_ADDR'.
[19] [Step Debug] INFO: Client host discovered through HTTP header, connecting to 172.26.0.1:9009.
[19] [Step Debug] INFO: Connected to debugging client: 172.26.0.1:9009 (from REMOTE_ADDR HTTP header). :-)
[19] [Step Debug] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///var/www/html/index.php" language="PHP" xdebug:language_version="7.2.34" protocol_version="1.0" appid="19"><engine version="3.1.3"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2022 by Derick Rethans]]></copyright></init>
[19] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>
[19] [Step Debug] WARN: 2022-03-23 15:52:45.554242: There was a problem sending 179 bytes on socket 11: Broken pipe.
[19] Log closed at 2022-03-23 15:52:45.554442
Related
I have installed Docker on WSL2 machine (Ubuntu-18). PhpStorm installed on Windows machine.
I previously had Xdebug configured. And everything worked fine while the Internet was via an Ethernet cable. But now that I don't have an Ethernet cable, my Xdebug has stopped working.
xdebug.client_port = 9014
xdebug.client_host = 192.168.232.61
xdebug.mode = debug
xdebug.start_with_request = 1
xdebug.discover_client_host=1
xdebug.log=/var/www/storage/logs/xdebug.log
Previously, I entered the IP address of the Ethernet (Windows machine). But now he's gone.
I tried use Default Switch IP address, but it doesn't work too. I also tried use host.docker.internal, virtual IP address...
It's xdebug log:
[45] Log opened at 2022-08-08 11:27:14.740258
[45] [Step Debug] INFO: Checking remote connect back address.
[45] [Step Debug] INFO: Checking header 'HTTP_X_FORWARDED_FOR'.
[45] [Step Debug] INFO: Checking header 'REMOTE_ADDR'.
[45] [Step Debug] WARN: Could not discover client host through HTTP headers, connecting to configured address/port: 192.168.232.61:9014. :-|
[45] [Step Debug] ERR: Time-out connecting to debugging client, waited: 200 ms. Tried: 192.168.232.61:9014 (fallback through xdebug.client_host/xdebug.client_port) :-(
[45] Log closed at 2022-08-08 11:27:23.305499
[27] [Step Debug] INFO: Checking remote connect back address.
[27] [Step Debug] INFO: Checking header 'HTTP_X_FORWARDED_FOR'.
[27] [Step Debug] INFO: Checking header 'REMOTE_ADDR'.
[27] [Step Debug] WARN: Could not discover client host through HTTP headers, connecting to configured address/port: 172.26.0.1:9014. :-|
[27] [Step Debug] ERR: Time-out connecting to debugging client, waited: 200 ms. Tried: 172.26.0.1:9014 (fallback through xdebug.client_host/xdebug.client_port) :-(
[25] Log opened at 2022-08-08 10:13:21.411630
[25] [Step Debug] INFO: Checking remote connect back address.
[25] [Step Debug] INFO: Checking header 'HTTP_X_FORWARDED_FOR'.
[25] [Step Debug] INFO: Checking header 'REMOTE_ADDR'.
[25] [Step Debug] WARN: Could not discover client host through HTTP headers, connecting to configured address/port: host.docker.internal:9014. :-|
[25] [Step Debug] ERR: Time-out connecting to debugging client, waited: 200 ms. Tried: host.docker.internal:9014 (fallback through xdebug.client_host/xdebug.client_port) :-(
[25] Log closed at 2022-08-08 10:13:31.360631
Once again I repeat that all this worked when I used an Ethernet cable.
What do I need to write in xdebug.client_host line now?
I install kylin by https://github.com/cas-packone/ambari-kylin-service/
2020-01-13 01:52:16,673 INFO [main] utils.Compatibility:41 : Running in ZooKeeper 3.4.x compatibility mode
2020-01-13 01:52:16,710 INFO [main] imps.CuratorFrameworkImpl:284 : Starting
2020-01-13 01:52:16,715 INFO [main] zookeeper.ZooKeeper:438 : Initiating client connection, connectString=node1:2181 sessionTimeout=120000 watcher=org.apache.curator.ConnectionState#6c000e0c
2020-01-13 01:52:16,717 INFO [main-SendThread(node1:2181)] zookeeper.ClientCnxn:1013 : Opening socket connection to server node1/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2020-01-13 01:52:16,719 INFO [main-SendThread(node1:2181)] zookeeper.ClientCnxn:856 : Socket connection established, initiating session, client: /127.0.0.1:49768, server: node1/127.0.0.1:2181
2020-01-13 01:52:16,721 INFO [main-SendThread(node1:2181)] zookeeper.ClientCnxn:1273 : Session establishment complete on server node1/127.0.0.1:2181, sessionid = 0x16f798087cc03af, negotiated timeout = 60000
2020-01-13 01:52:16,722 INFO [main] imps.CuratorFrameworkImpl:326 : Default schema
2020-01-13 01:52:16,725 DEBUG [main] util.ZookeeperDistributedLock:142 : 6521#node1 trying to lock /kylin/kylin_metadata/create_htable/kylin_metadata/lock
2020-01-13 01:52:16,730 INFO [main-EventThread] state.ConnectionStateManager:237 : State change: CONNECTED
Exception in thread "main" java.lang.IllegalArgumentException: Failed to find metadata store by url: kylin_metadata#hbase
at org.apache.kylin.common.persistence.ResourceStore.createResourceStore(ResourceStore.java:89)
at org.apache.kylin.common.persistence.ResourceStore.getStore(ResourceStore.java:101)
at org.apache.kylin.rest.service.AclTableMigrationTool.checkIfNeedMigrate(AclTableMigrationTool.java:94)
at org.apache.kylin.tool.AclTableMigrationCLI.main(AclTableMigrationCLI.java:41)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.kylin.common.persistence.ResourceStore.createResourceStore(ResourceStore.java:83)
... 3 more
Caused by: java.lang.NoSuchMethodError: org.apache.curator.framework.api.CreateBuilder.creatingParentsIfNeeded()Lorg/apache/curator/framework/api/ProtectACLCreateModePathAndBytesable;
at org.apache.kylin.storage.hbase.util.ZookeeperDistributedLock.lock(ZookeeperDistributedLock.java:145)
at org.apache.kylin.storage.hbase.util.ZookeeperDistributedLock.lock(ZookeeperDistributedLock.java:166)
at org.apache.kylin.storage.hbase.HBaseConnection.createHTableIfNeeded(HBaseConnection.java:305)
at org.apache.kylin.storage.hbase.HBaseResourceStore.createHTableIfNeeded(HBaseResourceStore.java:110)
at org.apache.kylin.storage.hbase.HBaseResourceStore.<init>(HBaseResourceStore.java:91)
... 8 more
2020-01-13 01:52:16,772 INFO [Curator-Framework-0] imps.CuratorFrameworkImpl:924 : backgroundOperationsLoop exiting
2020-01-13 01:52:16,773 INFO [Thread-1] zookeeper.ReadOnlyZKClient:344 : Close zookeeper connection 0x7b94089b to node1:2181
2020-01-13 01:52:16,775 INFO [ReadOnlyZKClient-node1:2181#0x7b94089b] zookeeper.ZooKeeper:692 : Session: 0x16f798087cc03ae closed
2020-01-13 01:52:16,775 INFO [ReadOnlyZKClient-node1:2181#0x7b94089b-EventThread] zookeeper.ClientCnxn:517 : EventThread shut down
2020-01-13 01:52:16,777 INFO [Thread-4] zookeeper.ZooKeeper:692 : Session: 0x16f798087cc03af closed
2020-01-13 01:52:16,777 INFO [main-EventThread] zookeeper.ClientCnxn:517 : EventThread shut down
ERROR: Unknown error. Please check full log.
I'm having issues with NativeScript running iOS (either simulated or physical) communicating with my local server (either running on linux or on the same test deployment running on my MacBook) due to SSL issues. From the searching I've already done this is due to the app transport security blocking the request as it's an untrusted SSL connection. I've modified the file app/App_Resources/iOS/Info.plist to add the lines
`<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>CFBundleDevelopmentRegion</key>`
but it is still failing. The inner exception states
Error: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “192.168.0.40” which could put your confidential information at risk.
These lines should resolve the issue as it allows for untrusted communication. It seems that they're getting ignored. Any ideas why this might be failing?
Here's the full stack trace...
`
(qrmobileapp) Created Activity ID: 0x96907, Description: Loading Preferences From System CFPrefsD
(CFNetwork) Faulting in NSHTTPCookieStorage singleton
(CFNetwork) Faulting in CFHTTPCookieStorage singleton
(CFNetwork) Creating default cookie storage with process/bundle identifier
(CFNetwork) TIC Enabling TLS [1:0x60400016a800]
(CFNetwork) TIC TCP Conn Start [1:0x60400016a800]
(CFNetwork) Task <D90CBCBA-DFC6-4299-AE58-50B49901D304>.<1> setting up Connection 1
(libnetwork.dylib) [com.apple.network:] [1 192.168.0.40:44321 stream, pid: 85993, url: https://192.168.0.40:44321/api/appuser/test, tls] start
(CFNetwork) TIC TLS Event [1:0x60400016a800]: 1, Pending(0)
(CFNetwork) TIC TLS Event [1:0x60400016a800]: 2, Pending(0)
(CFNetwork) TIC TLS Event [1:0x60400016a800]: 11, Pending(0)
(CFNetwork) TIC TLS Event [1:0x60400016a800]: 12, Pending(0)
(CFNetwork) TIC TLS Event [1:0x60400016a800]: 14, Pending(0)
(qrmobileapp) Created Activity ID: 0x96908, Description: SecTrustEvaluateIfNecessary
(Security) [com.apple.securityd:SecError] Trust evaluate failure: [leaf AnchorTrusted SSLHostname]
(CFNetwork) TIC TLS Trust Result [1:0x60400016a800]: 2
(CFNetwork) TIC SSL Trust Error [1:0x60400016a800]: 3:0
(CFNetwork) TIC TCP Conn Cancel [1:0x60400016a800]
(CFNetwork) NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
(CFNetwork) Task <D90CBCBA-DFC6-4299-AE58-50B49901D304>.<1> HTTP load failed (error code: -1202 [3:-9813])
(CFNetwork) Task <D90CBCBA-DFC6-4299-AE58-50B49901D304>.<1> finished with error - code: -1202
(libnetwork.dylib) [com.apple.network:] [1 192.168.0.40:44321 stream, pid: 85993, url: https://192.168.0.40:44321/api/appuser/test, tls] cancelled. Events:
(libnetwork.dylib) [com.apple.network:] 0.000s [1 D6B6A870-33A7-422C-B22F-782F5A933AAD 192.168.0.40:44321 socket-flow] path:start
(libnetwork.dylib) [com.apple.network:] 0.000s [1 D6B6A870-33A7-422C-B22F-782F5A933AAD 192.168.0.40:44321 socket-flow] path:satisfied
(libnetwork.dylib) [com.apple.network:] 0.010s [1 D6B6A870-33A7-422C-B22F-782F5A933AAD 192.168.0.40:44321 socket-flow] flow:start_connect
(libnetwork.dylib) [com.apple.network:] 0.014s [1 D6B6A870-33A7-422C-B22F-782F5A933AAD 192.168.0.40:44321 socket-flow] flow:finish_transport
(libnetwork.dylib) [com.apple.network:] 0.056s [1] path:cancel
(CFNetwork) TIC TCP Conn Destroyed [1:0x60400016a800]
(qrmobileapp) Created Activity ID: 0x96909, Description: SecTrustReportTLSAnalytics
(CFNetwork) TIC Enabling TLS [2:0x60c00016a380]
(CFNetwork) TIC TCP Conn Start [2:0x60c00016a380]
(CFNetwork) Task <A96EE6D0-30B8-4950-AC4C-DC1F9BD02E8F>.<2> setting up Connection 2
(libnetwork.dylib) [com.apple.network:] [2 192.168.0.40:44321 stream, pid: 85993, url: https://192.168.0.40:44321/api/appuser/getToken, tls] start
(qrmobileapp) Created Activity ID: 0x9690a, Description: send control actions
(CFNetwork) TIC TLS Event [2:0x60c00016a380]: 1, Pending(0)
CONSOLE ERROR file:///app/tns_modules/#angular/core/bundles/core.umd.js:1682:24: ERROR {
"headers": {
"normalizedNames": {},
"lazyUpdate": null,
"headers": {}
},
"status": 0,
"statusText": "Unknown Error",
"url": null,
"ok": false,
"name": "HttpErrorResponse",
"message": "Http failure response for (unknown url): 0 Unknown Error",
"error": {
"line": 1298,
"column": 38,
"sourceURL": "file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js",
"originalStack": "ZoneAwareError#file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:1298:38\nfile:///app/tns_modules/tns-core-modules/http/http-request/http-request.js:87:37\nUIApplicationMain#[native code]\nstart#file:///app/tns_modules/tns-core-modules/application/application.js:272:26\nrun#file:///app/tns_modules/tns-core-modules/application/application.js:300:10\nbootstrapNativeScriptApp#file:///app/tns_modules/nativescript-angular/platform-common.js:160:26\nbootstrapApp#fil`
I am trying to connect opscenter to DSE cluster, I tried and verified the same configurations with in the other environments (DEV, STAGING) but while I am trying to do the same on Prod, I am getting these error on agent.log file
INFO [async-dispatch-64] 2017-12-14 18:29:24,728 Starting system.
INFO [async-dispatch-64] 2017-12-14 18:29:24,730 Starting
JMXComponent
WARN [async-dispatch-64] 2017-12-14 18:29:24,732 Exception while
processing JMX data: java.lang.SecurityException: Authentication
failed! Credentials required
ERROR [async-dispatch-64] 2017-12-14 18:29:24,732 Security failure
connecting to JMX: Authentication failed! Credentials required
INFO [async-dispatch-64] 2017-12-14 18:29:24,733 Starting
StompComponent
INFO [async-dispatch-64] 2017-12-14 18:29:24,733 SSL communication is
disabled
INFO [async-dispatch-64] 2017-12-14 18:29:24,733 Creating stomp
connection to x.y.z.x:61620
ERROR [async-dispatch-64] 2017-12-14 18:29:24,736 Dec 14, 2017
6:29:24 PM org.jgroups.client.StompConnection connect
INFO: Connected to x.y.z.x:1234
WARN [async-dispatch-64] 2017-12-14 18:29:29,738 Attempted to ping
opscenterd on stomp but did not receive a reply in time, will retry
again later.
ERROR [StompConnection receiver] 2017-12-14 18:29:29,740 Dec 14, 2017
6:29:29 PM org.jgroups.client.StompConnection run
SEVERE: JGRP000112: Connection closed unexpectedly:
java.net.SocketException: Socket closed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.net.SocketInputStream.read(SocketInputStream.java:224)
at java.io.FilterInputStream.read(FilterInputStream.java:83)
at org.jgroups.util.Util.readLine(Util.java:2825)
at org.jgroups.protocols.STOMP.readFrame(STOMP.java:240)
at org.jgroups.client.StompConnection.run(StompConnection.java:274)
at java.lang.Thread.run(Thread.java:745)
INFO [async-dispatch-64] 2017-12-14 18:29:29,742 Starting
JMXComponent
WARN [async-dispatch-64] 2017-12-14 18:29:29,744 Exception while
processing JMX data: java.lang.SecurityException: Authentication
failed! Credentials required
ERROR [async-dispatch-64] 2017-12-14 18:29:29,744 Security failure
connecting to JMX: Authentication failed! Credentials required
INFO [async-dispatch-64] 2017-12-14 18:29:29,744 Starting
JMXComponent
WARN [async-dispatch-64] 2017-12-14 18:29:29,746 Exception while
processing JMX data: java.lang.SecurityException: Authentication
failed! Credentials required
ERROR [async-dispatch-64] 2017-12-14 18:29:29,746 Security failure
connecting to JMX: Authentication failed! Credentials required
Also the opscenterd.log show no errors for the cluster.
The configuration that i used are below.
I have used address.yaml
stomp_interface: x.x.x.x
use_ssl: 0
metrics_enabled: 1
hosts: [x.x.x.x, x.x.x.x]
storage_keyspace: opscenter_abc
cluster_name.conf
[jmx]
port = 7199
password = abc
username = abc
[cassandra]
seed_hosts = x.x.x.x , x.x.x.x , x.x.x.x
api_port = 9160
cql_port = 9042
password = abc
username = fabe
[storage_cassandra]
seed_hosts = x.x.x.x, x.x.x.x
api_port = 9160
cql_port = 9042
keyspace = opscenter_abc
[cassandra_metrics]
5min_ttl = 2419200
[cluster_display_options]
display_name = badkfj
Just downloaded version 3.3.0 for windows today. I installed python and trying to get started with my first app with forge create but I am getting the following in the error log:
2012-04-28 18:03:28,285 [ INFO] Forge tools running at version 3.3.0
2012-04-28 18:03:28,288 [ DEBUG] Forge build tools version: 3.3.0
2012-04-28 18:03:28,288 [ DEBUG] main: {"server": "https://trigger.io/api/"}
2012-04-28 18:03:28,299 [ DEBUG] GET https://trigger.io/api/version_check/3/3/0/
2012-04-28 18:03:29,661 [ DEBUG] checking API response for success or error
2012-04-28 18:03:29,661 [ INFO] Update result: you already have the latest tools
2012-04-28 18:03:44,101 [ DEBUG] GET https://trigger.io/api/auth/loggedin
2012-04-28 18:03:44,279 [ DEBUG] checking API response for success or error
2012-04-28 18:03:44,279 [ DEBUG] already authenticated via cookie - continuing
2012-04-28 18:03:44,279 [ INFO] Registering new app "helloworld" with trigger.io...
2012-04-28 18:03:44,279 [ DEBUG] POST https://trigger.io/api/app/
2012-04-28 18:03:56,368 [ DEBUG] checking API response for success or error
2012-04-28 18:03:56,368 [ INFO] Fetching initial project template
2012-04-28 18:03:56,368 [ DEBUG] already authenticated - continuing
2012-04-28 18:03:56,368 [ DEBUG] GET https://trigger.io/api/app/xxx/initial_files/
2012-04-28 18:03:56,579 [ DEBUG] unzip is available, using it
2012-04-28 18:03:56,782 [ DEBUG] unzip output
2012-04-28 18:03:56,782 [ DEBUG] Can't execute /c/Program Files/Common Files/Symbian/tools/unzip.pl.
2012-04-28 18:03:56,782 [ DEBUG] Extracted initial project template
2012-04-28 18:03:56,782 [ DEBUG] Removed downloaded file ".\initial.zip"
2012-04-28 18:03:56,782 [ INFO] Building app for the first time...
2012-04-28 18:03:56,782 [ ERROR] Source folder "src" does not exist - have you run forge create yet?
Is it suppose to look for unzip within Symbian folder?
Not sure how to fix this, any help would be appreciated ...
Thanks,
EE
From these lines in the output, it looks like a different version of 'unzip' is being used from what our tools expect:
2012-04-28 18:03:56,579 [ DEBUG] unzip is available, using it
2012-04-28 18:03:56,782 [ DEBUG] unzip output
2012-04-28 18:03:56,782 [ DEBUG] Can't execute /c/Program Files/Common Files/Symbian/tools/unzip.pl.
This is causing the basic template app not be unzipped (creating the src directory) hence the error.
Could you try removing '/c/Program Files/Common Files/Symbian/tools/unzip.pl' from the PATH and retrying 'forge create'