Timespan Displays Deathdate as same as birthdate if one or the other is missing.

This is a distortion of the data and results in a misrepresentation of the data in the graph. See attached.

Possibly 2 separate issues here:

The tooltip display that should (I agree) show which one is missing
The visual display that displays either a vertical line or a single dot, depending on the view being shown.

In the case of 1, I completely agree that we should indicate the missing value in the tooltip. In the case of 2, what are your thoughts on what we should be doing differently here?

If we are capturing and processing the data as 1. viable value  + 2. missing value, then we would be fine with the graphic. It's not actually the graphic display that is the problem. It's the resulting interaction/data manipulation. I cannot filter to just people whose birthdate falls in a certain range. If those people are  missing a death date, the death date becomes equal to the birthdate. As a result, I have to select the range of date in both the birthdate and the deathdate. That is illogical and interferes with filtering on complete birth-death dates.

Attached an image showing how filtering on Birth year yields an incorrect result.

I guess we could treat it as a feature instead of a bug. The advantage is that it gives you a way to select those who do not have birthdates. But the interaction is too wrong. It just doesn't make sense.

Ahhhhh, yup. Thanks, I think that clarifies what I need to do here. Will see what I can do.

This should be fixed in palladio-timespan-component version 1.1.0. If you pull down the latest master branch of palladio-app, it should be fixed there too (you'll need to do a 'bower update'). It's tagged as palladio-app#1.2.2 and we can push it to the main site once we are ready.
Can you confirm if it works?

It works! Thanks

From: Ethan Jewett<EMAIL_ADDRESS>Sent: Tuesday, August 16, 2016 4:12 PM
To: humanitiesplusdesign/palladio
Cc: Catherine Nicole Coleman; Author
Subject: Re: [humanitiesplusdesign/palladio] Timespan Displays Deathdate as same as birthdate if one or the other is missing. (#160)
This should be fixed in palladio-timespan-component version 1.1.0. If you pull down the latest master branch of palladio-app, it should be fixed there too (you'll need to do a 'bower update'). It's tagged as palladio-app#1.2.2 and we can push it to the main site once we are ready.
Can you confirm if it works?

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/humanitiesplusdesign/palladio/issues/160#issuecomment-240267823, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AARlBVbrQEzmDP_CTg7wkIpH7JGByIzbks5qgkPcgaJpZM4Jl3rn.

Cool. Just as a quick overview, everything excep the tool tips should be the same in "bars" mode. But in the parallel/slope-graph mode it no longer displays lines for things that are missing one of their dates. Instead, I have started showing the endpoint dots in this mode on the axes. So for data points with one one of the dates it just shows a dot on the appropriate axis.
Thanks,Ethan
On Tue, Aug 16, 2016 at 6:19 PM -0500, "Nicole Coleman"<EMAIL_ADDRESS>wrote:
It works! Thanks

From: Ethan Jewett<EMAIL_ADDRESS>Sent: Tuesday, August 16, 2016 4:12 PM
To: humanitiesplusdesign/palladio
Cc: Catherine Nicole Coleman; Author
Subject: Re: [humanitiesplusdesign/palladio] Timespan Displays Deathdate as same as birthdate if one or the other is missing. (#160)
This should be fixed in palladio-timespan-component version 1.1.0. If you pull down the latest master branch of palladio-app, it should be fixed there too (you'll need to do a 'bower update'). It's tagged as palladio-app#1.2.2 and we can push it to the main site once we are ready.
Can you confirm if it works?

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/humanitiesplusdesign/palladio/issues/160#issuecomment-240267823, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AARlBVbrQEzmDP_CTg7wkIpH7JGByIzbks5qgkPcgaJpZM4Jl3rn.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.

That's a good solution. Nice.
On Tue, Aug 16, 2016 at 5:38 PM -0700, "Ethan Jewett" <notifications<EMAIL_ADDRESS>wrote:
Cool. Just as a quick overview, everything excep the tool tips should be the same in "bars" mode. But in the parallel/slope-graph mode it no longer displays lines for things that are missing one of their dates. Instead, I have started showing the endpoint dots in this mode on the axes. So for data points with one one of the dates it just shows a dot on the appropriate axis.
Thanks,Ethan
On Tue, Aug 16, 2016 at 6:19 PM -0500, "Nicole Coleman"<EMAIL_ADDRESS>wrote:
It works! Thanks

From: Ethan Jewett<EMAIL_ADDRESS>Sent: Tuesday, August 16, 2016 4:12 PM
To: humanitiesplusdesign/palladio
Cc: Catherine Nicole Coleman; Author
Subject: Re: [humanitiesplusdesign/palladio] Timespan Displays Deathdate as same as birthdate if one or the other is missing. (#160)
This should be fixed in palladio-timespan-component version 1.1.0. If you pull down the latest master branch of palladio-app, it should be fixed there too (you'll need to do a 'bower update'). It's tagged as palladio-app#1.2.2 and we can push it to the main site once we are ready.
Can you confirm if it works?

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/humanitiesplusdesign/palladio/issues/160#issuecomment-240267823, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AARlBVbrQEzmDP_CTg7wkIpH7JGByIzbks5qgkPcgaJpZM4Jl3rn.

You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/humanitiesplusdesign/palladio/issues/160#issuecomment-240281756, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AARlBZ6fl0ID43jw3jL4mKr60yETuus5ks5qglgFgaJpZM4Jl3rn.


get_dummies not executing

Dask get_dummies "runs" but it doesn't actually execute the get_dummies task.
import pandas as pd
import dask.dataframe as dd

pandasData = pd.DataFrame({'var1': ['a', 'b', 'a'], 'var2': ['b', 'a', 'c'], 'var3': ['c', 'a', 'b']})
pd.get_dummies(pandasData)

daskData = dd.from_pandas(pandasData, npartitions=1)
daskData.head()

daskDataDummies = dd.get_dummies(daskData).compute()
daskDataDummies.head()

daskDataDummies.to_csv('daskDataDummies_out.csv', header=True, index=False)

There's no error message it simply doesn't transform the dataframe.

Looking at the docstring it looks like these need to be categorical:
Convert categorical variable into dummy/indicator variables. Data must
have category dtype to infer result's ``columns``

Arguably we should err here, but I suspect that this is your problem.

Understood, but if this is trying to be 100% analogous to Pandas' get_dummies shouldn't this be baked into the functionality?

I'm not sure that what you're proposing is possible without a full scan.
If you'd like to do some experimentation and submit a PR though that would
be great.
On Wed, Nov 23, 2016 at 7:43 PM, Nick Sharkey<EMAIL_ADDRESS>wrote:

Understood, but if this is trying to be 100% analogous to Pandas'
get_dummies shouldn't this be baked into the functionality?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/1809#issuecomment-262664124, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AASszJSryWCzAOcMvkLKNuQWaS-HDQpuks5rBN3OgaJpZM4K7CyU
.

I don't have the technical capabilities to do that. If it isn't something you or the community can do then close out the request.

Adding to that parametrized test has been helpful so far.  Next time I take a look at this I'll probably dump in a bunch more dtypes and such.

Perhaps someone smarter than I can figure out a sampling technique to approximate the full file's dtypes.

Sampling probably isn't sufficient.  We need to know all of the values throughout the file to determine the columns.


[cstor-csi]:  Application went to RO state on performing network loss on target container (istgt)

Description

While performing the network loss on cstor target istgt container seeing that application pod continuously went into crashloopbackoff state after removed the network loss rule. Looking upon the application mount point it's in RO state.  Even if we restart the application pod still it went to crashloopbackoff because of mount point is still RO.

Note: When the application is scheduling on the same node then this behaviour is observed.
Expected Behaviour

Application pod has to be run after removed the network loss from istgt container.

Current Behaviour

Application pod keeps on crashing and the  volume mount is in ro state

k8s@e2e1-node3:~$ mount | grep pvc-cf7a7f51-39e9-4347-bb9b-3c20f3d7a369
/dev/sdf on /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-cf7a7f51-39e9-4347-bb9b-3c20f3d7a369/globalmount type ext4 (ro,relatime,stripe=256)
/dev/sdf on /var/lib/kubelet/pods/afdc8803-7030-46c0-82c8-156b5d2c4525/volumes/kubernetes.io~csi/pvc-cf7a7f51-39e9-4347-bb9b-3c20f3d7a369/mount type ext4 (ro,relatime,stripe=256)

k8s@e2e1-master:~/e2e-tests$ kubectl get po -n percona
NAME                      READY   STATUS             RESTARTS   AGE
percona-f445994bd-sj4s6   0/1     CrashLoopBackOff   6          7m25s
tpcc-bench-kr6kt          0/1     Completed          0          31m
k8s@e2e1-master:~/e2e-tests$ kubectl get pvc -n percona
NAME        STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS              AGE
testclaim   Bound    pvc-cf7a7f51-39e9-4347-bb9b-3c20f3d7a369   5Gi        RWO            openebs-cstor-cspc-disk   40m
k8s@e2e1-master:~/e2e-tests$ kubectl get cv -n openebs
NAME                                       CAPACITY   STATUS    AGE
pvc-cf7a7f51-39e9-4347-bb9b-3c20f3d7a369   5Gi        Healthy   40m
k8s@e2e1-master:~/e2e-tests$ kubectl get cvr -n openebs
NAME                                                                 ALLOCATED   USED   STATUS    AGE
pvc-cf7a7f51-39e9-4347-bb9b-3c20f3d7a369-cstor-cspc-disk-pool-49gh   164M        368M   Healthy   40m
pvc-cf7a7f51-39e9-4347-bb9b-3c20f3d7a369-cstor-cspc-disk-pool-mtn4   164M        368M   Healthy   40m
pvc-cf7a7f51-39e9-4347-bb9b-3c20f3d7a369-cstor-cspc-disk-pool-nrpj   164M        368M   Healthy   40m

Steps to Reproduce

Deploy application with liveness probe enabled
perform network loss on cstor istgt container using tc tc qdisc add dev eth0 root netem loss 100.00
wait for ~240s and remove the network loss rule tc qdisc del dev eth0 root netem loss 100.00
check the application status it's in crashloopbackoff state.

istgt-container-log
cstor-csi-plugin-log

Explanation:
This behavior is observed when the application pod is scheduled on the same node upon the deletion of the pod. When the application is scheduling on the same node CSI CO sends only NodePublish and NodeUnpublish request. To serve those requests CSI-Node plugin will perform Unmount and bind mount on target path not on the staging path. Since unmount and mount performed on targetPath application mount not able to mark as RW.
Target path: From path where the application pod will consumes the volume /var/lib/kubelet/pods/afdc8803-7030-46c0-82c8-156b5d2c4525/volumes/kubernetes.io~csi/pvc-cf7a7f51-39e9-4347-bb9b-3c20f3d7a369/mount.
Staging path: GlobalMounting path from here different applications(consuming this volume) will --bind mount to their own path(Path looks like: /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-cf7a7f51-39e9-4347-bb9b-3c20f3d7a369/globalmount ).
Possible Workarounds:

Scaledown the application and Scaleup the application.
(Or)
Enforce the application pod to move to a different node.
(Or)
Enable the REMOUNT feature in CSI node daemonset.

Can the remount feature be enabled by default though kubectl and helm charts.

In recent releases(2.4 I think), REMOUNT feature is enabled in both the installation process via Helm charts as well as operator way.

REMOUNT feature was enabled by default in the following versions and PRs

2.4.0 version of cStor-operator in openebs/charts#191 PR.
2.5.0 version of helm charts in openebs/cstor-operators#180 PR


Is there a way to record in landscape?

It seems that I can only record in portrait. Is there a way to do it in landscape? Thanks!

Hey guys, I had the same problem … fixed it by installing the latest version.
I was on 1.32 not 1.66


[FLINK-24674][kubernetes] Create corresponding resouces for task manager Pods

This is a rebased version of #17582 to the latest master branch to trigger CI runs, as the CI seems to be consistently producing seemingly unrelated failures on the original PR.
Fyi @viirya @gyfora

@flinkbot run azure

Hi @viirya,
@gyfora and I have investigated the issue and we could reproduce the following failure locally:
Dec 17 21:52:24 2021-12-17 21:52:07,419 ERROR org.apache.flink.runtime.entrypoint.ClusterEntrypoint        [] - Could not create application program.
Dec 17 21:52:24 java.lang.IllegalArgumentException: Only "local" is supported as schema for application mode. This assumes that the jar is located in the image, not the Flink client. An example of such path is: local:///opt/flink/examples/streaming/WindowJoin.jar
Dec 17 21:52:24 	at org.apache.flink.kubernetes.utils.KubernetesUtils.lambda$checkJarFileForApplicationMode$2(KubernetesUtils.java:386) ~[flink-dist-1.15-SNAPSHOT.jar:1.15-SNAPSHOT]

This happens in the k8s native ha e2e test after the forced restart of the jobmanager pod. Note that initially the job starts fine (and the non-ha test passes successfully), but on restarting from a jobmanager pod failure is bugged after your change.
On jobmanager restore the new jobmanager reads the flink-conf.yaml in the relevant configmap, in the case of the test from flink-config-flink-native-k8s-application-ha-1. This initally contained the following line to note the location of the job jar submitted:
pipeline.jars: local:///opt/flink/examples/streaming/StateMachineExample.jar

However after your change the taskmanager pod overwrites the configmap that was until now only created by the jobmanager, with the following value which leads to the failure:
pipeline.jars: file:///opt/flink/examples/streaming/StateMachineExample.jar

The file or local scheme is a trivial change to code around, but investigating this broken test revealed a conceptual issue with your proposal. After your change all the accompanying resources always get overwritten taskmanager pod, which leads to unintended consequences. To my knowledge we always expected in Flink that the jobmanager and taskmanagers share the same Hadoop configuration and Kerberos configuration, having this different can lead to gnarly bugs.
If we understand correctly from the original issue description you had a case where the Hadoop config was present in the taskmanager docker image, but not in the jobmanager one. We feel that this is a cornercase that does not merit special coverage given the above consequences, we suggest that you use one of the two existing mechanism to ship your Hadoop config instead:

Specify on the client that is doing the job submission via the HADOOP_CONF_DIR environment variable
Deploy a long lived configmap to the k8s environment and reference that via kubernetes.hadoop.conf.config-map.name

Taking a step back your Hadoop config is probably environment specific and often changes between your test and production environment, so we would discourage you from baking this into the image itself - rather keep it as part of the environment itself via either of the aforementioned methods. Based on this assessment we are advising against merging this change.
Thank you for your contribution, let me know if you have any further questions, concerns or suggestions.

If we understand correctly from the original issue description you had a case where the Hadoop config was present in the taskmanager docker image, but not in the jobmanager one. We feel that this is a cornercase that does not merit special coverage given the above consequences, we suggest that you use one of the two existing mechanism to ship your Hadoop config instead:

Thanks for the investigation. I suspected that could be caused by overwriting the configmap, but didn't know the details of job manager restarting behavior. That makes sense.
One point that is not exactly, is the Hadoop config was present both in task manager and job manager docker image (they use same docker image).
I knew that the official support case is to set up a configmap on K8S and use kubernetes.hadoop.conf.config-map.name to refer it. I personally don't prefer this approach as I don't think end-users need to worry about setting up configmap for Hadoop configs. Especially for test purpose, we don't need to change Hadoop configs, so setting configmap every time launching a new cluster is a bit trouble. Encapsulating the Hadoop config files into the docker image is easiest way to test it across every clusters with same configs.
In many cases, the job submission is not happened in local but in another container running on K8S, for example the Flink operator works like that. So the local HADOOP_CONF_DIR environment variable is not work. Maybe there is a workaround to put Hadoop config on the docker image, and modify the submitting script to include the environment variable.
I also need to mention that one motivation of this patch is, if we put the Hadoop config files in the docker image (e.g., once you un-tar the Hadoop distribution into the docker image), the Flink pod creation will fail as it cannot mount the configmap. This is very confusing for end-users if they don't know the implementation details. At least when I saw the error, I don't know what's going on with it. So that is why I was digging into this part of code and changed it to set up a configmap instead of just failing the Pod creation.

Taking a step back your Hadoop config is probably environment specific and often changes between your test and production environment, so we would discourage you from baking this into the image itself - rather keep it as part of the environment itself via either of the aforementioned methods. Based on this assessment we are advising against merging this change.

I understood your concern here and I also don't have intent to forcibly push this patch, it's just how I overcome the error I encountered during test. I believe you are more knowledgeable in Flink than me and can make better decision. Let me close this PR.

Hi @viirya,
Thanks for the detailed answer and the flexibility in your approach. You clarified a valid point: if both the jobmanager and the taskmanager image already have the Hadoop config baked in we could technically just use that instead of enforcing a configmap being available with this information. This seemingly contradicts my previous position (that environment specific configuration should not be in the container image), but if we think that it streamlines initial user experience or valid use cases as you mention and is reasonably easy to implement it might make sense to do so. I will play with this a bit during the holiday season - let us catch up afterwards, and more importantly happy holidays. 😊

Thanks @mbalassi
My basic point is to allow a different approach which can enable more use cases and scenarios. I feel that flexibility is important for end users. At least I think it should be reasonable thinking that if we put Hadoop configs in the docker image, job manager/task manager should be able to recognize it and use it.
Yea, let's have a happy holidays first! :)

Closing as this is no longer relevant.


Ensure NewStreamingMap and NewStreamingSet panic when input is not ordered

Fixes #3560

@aboodman PTAL redid this so as not to change api, overwrote last commit

@aboodman, I believe this is ready to go. It's just waiting on a PR approval.

Can @arv or @rafael-atticlabs review this? I won't be able to get to it today or tomorrow.

or @kalman


Pokemon that spawn in the air

I have not been able to find a single pokemon that spawns in the air after searching actively in many different biomes.

They should be upped slightly with the most recent restart, so I'm going to close this for now. Let us know if you still see no difference.


Coveralls not correctly linking to source files

I suspect this is because we use src/qinfer instead of just qinfer, but the metadata collected and analyzed by Coveralls is not correctly showing up on the website. For instance, in reporting on PR #119, Coveralls raises the error that qinfer/resamplers.py is not available. This makes it difficult, to say the least, to determine why a coverage rate is affected by a particular PR.

Was this fixed in #121?

I think so, yes. I forgot to close the issue, sorry.


chore(doc): Design a no-result page

First part of #2103

https://deploy-preview-2269--algolia-instantsearch.netlify.com/guides/no-result.html

All good 🙌


Feature Request: Minimize/Close to tray

Minimize and close to tray would be nice features.

Hey @chrisknepper I appreciate having the minimizing to tray functionality, but I feel it could be improved a little. In my experience with other apps, typically the app stays in the taskbar when the minimize window button is clicked, but if you close the window, it's removed from the taskbar but minimizes to the system tray (still running in the background). GPDMP is another good example of what I'm describing. The main reason I'm asking for this is because when I minimize Messages, I can't alt-tab back to the window because it's now in the system tray.
Again this is my own opinion, I do appreciate the work you've put into the app. This is probably a Windows only thing, BTW.

I agree. The best practice in my opinion would be for the following functionality:
Main Window Minimize = minimize
Main Window Close = close to tray, trigger one-time "application still running" notification
Tray Icon Quit = close application
An option could always be added to toggle the tray behavior at a later date, but the above would be the best until that time.

@hexeth @spncrhrstn Agree 100%. I'll need to read the Electron docs a bit more to make sure we only go to the tray specifically when the Close button is pressed, but I think this would make a better experience for sure.

Check out v0.3.0 and let me know what you all think about the changes. If there's still something you'd like to see and it wasn't covered, please open a new issue.

Just installed the update, so far so good! Thanks for your work on this!


Elementor text input looks broken and can't be used

I'm having problems with the text input that can be used for sendKeys etc. It looks broken in some way and it cant be used.
My environment:
OS: macOs Sierra 10.12.4
Browser: Chrome Version 58.0.3029.81 (64-bit)
webdriver-manager 12.0.4
Version of Angular 1.5.3
This is how the text input looks:

I'm having the same issue


Add group repository move

Add group repository storage move endpoints https://docs.gitlab.com/ee/api/group_repository_storage_moves.html

@svanharmelen apologies, this should be the last repository move for review now. Have updated Snippets and Projects for consistency aswell.


Document fluentd-hec tail in troubleshooting and tuning options up to 5k eps

What would you like to be added:
Document experience we have seen with various log rotation size/frequency settings and how rotate_wait or refresh_interval may help.
Why is this needed:
To help users validate the upper limit of a single collector and review some deployment changes that can be made to achieve much higher throughputs, including knowing when to switch to the docker-uf option and how.

I will update this issue with steps to review and verify log rotation settings seen in the wild across docker and containerd/cri-o (10MB, 100MB, 500MB); Also results using various settings on fluentd tail plugin to try and get the most out of a single collector instance before needing to move to a UF based solution.


Return response if custom error handler is used

So right now if we set a custom error handler, we'll always get this message each time the app hits an error:
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/home/imp/rPlace/venv/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/home/imp/rPlace/venv/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/home/imp/rPlace/venv/lib/python3.9/site-packages/fastapi/applications.py", line 276, in __call__
    await super().__call__(scope, receive, send)
  File "/home/imp/rPlace/venv/lib/python3.9/site-packages/starlette/applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/imp/rPlace/venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/home/imp/rPlace/venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/home/imp/rPlace/venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/home/imp/rPlace/venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/home/imp/rPlace/venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/home/imp/rPlace/venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/imp/rPlace/venv/lib/python3.9/site-packages/starlette/routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "/home/imp/rPlace/venv/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/home/imp/rPlace/venv/lib/python3.9/site-packages/starlette/routing.py", line 69, in app
    await response(scope, receive, send)
TypeError: 'NoneType' object is not callable

The error message above is pretty useless, the way to get hide it is by raising an exception or returning a response. So this PR returns a generic 500 Internal Server Error response or returns a custom response returned from the user defined error handler.
You could make it return JSONResponse({"message": "internal server error"}, status_code=500) instead of Response(status_code=500) so it's more consistent with this line https://github.com/imptype/discohook/blob/patch-5/discohook/handler.py#L102

Hmm looks good! Will check it

await request.app.error_handler(interaction, e)
return JSONResponse({"message": "internal server error"}, status_code=500)

What about just directly returning the 500 rather than doing the instance checkign as error handler should not return anything.

await request.app.error_handler(interaction, e)
return JSONResponse({"message": "internal server error"}, status_code=500)

What about just directly returning the 500 rather than doing the instance checking as error handler should not return anything.

sounds good


add links to support and slack in issue template

add links to enterprise support and slack to the issues page for easier discoverability

This is just a Github issue template change so I'm going to ignore CI and set the ready to merge label


Change phases and Requested current to high

Hi there,
thank you for the integration - Works reliably so far.
But i have two questions:

Is there a way to change the phases from 1 to 3?
Why can I increase the slide controller named as "Requested current" which obviously increases/decreases current ampere value to max 32 amps even though my 11kw box can only handle a maximum of 16 amps?

Thank you so far.
Best regards,
fox

The switch entity force single phases can be used to switch from 3 phases to 1.
The component supports the 22kw version of the device too. It's a bit tricky to ask the device about the supported limits/feature and apply these constraints to the different entities. As an interim solution we could make to type (11kw vs. 22kw) configurable via the config flow. So we can set the limits easily depending on the configuration.


[Feature Request] Make height of URL Preview text adjustable in query string area

Details
Good day everyone,
so today I ran into the problem that the URL Preview textarea wan't adjustable in height, which just didn't feel right. (and also is slightly annoying)
Only a few longer query string parameters will get the textarea to its limits.

Thanks!

I can take this one


Relabeling DDE templates. Add new configs to DDE blueprint services

probably we should delete the old template with name without version

2.24 should be the target branch


Implement Submission module step 1

Related to #4

retrieve list of ongoing public reviews from the backend (#14)
for each public review, activate the associated map layer containing the corresponding masterplan
add interactivity to the map so that zero or one masterplan can be selected
implement submit function that records the ID of the public review corresponding to the selected masterplan and proceeds to the next step
show an error when the user attempts to proceed, but no masterplan has been selected

See also #13


Adding Button to Add Selections to Every Axis where Bounds Exist

Given the parallel coordinates can now display ranges of data when lists are passed as data elements, it would be useful to allow users with the click of a single button add filters for every axis that match one series of this type. A button should exist for aligning selection boxes to each series that contains axis bounds rather than a single value. In this way, a user could toggle between selecting all data that fits a particular model bounds and an alternative model's bounds.

Issued resolved in commit bd1b72


Move old-ui-src files to client/src directory

Description
Moving old-ui-src files to client/src directory. Upgrading a few packages and removing/changing attributes according to warnings.
Trello Ticket
https://trello.com/c/oZSXbWpe
Type of Change

[x] Refactoring

Risk

React-hook-form is not up to date.
Having troubles migrating from v6 to v7. Will do it on a separate ticket.
Header of the landing page is out of position.
The menu icon is not showing properly.  The collapsable navbar is not working properly. Suspect is because of the Reactstrap package. Thinking of fixing it on a separate ticket.

Hello!
I found out that the UI of the landing page is broken. I reckon it cannot retrieve the CSS files appropriately. Or maybe, because it mixes reactstrap and material UI. Could you please investigate it again? At minimum, we need to find what's the cause of the issue. Thanks!

^Weird margin at the body.


22 Edge Detector HLS showing errors

Hello,
I wanted to run HLS in this project( Edge Detector), but it threw some errors stating "dy_chan not defined". Could you please look at and let me know the solution.
I have attached snapshot of it.
Thanks,
Charan

I think you need to upgrade to a newer version of Catapult, at least released in 2023.

Indeed, I eventually obtained the updated version from the GitHub repository, and it did work. I appreciate your assistance nonetheless.
Charan


Feature request: don't close lyrics dialog on left-mouse-key click

It would be nice to have ability to copy text from the lyrics dialog without closing it. Thus users will can use dictionaries to understand texts. Now we need to open the lyrics dialog again after selecting the text.

This could be easily implemented, and I see the use case, but I'm not sure on the use case for exiting the lyrics screen at that point. I'd like to maybe see some discussion on this.

Hm... An "X" exit button on the top right corner of the lyrics screen?

And esc key support too.

Hm... An "X" exit button on the top right corner of the lyrics screen?

Average users would be confused that there are now 2 "close" buttons in their window near the top of the screen.

And esc key support too.

This is non-obvious and again average users will get confused by the lack of obvious way to leave the lyrics view.
Copying lyrics was never intended to be supported, if anything we should be making it harder for you to copy the lyrics.  We wanted to make it as easy as possible to leave lyrics view without adding any extra UI.  Closing this out as wontfix


Support converting varchar to nvarchar for mssql database

In #12269, all string fields of struct will generate a NVARCHAR column in database, but for those Gitea instances installed before that PR, users have to convert columns themselves.
In this PR, we update the ./gitea admin convert commands to support both MySQL and MSSQL database converting. Previously, it only supported converting utf8 -> utf8mb4 for MySQL.
Now, it will check the database types.
If it's MSSQL, it will convert VARCHAR -> NVARCHAR as well.

Codecov Report

Merging #24105 (b4a30f7) into main (f521e88) will decrease coverage by 0.06%.
The diff coverage is 38.98%.

@@            Coverage Diff             @@
##             main   #24105      +/-   ##
==========================================
- Coverage   47.14%   47.08%   -0.06%
==========================================
  Files        1149     1161      +12
  Lines      151446   153938    +2492
==========================================
+ Hits        71397    72480    +1083
- Misses      71611    72945    +1334
- Partials     8438     8513      +75

Impacted Files
Coverage Δ

cmd/convert.go
0.00% <0.00%> (ø)

cmd/dump.go
0.64% <0.00%> (-0.03%)
:arrow_down:

cmd/embedded.go
0.00% <0.00%> (ø)

cmd/mailer.go
0.00% <0.00%> (ø)

cmd/manager.go
0.00% <0.00%> (ø)

cmd/manager_logging.go
0.00% <0.00%> (ø)

cmd/migrate_storage.go
5.76% <0.00%> (-0.12%)
:arrow_down:

cmd/restore_repo.go
0.00% <0.00%> (ø)

cmd/web.go
0.00% <0.00%> (ø)

models/actions/run.go
1.63% <0.00%> (-0.10%)
:arrow_down:

... and 58 more

... and 149 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Not sure how thoroughly this was tested on SQL Server, but I got a lot of errors with the included tool and it appears to have some serious shortcomings (VARCHAR(MAX) doesn't work, and it doesn't quote the names). This is my modified query although I am still having errors due to unique index dependencies.
SELECT 'ALTER TABLE [' + OBJECT_NAME(SC.object_id) + '] ALTER COLUMN [' + SC.name + '] NVARCHAR(' +
CASE WHEN SC.max_length = -1 THEN 'MAX' ELSE CONVERT(VARCHAR(5), SC.max_length) END
+ ')'
FROM SYS.columns SC
JOIN SYS.types ST
ON SC.system_type_id = ST.system_type_id
AND SC.user_type_id = ST.user_type_id
WHERE ST.name ='varchar'


net/http: HTTP/1.x transport connection broken error triggers rclone re-downloads, which again can trigger downloadQuotaExceeded

When uploading files to teldrive with rclone, sometimes teldrive repeatedly throws this error for some file uploads, "net/http: HTTP/1.x transport connection broken: http: ContentLength=1048576000 with Body length 0":
2023/12/23 08:37:56 DEBUG : pacer: low level retry 7/10 (error Post "http://<IP_ADDRESS>:8080/api/uploads/26f5a8517edb<...uploadid>?channelId=<channelid>&encrypted=false&fileName=<filename>.mp4&partName=82998fe49ab74<...partname>&partNo=2": net/http: HTTP/1.x transport connection broken: http: ContentLength=1048576000 with Body length 0)
2023/12/23 08:37:56 DEBUG : pacer: Rate limited, increasing sleep to 5s

This error triggers a low-level retry in rclone, which means that the source file will now be downloaded again.
Unfortunately, some backends doesn't appreciate this behaviour of downloading the same file rapidly over and over very much, and they will soon throw an error. E.g. the google drive backend throws a 403 with "downloadQuotaExceeded":
Failed to copy: failed to open source object: open file failed: googleapi: Error 403: The download quota for this file has been exceeded., downloadQuotaExceeded
This error means that your google drive account will now be in a 24h cool-down period, before you can use download any files from it again.
The only unusual activity I see in logs/teldrive.log are errrors like this:
{"level":"error","ts":"2023-12-23T07:53:56.132Z","logger":"uploads","msg":"uploadFile","error":"callback: upload part: send upload part 802 RPC: retry middleware skip: rpcDoRequest: rpc error code 400: FILE_PART_SIZE_INVALID","errorVerbose":"callback:\n    github.com/gotd/td/telegram.(*Client).Run.func3\n        /go/pkg/mod/github.com/gotd/td@v0.91.0/telegram/connect.go:151\n  - upload part:\n    github.com/gotd/td/telegram/uploader.(*Uploader).bigLoop.func2\n        /go/pkg/mod/github.com/gotd/td@v0.91.0/telegram/uploader/big.go:109\n  - send upload part 802 RPC:\n    github.com/gotd/td/telegram/uploader.(*Uploader).uploadBigFilePart\n        /go/pkg/mod/github.com/gotd/td@v0.91.0/telegram/uploader/big.go:38\n  - retry middleware skip:\n    github.com/divyam234/teldrive/internal/retry.(*retry).Handle.retry.Handle.func1\n        /app/internal/retry/retry.go:34\n  - rpcDoRequest:\n    github.com/gotd/td/internal/mtproto.(*Conn).Invoke\n        /go/pkg/mod/github.com/gotd/td@v0.91.0/internal/mtproto/rpc.go:44\n  - rpc error code 400: FILE_PART_SIZE_INVALID"}
The default number of low-level retries in rclone is set to 10, it can be lowered to i.e. 3 using this argument:
--low-level-retries 3
A value of 3 seems to be low enough that the ban from the re-downloads will not be triggered, and still high enough that most of the regularly needed retries against the google drive backend will still succeed.

Today I got another variant, RPC_MCGET_FAIL / RPC_CALL_FAIL.
Btw, I still got the downloadQuotaExceeded error, even with the reduced --low-level-retries  argument. I have now set up the google drive source backend as a cached backend instead, let's see if that helps :-)
rclone.log:

2023/12/25 03:55:40 DEBUG : pacer: low level retry 1/3 (error HTTP error 500 (500 Internal Server Error) returned body: "{\"code\":500,\"message\":\"callback: upload part: send upload part 1298 RPC: retry middleware skip: rpcDoRequest: rpc error code 500: RPC_MCGET_FAIL\"}")

2023/12/25 03:56:55 DEBUG : pacer: low level retry 2/2 (error Post "http://<IP_ADDRESS>:8080/api/uploads/<uploadid>?channelId=<channelid>&encrypted=false&fileName=<filename>&partName=<partname>&partNo=3": net/http: HTTP/1.x transport connection broken: http: ContentLength=1048576000 with Body length 336990208)

2023/12/25 03:56:56 DEBUG : <filename>: Received error: Post "http://<IP_ADDRESS>:8080/api/uploads/<uploadid>?channelId=<channelid>&encrypted=false&fileName=<filename>&partName=<partname>&partNo=3": net/http: HTTP/1.x transport connection broken: http: ContentLength=1048576000 with Body length 336990208 - low level retry 0/2

2023/12/25 04:17:25 DEBUG : pacer: low level retry 1/3 (error HTTP error 500 (500 Internal Server Error) returned body: "{\"code\":500,\"message\":\"callback: upload part: send upload part 1549 RPC: retry middleware skip: rpcDoRequest: rpc error code 500: RPC_CALL_FAIL\"}")

logs/teldrive.log:

{"level":"error","ts":"2023-12-25T03:17:25.517Z","logger":"uploads","msg":"uploadFile","error":"callback: upload part: send upload part 1549 RPC: retry middleware skip: rpcDoRequest: rpc error code 500: RPC_CALL_FAIL","errorVerbose":"callback:\n    github.com/gotd/td/telegram.(*Client).Run.func3\n        /go/pkg/mod/github.com/gotd/td@v0.91.0/telegram/connect.go:151\n  - upload part:\n    github.com/gotd/td/telegram/uploader.(*Uploader).bigLoop.func2\n        /go/pkg/mod/github.com/gotd/td@v0.91.0/telegram/uploader/big.go:109\n  - send upload part 1549 RPC:\n    github.com/gotd/td/telegram/uploader.(*Uploader).uploadBigFilePart\n        /go/pkg/mod/github.com/gotd/td@v0.91.0/telegram/uploader/big.go:38\n  - retry middleware skip:\n    github.com/divyam234/teldrive/internal/retry.(*retry).Handle.retry.Handle.func1\n        /app/internal/retry/retry.go:34\n  - rpcDoRequest:\n    github.com/gotd/td/internal/mtproto.(*Conn).Invoke\n        /go/pkg/mod/github.com/gotd/td@v0.91.0/internal/mtproto/rpc.go:44\n  - rpc error code 500: RPC_CALL_FAIL"}

{"level":"error","ts":"2023-12-25T03:18:09.282Z","logger":"uploads","msg":"uploadFile","error":"callback: upload part: send upload part 398 RPC: retry middleware skip: rpcDoRequest: rpc error code 400: FILE_PART_SIZE_INVALID","errorVerbose":"callback:\n    github.com/gotd/td/telegram.(*Client).Run.func3\n /go/pkg/mod/github.com/gotd/td@v0.91.0/telegram/connect.go:151\n  - upload part:\n    github.com/gotd/td/telegram/uploader.(*Uploader).bigLoop.func2\n /go/pkg/mod/github.com/gotd/td@v0.91.0/telegram/uploader/big.go:109\n  - send upload part 398 RPC:\n    github.com/gotd/td/telegram/uploader.(*Uploader).uploadBigFilePart\n        /go/pkg/mod/github.com/gotd/td@v0.91.0/telegram/uploader/big.go:38\n  - retry middleware skip:\n    github.com/divyam234/teldrive/internal/retry.(*retry).Handle.retry.Handle.func1\n        /app/internal/retry/retry.go:34\n  - rpcDoRequest:\n    github.com/gotd/td/internal/mtproto.(*Conn).Invoke\n        /go/pkg/mod/github.com/gotd/td@v0.91.0/internal/mtproto/rpc.go:44\n  - rpc error code 400: FILE_PART_SIZE_INVALID"}

@steffen-poulsen  RPC_MCGET_FAIL / RPC_CALL_FAIL these are appearing from latest telegram  api layer updates  something telegram, have changed from their side . I add add those as exception errors for retries in next build.

Great! - thanks! :-)

@steffen-poulsen did u ever fixed this? am having the same issue


Add TextEditor type

According to https://juce.com/blog/juce-roadmap-update-q3-2024/ a new JUCE text editor is on the way, so worth waiting to see if that solves the issues with the existing editor.


Backend - allow volunteers to un-volunteer from an event

Allow volunteers to un-volunteer from an event and submit a justification message.

#131


Add size utility calculator for editor

Overview
It can be quite annoying to know what the world-space size of an object is in Unity, especially with multiple hierarchy transforms applied.
This PR adds a editor utility that allows one to get the Renderer or Collider world space bounds sizes for a selected GameObject.
Right click gameobject > MRTK > Render/Collider Size => See output results in debug log console

Changes

Fixes: # .

Verification

As a reviewer, it is possible to check out this change locally by using the following
commands (substituting {PR_ID} with the ID of this pull request):
git fetch origin pull/{PR_ID}/head:name_of_local_branch
git checkout name_of_local_branch

/azp run


How to add a watermark?

Hi,
How can i add a watermark to a image?

Hi,
If you have a transparent watermark image, use either imaging.Overlay or imaging.OverlayCenterfunction to place it over other images, e.g.
finalImage := imaging.OverlayCenter(baseImage, watermarkImage, 0.5)

In the example above you can manipulate the opacity of the watermark image using the third parameter.

Hi,
How to change the watermark's location ?

For example:
finalImage := imaging.Overlay(baseImage, watermarkImage, image.Pt(50, 50), 0.5)

In the example above image.Pt(50, 50) is the position (x, y) of the watermark image.

Closing it now. Feel free to comment/reopen if you have any further questions.


:fix allowUnsupportedChain param to work correctly

Description
The param allowUnsupportedChain didn't work correctly anymore. Users would still see the unsupportedChaid UI.
Type of change

[ ] Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Associated Issues
For Linear issues: Closes APKT-1744 https://linear.app/reown/issue/APKT-1744/feature-request-to-restore-deprecated-parameter-in-appkit
For GH issues: closes #...
Showcase (Optional)
If there is a UI change include the screenshots with before and after state.
If new feature is being introduced, include the link to demo recording.
Checklist

[x] Code in this PR is covered by automated tests (Unit tests, E2E tests)
[ ] My changes generate no new warnings
[x] I have reviewed my own code
[x] I have filled out all required sections
[ ] I have tested my changes on the preview link
[ ] Approver of this PR confirms that the changes are tested on the preview link

We're missing tests for the scaffold-ui w3m-account-button. getLabel method is influenced by allowUnsupportedChain and we're not testing that code path. Same with the render/ui


Get the list of universities-groups, only if the country match the original country

If people answer from a different country, need to offer them only the "other box" and not showing the full list of university that is only adapted to the original country

Done


Bump to k6 v0.45.1 to fix build

Hi ! sorry, sorry, I had not seen the PR. I just released a version with those updates. Thank you very much.


Add Linux Consumption Testing Utils

Description
This new testutils_lc.py allows end-to-end testing scenario to run through the Linux Consumption Container => Placeholder Mode => Specialization => Function Load => Function Invocation.
It ensures any gaps between linux consumption specialization is well covered.
The example apps are not lying in the repository, it is in the following blob storage (read-only):
https://pythonworker36sa.blob.core.windows.net/python-worker-lc-apps?restype=container&comp=list
https://pythonworker37sa.blob.core.windows.net/python-worker-lc-apps?restype=container&comp=list
https://pythonworker38sa.blob.core.windows.net/python-worker-lc-apps?restype=container&comp=list
https://pythonworker39sa.blob.core.windows.net/python-worker-lc-apps?restype=container&comp=list
To add more scenarios:

Create a function app locally
Use func azure functionapp publish python-worker-<python_version>-lc-func to remote build the artifact (e.g. python-worker-37-lc-func)
Download the artifact from https://python-worker-<python_version>-lc-func.scm.azurewebsites.net/api/settings => SCM_RUN_FROM_PACKAGE.
Upload the package onto Simple Batch Subscription => AzureFunctionsPythonWorkerCILinuxDevOps Resource Group => pythonworker<python_major><python_minor>sa Storage Account => python-worker-lc-apps Blob Container
Follow the example in endtoend/test_linux_consumption.py to create a new test case.
/cc: @anatoliB @vrdmr @stefanushinardi

PR information

[x] The title of the PR is clear and informative.
[x] There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[ ] If applicable, the PR references the bug/issue that it fixes in the description.
[x] New Unit tests were added for the changes made and CI is passing.

Quality of Code and Contribution Guidelines

[x] I have read the contribution guidelines.

GitHub Action host agent is not able to find docker or /usr/bin/docker in the python (pytest) process.
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/docker run -p 0:80 -d --name adc7230d-fc37-4278-8026-13a479deb455 --cap-add SYS_ADMIN --device /dev/fuse -e "CONTAINER_NAME"="adc7230d-fc37-4278-8026-13a479deb455" -e "CONTAINER_ENCRYPTION_KEY"="MDEyMzQ1Njc4OUFCQ0RFRjAxMjM0NTY3ODlBQkNERUY=" -e "WEBSITE_PLACEHOLDER_MODE"="1" -v "/home/runner/work/azure-functions-python-worker/azure-functions-python-worker/azure_functions_worker":"/azure-functions-host/workers/python/3.6/LINUX/X64/azure_functions_worker" mcr.microsoft.com/azure-functions/mesh:3.1.4-upgrade': '/usr/bin/docker run -p 0:80 -d --name adc7230d-fc37-4278-8026-13a479deb455 --cap-add SYS_ADMIN --device /dev/fuse -e "CONTAINER_NAME"="adc7230d-fc37-4278-8026-13a479deb455" -e "CONTAINER_ENCRYPTION_KEY"="MDEyMzQ1Njc4OUFCQ0RFRjAxMjM0NTY3ODlBQkNERUY=" -e "WEBSITE_PLACEHOLDER_MODE"="1" -v "/home/runner/work/azure-functions-python-worker/azure-functions-python-worker/azure_functions_worker":"/azure-functions-host/workers/python/3.6/LINUX/X64/azure_functions_worker" mcr.microsoft.com/azure-functions/mesh:3.1.4-upgrade'

Able to run docker with command, but failed to mount in mesh container.
MS_FUNCTION_LOGS 2,,mesh-placeholder,mesh-placeholder,mesh.init,Host.Startup,"","Request for / failed with err exit status 1 error: fuse: mount failed: Permission denied  output: ",<IP_ADDRESS>,2021-08-04T23:04:14.140267986Z,,"",,,,77969af3-87bc-4904-af12-838e2888bb78,,

Running the docker container with --priviledged flag resolves all the issues. This PR is ready for review now.


Printf: Fix printf hex alternate zero

Summary

Fixed case where giving only 0 would crash printf due to an attempt to read it as an octal
Fixed wrong prefix for lower and upper hex alternative format. Now, the "0x" is not shown when the value is 0.

Code
GNU:
> printf %#x 0
0

uutils: fails
now shows 0

Fixed an
Related issues:
original : https://github.com/uutils/coreutils/issues/5810
part of other changes (PR): https://github.com/uutils/coreutils/pull/5794
part of other changes: https://github.com/uutils/coreutils/issues/5709
octal similar problem: https://github.com/uutils/coreutils/issues/5807

I would prefer this PR not to be merged as-is if the larger #5783 PR is merged, as it rewrites the parser used in printf and it doesn't have of the single 0 interpreted as octal already.

@samueltardieu I agree. For clarity, you're suggesting to only keep the 0x fix from this, right?

@samueltardieu I agree. For clarity, you're suggesting to only keep the 0x fix from this, right?

Yes, and the associated tests.

The failing test on MacOS/x86_64 seems unrelated.

I did the octal fix in the first place because printf would fail before reaching the 0x-prefix fix.
Thus, amonst the four new tests, those named xxxx_0 will fail without the octal fix, even if the prefix fix is kept.
It means that if you want to keep a subset of this PR without the octal fix, you can

keep tests on lower hex and upper hex (not the 0 variant), but the prefix fix for 0 will not be tested.
keep the 4 tests, but the xxx_0 tests variants will fail.

Maybe we could try to merge @samueltardieu's PR first and then merge this. That should make everything alright, shouldn't it?

I've rebased this on top of main after merging https://github.com/uutils/coreutils/pull/5783.


Implement QR Code decoding?

This crate is described as "QR code encoder in Rust". If I wanted to decode a QR code in Rust, should I contribute it to this crate, making it a "QR code encoder/decoder in Rust", or do it in another crate?

Contributions are welcome! 😄


MCMCsuite should stop if niter < burnin

Currently if niter < burnin (even default values), MCMCsuite gives an inscrutable error message because it is trying to set up a negative number of iterations.

Fixed, with an informative error message.


linux-51 is dead.

Type of Request
bug
Infrastructure Environment
LUCI, Github, Cocoon scheduler, Autosubmit, etc...
What is happening?
linux-51 is dead.

Steps to reproduce
Step 1:
Step 2:
..
Step n:
Expected results
I expect to see X when Y is finished.

IP address was missing due network connection was disabled by itself, reseating network cable to restore connection.


test: double test slowdown factor on MacOS

As suggested by @ctiller in https://github.com/grpc/grpc/pull/29779#discussion_r881785552.
Is GPR_APPLE the right macro to use here?

GPR_APPLE will cover anything made by Apple, so MacOS and iOS.

Is it going to cause any problems to apply this change also to iOS?  I assume not, but I just want to make sure.

I think GPR_APPLE is the right thing to check, but I'm also not entirely sure. @dennycd?

LGTM. This macro appears to derive from APPLE which covers all darwin OS (macOS/iOS). ;  )


Error: 0x8007000e Not enough memory resources are available to complete this operation.

Your Windows build number:

Microsoft Windows [Version 10.0.19041.264]

What you're doing and what's happening:

Setting of an existing WSL 1 distro to WSL 2. E.g: Ubuntu 20.04 :
wsl --set-version Ubuntu 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Not enough memory resources are available to complete this operation.

Or installing a new distro after setting the default version to 2 with wsl --set-default-version 2. E.g: Alpine WSL:
...
Verifying Hash: OK
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8007000e
WslRegisterDistribution failed
Error: 0x8007000e Not enough memory resources are available to complete this operation.

Press any key to continue...

What's wrong / what should be happening instead:
Unable to use  WSL 2 at all 😞. Error message: Not enough memory resources are available to complete this operation.

With 32Gb RAM the problem is probably a too small virtual memory page file.
Open Performance options -> Advanced tab -> Virtual Memory ->  "Change..." button and make sure "Automatically manage paging file size for all drives" is checked.

@onomatopellan That's already checked. The page size is  4.8GB
This is  a week old fresh install of  Win 10 2004.  WSL 2 was working for a a day or two I installed Windows. Then, I don't know if some of the recent updates that took place two days  are what caused the issue.

Do those errors appear instantly of after a while? Take a look at C:\pagefile.sys to see if it grows during the conversion.

Yes they are instant. Should I try manually increasing the pagefile to something larger than 4.8 GB?

Yes, and also last option is to disable pagefile in every drive.

@onomatopellan I tried increasing the pagefile to 16GB, rebooted, same error
Then unset the pagefile in all drives, rebooted, same error :(

Manual import is also not working
C:\WSL>wsl --import "Alpine" C:\WSL\Alpine C:\LinuxImages\alpine-minirootfs-3.11.4-x86_64.tar.gz
Not enough memory resources are available to complete this operation.

Ok, then set it to "Automatically manage" again.
I 'm seeing in your Windows Error Reporting logs you had plenty of errors in last 3 days. (PerfWatson, devenv.exe, Chrome) First one was on 5/18.
Just to make sure RAM is ok run the Windows Memory Diagnostic.

I found a solution. I manually created a file  called .wslconfig in %userprofile% with this content:
[wsl2]
memory=4GB
processors=4

and now it's working 🎉

@onomatopellan  thank you a ton for helping :)
Do you know how to increase the memory and proc count of my distro after I already created it?
I've changed the .wslconfig file to:
[wsl2]
memory=12GB
processors=12

but the VM still comes up with just 4GB and 4CPUs

you need to wsl.exe --shutdown before using the new values. All the distros are running in same lightweight VM.

I had the same problem!
In fact, Docker crashes hard with the same error message if I use Linux containers (which is the default).
I do have "Automatically manage paging file size for all drives". Right now I only have a 10G page file, and a 27G Hiberfil
I have 64GB of RAM and 41GB of RAM available. I DO have a NUMA setup - dual Xeon processors. I'm currently running Windows Workstation. I thought maybe that was the problem as clearly I have plenty of RAM, with both processors. I am running Hyper-v but leave most of the VM's shut down.
The docker people weren't any help at all, despite me uploading several logs.
Interestingly, my laptop, which as 48G, ran Docker fine. Single physical CPU. Also has Hyper-V, VM's shut down.
So I tried the wslconfig and that fixed both WSL2 as well as Docker with Linux containers.
It's still a bug, IMHO - needs to be fixed, but at least this is a workaround.
Thank you!
    == John ==

P.S. For those that claim we need 2x physical as a swap file - that's long obsolete. I do NOT need 128G of swap. I'd rather have little to no swap, and let processes run out of RAM.  Having absurdly large amounts of swap makes a system less stable (I ran an Oracle Consulting company and installed thousands of Linux/Unix hosts. We always had the same problem with Oracle's scripts; often we'd just set the settings up high, then the client sysadmin would restore them :)

Maybe the setup program is using an int, and blows up if you have more than 4Gig? o.O
It's weird it works fine on a 48G system, and not at all on a 64G system. Does that give us a clue?
    == John ==

also having the same issue, host has 16GB, tried everything I found, and nothing helped... still "0x8007000e Not enough memory resources are available to complete this operation".
It seems to me related to recent windows updates, since it used to work flawlessly (at least WSL 1 for me) about a month ago, and now it's all broken. Docker also does not work, as it requires Hyper-V...

Did you try the .wsl config? That absolutely fixed my problem. I also updated the Docker folks. They just pass on the error message without explaining WHERE it came from.

@jgwinner, i've updated my comment -- my issue had a completely different reason, but i was confused by totally irrelevant error message.

I have the same error with this setup:

Edition	Windows 10 Pro
Version	20H2
OS build	19042.804
Experience	Windows Feature Experience Pack 120.2212.551.0
Processor	Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz   2.11 GHz
Installed RAM	24,0 GB (23,8 GB usable)
System type	64-bit operating system, x64-based processor

I just upgraded to 20H2 and installed WSL:
Run in PowerShell as Administrator:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2

Downloaded and installed "WSL2 Linux kernel update package for x64 machines". Installed Ubuntu 20.04 from Microsoft Store.
Now when I start Ubuntu from Start Menu or run in shell window the error is this:
Microsoft Windows [Version 10.0.19042.804]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>ubuntu.exe
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070008
Error: 0x80070008 Not enough memory resources are available to process this command.

Press any key to continue...

I have tried setting up %USERPROFILE%\.wslconfig but it does not fix the problem. Tried with 4 and 8 GB mem and 2 and 4 processors:
~$ cat .wslconfig
[wsl2]
memory=4GB
processors=4

Event Viewer does not show any errors for Hyper-V when starting Ubuntu install. It does show that it successfully starts up things and then deletes immediately as the install fails.
What memory resource does the install process need to have? How can I allocate more for it?

 That looks like GitHub desktop. I'd try plain DOS, maybe it's CR\LF sensitive.

 That looks like GitHub desktop. I'd try plain DOS, maybe it's CR\LF sensitive.

Actually I did it in Git for Windows Bash shell - I want to replace my MINGW "linux" with WSL2 :) The .wslconfig file had LF linefeeds, I verified that.

This did not help: "Settings > Apps and Features > Ubuntu 20.04 LTS > Advanced options > Reset" (clutching on any straws here... inspired by https://stackoverflow.com/q/60377834/339052)

Same error with Alpine WSL from Microsoft Store:
Temporary directory: C:\Users\xxx\AppData\Local\Temp\wsl_Alpine_setup
Downloading   : http://dl-cdn.alpinelinux.org/alpine/v3.12/releases/x86_64/alpine-minirootfs-3.12.1-x86_64.tar.gz
To local file : install.tar.gz
The current working directory is: C:\Users\xxx\AppData\Local\Temp\wsl_Alpine_setup
Error deleting file: No such file or directory
Status code : 32
Finding resource...
Connecting...
Sending request...
Mime type available
Begin download
Cache filename available
100% [====================]
End download
Downloaded OK
Hash of file install.tar.gz is: 5c81856823d1ee629af5245d4023a31f0144696c00edc9091db43c404e1cd02b

Verifying Hash: OK
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070008
WslRegisterDistribution failed
Error: 0x80070008 Not enough memory resources are available to process this command.

Press any key to continue...

WSL1 works: I uninstalled WSL rebooted etc and did only:

enable WSL

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

reboot
install Alpine from Microsoft Store
force wsl1 and run alpine install in admin powershell

PS C:\Users\xxx> wsl --set-default-version 1
PS C:\Users\xxx> wsl
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
PS C:\Users\xxx> Alpine.exe
Temporary directory: C:\Users\xxx\AppData\Local\Temp\wsl_Alpine_setup
Downloading   : http://dl-cdn.alpinelinux.org/alpine/v3.12/releases/x86_64/alpine-minirootfs-3.12.1-x86_64.tar.gz
To local file : install.tar.gz
The current working directory is: C:\Users\xxx\AppData\Local\Temp\wsl_Alpine_setup
File successfully deleted
Mime type available
Begin download
Cache filename available
100% [====================]
End download
Downloaded OK
Hash of file install.tar.gz is: 5c81856823d1ee629af5245d4023a31f0144696c00edc9091db43c404e1cd02b

Verifying Hash: OK
Installing, this may take a few minutes...
Executing bugfixing command: /bin/chmod 755 /
Executing bugfixing command: /sbin/apk --no-cache add shadow
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
(1/2) Installing linux-pam (1.3.1-r4)
(2/2) Installing shadow (4.8.1-r0)
Executing busybox-1.31.1-r19.trigger
OK: 8 MiB in 16 packages
Executing bugfixing command: /bin/sed -i 's/^export PATH/#export PATH/' /etc/profile
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: wsl

To (re-)set root password run `wsl.exe --user root --distribution Alpine passwd`

New password:
Retype new password:
passwd: password updated successfully
Installation successful!
mycomputer:~$ pwd
/home/wsl

... but trying to convert installed WSL1 Alpine to WSL2 fails:
Windows Subsystem for Linux Distributions:
Alpine (Default)
PS C:\Users\xxx> wsl --set-version alpine 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Not enough memory resources are available to process this command.

I'm getting all the same issues as @apa64 - I'm on Windows 10 1909 with 32GB of RAM.  The ~/.wslconfig file didn't help as that seems to have been added in a later build of windows.  Are there any logs I can provide to help diagnose this issue?

Without knowing how or what calls what when WSL is registering Ubuntu for WSL 2... Is it using WSL-DistroLauncher? I found these references to WslRegisterDistribution. I guess the error message comes from inside wslapi.dll but can't find source code for that, only API doc: https://docs.microsoft.com/en-us/windows/win32/api/wslapi/nf-wslapi-wslregisterdistribution

https://github.com/microsoft/WSL-DistroLauncher/blob/master/DistroLauncher/WslApiLoader.cpp#L46

HRESULT WslApiLoader::WslRegisterDistribution()
{
    HRESULT hr = _registerDistribution(_distributionName.c_str(), L"install.tar.gz");
    if (FAILED(hr)) {
        Helpers::PrintMessage(MSG_WSL_REGISTER_DISTRIBUTION_FAILED, hr);
    }

    return hr;
}

https://github.com/microsoft/WSL-DistroLauncher/blob/master/DistroLauncher/DistroLauncher.cpp#L27

HRESULT InstallDistribution(bool createUser)
{
    // Register the distribution.
    Helpers::PrintMessage(MSG_STATUS_INSTALLING);
    HRESULT hr = g_wslApi.WslRegisterDistribution();
    if (FAILED(hr)) {
        return hr;
    }
...

Thank you guys, wanted to summarize that:
%USERPROFILE%.wslconfig
[wsl2]
memory=8GB
wsl.exe --shutdown
fixed for me being low on memory in docker container.

.wslconfig didn't work for me :( Thanks for the comment anyway!
Microsoft Windows [Version 10.0.19042.928]
(c) Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd\

C:\>type %USERPROFILE%\.wslconfig
[wsl2]
memory=8GB
processors=4

C:\>wsl --shutdown

C:\>wsl -l -v
  NAME            STATE           VERSION
* Ubuntu-20.04    Stopped         1

C:\>wsl --set-version Ubuntu-20.04 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Not enough memory resources are available to process this command.

.wslconfig didn't work for me :( Thanks for the comment anyway!
Microsoft Windows [Version 10.0.19042.928]
(c) Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd\

C:\>type %USERPROFILE%\.wslconfig
[wsl2]
memory=8GB
processors=4

C:\>wsl --shutdown

C:\>wsl -l -v
  NAME            STATE           VERSION
* Ubuntu-20.04    Stopped         1

C:\>wsl --set-version Ubuntu-20.04 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Not enough memory resources are available to process this command.

Do you get this error while converting to WSL2 ? This is different, it changes RAM allocation when you are allready on WSL2. Unfortunately it doesn't work for me either. It changed my RAM inside the WSL container from 3GB to 8GB, but any succcesive atempts did nothing, It is stuck on 8GB now, no matter what i set with memory=...

No change with the newest Windows update:

C:\WINDOWS\system32>Alpine.exe
Temporary directory: C:\Users\xxx\AppData\Local\Temp\wsl_Alpine_setup
Downloading   : https://dl-cdn.alpinelinux.org/alpine/v3.13/releases/x86_64/alpine-minirootfs-3.13.4-x86_64.tar.gz
To local file : install.tar.gz
The current working directory is: C:\Users\xxx\AppData\Local\Temp\wsl_Alpine_setup
File successfully deleted
Mime type available
Begin download
Cache filename available
100% [====================]
End download
Downloaded OK
Hash of file install.tar.gz is: 8e21c85c4a5bb406180136aa03f814c56ffc7498ba7886c5ea13fec92d528ead

Verifying Hash: OK
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070008
WslRegisterDistribution failed
Error: 0x80070008 Not enough memory resources are available to process this command.

Press any key to continue...

These steps works for me
1.re-enable wsl subsystem module, reinstall ubuntu App
2.add %USERPROFILE%.wslconfig
[wsl2]
memory=8GB
processors=4
wsl.exe --shutdown
3.and also:
https://github.com/Microsoft/WSL/issues/2576#issuecomment-422028448
ATTENTION: data will erase when you do wslconfig /u
Follow these steps in the command line:
Find out the name of the problematic distribution by using
wslconfig /list
Remove this distribution by using
wslconfig /u <Name of the distribution>
Reinstall the distribution by calling the respective exe file.
wslconfig /list
wslconfig /u docker-desktop-data

@apa64 Did you get it fixed? What worked? I have tried everything in this thread (among others) with no luck.

@apa64 Did you get it fixed? What worked? I have tried everything in this thread (among others) with no luck.

No, I never found a solution. Eventually I got a new laptop and then everything just worked, Win 10 + WSL 2 with normal install instructions.

Running Win 10 with UEFI as Host and trying to Deploy Server 2016 Images;
I was getting this error when the Wim tried to deploy;
GPEdit.msc >Local Policy >Computer Configuration >Administrative Templates >System >Device Guard >Turn on Virtualization Based Security = Disabled
Turning VM Security off in GPO fixed my issue.

... but trying to convert installed WSL1 Alpine to WSL2 fails:
Windows Subsystem for Linux Distributions:
Alpine (Default)
PS C:\Users\xxx> wsl --set-version alpine 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Not enough memory resources are available to process this command.

I am having the same issue as apa64.
Unfortunately, none of the recommendation on this threat help :(