signalR JavaScript client can't receive messages after reconnecting using an iPad - signalr
signalR JavaScript client appears to reconnect after the iPad sleeps but does not appear to receive messages.
We have the following Nuget packages / version of signalR installed on the server. We also using the same version of the signalR JS client in the Web client:
<package id="Microsoft.AspNet.SignalR" version="2.2.1" targetFramework="net45" />
<package id="Microsoft.AspNet.SignalR.Core" version="2.2.1" targetFramework="net45" />
<package id="Microsoft.AspNet.SignalR.JS" version="2.2.1" targetFramework="net45" />
<package id="Microsoft.AspNet.SignalR.SystemWeb" version="2.2.1" targetFramework="net45" />
These are the steps to reproduce:
1) We start the signalR connection in the Web client on user login.
2) iPad receives notifications.
3) Leave the Web client idle and let the iPad sleep.
4) Try to use the Web client after 5 mins approx. According to our application server logs and the signalR server trace logs signalR reconnects but the Web client does not receive any messages.
We used the instructions found here to enable signalR server tracing:
http://www.asp.net/signalr/overview/testing-and-debugging/enabling-signalr-tracing
Below is the entire Transport log:
fa47e685-528b-46fc-ae56-4dc647065905 is the intial connection.
a102e5ec-7bfd-449a-93d5-671cfd2bb19e is new connection.
Let me know if you need any more information.
SignalR.Transports.TransportHeartBeat Information: 0 : Connection 3ebca988-ef0b-49a1-b9f1-7934ea64f176 is New.
SignalR.Transports.ServerSentEventsTransport Verbose: 0 : DrainWrites(3ebca988-ef0b-49a1-b9f1-7934ea64f176)
SignalR.Transports.ServerSentEventsTransport Information: 0 : CompleteRequest (3ebca988-ef0b-49a1-b9f1-7934ea64f176)
SignalR.Transports.TransportHeartBeat Information: 0 : Connection 5b1d35aa-0d65-45f1-b681-1d7b04569162 is New.
SignalR.Transports.TransportHeartBeat Verbose: 0 : 3ebca988-ef0b-49a1-b9f1-7934ea64f176 is dead
SignalR.Transports.TransportHeartBeat Verbose: 0 : 3ebca988-ef0b-49a1-b9f1-7934ea64f176 is dead
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(5b1d35aa-0d65-45f1-b681-1d7b04569162)
SignalR.Transports.TransportHeartBeat Verbose: 0 : 3ebca988-ef0b-49a1-b9f1-7934ea64f176 is dead
SignalR.Transports.TransportHeartBeat Verbose: 0 : 3ebca988-ef0b-49a1-b9f1-7934ea64f176 is dead
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(5b1d35aa-0d65-45f1-b681-1d7b04569162)
SignalR.Transports.TransportHeartBeat Verbose: 0 : 3ebca988-ef0b-49a1-b9f1-7934ea64f176 is dead
SignalR.Transports.TransportHeartBeat Verbose: 0 : 3ebca988-ef0b-49a1-b9f1-7934ea64f176 is dead
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(5b1d35aa-0d65-45f1-b681-1d7b04569162)
SignalR.Transports.TransportHeartBeat Verbose: 0 : 3ebca988-ef0b-49a1-b9f1-7934ea64f176 is dead
SignalR.Transports.TransportHeartBeat Verbose: 0 : 3ebca988-ef0b-49a1-b9f1-7934ea64f176 is dead
SignalR.Transports.TransportHeartBeat Information: 0 : Removing connection 3ebca988-ef0b-49a1-b9f1-7934ea64f176
SignalR.Transports.ServerSentEventsTransport Information: 0 : Abort(3ebca988-ef0b-49a1-b9f1-7934ea64f176)
SignalR.Transports.ServerSentEventsTransport Information: 0 : End(3ebca988-ef0b-49a1-b9f1-7934ea64f176)
SignalR.Transports.ServerSentEventsTransport Verbose: 0 : Cancel(3ebca988-ef0b-49a1-b9f1-7934ea64f176)
SignalR.Transports.ServerSentEventsTransport Verbose: 0 : DrainWrites(3ebca988-ef0b-49a1-b9f1-7934ea64f176)
SignalR.Transports.ServerSentEventsTransport Information: 0 : CompleteRequest (3ebca988-ef0b-49a1-b9f1-7934ea64f176)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(5b1d35aa-0d65-45f1-b681-1d7b04569162)
SignalR.Transports.TransportHeartBeat Information: 0 : Connection fa47e685-528b-46fc-ae56-4dc647065905 is New.
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(5b1d35aa-0d65-45f1-b681-1d7b04569162)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(5b1d35aa-0d65-45f1-b681-1d7b04569162)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.ServerSentEventsTransport Verbose: 0 : DrainWrites(5b1d35aa-0d65-45f1-b681-1d7b04569162)
SignalR.Transports.ServerSentEventsTransport Information: 0 : CompleteRequest (5b1d35aa-0d65-45f1-b681-1d7b04569162)
SignalR.Transports.ServerSentEventsTransport Information: 0 : Abort(5b1d35aa-0d65-45f1-b681-1d7b04569162)
SignalR.Transports.TransportHeartBeat Information: 0 : Removing connection 5b1d35aa-0d65-45f1-b681-1d7b04569162
SignalR.Transports.ServerSentEventsTransport Information: 0 : End(5b1d35aa-0d65-45f1-b681-1d7b04569162)
SignalR.Transports.ServerSentEventsTransport Verbose: 0 : DrainWrites(5b1d35aa-0d65-45f1-b681-1d7b04569162)
SignalR.Transports.ServerSentEventsTransport Information: 0 : CompleteRequest (5b1d35aa-0d65-45f1-b681-1d7b04569162)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.ServerSentEventsTransport Verbose: 0 : DrainWrites(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.ServerSentEventsTransport Information: 0 : CompleteRequest (fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Verbose: 0 : fa47e685-528b-46fc-ae56-4dc647065905 is dead
SignalR.Transports.TransportHeartBeat Verbose: 0 : fa47e685-528b-46fc-ae56-4dc647065905 is dead
SignalR.Transports.TransportHeartBeat Verbose: 0 : fa47e685-528b-46fc-ae56-4dc647065905 is dead
SignalR.Transports.TransportHeartBeat Verbose: 0 : fa47e685-528b-46fc-ae56-4dc647065905 is dead
SignalR.Transports.TransportHeartBeat Verbose: 0 : fa47e685-528b-46fc-ae56-4dc647065905 is dead
SignalR.Transports.TransportHeartBeat Verbose: 0 : fa47e685-528b-46fc-ae56-4dc647065905 is dead
SignalR.Transports.TransportHeartBeat Verbose: 0 : fa47e685-528b-46fc-ae56-4dc647065905 is dead
SignalR.Transports.TransportHeartBeat Information: 0 : Removing connection fa47e685-528b-46fc-ae56-4dc647065905
SignalR.Transports.ServerSentEventsTransport Information: 0 : Abort(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.ServerSentEventsTransport Information: 0 : End(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.ServerSentEventsTransport Verbose: 0 : Cancel(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.ServerSentEventsTransport Verbose: 0 : DrainWrites(fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.ServerSentEventsTransport Information: 0 : CompleteRequest (fa47e685-528b-46fc-ae56-4dc647065905)
SignalR.Transports.TransportHeartBeat Information: 0 : Connection a102e5ec-7bfd-449a-93d5-671cfd2bb19e is New.
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(a102e5ec-7bfd-449a-93d5-671cfd2bb19e)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(a102e5ec-7bfd-449a-93d5-671cfd2bb19e)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(a102e5ec-7bfd-449a-93d5-671cfd2bb19e)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(a102e5ec-7bfd-449a-93d5-671cfd2bb19e)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(a102e5ec-7bfd-449a-93d5-671cfd2bb19e)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(a102e5ec-7bfd-449a-93d5-671cfd2bb19e)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(a102e5ec-7bfd-449a-93d5-671cfd2bb19e)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(a102e5ec-7bfd-449a-93d5-671cfd2bb19e)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(a102e5ec-7bfd-449a-93d5-671cfd2bb19e)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(a102e5ec-7bfd-449a-93d5-671cfd2bb19e)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(a102e5ec-7bfd-449a-93d5-671cfd2bb19e)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(a102e5ec-7bfd-449a-93d5-671cfd2bb19e)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(a102e5ec-7bfd-449a-93d5-671cfd2bb19e)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(a102e5ec-7bfd-449a-93d5-671cfd2bb19e)
SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(a102e5ec-7bfd-449a-93d5-671cfd2bb19e)
If the client goes to sleep and disconnects you will not be able to continue to connect to that client using the same connectionID, they will have a new connectionID and you will have to associate the new connectionID with that user.
Related
Symfony Monolog using mailer instead of transport
I'm using symfony 6.0 and i configured my monolog to send errors via email in prod. How ever, it is using the async messenger transport (doctrine) instead of the configured gmail DSN. I'm not sure how to use one config or the other, messenger being by default configured, but i don't use it (yet). Here are my config files: mailer.yaml monolog: channels: - grouped # Deprecations are logged in the dedicated "deprecation" channel when it exists - when#prod: monolog: handlers: main: type: fingers_crossed action_level: error handler: grouped excluded_http_codes: [404, 405] buffer_size: 50 # How many messages should be saved? Prevent memory leaks grouped: type: group members: [ streamed, deduplicated ] streamed: type: stream path: '%kernel.logs_dir%/%kernel.environment%.log' level: debug deduplicated: type: deduplication handler: symfony_mailer symfony_mailer: type: symfony_mailer from_email: 'email#email.com' to_email: 'email#email.com' subject: 'Company- An Error Occurred! %%message%%' level: debug formatter: monolog.formatter.html content_type: text/html My mailer.yaml config: framework: mailer: dsn: '%env(MAILER_DSN)%' And my messenger.yaml config: framework: messenger: failure_transport: failed transports: # https://symfony.com/doc/current/messenger.html#transport-configuration async: dsn: '%env(MESSENGER_TRANSPORT_DSN)%' options: use_notify: true check_delayed_interval: 60000 retry_strategy: max_retries: 3 multiplier: 2 failed: 'doctrine://default?queue_name=failed' # sync: 'sync://' routing: Symfony\Component\Mailer\Messenger\SendEmailMessage: async Symfony\Component\Notifier\Message\ChatMessage: async Symfony\Component\Notifier\Message\SmsMessage: async # Route your messages to the transports # 'App\Message\YourMessage': async In my .env file: MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0 MAILER_DSN=gmail://email#email.com:password#localhost So for now it just save the mail in database, but i want it to be just send by mail.
Corda: deploy node on a docker and cannot reach to it
I am trying to deploy node with the official docker image with following command docker run -ti \ --memory=2048m \ --cpus=2 \ -v /Users/aliceguo/IdeaProjects/car-cordapp/build/nodes/PartyC/config:/etc/corda \ -v /Users/aliceguo/IdeaProjects/car-cordapp/build/nodes/PartyC/certificates:/opt/corda/certificates \ -v /Users/aliceguo/IdeaProjects/car-cordapp/build/nodes/PartyC/persistence:/opt/corda/persistence \ -v /Users/aliceguo/IdeaProjects/car-cordapp/build/nodes/PartyC/logs:/opt/corda/logs \ -v /Users/aliceguo/IdeaProjects/car-cordapp/build/nodes/PartyC/cordapps:/opt/corda/cordapps \ -v /Users/aliceguo/IdeaProjects/car-cordapp/build/nodes/PartyC/additional-node-infos:/opt/corda/additional-node-infos \ -v /Users/aliceguo/IdeaProjects/car-cordapp/build/nodes/PartyC/network-parameters:/opt/corda/network-parameters \ -p 10011:10011 \ -p 10012:10012 \ corda/corda-corretto-5.0-snapshot. And the node seems to start successfully, but I cannot connect to it via rpc from my laptop (the docker container is on my laptop as well). I will attach some log and screenshot below. Any help would be appreciated! Node Log: [INFO ] 2019-07-19T03:21:23,163Z [main] cliutils.CordaCliWrapper.call - Application Args: --base-directory /opt/corda --config-file /etc/corda/node.conf [INFO ] 2019-07-19T03:21:24,146Z [main] manifests.Manifests.info - 115 attributes loaded from 152 stream(s) in 61ms, 115 saved, 2353 ignored: ["ActiveMQ-Version", "Agent-Class", "Ant-Version", "Application-Class", "Application-ID", "Application-Library-Allowable-Codebase", "Application-Name", "Application-Version", "Archiver-Version", "Automatic-Module-Name", "Bnd-LastModified", "Branch", "Build-Date", "Build-Host", "Build-Id", "Build-Java-Version", "Build-Jdk", "Build-Job", "Build-Number", "Build-Timestamp", "Built-By", "Built-OS", "Built-Status", "Bundle-Activator", "Bundle-Category", "Bundle-ClassPath", "Bundle-Copyright", "Bundle-Description", "Bundle-DocURL", "Bundle-License", "Bundle-ManifestVersion", "Bundle-Name", "Bundle-NativeCode", "Bundle-RequiredExecutionEnvironment", "Bundle-SymbolicName", "Bundle-Vendor", "Bundle-Version", "Caller-Allowable-Codebase", "Can-Redefine-Classes", "Can-Retransform-Classes", "Can-Set-Native-Method-Prefix", "Caplets", "Change", "Class-Path", "Codebase", "Corda-Platform-Version", "Corda-Release-Version", "Corda-Revision", "Corda-Vendor", "Created-By", "DynamicImport-Package", "Eclipse-BuddyPolicy", "Eclipse-LazyStart", "Export-Package", "Extension-Name", "Fragment-Host", "Gradle-Version", "Hibernate-JpaVersion", "Hibernate-VersionFamily", "Implementation-Build", "Implementation-Build-Date", "Implementation-Title", "Implementation-URL", "Implementation-Url", "Implementation-Vendor", "Implementation-Vendor-Id", "Implementation-Version", "Import-Package", "Include-Resource", "JCabi-Build", "JCabi-Date", "JCabi-Version", "JVM-Args", "Java-Agents", "Java-Vendor", "Java-Version", "Kotlin-Runtime-Component", "Kotlin-Version", "Liquibase-Package", "Log4jReleaseKey", "Log4jReleaseManager", "Log4jReleaseVersion", "Main-Class", "Main-class", "Manifest-Version", "Min-Java-Version", "Min-Update-Version", "Module-Email", "Module-Origin", "Module-Owner", "Module-Source", "Multi-Release", "Originally-Created-By", "Os-Arch", "Os-Name", "Os-Version", "Permissions", "Premain-Class", "Private-Package", "Provide-Capability", "Require-Capability", "SCM-Revision", "SCM-url", "Scm-Connection", "Scm-Revision", "Scm-Url", "Service-Component", "Specification-Title", "Specification-Vendor", "Specification-Version", "System-Properties", "Tool", "Trusted-Library", "X-Compile-Source-JDK", "X-Compile-Target-JDK"] [INFO ] 2019-07-19T03:21:24,188Z [main] BasicInfo.printBasicNodeInfo - Logs can be found in : /opt/corda/logs [INFO ] 2019-07-19T03:21:25,096Z [main] subcommands.ValidateConfigurationCli.logRawConfig$node - Actual configuration: { "additionalNodeInfoPollingFrequencyMsec" : 5000, "additionalP2PAddresses" : [], "attachmentCacheBound" : 1024, "baseDirectory" : "/opt/corda", "certificateChainCheckPolicies" : [], "cordappSignerKeyFingerprintBlacklist" : [ "56CA54E803CB87C8472EBD3FBC6A2F1876E814CEEBF74860BD46997F40729367", "83088052AF16700457AE2C978A7D8AC38DD6A7C713539D00B897CD03A5E5D31D", "6F6696296C3F58B55FB6CA865A025A3A6CC27AD17C4AFABA1E8EF062E0A82739" ], "crlCheckSoftFail" : true, "dataSourceProperties" : "*****", "database" : { "exportHibernateJMXStatistics" : false, "initialiseAppSchema" : "UPDATE", "initialiseSchema" : true, "mappedSchemaCacheSize" : 100, "transactionIsolationLevel" : "REPEATABLE_READ" }, "detectPublicIp" : false, "devMode" : true, "emailAddress" : "admin#company.com", "extraNetworkMapKeys" : [], "flowMonitorPeriodMillis" : { "nanos" : 0, "seconds" : 60 }, "flowMonitorSuspensionLoggingThresholdMillis" : { "nanos" : 0, "seconds" : 60 }, "flowTimeout" : { "backoffBase" : 1.8, "maxRestartCount" : 6, "timeout" : { "nanos" : 0, "seconds" : 30 } }, "jarDirs" : [], "jmxReporterType" : "JOLOKIA", "keyStorePassword" : "*****", "lazyBridgeStart" : true, "myLegalName" : "O=PartyC,L=New York,C=US", "noLocalShell" : false, "p2pAddress" : "localhost:10011", "rpcSettings" : { "address" : "localhost:10012", "adminAddress" : "localhost:10052", "standAloneBroker" : false, "useSsl" : false }, "rpcUsers" : [], "security" : { "authService" : { "dataSource" : { "passwordEncryption" : "NONE", "type" : "INMEMORY", "users" : [ { "ignoresFallbacks" : false, "resolved" : true, "value" : { "loadFactor" : 0.75, "modCount" : 3, "size" : 3, "table" : {}, "threshold" : 3 } } ] } } }, "trustStorePassword" : "*****", "useTestClock" : false, "verifierType" : "InMemory" } [INFO ] 2019-07-19T03:21:25,119Z [main] internal.Node.logStartupInfo - Vendor: Corda Open Source [INFO ] 2019-07-19T03:21:25,119Z [main] internal.Node.logStartupInfo - Release: 5.0-SNAPSHOT [INFO ] 2019-07-19T03:21:25,119Z [main] internal.Node.logStartupInfo - Platform Version: 5 [INFO ] 2019-07-19T03:21:25,119Z [main] internal.Node.logStartupInfo - Revision: df19b444ddd32d3afd10ed0b76c1b2f68d985968 [INFO ] 2019-07-19T03:21:25,119Z [main] internal.Node.logStartupInfo - PID: 19 [INFO ] 2019-07-19T03:21:25,120Z [main] internal.Node.logStartupInfo - Main class: /opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-node-5.0-SNAPSHOT.jar [INFO ] 2019-07-19T03:21:25,120Z [main] internal.Node.logStartupInfo - CommandLine Args: -Xmx512m -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -javaagent:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/quasar-core-0.7.10-jdk8.jar=x(antlr**;bftsmart**;co.paralleluniverse**;com.codahale**;com.esotericsoftware**;com.fasterxml**;com.google**;com.ibm**;com.intellij**;com.jcabi**;com.nhaarman**;com.opengamma**;com.typesafe**;com.zaxxer**;de.javakaffee**;groovy**;groovyjarjarantlr**;groovyjarjarasm**;io.atomix**;io.github**;io.netty**;jdk**;junit**;kotlin**;net.bytebuddy**;net.i2p**;org.apache**;org.assertj**;org.bouncycastle**;org.codehaus**;org.crsh**;org.dom4j**;org.fusesource**;org.h2**;org.hamcrest**;org.hibernate**;org.jboss**;org.jcp**;org.joda**;org.junit**;org.mockito**;org.objectweb**;org.objenesis**;org.slf4j**;org.w3c**;org.xml**;org.yaml**;reflectasm**;rx**;org.jolokia**;com.lmax**;picocli**;liquibase**;com.github.benmanes**;org.json**;org.postgresql**;nonapi.io.github.classgraph**) -Dcorda.dataSourceProperties.dataSource.url=jdbc:h2:file:/opt/corda/persistence/persistence;DB_CLOSE_ON_EXIT=FALSE;WRITE_DELAY=0;LOCK_TIMEOUT=10000 -Dvisualvm.display.name=Corda -Djava.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT -Dcapsule.app=net.corda.node.Corda_5.0-SNAPSHOT -Dcapsule.dir=/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT -Dcapsule.jar=/opt/corda/bin/corda.jar -Djava.security.egd=file:/dev/./urandom [INFO ] 2019-07-19T03:21:25,120Z [main] internal.Node.logStartupInfo - bootclasspath: /usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/lib/rt.jar:/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/lib/jfr.jar:/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/classes [INFO ] 2019-07-19T03:21:25,120Z [main] internal.Node.logStartupInfo - classpath: /opt/corda/bin/corda.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-shell-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-rpc-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-node-api-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-tools-cliutils-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-common-configuration-parsing-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-common-validation-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-common-logging-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-confidential-identities-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/log4j-slf4j-impl-2.9.1.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/log4j-web-2.9.1.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/jul-to-slf4j-1.7.25.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-jackson-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-serialization-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-core-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/kotlin-stdlib-jdk8-1.2.71.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/jackson-module-kotlin-2.9.5.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/kotlin-reflect-1.2.71.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/quasar-core-0.7.10-jdk8.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/kryo-serializers-0.42.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/kryo-4.0.0.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/jimfs-1.1.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/metrics-new-relic-1.1.1.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/guava-25.1-jre.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/caffeine-2.6.2.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/disruptor-3.4.2.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/commons-collections4-4.1.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/artemis-amqp-protocol-2.6.2.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/artemis-server-2.6.2.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/artemis-jdbc-store-2.6.2.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/artemis-journal-2.6.2.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/art...
In order to solve this, you need to bind the ports to 0.0.0.0:xxxx instead of localhost:xxxx in the node.conf "p2pAddress" : "localhost:10011", "rpcSettings" : { "address" : "localhost:10012", "adminAddress" : "localhost:10052", "standAloneBroker" : false, "useSsl" : false },
VichUploaderBundle an Gaufrette
"vich/uploader-bundle": "^1.4.2" and "knplabs/knp-gaufrette-bundle": "0.5" Symfony 3 my config: vich_uploader: db_driver: orm storage: gaufrette mappings: customer_logo: uri_prefix: /upload/customer_logos upload_destination: customer_logo_fs namer: ~ directory_namer: vich_uploader.directory_namer_subdir inject_on_load: false delete_on_update: true delete_on_remove: true knp_gaufrette: stream_wrapper: ~ adapters: user_photo: local: directory: '%kernel.project_dir%/var/uploads/user/photos' create: true filesystems: customer_logo_fs: adapter: customer_logo_adapter ERROR [Symfony\Component\DependencyInjection\Exception\AutowiringFailedException] Cannot autowire service "AppBundle\Twig\Base64Extension": argument "$storag e" of method "__construct()" references interface "Vich\UploaderBundle\Stor age\StorageInterface" but no such service exists. You should maybe alias th is interface to one of these existing services: "vich_uploader.storage.file _system", "vich_uploader.storage.gaufrette".
AppBundle\Twig\Base64Extension: arguments: ['#vich_uploader.storage.gaufrette'] public: true
How to increase Message size in signal 2.2.2
I'm using signalr 2.2.2 to send the current html to a signalr server hosting process to convert to pdf and while doing that keep a progress bar shown on the client side. The issue is signalr has a max message limit of 64kb. How do I increase that? Below is my websocket transport trace log. The target and compilation .net framework is 4.5 so SignalR is using websockets for this. transport trace log output: SignalR.Transports.TransportHeartBeat Information: 0 : Connection 2a307c4b-1ef6-4334-a3ef-875e0167ed75 is New. SignalR.Transports.WebSocketTransport Verbose: 0 : Sending outgoing message. Connection id: 2a307c4b-1ef6-4334-a3ef-875e0167ed75, transport: WebSocketTransport, message: {"C":"d-3FF6BE97-B,0|C,0|D,1","S":1,"M":[]} SignalR.Transports.WebSocketTransport Information: 0 : Abort(2a307c4b-1ef6-4334-a3ef-875e0167ed75) SignalR.Transports.WebSocketTransport Information: 0 : CloseSocket(2a307c4b-1ef6-4334-a3ef-875e0167ed75) SignalR.Transports.TransportHeartBeat Information: 0 : Removing connection 2a307c4b-1ef6-4334-a3ef-875e0167ed75 SignalR.Transports.WebSocketTransport Information: 0 : End(2a307c4b-1ef6-4334-a3ef-875e0167ed75) SignalR.Transports.WebSocketTransport Verbose: 0 : DrainWrites(2a307c4b-1ef6-4334-a3ef-875e0167ed75) SignalR.Transports.WebSocketTransport Information: 0 : CompleteRequest (2a307c4b-1ef6-4334-a3ef-875e0167ed75) SignalR.Transports.TransportHeartBeat Information: 0 : Connection 58e58295-77a1-48d7-bac3-5e7fcbb51073 is New. SignalR.Transports.WebSocketTransport Verbose: 0 : Sending outgoing message. Connection id: 58e58295-77a1-48d7-bac3-5e7fcbb51073, transport: WebSocketTransport, message: {"C":"d-3FF6BE97-B,0|E,0|F,1","S":1,"M":[]} SignalR.Transports.WebSocketTransport Error: 0 : OnError(58e58295-77a1-48d7-bac3-5e7fcbb51073, System.InvalidOperationException: Buffer length exceeded at Microsoft.AspNet.SignalR.Infrastructure.ByteBuffer.Append(Byte[] segment) at Microsoft.AspNet.SignalR.WebSockets.WebSocketMessageReader.d__3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNet.SignalR.WebSockets.WebSocketHandler.d__25.MoveNext()) SignalR.Transports.WebSocketTransport Information: 0 : CloseSocket(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : Connection 58e58295-77a1-48d7-bac3-5e7fcbb51073 exists. Closing previous connection. SignalR.Transports.WebSocketTransport Information: 0 : End(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.WebSocketTransport Verbose: 0 : Cancel(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.WebSocketTransport Verbose: 0 : DrainWrites(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.WebSocketTransport Information: 0 : CompleteRequest (58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073) SignalR.Transports.TransportHeartBeat Verbose: 0 : KeepAlive(58e58295-77a1-48d7-bac3-5e7fcbb51073)
The property you are looking for is MaxIncomingWebSocketMessageSize on GlobalHost.Configuration.
HWIOAuthBundle error non-existent service "session"
I've looked at everywhare but could not find a reference to this: After configuring the HWIOAuthBundle and get a few problems solved I got the following error: ( ! ) Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException' with message 'The service "hwi_oauth.resource_owner.google" has a dependency on a non-existent service "session".' in E:\Servidor\Wamp\wamp\www\DEVELOPMENT\magnetics\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass.php on line 64 I'm using Symfony 2.6 and here are my configuration file: imports: - { resource: parameters.yml } - { resource: security.yml } framework: #esi: ~ translator: { fallback: %locale% } secret: %secret% router: resource: "%kernel.root_dir%/config/routing.yml" strict_requirements: %kernel.debug% form: ~ csrf_protection: false validation: { enable_annotations: true } templating: engines: ['twig'] #assets_version: SomeVersionScheme default_locale: "%locale%" trusted_proxies: ~ session: false fragments: ~ hwi_oauth: # name of the firewall in which this bundle is active, this setting MUST be set firewall_name: secured_area resource_owners: google: type: google client_id: "977681365085-3pb" client_secret: "0IvhJ-DL7" scope: "https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile" #options: #access_type: offline # Twig Configuration twig: debug: %kernel.debug% strict_variables: %kernel.debug% exception_controller: 'FOS\RestBundle\Controller\ExceptionController::showAction' # Assetic Configuration assetic: debug: %kernel.debug% use_controller: false bundles: [ MagneticsAdminBundle ] #java: /usr/bin/java filters: cssrewrite: ~ #closure: # jar: %kernel.root_dir%/Resources/java/compiler.jar #yui_css: # jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar # Doctrine Configuration doctrine: dbal: driver: %database_driver% host: %database_host% port: %database_port% dbname: %database_name% user: %database_user% password: %database_password% charset: UTF8 # if using pdo_sqlite as your database driver, add the path in parameters.yml # e.g. database_path: %kernel.root_dir%/data/data.db3 # path: %database_path% orm: auto_generate_proxy_classes: %kernel.debug% auto_mapping: true # Swiftmailer Configuration swiftmailer: transport: %mailer_transport% host: %mailer_host% username: %mailer_user% password: %mailer_password% spool: { type: memory } sensio_framework_extra: view: { annotations: false } fos_rest: disable_csrf_role: ROLE_API param_fetcher_listener: true view: mime_types: json: ['application/json', 'application/json;version=1.0', 'application/json;version=1.1'] view_response_listener: 'force' formats: xml: true json: true templating_formats: html: true format_listener: rules: - { path: ^/, priorities: [ html, json, xml ], fallback_format: ~, prefer_extension: true } media_type: version_regex: '/(v|version)=(?P<version>[0-9\.]+)/' exception: codes: 'Symfony\Component\Routing\Exception\ResourceNotFoundException': 404 'Doctrine\ORM\OptimisticLockException': HTTP_CONFLICT messages: 'Symfony\Component\Routing\Exception\ResourceNotFoundException': true allowed_methods_listener: true access_denied_listener: json: true body_listener: true fos_http_cache: cache_control: rules: # the controls section values are used in a call to Response::setCache(); - match: path: ^/notes methods: [GET, HEAD] headers: cache_control: { public: true, max_age: 15, s_maxage: 30 } last_modified: "-1 hour" vary: [Accept-Encoding, Accept-Language] I've found similar problems but none of the solutions worked for me, anyone has an idea?
You have sessions disabled in your config session: false I don't know this for sure, but I'm going to guess that the session service isn't created when sessions are disabled at the framework level. You can check by debugging the container $ php app/console container:debug Or more targeted $ php app/console container:debug session