HA Bridge Exits/Crashes after random time

Hi, I've been using HA Bridge for quite some time with no issues.  A couple of days ago, it started to crash after random times.  Sometimes it crashes after 3 or 4 minutes, sometimes after a few hours... I'm hoping you can point me in the right direction.
Here's a copy of the last start/crash from my system:
sudo java -jar -Dvera.address=<IP_ADDRESS> -Dupnp.config.address=<IP_ADDRESS> -Dserver.port=9090 ha-bridge-3.2.0.jar
Password:
2017-05-15 21:47:43,345 [main] INFO  com.bwssystems.HABridge.HABridge - HA Bridge (v3.2.0) starting....
2017-05-15 21:47:43,354 [main] INFO  com.bwssystems.HABridge.BridgeSettings - reading from config file: data/habridge.config
2017-05-15 21:47:43,397 [main] INFO  com.bwssystems.HABridge.HABridge - HA Bridge (v3.2.0) initializing....
2017-05-15 21:47:43,404 [main] INFO  com.bwssystems.HABridge.SystemControl - System control service started....
2017-05-15 21:47:43.461:INFO::Thread-0: Logging initialized @527ms
2017-05-15 21:47:43,504 [Thread-0] INFO  spark.webserver.JettySparkServer - == Spark has ignited ...
2017-05-15 21:47:43,506 [Thread-0] INFO  spark.webserver.JettySparkServer - >> Listening on <IP_ADDRESS>:9090
2017-05-15 21:47:43.509:INFO:oejs.Server:Thread-0: jetty-9.3.z-SNAPSHOT
2017-05-15 21:47:43.543:INFO:oejs.ServerConnector:Thread-0: Started ServerConnector@5f29a123{HTTP/1.1,[http/1.1]}{<IP_ADDRESS>:9090}
2017-05-15 21:47:43.543:INFO:oejs.Server:Thread-0: Started @610ms
2017-05-15 21:47:43,675 [main] INFO  com.bwssystems.HABridge.devicemanagmeent.DeviceResource - HABridge device management service started....
2017-05-15 21:47:43,682 [main] INFO  com.bwssystems.HABridge.upnp.UpnpSettingsResource - Hue description service started....
2017-05-15 21:47:43,684 [main] INFO  com.bwssystems.util.UDPDatagramSender - Initializing UDP response Seocket...
2017-05-15 21:47:43,685 [main] INFO  com.bwssystems.util.UDPDatagramSender - UDP response Seocket initialized to: 50000
2017-05-15 21:47:43,693 [main] INFO  com.bwssystems.HABridge.hue.HueMulator - Hue emulator service started....
2017-05-15 21:47:43,699 [main] INFO  com.bwssystems.HABridge.upnp.UpnpListener - UPNP Discovery Listener starting....
2017-05-15 21:47:43,701 [main] INFO  com.bwssystems.HABridge.upnp.UpnpListener - UPNP Discovery Listener running and ready....
2017-05-16 07:37:35,782 [main] ERROR com.bwssystems.HABridge.upnp.UpnpListener - UpnpListener encountered an error sending upnp response packet. Shutting down
java.io.IOException: No route to host (sendto failed)
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:693)
at com.bwssystems.util.UDPDatagramSender.sendUDPResponse(UDPDatagramSender.java:70)
at com.bwssystems.HABridge.upnp.UpnpListener.sendUpnpResponse(UpnpListener.java:215)
at com.bwssystems.HABridge.upnp.UpnpListener.startListening(UpnpListener.java:127)
at com.bwssystems.HABridge.HABridge.main(HABridge.java:94)
2017-05-16 07:37:36,788 [main] INFO  com.bwssystems.HABridge.upnp.UpnpListener - UPNP Discovery Listener - ended, error found
2017-05-16 07:37:36,821 [main] INFO  spark.webserver.JettySparkServer - >>> Spark shutting down ...
2017-05-16 07:37:36.828:INFO:oejs.ServerConnector:main: Stopped ServerConnector@5f29a123{HTTP/1.1,[http/1.1]}{<IP_ADDRESS>:9090}
2017-05-16 07:37:36,846 [main] INFO  spark.webserver.JettySparkServer - done
2017-05-16 07:37:36,846 [main] INFO  com.bwssystems.HABridge.HABridge - HA Bridge (v3.2.0) exiting....
To note, there was a configuration change on my home network a few days back.  A new service provider installed a new router (ATT/Uverse), but we configured it on its own IP (172.16.x.x) and DMZ to my existing router (ASUS).  The ASUS and all connected devices to it maintained the same 192.168.x.x IP's and same DHCP Reservations.  In my mind, my internal network is 'the same as before', but it's odd that HABridge is now crashing...  Any help would be greatly appreciated!!  Thank you in advance!!!

are you using wifi and dhcp?

HABridge is (and has been) running on an iMac hard-wired to my ASUS router using a reserved DHCP IP.
It was running with no issues apparently until the new ATT router was installed and added to my network.
For clarification, the ATT router sits in front of my ASUS to bring in TV and Internet over fiber.  It has a 172.16.x.x Network address, its Wi-Fi disabled and DMZ open to the ASUS router.  The ASUS is on a 192.168.x.x network (same it's always been) with a DHCP table reservation to assign IP's to various devices such as my iMac, my home automation hub (Vera plus), Philips Hue hub, Lutron Hub, etc.  All these devices are hard-wired to the ASUS via a switch.  This configuration was exactly the same as before for all devices connected to the ASUS.  The difference is that the ASUS was connected to a cable modem before instead of the ATT router.
Thanks for looking into this!
G
Sent from my iPhone

On May 16, 2017, at 7:51 PM, BWS Systems<EMAIL_ADDRESS>wrote:
are you using wifi and dhcp?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

So the new router is doing something as your error "No route to host (sendto failed)" identifies that the iMac cannot send a UDP message back.

Maybe I'll make that less stringent on this error if it is transient.

Thanks again...
Should I wait for some kind of update from you?
Sent from my iPhone

On May 19, 2017, at 9:33 AM, BWS Systems<EMAIL_ADDRESS>wrote:
Maybe I'll make that less stringent on this error if it is transient.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

No, as you are still having some type of network issue. This enhancement will make it so it does not shutdown on this issue as it may be transient. I would check that your new router handles UDP datagram sending properly.

Hi, I updated to the latest version of HABridge (4.1.4) and it appears to be working…  the console logging is a bit more verbose and the UDP Warning (instead of a shutdown) is great.  I configured my Harmony Hubs and I still get some UDP warnings.  The service does not shut down, but I see a few java exception errors.
I am attaching an excerpt of my latest log hoping you can take a look and let me know if all these errors/warnings are OK or if you can help me identify why I keep getting them.  The offender IP’s are reserved for Harmony Hubs.  I have three of these hubs, but not all generate the errors.
Thanks again for the great support!

On May 19, 2017, at 8:49 AM, BWS Systems<EMAIL_ADDRESS>wrote:
No, as you are still having some type of network issue. This enhancement will make it so it does not shutdown on this issue as it may be transient. I would check that your new router handles UDP datagram sending properly.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bwssytems/ha-bridge/issues/633#issuecomment-302739822, or mute the thread https://github.com/notifications/unsubscribe-auth/AbZ3JQGgOqh9_UApbz3gBoCkhF1mqOtcks5r7bnvgaJpZM4NctRp.

The latest release is actually 4.5.0. Where are you going to get your releases?

I went here:
Sent from my iPhone

On May 22, 2017, at 9:37 AM, BWS Systems<EMAIL_ADDRESS>wrote:
The latest release is actually 4.5.0. Where are you going to get your releases?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Well your best bet is this github site for the ha-bridge.

I installed the latest version of ha-bridge.  It works a lot better!! I still get some random errors, but they are warnings now and the app no longer crashes.  Thank you for the help!


Update record:delete action for record ID

connects #605

@ben181231 @carmenlau updated the PR to bring back multiple record type deletion


Can i paste picture directly on localsend for windows

Is your feature request related to a problem? Please describe.
When I take a screenshot or copy an image on a web page, I must first find a way to save it as a file (for example, first paste the picture into Word, and then click "save as"), and then send it through localsend
Describe the solution you'd like
I hope that localsend can directly read the contents of the clipboard (picture, better if it can be file in any format), and then I can send it.
Describe alternatives you've considered
Add a paste button or allow to paste directly through ctrl+v
Additional context
No response

+1


How about add torrent filter to DOWNLOAD FILTERS

I have lots of torrents uploading in aria2, however there is no method to make it hidden in webui.
Is it possible to add torrent filter to webui?

How about the search upper right? If that doesn't help, tell more about the difference between your expectation and the search box.


Why not wrap the C lib?

Whats the purpose of not wrapping the c lib facebook provides?

Hi @ptomasroos,
Could you link me to the c lib that facebook provides?

Hey @chris-ramon
This is the library I meant.
https://github.com/graphql/libgraphqlparser

Thanks @ptomasroos !
Definitely we could had figure-out how and depend on the c parser lib and ofc gain all the advantages that brings it.
I think having no dependencies it allow us to move faster, have light-weight lib, and do not have to deal with c-to-go, go-to-c trips.
And we have already a working parser passing all the tests from graphql-js.

I think the sad part is that you will loose all the benefits facebook will make to that c library which will receive updates from nodejs, ruby, python and all of the other languages who are doing wrappers around it, plus its a enormous waste of time for you. Not trying to bash on you, its more that:
The moment you loose focus on this the entire community looses because now the entire community stands with a maintainability of something that might accelerate very fast on the source. I've seen this happen to a lot of projects when it comes to specially golang. Where ppl try to port wire formats and do it a "pure-way". CGO is seriously good and one of the biggest benefits i see with golang tbh. The ability to reuse.
What kind of features would ever be needed thats not supported out of the spec? And why wouldnt that be possible to be added on higher level?
There is nothing more reliable and lightweight than a c lib which does memory mgmt in the correct way. I can proove that the lib/pq is 4.000m after the wrapped c library which hasnt been updated for 6 years because there is no errors, no correct fault handling ect.
Its def up to you. But rewriting something will almost never ever make something better if its constrained by the source project anyhow. Just my cents. Not trying to sound like a douche.
CGO is no real problem to day.

@ptomasroos you realize that lib is only a parser, right? Parsers don't change much.

@ileitch  Yes. "only" 6-8K ? lines of code covered with tests. I see that as a big value.

@ptomasroos brought up some valid points on the benefits of wrapping the c-lib parser.
Right now the implementation of the parser is based on graphql-js parser but it is basically a black-box. The implementation details of the parser can be changed easily (e.g replace it with cgo impementation).
Give it a query string, get an ast struct in return. Simple as that.
I helped @chris-ramon to quickly complete his work on the parser, but I was more interested in writing tests to ensure that it meets the spec, at least in comparison to graphql-js.
Optimizing the parser for memory management and performance could come later, in my mind.
I think right now this project has more parts to it than just the parser i.e, the validator, executor etc, (For me personally, to get a working Relay-compliant server in golang eventually.)
I think if anyone could contribute a PR replacing the parser with a CGO version, that would be awesome. 👍🏻 The tests are already there, so it'll be relatively easy to verify the implementation.
Cheers guys!

I'm def looking forward to a good implementation in golang, no questions asked! I just hope that someone can get there in a reasonable amount of time before loosing its urge :)
Good luck, guys. Will check back.

A related update to keep this discussion productive:
Someone just released a golang wrapper for libgraphqlparser
https://github.com/tecbot/c-graphqlparser
Seems legit.
Cheers!


Typescript complains that data prop in query hook can be undefined

This makes destructuring the data prop very hard.
  const {
    data: { todos }, // because data prop doesn't fallback to an empty object this destructuring fails
    loading,
    error,
  } = useQuery<Todos.Data>(TODOS)

Would be very helpful if this was an empty object by default like documented in the apollo docs:
`data`: TData
An object containing the result of your GraphQL query. Defaults to an empty object.

I'm having the same issue.
An empty object would indeed be nicer.

data is undefined when skip option is equal to true. It's similar how react-apollo works: https://github.com/apollographql/react-apollo/blob/da452d117bdad8da6a87ada23c793b2eeb0fea7c/src/Query.tsx#L64.

@trojanowski thanks for the reply, indeed it seems to be the same.
However, I haven't found out why react-apollo returns at least an empty object and this library returns either TData or undefined:
const queryResult = useQuery<TData, TVariables>(query);
Any idea?


Change default editor for use with Windows environment

Checklist

[X] I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved
Instructions are provided to change the default editor in README -> Customization

However, this guidance is only valid for Linux/Mac environments.
Describe the ideal solution
Please add additional guidance for changing the default editor within a Windows environment.
In windows the process is either to run $env:EDITOR = 'code --wait'; auth0 universal-login templates update each time or set an environment variable called EDITOR and run auth0 universal-login templates update

Alternatives and current workarounds
No response
Additional context
No response

@mask-of-dimitrios Thanks for the suggestion, it is definitely a good idea. However, we don't usually operate with Windows machines so we are unable to easily test. Would you feel comfortable making a contribution here?

No one has a windows machine there. Ok.....

Hi, I have not forgotten to update this. I have scheduled time for next
week to get this done.
On Wed, Nov 8, 2023 at 7:00 PM Anthony Trimble @.***>
wrote:

This message originated outside your organization.

No one has a windows machine there. Ok.....
—
Reply to this email directly, view it on GitHub
https://github.com/auth0/auth0-cli/issues/877#issuecomment-1802478772,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJWOXDR345KQUYOQ2FRSOCTYDPJE3AVCNFSM6AAAAAA57DQNMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBSGQ3TQNZXGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

any update for this?


Duplicate Schemas in Open api document fails to log error message

Duplicate Schemas in Open api document fails to log error message. If there are duplicate schemas are present then error message needs to be logged.

closing this issue as this cannot be fixed. The parser uses fasterxml ObjectMapper for processing the data, this removes the duplicate keys at the first step.


[Bug][Sonarqube] Can not load data scope - Requires support for Sonarcloud API

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
Add Sonarqube connection successfully but its projects not loaded when adding Data scope.
What do you expect to happen
Should show Sonarqube projects.
How to reproduce

Added & test connection succesfully
Add data scope, it shows nothing in the popup window

Anything else
I found out that the key of the organization is required. Seems you are using deprecated API, check it out here.
Version
v0.21.0-beta6
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

@ces-truongvu This seems to be a problem with filling in the connection, and the test connection does have a bug, which causes the user to test successfully even if he fills in the wrong information.

@ces-truongvu  It will take effect in v0.21.0-beta7 version, expected to be released this week.

@abeizn Thank you.

Hi @abeizn,
I've update to the latest version (v0.21.0.beta7), I believe this issue still not be fixed.
Steps to produces
Test connection works

But data scope does not show my projects.

What I found out
So, I've started development environment and modified the following file backend/plugins/sonarqube/api/remote_api.go by adding the required query string as it was written here, then it shows my projects.

I wish I can create the PR but I am not familiar with Golang.
I hope that helpful. Thanks.

I'm having the same problem. The project list does not appear.

@ces-truongvu Are you using the sonarcloud version? We do not support sonarcloud yet, the corresponding issue is: https://github.com/apache/incubator-devlake/issues/4838.
The supported versions are shown in this document: https://devlake.apache.org/docs/Plugins/sonarqube

@ces-truongvu Are you using the sonarcloud version? We do not support sonarcloud yet, the corresponding issue is: #4838.
The supported versions are shown in this document: https://devlake.apache.org/docs/Plugins/sonarqube

@abeizn Yes, I'm using Sonar cloud. Got it, thanks for your support.

We are using SonarQube Server - Enterprise EditionVersion 9.9.2 (build 77730). I still dont see projects. They are  not loaded when adding Data scope.

@ces-truongvu - We are using SonarQube Server - Enterprise EditionVersion 9.9.2 (build 77730). Connection is shown as successful. I still dont see projects. They are not loaded when adding Data scope. Can you please assist.

@mrpaapi Devlake only support SonarQube v8.x, v9.x. Find out more here.

I'm not sure this issue is resolved?
I'm using 1.0.0-beta9 and still seeing the same behaviour.
When going to "Manage Connection" and click test, the UI says succeeded, but if you look at the logs, it actually failed.
When viewing the scopes, and you click test connection, this time it correct says disconnected / failed, and then not return anything.
The (redacted html) response from the search api on sonarqube is :

	            Loading...

The response should be json, not html which is why this fails.

Hmm, fault exists between chair and keyboard. Well, kindoff...
I realised that I entered the url wrong. I omitted the /api/ path in the url. Now I have it consistently returning with the correct json response from the API, but I still don't get any scopes back 🤔

Hmm, fault exists between chair and keyboard. Well, kindoff...
I realised that I entered the url wrong. I omitted the /api/ path in the url. Now I have it consistently returning with the correct json response from the API, but I still don't get any scopes back 🤔

@marais-vzc  What's the sonarqube's version that you are using?

SonarQube >9.2 and SonarCloud are not supported at this point.
Collecting vote.

When can we expect to get DevLake support for SonarQube Enterprise Edition 10.5.1?

@sr2530 No one is working on it at this point, we are open for anyone who would like to contribute.

not stale

@sr2530 No one is working on it at this point, we are open for anyone who would like to contribute.

Someone had submitted a PR, it just needs to be approved. https://github.com/apache/incubator-devlake/pull/7849

FYI. I am working on the Sonarcloud support now.


Update priavet key lines in config-example.yaml

Added a line to correctly write/create private keys in a Docker compose setup using the example-config.yaml template.

[ ] read the CONTRIBUTING guidelines
[ ] raised a GitHub issue or discussed it on the projects chat beforehand
[ ] added unit tests
[ ] added integration tests
[ ] updated documentation if needed
[ ] updated CHANGELOG.md

This private key has been removed and you are probably following the documentation/readme from the main branch, if you are setting up 0.22.3, you need to pick that git tag to read the correct documentation where this key is still present.


Allows data to be used with grunt events

Use any data passed into the grunt event to be used
Fixes #30

@jsoverson pinging you in case you aren't subscribed anymore


Geospatial support, or with PostGIS extension

Does AGE support any geospatial features, something like https://www.arangodb.com/docs/stable/indexing-geo.html ?
Or, can I use this extension coordinating with PostGIS extension, and use the PostGIS functions in AGE  cypher expression ?

Any document resources will be appreciated.
Thanks a lot.

Hi,
Currently we do not actively support PostGIS. https://github.com/apache/incubator-age/issues/48


Errant single quote in observable.ttl

Errant single quote in observable.ttl on line 5455

This was not a real issue.


Feed iterator documentation issues

In all documentation relating to feed iterators it mentions using it in similar to the following way
var feedIterator = container.GetItemLinqQueryable<User>(
        false,
        null,
        new QueryRequestOptions
        {
            MaxItemCount = 150
        }
    )
    .ToFeedIterator();

var list5 = new List<User>();
string continuation = "";
while (feedIterator.HasMoreResults)
{
    var response = await feedIterator.ReadNextAsync();
    list5.AddRange(response);

    if (response.Count > 0)
    {
        continuation = response.ContinuationToken;
        break;
    }
}

Specifically the while loop here has led to some confusion. What's the purpose of a while loop that breaks when there are responses? Why wouldn't we use it in the following fashion for paged results?
var feedIterator = container.GetItemLinqQueryable<User>(
        false,
        null,
        new QueryRequestOptions
        {
            MaxItemCount = 150
        }
    )
    .ToFeedIterator();

var list5 = new List<User>();
string continuation = "";
if (feedIterator.HasMoreResults)
{
    var response = await feedIterator.ReadNextAsync();
    list5.AddRange(response);

    if (response.Count > 0)
    {
        continuation = response.ContinuationToken;
    }
}

Is there some reason specifically to use a while loop when it breaks when there's a response? I didn't know if this had anything to do with error retrying or something similar. And the code here is prevalent in most documentation and code comments.

Can you please share where did you see this example? Which is the documentation?
In
if (feedIterator.HasMoreResults)
{
    var response = await feedIterator.ReadNextAsync();
    list5.AddRange(response);

    if (response.Count > 0)
    {
        continuation = response.ContinuationToken;
    }
}

Capturing the continuation makes no sense because the query is executing completely.
In:
var response = await feedIterator.ReadNextAsync();
    list5.AddRange(response);

    if (response.Count > 0)
    {
        continuation = response.ContinuationToken;
        break;
    }

This is simply an example of how to yield a query. Given some condition (in this case Count > 0 but it could be anything that makes sense to you), capture the continuation to continue later at some other time and stop the query.

Please check the .NET usage examples for pagination
https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos.Samples/Usage/Queries/Program.cs#L230

Its unclear why its in a while loop. If the entire point is to iterate once, then capture the continuation token (if there is one) and return the results. What is the point of putting it in a while loop in the pagination example?
Hopefully I'm being clear here. The example will always only iterate once.


HACS hangs up my Home Assistant

Version of HACS
0.13.2
Version of HA
0.97.2
Describe the bug
In HACS I went to Alexa Media Player page and then error occurred (the page wasn't load):
2019-08-23 08:59:51 ERROR (MainThread) [hass_nabucasa.iot] Unexpected error
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 571, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1775, in _run_once
    handle._run()
  File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/real_ip.py", line 37, in real_ip_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/ban.py", line 69, in ban_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/auth.py", line 228, in auth_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/view.py", line 124, in handle
    result = await result
  File "/home/homeassistant/.homeassistant/custom_components/hacs/api.py", line 43, in post
    response = await response.response(self)
  File "/home/homeassistant/.homeassistant/custom_components/hacs/api.py", line 184, in response
    await repository.update_repository()
  File "/home/homeassistant/.homeassistant/custom_components/hacs/repositories/integration.py", line 86, in update_repository
    await self.common_update()
  File "/home/homeassistant/.homeassistant/custom_components/hacs/repositories/repository.py", line 335, in common_update
    await self.get_info_md_content()
  File "/home/homeassistant/.homeassistant/custom_components/hacs/repositories/repository.py", line 449, in get_info_md_content
    root = await self.repository_object.get_contents("", self.ref)
  File "/srv/homeassistant/lib/python3.7/site-packages/backoff/_async.py", line 131, in retry
    ret = await target(*args, **kwargs)
  File "/srv/homeassistant/lib/python3.7/site-packages/aiogithubapi/repository.py", line 86, in get_contents
    raise AIOGitHubException(f"GitHub returned {response.status} for {url}")
aiogithubapi.exceptions.AIOGitHubException: GitHub returned 404 for https://api.github.com/repos/keatontaylor/alexa_media_player/contents/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/hass_nabucasa/iot.py", line 86, in connect
    await self._handle_connection()
  File "/srv/homeassistant/lib/python3.7/site-packages/hass_nabucasa/iot.py", line 186, in _handle_connection
    msg = await client.receive()
  File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/client_ws.py", line 227, in receive
    msg = await self._reader.read()
  File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/streams.py", line 628, in read
    return await super().read()
  File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/streams.py", line 588, in read
    await self._waiter
concurrent.futures._base.CancelledError

After that all integrations that use asyncio had a lot of errors and HA hang up:
2019-08-23 08:59:51 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.mibox fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 571, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1775, in _run_once
    handle._run()
  File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/real_ip.py", line 37, in real_ip_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/ban.py", line 69, in ban_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/auth.py", line 228, in auth_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/view.py", line 124, in handle
    result = await result
  File "/home/homeassistant/.homeassistant/custom_components/hacs/api.py", line 43, in post
    response = await response.response(self)
  File "/home/homeassistant/.homeassistant/custom_components/hacs/api.py", line 184, in response
    await repository.update_repository()
  File "/home/homeassistant/.homeassistant/custom_components/hacs/repositories/integration.py", line 86, in update_repository
    await self.common_update()
  File "/home/homeassistant/.homeassistant/custom_components/hacs/repositories/repository.py", line 335, in common_update
    await self.get_info_md_content()
  File "/home/homeassistant/.homeassistant/custom_components/hacs/repositories/repository.py", line 449, in get_info_md_content
    root = await self.repository_object.get_contents("", self.ref)
  File "/srv/homeassistant/lib/python3.7/site-packages/backoff/_async.py", line 131, in retry
    ret = await target(*args, **kwargs)
  File "/srv/homeassistant/lib/python3.7/site-packages/aiogithubapi/repository.py", line 86, in get_contents
    raise AIOGitHubException(f"GitHub returned {response.status} for {url}")
aiogithubapi.exceptions.AIOGitHubException: GitHub returned 404 for https://api.github.com/repos/keatontaylor/alexa_media_player/contents/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 249, in async_update_ha_state
    await self.async_device_update()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 419, in async_device_update
    await self.hass.async_add_executor_job(self.update)
concurrent.futures._base.CancelledError
2019-08-23 09:00:02 ERROR (Thread-6) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'report', 'model': 'sensor_motion.aq2', 'sid': '158d0001e16389', 'short_id': 54307, 'data': '{"no_motion":"600"}'}
2019-08-23 09:00:04 ERROR (Thread-6) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'report', 'model': 'motion', 'sid': '158d000121c604', 'short_id': 51859, 'data': '{"status":"motion"}'}
2019-08-23 09:00:06 ERROR (Thread-6) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'report', 'model': 'sensor_motion.aq2', 'sid': '158d0001e16389', 'short_id': 54307, 'data': '{"lux":"56"}'}
2019-08-23 09:00:06 ERROR (Thread-6) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'report', 'model': 'sensor_motion.aq2', 'sid': '158d0001e16389', 'short_id': 54307, 'data': '{"status":"motion"}'}
2019-08-23 09:00:09 ERROR (Thread-6) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'report', 'model': 'sensor_motion.aq2', 'sid': '158d0001e16358', 'short_id': 57065, 'data': '{"lux":"21"}'}
2019-08-23 09:00:09 ERROR (Thread-6) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'report', 'model': 'sensor_motion.aq2', 'sid': '158d0001e16358', 'short_id': 57065, 'data': '{"status":"motion"}'}
2019-08-23 09:00:49 ERROR (Thread-6) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'report', 'model': 'sensor_motion.aq2', 'sid': '158d0002b935e7', 'short_id': 28603, 'data': '{"no_motion":"1200"}'}
2019-08-23 09:01:14 ERROR (Dummy-8) [openzwave] Error in manager callback
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 952, in zwcallback
    self._handle_value_changed(args)
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 1504, in _handle_value_changed
    'value' : self.nodes[args['nodeId']].values[args['valueId']['id']]})
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 175, in network_node_changed
    self.node_changed()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 217, in node_changed
    self.maybe_schedule_update()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 77, in maybe_schedule_update
    self.hass.add_job(self._schedule_update)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 287, in add_job
    self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 733, in call_soon_threadsafe
    self._check_closed()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 480, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2019-08-23 09:01:14 ERROR (Dummy-8) [openzwave] Error in manager callback
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 952, in zwcallback
    self._handle_value_changed(args)
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 1504, in _handle_value_changed
    'value' : self.nodes[args['nodeId']].values[args['valueId']['id']]})
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 175, in network_node_changed
    self.node_changed()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 217, in node_changed
    self.maybe_schedule_update()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 77, in maybe_schedule_update
    self.hass.add_job(self._schedule_update)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 287, in add_job
    self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 733, in call_soon_threadsafe
    self._check_closed()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 480, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2019-08-23 09:01:15 ERROR (Dummy-8) [openzwave] Error in manager callback
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 952, in zwcallback
    self._handle_value_changed(args)
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 1504, in _handle_value_changed
    'value' : self.nodes[args['nodeId']].values[args['valueId']['id']]})
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 175, in network_node_changed
    self.node_changed()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 217, in node_changed
    self.maybe_schedule_update()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 77, in maybe_schedule_update
    self.hass.add_job(self._schedule_update)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 287, in add_job
    self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 733, in call_soon_threadsafe
    self._check_closed()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 480, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2019-08-23 09:01:15 ERROR (Dummy-8) [openzwave] Error in manager callback
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 952, in zwcallback
    self._handle_value_changed(args)
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 1504, in _handle_value_changed
    'value' : self.nodes[args['nodeId']].values[args['valueId']['id']]})
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 175, in network_node_changed
    self.node_changed()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 217, in node_changed
    self.maybe_schedule_update()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 77, in maybe_schedule_update
    self.hass.add_job(self._schedule_update)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 287, in add_job
    self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 733, in call_soon_threadsafe
    self._check_closed()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 480, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2019-08-23 09:01:15 ERROR (Dummy-8) [openzwave] Error in manager callback
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 982, in zwcallback
    self._handle_notification(args)
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 1576, in _handle_notification
    **{'network': self, 'args': args})
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 175, in network_node_changed
    self.node_changed()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 217, in node_changed
    self.maybe_schedule_update()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 77, in maybe_schedule_update
    self.hass.add_job(self._schedule_update)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 287, in add_job
    self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 733, in call_soon_threadsafe
    self._check_closed()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 480, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2019-08-23 09:01:15 ERROR (Dummy-8) [openzwave] Error in manager callback
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 982, in zwcallback
    self._handle_notification(args)
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 1576, in _handle_notification
    **{'network': self, 'args': args})
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 175, in network_node_changed
    self.node_changed()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 217, in node_changed
    self.maybe_schedule_update()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 77, in maybe_schedule_update
    self.hass.add_job(self._schedule_update)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 287, in add_job
    self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 733, in call_soon_threadsafe
    self._check_closed()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 480, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2019-08-23 09:01:21 ERROR (Thread-6) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'heartbeat', 'model': 'motion', 'sid': '158d000121c604', 'short_id': 51859, 'data': '{"voltage":3035}'}
2019-08-23 09:01:38 ERROR (Dummy-8) [openzwave] Error in manager callback
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 952, in zwcallback
    self._handle_value_changed(args)
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 1504, in _handle_value_changed
    'value' : self.nodes[args['nodeId']].values[args['valueId']['id']]})
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 175, in network_node_changed
    self.node_changed()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 217, in node_changed
    self.maybe_schedule_update()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 77, in maybe_schedule_update
    self.hass.add_job(self._schedule_update)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 287, in add_job
    self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 733, in call_soon_threadsafe
    self._check_closed()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 480, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2019-08-23 09:01:38 ERROR (Dummy-8) [openzwave] Error in manager callback
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 952, in zwcallback
    self._handle_value_changed(args)
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 1504, in _handle_value_changed
    'value' : self.nodes[args['nodeId']].values[args['valueId']['id']]})
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 175, in network_node_changed
    self.node_changed()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 217, in node_changed
    self.maybe_schedule_update()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 77, in maybe_schedule_update
    self.hass.add_job(self._schedule_update)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 287, in add_job
    self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 733, in call_soon_threadsafe
    self._check_closed()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 480, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2019-08-23 09:01:38 ERROR (Dummy-8) [openzwave] Error in manager callback
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 952, in zwcallback
    self._handle_value_changed(args)
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 1504, in _handle_value_changed
    'value' : self.nodes[args['nodeId']].values[args['valueId']['id']]})
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 175, in network_node_changed
    self.node_changed()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 217, in node_changed
    self.maybe_schedule_update()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 77, in maybe_schedule_update
    self.hass.add_job(self._schedule_update)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 287, in add_job
    self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 733, in call_soon_threadsafe
    self._check_closed()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 480, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2019-08-23 09:01:38 ERROR (Dummy-8) [openzwave] Error in manager callback
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 952, in zwcallback
    self._handle_value_changed(args)
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 1504, in _handle_value_changed
    'value' : self.nodes[args['nodeId']].values[args['valueId']['id']]})
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 175, in network_node_changed
    self.node_changed()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 217, in node_changed
    self.maybe_schedule_update()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 77, in maybe_schedule_update
    self.hass.add_job(self._schedule_update)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 287, in add_job
    self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 733, in call_soon_threadsafe
    self._check_closed()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 480, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2019-08-23 09:01:38 ERROR (Dummy-8) [openzwave] Error in manager callback
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 982, in zwcallback
    self._handle_notification(args)
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 1576, in _handle_notification
    **{'network': self, 'args': args})
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 175, in network_node_changed
    self.node_changed()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 217, in node_changed
    self.maybe_schedule_update()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 77, in maybe_schedule_update
    self.hass.add_job(self._schedule_update)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 287, in add_job
    self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 733, in call_soon_threadsafe
    self._check_closed()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 480, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2019-08-23 09:01:38 ERROR (Dummy-8) [openzwave] Error in manager callback
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 982, in zwcallback
    self._handle_notification(args)
  File "/srv/homeassistant/lib/python3.7/site-packages/openzwave/network.py", line 1576, in _handle_notification
    **{'network': self, 'args': args})
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/srv/homeassistant/lib/python3.7/site-packages/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 175, in network_node_changed
    self.node_changed()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 217, in node_changed
    self.maybe_schedule_update()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zwave/node_entity.py", line 77, in maybe_schedule_update
    self.hass.add_job(self._schedule_update)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 287, in add_job
    self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 733, in call_soon_threadsafe
    self._check_closed()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 480, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

That is wierd...
https://github.com/custom-components/hacs/blob/ae876f6cddb9c433aee74358978e70d79a1798a3/custom_components/hacs/repositories/repository.py#L449
Should be caught by:
https://github.com/custom-components/hacs/blob/ae876f6cddb9c433aee74358978e70d79a1798a3/custom_components/hacs/repositories/repository.py#L473

I turned on debug log and tried to reproduce this error after restart, but so far without luck.

Same here, I'm not able to reproduce it...

same errors pupping up once in a while - can be right after Hassio restart\machine restart or after 2 days uptime. Only container restart via portainer helps.

Added exception for AIOGitHubException in https://github.com/custom-components/hacs/releases/tag/0.14.0b0


option to not stroke?

Can prevent a polygon stroke by setting stroke: 'transparent'.
Maybe setting to null can avoid unnecessary paint calls?

Yes, it's a feature I've been meaning to add. As it stands, setting stroke to transparent is the only way to do it.

Now supported in https://github.com/pshihn/rough/pull/121
Use stroke: "none" in the options.


Feature Request: Extend height to support 100x100 sized PCB's

Brilliant project.
I actually went ahead and created OpenSCAD versions of the stencil holder, and the PCB center plate. I intending to push it as a contribution to your project in github.
Thinking people might want to resize for the stencil and PCB they have, but don't want to install Fusion360, or manually try and modify the STL's. With these available in OpenSCAD, users can use Thingiverse customizer to build STLs with the dimensions they need.
But one thing I think would improve this immensely, is if the height was increased.
Most board houses have a 100x100 limit on their low tier cost production runs so I think a lot of people would have boards that are up to 100 wide/tall. Supporting 150 in one dimension is great. but height is currently at about a 50mm max. It would be fantastic if it could support a 150x100 size PCB.
Then it should be able to support most board sizes I think people will use.

Hey. Super cool that you manage to make the center plate and stencil holder in OpenSCAD. I was thinking of trying to make it in OpenSCAD my self. But i have not tried it yet. Fusion360 is pretty much the only thing that keeps me from totally not having Windows on my computer, so converting to OpenSCAD would be awesome.
I can make a version of the box witch is bigger in Fusion pretty quick i belive. Maybe i can do it tomorrow morning, thats in like 10-12 hours from now.
But i should really get into openscad!

I used to use Fusion360 as well, until recently when the license was changed.
That's when I switched to FreeCAD. I still have Winslow installed, but only as a dual boot, and I only use if for Fusion. And I only use for cases like this.
This particular OpenSCAD model is quite simple. It's just keeping track of simple dimensions.
OpenSCAD can get you in quite deep in trigonometry. This model only has one point where that was needed (the fillets on the corners of the holes in corners of the PCB holder).
Fillets and chamfers in OpenSCAD can be a bit if a head scratcher, but there are utility modules available. All-through I generally role my own.
I'll be happy to update the model to the wider design if you release one.

How do you prefer it handles, when resizing the PCB as far as the ventilation holes go?
Currently I have not added any logic to adjust the ventilation holes.
So as you can see, the PCB can cut into the ventilation. How much ventilation is generally required around the PCB to create the needed vacuum on the stencil?

I think i removed one row/column of the ventilation surrounding the pcb. That way there will lower risk of vacuum sucking paste to the sides on each pads. Ideally the more the better, but it has diminishing returns i belive.

Just made a bigger bokx.  box_release_3.1.f3d  . The stencil lifter is whole and needs to have a custom pcb size cut into it. But i think its for the better. Let me know if you need it in another format.

Brilliant - I'll try and have a look at it tonight (I'm US Central timezone)

Even though it would be the proper way, I didn't create a pull request for this change. I'm not quite sure I fully understand the design intent with the latest changes. So I've attached the files here instead. If you can use them, feel free.
I'll be happy to update them if needed as well.
Assumptions:

I assumed the PCB holder could just grow in width. Your comment about the air holes made me leave the two rows that were there.
with the greater width, I didn't add any logic to reduce the number of air holes in the PCB holder. That's simple enough to add, if the rule to follow can be described.
stencil holder appear to be unchanged. I've included two files, but presently the model is the same in both.
not quite sure I follow you note about the stencil lifter. I was under the impression that the outside dimensions of the PCB holder would not change, only the inside hole for the actual PCB would change. If that's the case, the hole in the stencil lifter would be static, and can be modeled in Fusion.
If these assumptions are incorrect. let me know

To use the models, either install OpenSCAD and open the model. Make sure the Costumer panel is visible. It normally sits on the right hand side of the model. Click the arrow below the presets to expand panel with the options. You can save presets so you can save the dimension of each PCB you work with..
Alternatively to installing OpenSCAD, upload the files to Thingiverse, and make sure the Customizer option is checked. Then you will be able to use the costumizer directly on Thingiverse. Note that Thingiverse customizer is a but fickle.
OpenSCAD Models.zip
.

Hi.
A short to say thanks to Marius for the design and thanks to jpeterse for the OpenSCAD plates. The latter were a life saver as I have no WIndoze PCs (borrowed one to get the STLs out of F360) and use the .scad files to make various jigs to handle my double sided boards which need thicker plates with cutouts to clear the already mounted components.

Hey.
No problem :) thanks for taking the time to thank me.
Im releasing a new design soon. Im pretty sure this entire thing can be
made in scad pretty easily.
:)
Marius
On Wed, Mar 30, 2022, 18:19 micronrc @.***> wrote:

Hi.
A short to say thanks to Marius for the design and thanks to jpeterse for
the OpenSCAD plates. The latter were a life saver as I have no WIndoze PCs
(borrowed one to get the STLs out of F360) and use the .scad files to make
various jigs to handle my double sided boards which need thicker plates
with cutouts to clear the already mounted components.
—
Reply to this email directly, view it on GitHub
https://github.com/MariusHeier/magik_solder_paste_stencil_box/issues/1#issuecomment-1083349808,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHPI3YQ76LB5X5NRXTXJEHTVCR5I5ANCNFSM5MBNKD2A
.
You are receiving this because you commented.Message ID:
@.***
com>


Broken state-surgery script

The additional storage slot added to the Proxy_EOA here https://github.com/ethereum-optimism/optimism/pull/545 breaks the state-surgery script. Fix it before the next regenesis

We also cannot pull in the OVM_DeployerWhitelist state as the storage slots have changed. We talked about doing this for the previous regenesis and ended up not doing it.


Add support for HttpCookie expires date format

The format generated by System.Web.HttpCookie when formated is non-standard, a mix between RFC1123 and RFC850 (At least as of .NET Framework 4.6.1)
The exact format string used is "ddd, dd-MMM-yyyy HH':'mm':'ss 'GMT'" as seen here
This doesn't quite match RFC1123 which is "ddd, d MMM yyyy H:m:s 'GMT'" as it uses dashes between the day, month, and year instead of spaces, but doesn't quite match RFC850 which is "dddd, d'-'MMM'-'yy H:m:s 'GMT'" as it uses a short day of the week instead of a longer form.
This change allows the SetCookieHeaderValue to properly parse a response from the an API using the older System.Web.HttpCookie class to generate a HTTP response.

Interesting find

Can you add an entry in the tests as well?
Please file a bug for tracking purposes.
Can you rebase on the release/2.2 branch? That's the next branch we're shipping. Otherwise this won't release until 3.0.

Yep, I'll close this one and reopen once I have the tests written and bug filed.


DAO Status Links Wireframes

The status page is where a registered/validated user will go to take any action. Think of it as the jump-off point for the user.
The DAO Status contains five elements (Draft wireframe below the list).

The current list of rules and regulations

[x] A. Define where the document will be hosted
[x] B.  Define the format
[x] C. Define the link from GitHub to the Mobile App
[x] D. Define how the user transitions from a readable list to an editable list

The current list of proposals for selection

[x] A.  Define how the proposals will be presented
[x] B.  Ensure it flows with Status subsection of Voting section the DAO App https://github.com/tiki-bar/app/issues/566

The current list of proposals for voting

[x] A.Define how the proposals will be presented
[x] B. Ensure it flows with Status subsection of Voting section the DAO App #566
[ ] C.

4.. The jump-off for proposal submission

[x] A. Define how the submission will tie in with Proposal Submission for DAO App #567

. The current list of top and bottom companies (as per the community selection).

[ ] A.Write a draft set of rules for voting on a company's performance
[ ] B. Sketch workflow for user voting process
[ ] C. Sketch user's journey in company voting process
[ ] D. Sketch wireframes for the user journey

1. The current list of rules and regulations

The current list of proposals for selection

The current list of proposals for voting

The current list of top and bottom companies

Work up process and view

im not sure what I'm looking at here.
if this is the Home Screen of the app that is supposed to be a dashboard of what's going on then this will need a well thought-thru design of what's highlighted.
my suggestion tho is to NOT have a status screen/page and drop the user into the app with a 3 tab, tab bar at the bottom (rules, selection, vote). I think I would default the user to the vote page on log-in.

My head is probably clearer this week. I am debating deleting this in favour of the flow stuff I have done this week.


Migrate headers for RN 0.40 compatibility

As reported in #23, RN 0.40 comes with some compatibility-breaks. This PR will fix them.
See also: https://github.com/facebook/react-native/releases/tag/v0.40.0

Would be great if this could be pulled in.

@chirag04 do you means something like this? https://github.com/naoufal/react-native-activity-view/pull/8/commits/b06d9b2e0fadf63e23e227f71257a5698a468fdd

@itinance Yeah,  there's the explanation.

@itinance I would merge this PR as soon as you add this patch.

CR pls: https://github.com/itinance/react-native-zip-archive/commit/90a66f836a933e0f4695550744454ecd56872a53
thx!

merged in next branch, will merge into master in next release.


feat(ethabi, token): support nested tuples/arrays parsing

Before
➜  ethabi git:(master) cargo run -- encode params -v '(bool,bool[])[]' '[(true,[false,true])]'
    Finished dev [unoptimized + debuginfo] target(s) in 0.04s
     Running `target/debug/ethabi encode params -v '(bool,bool[])[]' '[(true,[false,true])]'`
Error: Invalid data

➜  ethabi git:(master) cargo run -- encode params -v '(bool,bool[])' '(true,[false,true])'
    Finished dev [unoptimized + debuginfo] target(s) in 0.11s
     Running `target/debug/ethabi encode params -v '(bool,bool[])' '(true,[false,true])'`
Error: Invalid data

After
➜  ethabi git:(parse-tuples-arrays) cargo run -- encode params -v '(bool,bool[])[]' '[(true,[false,true])]'
    Finished dev [unoptimized + debuginfo] target(s) in 0.04s
     Running `target/debug/ethabi encode params -v '(bool,bool[])[]' '[(true,[false,true])]'`
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001

➜  ethabi git:(parse-tuples-arrays) cargo run -- encode params -v '(bool,bool[])' '(true,[false,true])'
    Finished dev [unoptimized + debuginfo] target(s) in 0.04s
     Running `target/debug/ethabi encode params -v '(bool,bool[])' '(true,[false,true])'`
000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001

CI fails because of cargo-fmt. I'm not familiar with this code (and I don't think anyone of the maintainers still is) but the test case makes sense to me and the code looks fine at a glance.

@nlordell hello sir, can I get your review on this PR?


Add progress bar while downloading images

The images command obviously takes a while to download the images.
It would be cool to add a progressbar (https://github.com/schollz/progressbar) to show the progress of it.
https://github.com/enrichman/stegosecrets/blob/main/internal/cli/images.go#L37-L63
It would be nice to see the total content length of the responses and the download progress (instead of the number of the downloaded images), but this could be a bit more "complex".

I'm working on the number of images part. The contentLength might be a little bit more complex since the contentLength is set to -1, but I'll work on that too. Could you please assign it to me?

So are you working also on https://github.com/enrichman/stegosecrets/issues/25 ? Should I assign also that one to you?
That's ok, but let's do two different PR for the two different issues. :+1:

I would say to add only the progress with the number of the images as a start, and we can improve it later.

Ok the 25 is fine, I thought they weren't really dependent on each other. I'll be doing 25

No, I thought that when you said I'm working on the number of images part you were talking about the #25, but if you prefer this one let's keep it like this and lets leave the other issue to someone else. :smile:


Support i16, i32, u16, u32 attribute data types

Also move out attribute code into its own module.

meow @feuerste

Thanks for your review!


Rakeify rake tasks

This PR makes the rake tasks in mruby-cli use more rake features than they presently do.
Most notable is use of import to load the Rakefile from mruby after the appropriate setup has been finished (same for the package tasks).
Ensuring certain tasks are run inside Docker now uses dependencies instead of rewriting the tasks.  (Rewriting the tasks is bad because it converts FileTasks into Tasks and changes their behavior.)
Also, FileUtils references are removed as Rake already included that for us.
The result is as Jim Weirich intended.

I get the same test failure if I build an app with the latest release of mruby-cli and do nothing but run docker-compose run test:
RuntimeError: File TEST SETUP => can't make a socket bi (mrbgems: mruby-io)
Skip: File.expand_path (with ENV)
RuntimeError: FileTest TEST SETUP => can't make a socket bi (mrbgems: mruby-io)
Fail: FileTest.socket? (mrbgems: mruby-io)
 - Assertion[1] Failed: Expected false to be true
    Expected: true
      Actual: false
RuntimeError: IO TEST SETUP => can't make a socket bi (mrbgems: mruby-io)
MTest 1) Skipped:
test_assert_match(Test4MTest) /home/mruby/code/mruby/build/mrbgems/mruby-mtest/mrblib/mtest_unit.rb:183: assert_match is not defined, because Regexp is not impl. (MTest::Skip)
Total: 687
   OK: 683
   KO: 1
Crash: 3
 Time: 0.13 seconds
rake aborted!

Figured it out, need to clear the test task of MRuby's actions after importing MRuby's Rakefile.

The patch looks good to me, but we probably need to test this to make sure it doesn't break release or anything (I'm not sure those are thoroughly tested).

Seems fine:
$ docker-compose run release

Build summary:

================================================
      Config Name: host
 Output Directory: mruby/build/host
         Binaries: mrbc, mrbtest
    Included Gems:
             mruby-io
             mruby-getopts - GNU getopt for mruby
             mruby-dir
             mruby-sprintf - standard Kernel#sprintf method
             mruby-time - standard Time class
             mruby-mtest
             mruby-cli - 0.0.4 - mruby cli utility
               - Binaries: mruby-cli
             mruby-compiler - mruby compiler library
             mruby-bin-mrbc - mruby compiler executable
             mruby-test - mruby test
================================================

================================================
      Config Name: x86_64-pc-linux-gnu
 Output Directory: mruby/build/x86_64-pc-linux-gnu
    Included Gems:
             mruby-io
             mruby-getopts - GNU getopt for mruby
             mruby-dir
             mruby-sprintf - standard Kernel#sprintf method
             mruby-time - standard Time class
             mruby-mtest
             mruby-cli - 0.0.4 - mruby cli utility
               - Binaries: mruby-cli
================================================

================================================
      Config Name: i686-pc-linux-gnu
 Output Directory: mruby/build/i686-pc-linux-gnu
    Included Gems:
             mruby-io
             mruby-getopts - GNU getopt for mruby
             mruby-dir
             mruby-sprintf - standard Kernel#sprintf method
             mruby-time - standard Time class
             mruby-mtest
             mruby-cli - 0.0.4 - mruby cli utility
               - Binaries: mruby-cli
================================================

================================================
      Config Name: x86_64-apple-darwin14
 Output Directory: mruby/build/x86_64-apple-darwin14
    Included Gems:
             mruby-io
             mruby-getopts - GNU getopt for mruby
             mruby-dir
             mruby-sprintf - standard Kernel#sprintf method
             mruby-time - standard Time class
             mruby-mtest
             mruby-cli - 0.0.4 - mruby cli utility
               - Binaries: mruby-cli
================================================

================================================
      Config Name: i386-apple-darwin14
 Output Directory: mruby/build/i386-apple-darwin14
    Included Gems:
             mruby-io
             mruby-getopts - GNU getopt for mruby
             mruby-dir
             mruby-sprintf - standard Kernel#sprintf method
             mruby-time - standard Time class
             mruby-mtest
             mruby-cli - 0.0.4 - mruby cli utility
               - Binaries: mruby-cli
================================================

================================================
      Config Name: x86_64-w64-mingw32
 Output Directory: mruby/build/x86_64-w64-mingw32
    Included Gems:
             mruby-io
             mruby-getopts - GNU getopt for mruby
             mruby-dir
             mruby-sprintf - standard Kernel#sprintf method
             mruby-time - standard Time class
             mruby-mtest
             mruby-cli - 0.0.4 - mruby cli utility
               - Binaries: mruby-cli
================================================

================================================
      Config Name: i686-w64-mingw32
 Output Directory: mruby/build/i686-w64-mingw32
    Included Gems:
             mruby-io
             mruby-getopts - GNU getopt for mruby
             mruby-dir
             mruby-sprintf - standard Kernel#sprintf method
             mruby-time - standard Time class
             mruby-mtest
             mruby-cli - 0.0.4 - mruby cli utility
               - Binaries: mruby-cli
================================================

Writing /home/mruby/code/releases/v0.0.4/mruby-cli-0.0.4-x86_64-pc-linux-gnu.tgz
Writing /home/mruby/code/releases/v0.0.4/mruby-cli-0.0.4-i686-pc-linux-gnu.tgz
Writing /home/mruby/code/releases/v0.0.4/mruby-cli-0.0.4-x86_64-apple-darwin14.tgz
Writing /home/mruby/code/releases/v0.0.4/mruby-cli-0.0.4-i386-apple-darwin14.tgz
Writing /home/mruby/code/releases/v0.0.4/mruby-cli-0.0.4-x86_64-w64-mingw32.tgz
Writing /home/mruby/code/releases/v0.0.4/mruby-cli-0.0.4-i686-w64-mingw32.tgz
Writing /home/mruby/code/releases/v0.0.4/mruby-cli-0.0.4.tgz

PS: package seems broken on master:
$ docker-compose run package
[…]
Build summary:

================================================
      Config Name: host
 Output Directory: build/host
         Binaries: mrbc, mrbtest
    Included Gems:
             mruby-io
             mruby-getopts - GNU getopt for mruby
             mruby-dir
             mruby-sprintf - standard Kernel#sprintf method
             mruby-time - standard Time class
             mruby-mtest
             mruby-cli - 0.0.4 - mruby cli utility
               - Binaries: mruby-cli
             mruby-compiler - mruby compiler library
             mruby-bin-mrbc - mruby compiler executable
             mruby-test - mruby test
================================================

================================================
      Config Name: x86_64-pc-linux-gnu
 Output Directory: build/x86_64-pc-linux-gnu
    Included Gems:
             mruby-io
             mruby-getopts - GNU getopt for mruby
             mruby-dir
             mruby-sprintf - standard Kernel#sprintf method
             mruby-time - standard Time class
             mruby-mtest
             mruby-cli - 0.0.4 - mruby cli utility
               - Binaries: mruby-cli
================================================

================================================
      Config Name: i686-pc-linux-gnu
 Output Directory: build/i686-pc-linux-gnu
    Included Gems:
             mruby-io
             mruby-getopts - GNU getopt for mruby
             mruby-dir
             mruby-sprintf - standard Kernel#sprintf method
             mruby-time - standard Time class
             mruby-mtest
             mruby-cli - 0.0.4 - mruby cli utility
               - Binaries: mruby-cli
================================================

================================================
      Config Name: x86_64-apple-darwin14
 Output Directory: build/x86_64-apple-darwin14
    Included Gems:
             mruby-io
             mruby-getopts - GNU getopt for mruby
             mruby-dir
             mruby-sprintf - standard Kernel#sprintf method
             mruby-time - standard Time class
             mruby-mtest
             mruby-cli - 0.0.4 - mruby cli utility
               - Binaries: mruby-cli
================================================

================================================
      Config Name: i386-apple-darwin14
 Output Directory: build/i386-apple-darwin14
    Included Gems:
             mruby-io
             mruby-getopts - GNU getopt for mruby
             mruby-dir
             mruby-sprintf - standard Kernel#sprintf method
             mruby-time - standard Time class
             mruby-mtest
             mruby-cli - 0.0.4 - mruby cli utility
               - Binaries: mruby-cli
================================================

================================================
      Config Name: x86_64-w64-mingw32
 Output Directory: build/x86_64-w64-mingw32
    Included Gems:
             mruby-io
             mruby-getopts - GNU getopt for mruby
             mruby-dir
             mruby-sprintf - standard Kernel#sprintf method
             mruby-time - standard Time class
             mruby-mtest
             mruby-cli - 0.0.4 - mruby cli utility
               - Binaries: mruby-cli
================================================

================================================
      Config Name: i686-w64-mingw32
 Output Directory: build/i686-w64-mingw32
    Included Gems:
             mruby-io
             mruby-getopts - GNU getopt for mruby
             mruby-dir
             mruby-sprintf - standard Kernel#sprintf method
             mruby-time - standard Time class
             mruby-mtest
             mruby-cli - 0.0.4 - mruby cli utility
               - Binaries: mruby-cli
================================================

Writing releases/v0.0.4/mruby-cli-0.0.4-x86_64-pc-linux-gnu.tgz
Writing releases/v0.0.4/mruby-cli-0.0.4-i686-pc-linux-gnu.tgz
Writing releases/v0.0.4/mruby-cli-0.0.4-x86_64-apple-darwin14.tgz
Writing releases/v0.0.4/mruby-cli-0.0.4-i386-apple-darwin14.tgz
Writing releases/v0.0.4/mruby-cli-0.0.4-x86_64-w64-mingw32.tgz
Writing releases/v0.0.4/mruby-cli-0.0.4-i686-w64-mingw32.tgz
Writing releases/v0.0.4/mruby-cli-0.0.4.tgz
fpm is not installed. Please check your docker install.

I'm wondering why you want to import the mruby rake tasks atop your own.  I find building mruby via subshell is less trouble and easier to use.  The same method could be used to run tasks inside docker.

What is the point of running rake inside of a subshell.. in rake? :woah:
mruby knows how to compile mruby, and when we started building stuff with mruby, we leaned on the existing tasks to do the work for us. What you're doing with mruby-optparse is fine, but I don't think every gem doesn't want to maintain this much configuration.
The Rakefile is a generated file, that users shouldn't have to maintain, it's still there so the smaller the better.
But anyways, when I get a chance to finish mruby-build, hopefully most of this stuff can be upstreamed and we don't have to bikeshed in each project.
Back to this patch, the other thing is mruby-cli was generated.. with mruby-cli. So we have to update the setup.rb stuff so user apps can take advantage of these changes.
The downside to this patch is breaking up the tasks into separate files means having to generate them for the user too (on setup), more files means more things to diff when doing upgrades and such. So we have to consider that as well.

@drbrain Thanks for doing that. It's cleaner :+1:.
About package task, it seems that the last docker image is not the good one anymore (even if the Dockerfile in the repo is correct). @hone or @zzak could you give me access to the docker registry of mruby-cli image so I can fix it?
@drbrain as Zak explains, mruby-cli generates different files, including a Rakefile thanks to setup.rb. This is nearly the same than the Rakefile you improved (except a few things such as the package task). Could you also apply your changes to setup.rb? Thanks.
About, multiple files. @zzak I'm wondering if it wouldn't be the path to avoid to have twice the same code. If we can isolate the different task and make them generic, setup.rb can just copy the file, rather than generate it. What do you think?

I will update setup.rb soon.
@toch I must say I vastly prefer libraries over generated code.  It's a ton of work to update generated code, but library code updates are (within compatible versions) labor-free. Unfortunately I'm unsure how a library model can work with mruby-cli as a single binary.  (You could do some bizarre stuff with import like I do in this PR, but it would likely quickly devolve into an unmaintainable mess.)
The reason I'm concerned about importing mruby's Rakefile is issues like needing to work around mruby or having to tell users a task must run in docker (which was broken).
There's a few reasons I think separation will be better.
One is that it makes getting started as a rubyist familiar with rake much easier.  I can't rake test or rake package, instead I have to docker-compose run test but sometimes that doesn't work so I have to docker-machine start default then eval $(docker-machine) env.  I can probably make fully automated docker work with an imported mruby Rakefile, but it's a pain compared to having rake run docker for me.  (If you've never used docker mruby-cli has a bucket of mystery to drain before you can see "Hello World" show up on your terminal.)
Another reason I prefer a docker subshell is that I can't easily get tasks to run outside docker to set up state needed for tasks that must run inside docker.  For example, I want to generate some .rb files that end up in mrblib/ without having to install a modern ruby inside Docker (thus having to manage my own image).  AFAICT this is impossible without running two commands currently because docker-compose run creates a dependency firewall.
With a docker subshell I could use regular rake dependencies to take care of that in a straightforward manner.  I could also set up tasks to easily upload my built CLI when docker was finished all from one rake task's dependencies.
For the above reasons I'm likely to switch my current mruby-cli build over to the docker subshell model because I will have less to teach my coworkers who will contribute to my CLI.  I can bring the instructions down to "download docker, install docker, run rake" from "download docker, install docker, start docker, load docker env, run docker-compose run test" … "oh, and if you reboot your machine you'll have to remember to start docker again and load the environment" (which they will forget because I forget).
The final one is that it's a separation of concerns.  Presently mruby-cli doesn't make any changes to mruby's Rakefile (besides the local:ensure_in_docker with this PR and similar code in existing mruby-cli).  This means I don't have any worries about upgrading to a new mruby with my existing mruby-cli.  Importing mruby's Rakefile makes it possible to accidentally couple to a given version of mruby meaning I'll have to update to a new mruby-cli to use a new mruby.  This would be annoying.
PS: Even rake has a ruby method for running ruby in a subshell.

Oh, the final thing I should add about importing mruby's Rakefile is that to do it in a rake-like fashion it involves features few people know about, like import and that it will invoke a task that depends on the imported file as this PR does to make sure the download is unpacked.

setup.rb updated

See also @c6adb30 for a reason why mruby-cli should not import mruby's Rakefile.

@drbrain first of all, thanks for your patience and your answer.
Let me go through your answers first :).
libraries vs generated code.
I agree with you. I think it would be cleaner to extract that part so we don't have to duplicate it. It's easy to forget to replicate it in the setup.rb and by doing so not providing it to the created mruby-cli app. As we would have the hand on them, there is no really a maintenance of a dependency, it's just a cleaner structure.
So far, my only current concern is as you said it well: "Unfortunately I'm unsure how a library model can work with mruby-cli as a single binary." In our case we need to consider: 1. mruby-cli the framework that allows us to scaffold the CLI app, and 2. the CLI itself. Considering that mruby-cli structure is nearly the same than the one of the CLI app it can scaffold, I don't think it would be a problem to opt for a library model. In a way we're already doing it as both depends on a few dependencies on mruby gems.
refactoring of local:ensure_in_docker
Thanks a lot, it's cleaner and I learned something about Rake :).
rake vs docker-compose
From a user point of view, I really like the idea. It would provide a better UX as we'd provide a very familiar set up, as you said.
a docker subshell
I like what you suggest. In fact, it would allow us to use even more docker as a tool rather than an environment. There are options to do what you suggest from inside, but it's not simple and it would require in a certain case to run it with privileged mode what we don't want.
about separation of concerns
agreed
I'm going to review your changes now.

I've just commented a few lines. Not a lot to say except about the generation of code.
I still need to test the whole, I'll do that after my lunch.

There is an issue with the clean task. It seems that the deep_clean task is calling itself in a loop creating a loop bomb that froze my computer and made my X killed eventually.
For the task package, I got the following error:
NameError: undefined local variable or method `package_dir' for main:Object
/home/mruby/code/tasks/package.rake:125:in `block (3 levels) in <top (required)>'
/home/mruby/code/tasks/package.rake:122:in `each'
/home/mruby/code/tasks/package.rake:122:in `block (2 levels) in <top (required)>'

the variable package_dir were previously defined but it is no more in your changes.
The other tasks work as expected. The scaffold works also as expected except for the clean task.
Is it correct that for now, your changes don't implement your idea to run docker from rake?

I'll check the loop and missing package_dir soon.
I don't plan to implement running docker from rake here, it's too much change for one PR.

thanks

I don't plan to implement running docker from rake here, it's too much change for one PR.

:+1: and I'd happy to help

Fixed the infinite loop by removing the looping.  Somehow the task rewriter caused this loop because I didn't change the clean task before @b6404e4.  See commit message for details.

This should be ready to go now, sorry for the delay.

Thanks @drbrain, could you rebase please?
I'm going to try the changes again to be sure.


Curiosity calibration targets.

I am trying to calibrate some colors for the left MASTCAM. Most of the images, akin to above, are covered in dust.
Do you know where I could look for images that were taken prior to launch? There are plenty of colored images from NASA but I cannot find any pre-launch raw bayers of the calibration targets.

The calibration report for Mastcam can be found here: https://agupubs.onlinelibrary.wiley.com/doi/full/10.1002/2016EA000219
You can also check out the calibration data archive on PDS: https://pds-imaging.jpl.nasa.gov/data/msl/MSLMST_0001/CALIB/

Thanks. This was helpful. I managed to figure out what that target (for the ChemCam) is supposed to look like on earth.

If I can ever manage to get this to a point of completion you (and maybe fellow space monkeys) might be interested in the debayering algorithm I've been working on - but I am a total amateur doing this just as an experiment while teaching myself how camera sensors work on the hardware level so my outputs might be junk.
The following image was not "white balanced" as far as I know and I am unsure why my algorithm outputs the "correct" colors for "white". Note that red and "blue" are essentially the same in contrast & hue as in the image in the previous post - which was debayered with your application / malvar.

I am also looking at extracting depth from single-frame (without focal stack) images to some degree of subjective outcome.

Do you know if Curiosity has any calibration target for stereo images?


[Broker] Fix producer getting incorrectly removed from topic's produc…

…ers map
Motivation
There is currently a bug that allows a producer to be removed from a topic's producers map, but not from the ServerCnx#producers map. As a consequence, two producers with the same name can connect at the same time.
The fundamental issue here is with the definition of equality for the Producer class. This class's definition of equality has been an issue before. @merlimat fixed one such issue here: https://github.com/apache/pulsar/pull/11804. That fix addressed some of the problems, but I think we need to go a step further in making sure that the wrong producer cannot be removed from the topic's producers map.
In the new test that I add with this PR, I show that it is still possible to remove the wrong producer. In the test, we essentially get two callbacks on the getOrCreateTopic future. Once that future succeeds, we create one producer and then the second fails and calls producer.closeNow(true), which removes the successful producer from the topic. It does not remove the successful topic from the ServerCnx because of the changes introduced in https://github.com/apache/pulsar/pull/9256.
The producer's equals method is only used when ensuring that the right producer is removed from the producers map and when determining if a producer is allowed to overwrite another producer. In my view, the simplest solution is to remove the overriding of equals and put the logic from equals into another method. This way removing a producer from a map is not too complicated (object equality is now reference equality), and we can still determine if a producer should override another.
Modifications

Remove Producer#equals and Producer#hashCode to rely on the default object implementations.
Add Producer#isSuccessorTo to retain the logic required to determine if a producer is okay to overwrite an existing producer.

Other Benefits
When a producer is not present in a topic's producers map, the producer does not report metrics.
Verifying this change
I added a new test that shows a way to reproduce the issue. The new test fails on master but succeeds on my branch. There are also many tests that verify this code path to ensure this change does not introduce a regression.
Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes

Dependencies (does it add or upgrade a dependency): no
The public API: no
The schema: no
The default values of configurations: no
The wire protocol: no
The rest endpoints: no
The admin cli options: no
Anything that affects deployment: no

Documentation

[x] no-need-doc

This is an internal bug fix.

@ivankelly - in looking at https://github.com/apache/pulsar/pull/9256, I am wondering if I should also submit a PR similar to this one but for consumers. I haven't researched the consumer path for removal yet, so I cannot say for sure, but if there was a race for closing the wrong consumers, it's possible that the definition of equality is too broad for the Consumer class, and if so, the wrong consumer could be removed from the topic. Let me know, thanks.

/pulsarbot run-failure-checks


Don't parse adjacent ops

Fixes #73
Sorry if you were hacking on this @XFFXFF, but I just ran into it and decided to fix it.

No, I didn't hack on this :)

bors r+


Add Private Phone Shop to the list of merchants

What's the name of your business?
Private Phone Shop
What's the URL of the website?
https://www.privatephoneshop.com
Write a brief description of your business/service (max 50 characters)
De-googled phones w/ LineageOS and GrapheneOS
Enter the URL where a Monero mention can be found
https://privatephoneshop.com/faq/#Do_you_accept_cryptocurrency_as_payment
How do you accept Monero? (choose only one option)

[X ] Other payment gateaway  - MyCryptoCheckout

How would you categorize your business? (choose only one option)

[X] Goods

Comment
Nothing else, we love Monero!

Ok.

#1687


Port recent changes to maxHistory from default config file

This was changed in https://github.com/thelounge/lounge/pull/899 and will be deployed as part of v2.2.1, so keeping this section up-to-date with it.

Merging this as it's a simple port of @xPaw's changes and I'm about to ship v2.2.1.


"Add all code to clipboard" button in Results view

This is a feature request from Elizabeth, a current TA/instructor at UofT:
Right now when a TA is grading code, if they want to copy all the code, they have to view the plain text in a new window, or download the files.
It would be nice to have a "Copy all text to clipboard" button that were only enabled for text files (but not images).

JavaScript (and thus JQuery) is unable to natively copy code into the clipboard for security reasons. The workaround it to use Flash (https://github.com/zeroclipboard/zeroclipboard).
Is this still something worth pursuing?

This looks promising: https://github.com/zenorocha/clipboard.js

+1 for clipboard.js ;)


Could you Please add support for Dialog Deligation

https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/dialog-interface-reference#delegate

Looks like it's in beta as part of the new Alexa Skills Kit skills builder web ui.

Hi!
Here is my (fast) solution: https://github.com/dgtony/flask-ask/commit/ac6f4626f4894f3236c1a22f7bd9e5438fd4685a
You can watch dialog-continuation state and while it's not "COMPLETED" return new delegate object.

Any chance we can get an intent example? My lack of skill is making it challenging to figure out how to actually take advantage of this alongside the new interaction models.

@codyde
from flask import Flask
from flask_ask import Ask, statement, session, delegate

app = Flask("TestSkill")
ask = Ask(app, "/skill")

COMPLETED_DIALOG_STATE = 'COMPLETED'

def get_dialog_state():
    return session['dialogState']

@ask.intent('HelloIntent')
def hello(param1, param2, param3):
    # delegate dialog to Alexa until all parameters are set
    dialog_state = get_dialog_state()
    if dialog_state != COMPLETED_DIALOG_STATE:
        return delegate()

    print("parameters: #1: {}, #2: {}, #3: {}".format(param1, param2, param3))
    return statement("ok, now I've got all parameters")

if __name__ == "__main__":
    app.run(host='localhost', port=5001, debug=True)

@dgtony I'm getting an TypeError at  return delegate() statement - TypeError: __init__() takes exactly 2 arguments (1 given)

@santosh719 Looks like there's just a random speech parameter that's not being used. https://github.com/johnwheeler/flask-ask/blob/master/flask_ask/models.py#L205
Should be a quick fix.

What's the status on this? It looks like it's on PyPI, but the documentation doesn't mention it.

@johnwheeler, given that delegate is often used to complete commands before any action is taken, how would you feel about a delegate_until_complete (name TBD) argument to @ask.intent that returns a delegate until the dialog is complete? I think this would be useful, as it would address a common use case.
I can submit a PR if you want.


DatePicker Locale Not Working in Mobile

Description
DatePicker setLocale method working fine in Laptop browsers but not working in mobile phone browsers including Chrome.
Expected outcome
When I choose the date from DatePicker from my mobile phone, it should work according to my locale.
Example (Locale TR -> Working fine in laptop browsers but not in mobile browsers):
dpStartDate = new DatePicker( "" );
dpStartDate.setPlaceholder( "Başlangıç Tarihi" );
dpStartDate.setLocale( new Locale( "tr", "TR" ) );

[x] Chrome
[x] Firefox
[x] Safari
[x] Edge
[ ] IE 11
[ ] iOS Safari
[ ] Android Chrome

Thanks for the issue. This repo is for the Web Component, and for its Java counterpart we have different repo. I will move it there so that our teammates could handle it appropriately.

This issue was moved to vaadin/vaadin-date-picker-flow#116

When this bug will be fixed?


test: initialize negative testing

test: initialize negative testing
Signed-off-by: Yang Chiu<EMAIL_ADDRESS>

@longhorn/qa
After investigation, the test cases in 1. Longhorn operations running continuously part of Negative Testing should be able to be automated, since the test pod has the ability to directly manipulate the filesystem on the host node (e.g. execute mkfs, dd or other shell commands). If the Longhorn volume we'd like to manipulate is attached to the same node as the test pod is running on, there should be no problems.
Also I think we can introduce a test framework with higher abstraction than pytest. I use robot framework here but just for demonstration. As we can see in https://github.com/longhorn/longhorn-tests/pull/1125/files, there is just a 1-to-1 mapping between each test step and python function, it would be more easier to implement and maintain test code, also it supports FOR ... IN ...  syntax and it's what we need in the negative test cases.
WDYT?

Awesome to have robot!

The test steps definition has been refined, but for the test steps implementation, since it involves refactoring to use crd instead of REST python client, could take more time.

@longhorn/qa @innobead @c3y1huang
The very first negative test case Replica Rebuilding with replica deletion has been implemented in this PR.

Basically it will use CRD to operate Longhorn instead of using Longhorn Python client
If unable to use CRD to operate Longhorn, fall back to use Longhorn Python client
Keep using Longhorn Python client as an option, as discussed in https://github.com/longhorn/longhorn-tests/pull/1125#discussion_r1071743101
Briefly summarize the Volume package structure: AbstractVolume works as an interface, CRDVolume and RestVolume are CRD implementation and Python client implementation of AbstractVolume, and Volume works as a factory to return a CRDVolume or RestVolume according to the strategy
This PR is just a prototype, more error handling and debugging message should be added
It takes more than 8 hours to run this single test case (since it's needed to be run for 200 times according to the test case definition), so it could be impossible to run negative cases one by one, some parallelism should be implemented

It takes more than 8 hours to run this single test case (since it's needed to be run for 200 times according to the test case definition), so it could be impossible to run negative cases one by one, some parallelism should be implemented

This is a good result for the initial work. If taking a long execution time matters or impacts our productivity, we should make the parallel execution generally in the future.

Keep using Longhorn Python client as an option, as discussed in test: initialize negative testing #1125 (comment)

Do you mean there will be an option to choose to test by the python HTTP API client with the robot test cases?

Keep using Longhorn Python client as an option, as discussed in test: initialize negative testing #1125 (comment)

Do you mean there will be an option to choose to test by the python HTTP API client with the robot test cases?

Yes, Volume._strategy should be configurable and determine the test should use HTTP API client or CRD

As @innobead suggested, let's make steps as folder and categorize them.
- steps
        - <by resource type or test step category>

The negative.robot can be renamed to something meaningful like replica_resiliency_test.robot

refined!

Please help take this time to re-organize the folder structure of longhorn-tests as below.
* pipelines (airgap, benchmark_test, ...)

* docs (rename qa_docs)

* testbed_setup (rename test_framework)

* e2e (new framework)

  * libs (your framework folder in this PR. I already mentioned [here](https://github.com/longhorn/longhorn-tests/pull/1125#pullrequestreview-1297734547))
  * tests (negative_tests in this PR)

* manager (don't touch)

In README.md, explain the purpose of each folder, and mention manager folder will be deprecated after e2e (new framework) is ready.
cc @longhorn/qa

Opened another ticket to track https://github.com/longhorn/longhorn/issues/5936, since it's not related to negative testing PR.