Calico Node Pod Failing - cni-installer/ : Unable to create token for CNI kubeconfig error=Unauthorized

Fresh Calico Operator(v3.27.0) Installation in 1.24 EKS cluster.
kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.27.0/manifests/tigera-operator.yaml

NAME                                       READY   STATUS                  RESTARTS        AGE
calico-kube-controllers-6bf98f54bb-bqtmq   1/1     Running                 0               15h
calico-node-47bvv                          0/1     Init:CrashLoopBackOff   167 (75s ago)   13h
calico-node-7wll8                          0/1     Init:CrashLoopBackOff   2 (23s ago)     70s
calico-node-br5qp                          0/1     Init:CrashLoopBackOff   6 (2m26s ago)   8m16s
calico-node-gln78                          0/1     Init:CrashLoopBackOff   8 (5m13s ago)   22m
calico-typha-5d4689887f-s9qkr              1/1     Running                 0               15h
calico-typha-5d4689887f-wdgdg              1/1     Running                 0               15h
csi-node-driver-26z8d                      2/2     Running                 0               15h
csi-node-driver-pzlhk                      2/2     Running                 0               15h
csi-node-driver-r4jtl                      2/2     Running                 0               71s
csi-node-driver-x8qn4                      2/2     Running                 0               15h

Expected Behavior
All Pods should we be running state
Current Behavior
calico-node pod throwing this Error.
2023-12-21 08:32:31.622 [ERROR][1] cni-installer/<nil> <nil>: Unable to create token for CNI kubeconfig error=Unauthorized
2023-12-21 08:32:31.622 [FATAL][1] cni-installer/<nil> <nil>: Unable to create token for CNI kubeconfig error=Unauthorized

Possible Solution
Steps to Reproduce (for bugs)
It's Fresh installation
2023-12-21 08:32:31.622 [ERROR][1] cni-installer/<nil> <nil>: Unable to create token for CNI kubeconfig error=Unauthorized
2023-12-21 08:32:31.622 [FATAL][1] cni-installer/<nil> <nil>: Unable to create token for CNI kubeconfig error=Unauthorized

Context
Your Environment

Calico version - v3.27.0
Orchestrator version (e.g. kubernetes, mesos, rkt): EKS 1.24

Looks like a potential RBAC issue - the cni-installer needs permissions to provision new tokens for the CNI plugin to use.
What does this show:
kubectl get clusterrole calico-node -o yaml

Is there a fix for this? same problem, clean install using the operator. kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.27.0/manifests/tigera-operator.yaml I even tried the the master branch manifest, still to no avail. only version that works is non-operator install with manifest 3.25.0.
root@7dd5f0bf32b32b93:/home/deploy# kubectl logs -f -n calico-system calico-node-wmdhj -c install-cni
2024-01-27 09:15:55.401 [INFO][1] cni-installer/<nil> <nil>: Running as a Kubernetes pod
2024-01-27 09:15:56.826 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/bandwidth"
2024-01-27 09:15:56.826 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/bandwidth
2024-01-27 09:15:56.955 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/calico"
2024-01-27 09:15:56.955 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/calico
2024-01-27 09:15:57.058 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/calico-ipam"
2024-01-27 09:15:57.058 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/calico-ipam
2024-01-27 09:15:57.063 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/flannel"
2024-01-27 09:15:57.063 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/flannel
2024-01-27 09:15:57.072 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/host-local"
2024-01-27 09:15:57.072 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/host-local
2024-01-27 09:15:57.202 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/install"
2024-01-27 09:15:57.202 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/install
2024-01-27 09:15:57.208 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/loopback"
2024-01-27 09:15:57.208 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/loopback
2024-01-27 09:15:57.215 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/portmap"
2024-01-27 09:15:57.215 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/portmap
2024-01-27 09:15:57.221 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/tuning"
2024-01-27 09:15:57.221 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/tuning
2024-01-27 09:15:57.221 [INFO][1] cni-installer/<nil> <nil>: Wrote Calico CNI binaries to /host/opt/cni/bin

2024-01-27 09:15:57.260 [INFO][1] cni-installer/<nil> <nil>: CNI plugin version: v3.27.0

2024-01-27 09:15:57.260 [INFO][1] cni-installer/<nil> <nil>: /host/secondary-bin-dir is not writeable, skipping
2024-01-27 09:15:57.260 [WARNING][1] cni-installer/<nil> <nil>: Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
2024-01-27 09:15:57.284 [ERROR][1] cni-installer/<nil> <nil>: Unable to create token for CNI kubeconfig error=Unauthorized
2024-01-27 09:15:57.284 [FATAL][1] cni-installer/<nil> <nil>: Unable to create token for CNI kubeconfig error=Unauthorized
root@7dd5f0bf32b32b93:/home/deploy#

For anyone encountering this issue, please run the following command to determine if your cluster's RBAC is correct:
kubectl auth can-i create serviceaccounts/calico-cni-plugin -n calico-system --subresource token --as "system:serviceaccount:calico-system:calico-node"

This should return yes, indicating that calico-node is allowed to create tokens for the CNI plugin. If this returns yes, then Calico's RBAC is configured correctly and the Unauthorized likely means something else - for example, bad certificates being provided to the containers.
If this returns no, that indicates that something is wrong with the RBAC in the cluster.

15:38:15 lars@d04  ~ » devkubectl -n calico-system logs calico-node-7wvn8 -c install-cni
2024-02-16 14:38:11.600 [INFO][1] cni-installer/<nil> <nil>: Running as a Kubernetes pod
2024-02-16 14:38:11.620 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/bandwidth"
2024-02-16 14:38:11.620 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/bandwidth
2024-02-16 14:38:11.807 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/calico"
2024-02-16 14:38:11.807 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/calico
2024-02-16 14:38:11.977 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/calico-ipam"
2024-02-16 14:38:11.977 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/calico-ipam
2024-02-16 14:38:11.989 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/flannel"
2024-02-16 14:38:11.989 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/flannel
2024-02-16 14:38:12.005 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/host-local"
2024-02-16 14:38:12.005 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/host-local
2024-02-16 14:38:12.016 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/loopback"
2024-02-16 14:38:12.016 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/loopback
2024-02-16 14:38:12.030 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/portmap"
2024-02-16 14:38:12.031 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/portmap
2024-02-16 14:38:12.042 [INFO][1] cni-installer/<nil> <nil>: File is already up to date, skipping file="/host/opt/cni/bin/tuning"
2024-02-16 14:38:12.043 [INFO][1] cni-installer/<nil> <nil>: Installed /host/opt/cni/bin/tuning
2024-02-16 14:38:12.043 [INFO][1] cni-installer/<nil> <nil>: Wrote Calico CNI binaries to /host/opt/cni/bin

2024-02-16 14:38:12.098 [INFO][1] cni-installer/<nil> <nil>: CNI plugin version: v3.28.0-0.dev-386-g3a8d575515b1

2024-02-16 14:38:12.098 [INFO][1] cni-installer/<nil> <nil>: /host/secondary-bin-dir is not writeable, skipping
2024-02-16 14:38:12.098 [WARNING][1] cni-installer/<nil> <nil>: Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
2024-02-16 14:38:12.112 [ERROR][1] cni-installer/<nil> <nil>: Unable to create token for CNI kubeconfig error=Unauthorized
2024-02-16 14:38:12.112 [FATAL][1] cni-installer/<nil> <nil>: Unable to create token for CNI kubeconfig error=Unauthorized
15:38:23 lars@d04  ~ » devkubectl auth can-i create serviceaccounts/calico-cni-plugin -n calico-system --subresource token --as "system:serviceaccount:calico-system:calico-node"
yes

I am getting a similar result as @Brice187 , using an Operator install on 3.27.0

This issue is driving me nuts. It seems to happen consistently across all of my nodes

The fact that authorization believes that the CNI plugin is authorized to create tokens suggests this is likely a problem with the certificates and/or tokens being used by the CNI plugin in order to make the request, rather than RBAC configuration itself.
I'd first check that your node clocks are properly set and synchronized - this can cause issues where a valid token or certificate can be treated as invalid if the authorizing node's clock is not set properly.
Another case that I have seen this happen is if nodes or other state have been restored from a backup in some capacity, resulting in cached secrets, etc. that are no longer valid.

Other things that would be interesting to see:

Parse the JWT in the /etc/cni/net.d/10-calico.conflist  file to see if it looks valid, and what its expiry time is.
See if you can find the JWT being used by calico-node and do the same. This might be trickier as I am not sure it's ever written to disk, but it might be possible.
Enable verbose logging in the API server and see if it provides any more context as to why it's rejecting the requests.

Is everyone encountering this issue running on EKS?

There is no JWT in my file:
{
                          "name": "k8s-pod-network",
                          "cniVersion": "0.3.1",
                          "plugins": [{"container_settings":{"allow_ip_forwarding":false},"datastore_type":"kubernetes","ipam":{"assign_ipv4":"true","assign_ipv6":"false","type":"calico-ipam"},"kubernetes":{"k8s_api_root":"https://<IP_ADDRESS>:443","kubeconfig":"/etc/cni/net.d/calico-kubeconfig"},"log_file_max_age":30,"log_file_max_count":10,"log_file_max_size":100,"log_file_path":"/var/log/calico/cni/cni.log","log_level":"Info","mtu":0,"nodename_file_optional":false,"policy":{"type":"k8s"},"type":"calico"},{"capabilities":{"bandwidth":true},"type":"bandwidth"},{"capabilities":{"portMappings":true},"snat":true,"type":"portmap"}]
                        }

There is no JWT in my file:

D'oh, yes it should be in the kubeconfig.
That token has:
Issued at: Mon Mar 04 2024 23:24:23 GMT+0000
Expires:   Tue Mar 05 2024 23:24:23 GMT+0000

Which checks out, but unfortunately doesn't tell us much about the calico-node token other than that the calico-node token was valid at the "Issued at" time. The calico-node token is the one that is ultimately the one in question here. Not sure yet how to get access to that one.
The other avenue to explore here is if Kubenretes is having trouble refreshing the token it assigns to calico/node.

Kubernetes gets a short-lived, automatically rotating token using the TokenRequest API and mounts the token as a projected volume.

If there is an issue with the TokenRequest or with the projected volume it might manifest in this way. Kubernetes / kubelet / apiserver logs might show more.

Any update on this?

I also ran into this after a power outage, RBAC is valid.
Running on Debian 12, Kubernetes 1.28.2, Calico 3.26.4 using Tigera Operator 1.30.9

Not sure why this is happening, but I think it has something to do with the operator keeping the service account alive while k8s api thinks its removed. As soon as I removed the finalizer from the svc acct, it was deleted and re-created

This is an awesome piece of the puzzle, thank you!
Do you have any idea why the service account may have been terminating in the first place? I wouldn't expect a power outage to cause that.
There is a known issue preventing graceful termination of that service account in the case that the Installation resource is deleted, that will be fixed in v3.28. I wonder if that is related, or if the use of a finalizer on that serviceaccount more generally is related to this issue in other clusters.
For anyone still encountering this issue, could you please show the output of this command as well? @Enquier @Brice187 @jon-nfc
kubectl get serviceaccount -n calico-system calico-node -o yaml

Do you have any idea why the service account may have been terminating in the first place?

No idea, unfortunately I don't have any logs from before the outage, I didn't get to it for a few hours and the api server logs don't stay for very long.

I am also facing the same issue
2024-04-17 08:57:17.484 [INFO][1] cni-installer/<nil> <nil>: Wrote Calico CNI binaries to /host/opt/cni/bin

2024-04-17 08:57:17.596 [INFO][1] cni-installer/<nil> <nil>: CNI plugin version: v3.27.0

2024-04-17 08:57:17.596 [INFO][1] cni-installer/<nil> <nil>: /host/secondary-bin-dir is not writeable, skipping
2024-04-17 08:57:17.597 [WARNING][1] cni-installer/<nil> <nil>: Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
2024-04-17 08:57:17.712 [ERROR][1] cni-installer/<nil> <nil>: Unable to create token for CNI kubeconfig error=serviceaccounts "calico-cni-plugin" is forbidden: User "system:serviceaccount:kube-system:calico-node" cannot create resource "serviceaccounts/token" in API group "" in the namespace "kube-system"
2024-04-17 08:57:17.712 [FATAL][1] cni-installer/<nil> <nil>: Unable to create token for CNI kubeconfig error=serviceaccounts "calico-cni-plugin" is forbidden: User "system:serviceaccount:kube-system:calico-node" cannot create resource "serviceaccounts/token" in API group "" in the namespace "kube-system"

@DJanyavula please read the earlier comments - there are a number of diagnostics requested for anyone hitting this issue, and without those we can't help.

root@Tc-Server:/opt/calio# kubectl auth can-i create serviceaccounts/calico-cni-plugin -n calico-system --subresource token --as "system:serviceaccount:calico-system:calico-node"
no
Using kind to build k8s, using calio when cni, this return no how to solve?

kubectl auth can-i create serviceaccounts/calico-cni-plugin -n calico-system --subresource token --as "system:serviceaccount:calico-system:calico-node"

This command checks if the CNI plugin has the necessary permissions. If it does not, it means the ClusterRole, ClusterRoleBinding, or ServiceAccount are not correctly configured or installed on the cluster.
For anyone experiencing this, please first verify that the Calico CNI plugin RBAC resources exist on the cluster:
kubectl get clusterrole calico-cni-plugin
kubectl get clusterrolebinding calico-cni-plugin
kubectl get serviceaccount -n calico-system calico-cni-plugin

If any of those do not exist, it means the tigera/operator is struggling to create them for some reason. Please look at the tigera-operator logs, and the output from kubectl describe tigerastatus calico to see what the issue might be.
If those resources do exist, the next thing to check is whether they are stuck in a Terminating state or not. You can do this by checking the deletionTimestamp field on each of them.
kubectl get clusterrole calico-cni-plugin | grep deletionTimestamp
kubectl get clusterrolebinding calico-cni-plugin | grep deletionTimestamp
kubectl get serviceaccount -n calico-system calico-cni-plugin | grep deletionTimestamp

If you see a deletionTimestmp field on any of them, it means that the resource is trying to be deleted but is stuck. In this case, you need to edit each resource to remove the cni-protector entry from the finalizers field to allow the resources to terminate and the tigera-operator to re-create them. Once that is done, you can restart calico/node and things should start to function.
This is a result of a bug that is triggered often when deleting / re-creating the Installation resource, or manually deleting the RBAC resources by hand. The former has been fixed in v3.28, and the latter should be simply be avoided. If you do need to delete these by hand without deleting the Installation, know that you will need to manually remove the finalizer and that they will be recreated by the operator.

Hi All, I am facing same issue. I am trying to setup the cluster using kubernetes 1.26 and kubeadm . But calio pods are not coming up due to token creation failure .
Here is log for same:
{"log":"2024-06-05 12:38:15.352 [ERROR]. [1] cni-installer/\u003cnil\u003e \u003cnil\u003e: Unable to create token for CNI kubeconfig error=Post \"https://<IP_ADDRESS>:443/api/v1/namespaces/kube-system/serviceaccounts/calico-cni-plugin/token\": dial tcp <IP_ADDRESS>:443: i/o timeout\n","stream":"stderr","time":"2024-06-05T12:38:15.352838536Z"}

{"log":"2024-06-05 12:38:15.352 [FATAL][1] cni-installer/\u003cnil\u003e \u003cnil\u003e: Unable to create token for CNI kubeconfig error=Post \"https://<IP_ADDRESS>:443/api/v1/namespaces/kube-system/serviceaccounts/calico-cni-plugin/token\": dial tcp <IP_ADDRESS>:443: i/o timeout\n","stream":"stderr","time":"2024-06-05T12:38:15.352956389Z"}

Expected behaviour
All pods should be up and running .
Current behaviour
After running kubeadm init all pods are running expect core-dns pods . Installed calico cni using manifest  .
Checked the service account and found that secret token is missing.
root@debian:~# kubectl get serviceaccount -n kube-system calico-node -o yaml
apiVersion: v1
kind: ServiceAccount
metadata:
creationTimestamp: "2024-06-04T11:30:25Z"
name: calico-node
namespace: kube-system
resourceVersion: "139365"
uid: 7c3bdfb9-1073-4006-ac8c-61d619ed0a91
Checked Calico CNI plugin RBAC resources exist on the cluster:
root@debian:~# kubectl get clusterrole calico-cni-plugin
NAME                CREATED AT
calico-cni-plugin   2024-06-04T11:30:25Z
root@debian:~# kubectl get clusterrolebinding calico-cni-plugin
NAME                ROLE                            AGE
calico-cni-plugin   ClusterRole/calico-cni-plugin   25h
root@debian:~# kubectl get serviceaccount -n kube-system calico-cni-plugin
NAME                SECRETS   AGE
calico-cni-plugin   0         25h

====
checked the resources are not stuck in terminating state
root@debian:~# kubectl get serviceaccount -n kube-system calico-cni-plugin
NAME                SECRETS   AGE
calico-cni-plugin   0         25h
root@debian:~# kubectl get clusterrole calico-cni-plugin | grep deletionTimestamp
root@debian:~# kubectl get clusterrolebinding calico-cni-plugin | grep deletionTimestamp
root@debian:~# kubectl get serviceaccount -n kube-system calico-cni-plugin | grep deletionTimestamp

however, running command can-i create service account it is returning no.
kubectl auth can-i create serviceaccounts/calico-cni-plugin -n calico-system --subresource token --as "system:serviceaccount:calico-system:calico-node"
no

How to reproduce it :
kubeadm init cluster_config.yaml
kubectl apply -f calico.yaml [here is link of file ]
Here is cluster_config.yaml file:
apiVersion: kubeadm.k8s.io/v1beta2
kind: InitConfiguration
nodeRegistration:
  criSocket: "/var/run/cri-dockerd.sock"

---
apiVersion: kubeadm.k8s.io/v1beta3
kind: ClusterConfiguration
kubernetesVersion: "v1.26.15"
networking:
  podSubnet: "<IP_ADDRESS>/24,fde1::/64"
  serviceSubnet: "<IP_ADDRESS>/16,fde1::/112"
controllerManager:
  extraArgs:
    feature-gates: "IPv6DualStack=true"
apiServer:
  extraArgs:
    advertise-address: "<IP_ADDRESS>"
    tls-cipher-suites: "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"

---
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
tlsCipherSuites:
  - "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
  - "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
  - "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"

Environment details
I am running cluster on debian 11 VM, which is running on vlware vcenter.Here are details:
OS: Debian 11
Kubernetes Version: 1.26.15
kubeadm Version: 1.26.15
Docker Version: 26.1.3
Container Runtime: cri-dockerd 0.3.14
Steps tried:
rm -rf /etc/cni/net.d/* && systemctl restart kubelet  , but it does not resolve the issue.
Any troubleshooting or help is highly appreciated.

@ajaypraj

{"log":"2024-06-05 12:38:15.352 [ERROR]. [1] cni-installer/\u003cnil\u003e \u003cnil\u003e: Unable to create token for CNI kubeconfig error=Post "https://<IP_ADDRESS>:443/api/v1/namespaces/kube-system/serviceaccounts/calico-cni-plugin/token\": dial tcp <IP_ADDRESS>:443: i/o timeout\n","stream":"stderr","time":"2024-06-05T12:38:15.352838536Z"}

what address is <IP_ADDRESS>:443 attached to? as error dial tcp <IP_ADDRESS>:443: i/o timeout\n" may be the issue and seperate to calico
other command that may assist in fault finding:

kubectl get endpoints -A
iptables -nvL pay particular attention to the chains prefixed with KUBE- i.e. KUBE-FORWARD
curl -k https://<service ip for kubernetes.default >:443/api should return JSON stating unauthorized access. this is good as it shows api connectivity OK.

what address is <IP_ADDRESS>:443 attached to? as error dial tcp <IP_ADDRESS>:443: i/o timeout\n" may be the issue and seperate to calico

Yeah, I agree - @ajaypraj it sounds to me like you are encountering a different issue from this one. Could you raise a separate GitHub issue to track that?

@caseydavenport sure.

I fixed this problem by disabling VPN

[root@k8s-master01 cfg]# kubectl logs calico-node-c74kn -n kube-system -c install-cni
2024-09-10 09:48:43.661 [INFO][1] cni-installer/install.go 142: Running as a Kubernetes pod
2024-09-10 09:48:43.667 [INFO][1] cni-installer/install.go 419: File is already up to date, skipping file="/host/opt/cni/bin/bandwidth"
2024-09-10 09:48:43.673 [INFO][1] cni-installer/install.go 228: Installed /host/opt/cni/bin/bandwidth
2024-09-10 09:48:43.739 [INFO][1] cni-installer/install.go 419: File is already up to date, skipping file="/host/opt/cni/bin/calico"
2024-09-10 09:48:43.787 [INFO][1] cni-installer/install.go 228: Installed /host/opt/cni/bin/calico
2024-09-10 09:48:43.843 [INFO][1] cni-installer/install.go 419: File is already up to date, skipping file="/host/opt/cni/bin/calico-ipam"
2024-09-10 09:48:43.893 [INFO][1] cni-installer/install.go 228: Installed /host/opt/cni/bin/calico-ipam
2024-09-10 09:48:43.896 [INFO][1] cni-installer/install.go 419: File is already up to date, skipping file="/host/opt/cni/bin/flannel"
2024-09-10 09:48:43.898 [INFO][1] cni-installer/install.go 228: Installed /host/opt/cni/bin/flannel
2024-09-10 09:48:43.901 [INFO][1] cni-installer/install.go 419: File is already up to date, skipping file="/host/opt/cni/bin/host-local"
2024-09-10 09:48:43.904 [INFO][1] cni-installer/install.go 228: Installed /host/opt/cni/bin/host-local
2024-09-10 09:48:43.908 [INFO][1] cni-installer/install.go 419: File is already up to date, skipping file="/host/opt/cni/bin/loopback"
2024-09-10 09:48:43.912 [INFO][1] cni-installer/install.go 228: Installed /host/opt/cni/bin/loopback
2024-09-10 09:48:43.917 [INFO][1] cni-installer/install.go 419: File is already up to date, skipping file="/host/opt/cni/bin/portmap"
2024-09-10 09:48:43.920 [INFO][1] cni-installer/install.go 228: Installed /host/opt/cni/bin/portmap
2024-09-10 09:48:43.924 [INFO][1] cni-installer/install.go 419: File is already up to date, skipping file="/host/opt/cni/bin/tuning"
2024-09-10 09:48:43.927 [INFO][1] cni-installer/install.go 228: Installed /host/opt/cni/bin/tuning
2024-09-10 09:48:43.927 [INFO][1] cni-installer/install.go 232: Wrote Calico CNI binaries to /host/opt/cni/bin
2024-09-10 09:48:43.927 [INFO][1] cni-installer/install.go 237: CNI plugin version: v3.28.1
2024-09-10 09:48:43.927 [INFO][1] cni-installer/install.go 189: /host/secondary-bin-dir is not writeable, skipping
2024-09-10 09:48:43.927 [WARNING][1] cni-installer/winutils.go 150: Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
2024-09-10 09:48:43.934 [ERROR][1] cni-installer/token_watch.go 108: Unable to create token for CNI kubeconfig error=Unauthorized
2024-09-10 09:48:43.934 [FATAL][1] cni-installer/install.go 482: Unable to create token for CNI kubeconfig error=Unauthorized

@oniubi please see this comment: https://github.com/projectcalico/calico/issues/8368#issuecomment-2120873448
If that doesn't help, then please raise a new issue.

[root@k8s-master01 cfg]# kubectl get ns
NAME              STATUS   AGE
default           Active   20h
kube-node-lease   Active   20h
kube-public       Active   20h
kube-system       Active   20h
[root@k8s-master01 cfg]#
[root@k8s-master01 cfg]# kubectl create -f tigera-operator.yaml
namespace/tigera-operator created
customresourcedefinition.apiextensions.k8s.io/bgpconfigurations.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/bgpfilters.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/bgppeers.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/blockaffinities.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/caliconodestatuses.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/clusterinformations.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/felixconfigurations.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/globalnetworkpolicies.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/globalnetworksets.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/hostendpoints.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/ipamblocks.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/ipamconfigs.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/ipamhandles.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/ippools.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/ipreservations.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/kubecontrollersconfigurations.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/networkpolicies.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/networksets.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/apiservers.operator.tigera.io created
customresourcedefinition.apiextensions.k8s.io/imagesets.operator.tigera.io created
customresourcedefinition.apiextensions.k8s.io/installations.operator.tigera.io created
customresourcedefinition.apiextensions.k8s.io/tigerastatuses.operator.tigera.io created
serviceaccount/tigera-operator created
clusterrole.rbac.authorization.k8s.io/tigera-operator created
clusterrolebinding.rbac.authorization.k8s.io/tigera-operator created
deployment.apps/tigera-operator created
[root@k8s-master01 cfg]# kubectl get ns
NAME              STATUS   AGE
default           Active   20h
kube-node-lease   Active   20h
kube-public       Active   20h
kube-system       Active   20h
tigera-operator   Active   8s
[root@k8s-master01 cfg]# kubectl get pods -n tigera-operator
NAME                               READY   STATUS    RESTARTS   AGE
tigera-operator-5d56685c77-tzhv2   1/1     Running   0          22s
[root@k8s-master01 cfg]#
[root@k8s-master01 cfg]# kubectl logs tigera-operator-5d56685c77-tzhv2 -n tigera-operator
2024/09/14 03:49:25 [INFO] Version: v1.34.3
2024/09/14 03:49:25 [INFO] Go Version: go1.22.5 X:boringcrypto
2024/09/14 03:49:25 [INFO] Go OS/Arch: linux/amd64
W0914 03:49:25.660142       1 reflector.go:535] pkg/mod/k8s.io/client-go@v0.28.9/tools/cache/reflector.go:229: failed to list *v1.ConfigMap: Unauthorized
E0914 03:49:25.660162       1 reflector.go:147] pkg/mod/k8s.io/client-go@v0.28.9/tools/cache/reflector.go:229: Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: Unauthorized
W0914 03:49:26.954102       1 reflector.go:535] pkg/mod/k8s.io/client-go@v0.28.9/tools/cache/reflector.go:229: failed to list *v1.ConfigMap: Unauthorized
E0914 03:49:26.954134       1 reflector.go:147] pkg/mod/k8s.io/client-go@v0.28.9/tools/cache/reflector.go:229: Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: Unauthorized
W0914 03:49:29.741328       1 reflector.go:535] pkg/mod/k8s.io/client-go@v0.28.9/tools/cache/reflector.go:229: failed to list *v1.ConfigMap: Unauthorized
E0914 03:49:29.741373       1 reflector.go:147] pkg/mod/k8s.io/client-go@v0.28.9/tools/cache/reflector.go:229: Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: Unauthorized
W0914 03:49:34.141151       1 reflector.go:535] pkg/mod/k8s.io/client-go@v0.28.9/tools/cache/reflector.go:229: failed to list *v1.ConfigMap: Unauthorized
E0914 03:49:34.141202       1 reflector.go:147] pkg/mod/k8s.io/client-go@v0.28.9/tools/cache/reflector.go:229: Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: Unauthorized
W0914 03:49:40.663507       1 reflector.go:535] pkg/mod/k8s.io/client-go@v0.28.9/tools/cache/reflector.go:229: failed to list *v1.ConfigMap: Unauthorized
E0914 03:49:40.663553       1 reflector.go:147] pkg/mod/k8s.io/client-go@v0.28.9/tools/cache/reflector.go:229: Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: Unauthorized
W0914 03:49:58.678254       1 reflector.go:535] pkg/mod/k8s.io/client-go@v0.28.9/tools/cache/reflector.go:229: failed to list *v1.ConfigMap: Unauthorized
E0914 03:49:58.678277       1 reflector.go:147] pkg/mod/k8s.io/client-go@v0.28.9/tools/cache/reflector.go:229: Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: Unauthorized
[root@k8s-master01 cfg]# kubectl auth can-i list configmaps -n tigera-operator
yes
[root@k8s-master01 cfg]# kubectl auth can-i watch configmaps -n tigera-operator
yes
[root@k8s-master01 cfg]# kubectl get clusterrole tigera-operator -o yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: "2024-09-14T03:49:24Z"
name: tigera-operator
resourceVersion: "58085"
uid: 562e414f-7d14-46fd-9867-8ac649930e67
rules:

apiGroups:

""
resources:
namespaces
pods
podtemplates
services
endpoints
events
configmaps
secrets
serviceaccounts
verbs:
create
get
list
update
delete
watch

apiGroups:

""
resources:
resourcequotas
verbs:
list
get
watch

apiGroups:

""
resourceNames:
calico-critical-pods
tigera-critical-pods
resources:
resourcequotas
verbs:
create
get
list
update
delete
watch

apiGroups:

""
resources:
nodes
verbs:
get
patch
list
watch

apiGroups:

rbac.authorization.k8s.io
resources:
clusterroles
clusterrolebindings
rolebindings
roles
verbs:
create
get
list
update
delete
watch
bind
escalate

apiGroups:

apps
resources:
deployments
daemonsets
statefulsets
verbs:
create
get
list
patch
update
delete
watch

apiGroups:

apps
resourceNames:
tigera-operator
resources:
deployments/finalizers
verbs:
update
list
watch

apiGroups:

operator.tigera.io
resources:
apiservers/finalizers
installations
installations/status
installations/finalizers
tigerastatuses
tigerastatuses/status
tigerastatuses/finalizers
apiservers
apiservers/status
imagesets
verbs:
get
list
update
patch
watch

apiGroups:

operator.tigera.io
resources:
tigerastatuses
verbs:
create
delete
list
watch

apiGroups:

operator.tigera.io
resources:
installations
apiservers
verbs:
delete
list
watch

apiGroups:

networking.k8s.io
resources:
networkpolicies
verbs:
create
update
delete
get
list
watch

apiGroups:

crd.projectcalico.org
resources:
felixconfigurations
ippools
verbs:
create
patch
list
get
watch

apiGroups:

crd.projectcalico.org
resources:
kubecontrollersconfigurations
bgpconfigurations
verbs:
get
list
watch

apiGroups:

projectcalico.org
resources:
ippools
verbs:
create
update
delete
patch
get
list
watch

apiGroups:

projectcalico.org
resources:
ipamconfigurations
verbs:
get
list
watch

apiGroups:

scheduling.k8s.io
resources:
priorityclasses
verbs:
create
get
list
update
delete
watch

apiGroups:

policy
resources:
poddisruptionbudgets
verbs:
create
get
list
update
delete
watch

apiGroups:

apiregistration.k8s.io
resources:
apiservices
verbs:
list
watch
create
update

apiGroups:

coordination.k8s.io
resources:
leases
verbs:
create
get
list
update
delete
watch

apiGroups:

storage.k8s.io
resources:
csidrivers
verbs:
list
watch
update
get
create
delete

apiGroups:

certificates.k8s.io
resources:
certificatesigningrequests
verbs:
list
watch

apiGroups:

policy
resourceNames:
tigera-operator
resources:
podsecuritypolicies
verbs:
use

apiGroups:

policy
resources:
podsecuritypolicies
verbs:
get
list
watch
create
update
delete

Facing the same issue after accidentally deleting calico-system namespace. The namespace was stuck in Terminating phase and I forcefully deleted it.
After, tigera-operator tried to re-create everything but the old service account calico-node remains (even after namespace was wiped out at some point).
Then calico-node pods were created but facing the same error: Unable to create token for CNI kubeconfig error=Unauthorized
What I did just to remove the previous service account:
kubectl -n calico-system patch sa calico-node -p '{"metadata": {"finalizers": null}}'
kubectl -n calico-system delete sa calico-node

Then it works like a charm as tigera-operator then able to re-create the service account.
exactly as @caseydavenport mentioned on https://github.com/projectcalico/calico/issues/8368#issuecomment-2120873448

if you see a deletionTimestmp field on any of them, it means that the resource is trying to be deleted but is stuck. In this case, you need to edit each resource to remove the cni-protector entry from the finalizers field to allow the resources to terminate and the tigera-operator to re-create them


setView takes ages at certain conditions, examples provided

How to reproduce

Leaflet version I'm using: 1.3.4
Browser (with version) I'm using: Chrome (69.0.3497.92 (Official Build) (64-bit)), Firefox 62.0
OS/Platform (with version) I'm using: Windows 7, 64-bit

What behaviour I'm expecting and which behaviour I'm seeing
After I add markers to map, I click on a button 'show first marker', which sets map view to the first marker. I am expecting a map to set on a new view quite fast. What I see is a delay of 10-30 seconds.
I see this as not a pure leaflet bug, but something strange is going on here.  Not sure how they can interfere.
Minimal example reproducing the issue

[x] this example is as simple as possible
[ ] this example does not rely on any third party code

I've prepared two jsfiddle examples.

Markers from JSON works as expected.
Markers from JSON with SQL.js included doesn't work.

Cannot reproduce on Firefox 62.0 on Linux. A peformance flame chart shows that loading the markers into Leaflet.MarkerCluster takes roughly the same amount of time, 0.5sec.

Tried it out on Firefox 62.0 on Linux. I still see the same problem. The problem is not in marker loading, but it appears once I click on 'show first marker', i.e. when I try to setView on the first already loaded marker.

Hi @fralik,
You are using removeOutsideVisibleBounds option from Leaflet.markercluster plugin in your faulty example, but not in your working one.

removeOutsideVisibleBounds: Clusters and markers too far from the viewport are removed from the map for performance.

Adding it (i.e. setting it to false) in your working example makes it "fail": https://jsfiddle.net/n0t4m3fb/63/
Removing it from your faulty example makes it work: https://jsfiddle.net/xo3q1jpz/5/
Expected behaviour of turning off that option of that plugin.
It only shows that loading thousands of icon-based Markers makes the browser struggle, which is a known limitation of Leaflet, and one of the rationale for using a clustering plugin and keeping that option on.


Implement ControlValueAccessor to support ngModel

Added @angular/forms as a dependency, and implemented ControlValueAccessor on the component.
Purpose: you can now use [(ngModel)] to access the control's value, just like any native HTML input element. Example:
<ace-editor [(ngModel)]="myCode"></ace-editor>

note: I didn't commit any .js or .d.ts files, although they changed. This PR will not cause any conflicts with the other PR that I created today; they can be applied simultaneously or one at a time and it shouldn't make a difference.

Again <3


[Section] Demo introduction

https://github.com/training-transformers-together/hf-website-how-to-join
Demo page (updated on push): https://training-transformers-together.github.io/

[x] intro and motivation text

[x] live training plot

[x] model & dataset info

final polishing:

[ ] add company/university logos to the demo header
[ ] update footer links (e.g. twitter & paper)
[ ] remove the full demo will be posted header once the content is there
[ ] link final plot with main training run (#6 )
[ ] try adding bubble chart or leaderboard-list using a background thread, make sure performance is alright
[ ] review round on monday (ask around the slack channel)
[ ] offsets, margins

@TimDettmers PLZ review up until "how do i join"

I think the intro would be better if it goes straight to the point in the first sentence. I think also a bit more formal/neutral style could be better for the first few sentences in the demo. I would also like it to be a bit more like an abstract. Problem + importance + solution (+description) + results. Something like:
"For individual researchers and small labs, pretraining state-of-the-art vision and language model is no longer feasible due to the massive computational resources required for pretraining. For example, pretraining GPT-3 on a single GPU server would take decades. Training Transformers Together is an initiative to perform pretraining of large models on commodity hardware coordinated through the Hugging Face community. We use the decentralized training framework, Hivemind, to perform efficient training over the internet. In our demo, we demonstrate our approach by pretraining [your text copied after this] DALLE: a transformer "language model" that generates images from text description. We're training this model on LAION - the world's largest openly available image-text-pair dataset with 400 million samples. Our model is based on dalle-pytorch with several tweaks for memory-efficient training."


Lots of noises are added to the unspoken parts and overall quality is not worse - files provides

My audio is from my lecture video : https://www.youtube.com/watch?v=2zY1dQDGl3o
I want to improve overall quality to make it easier to understand
Here my raw audio : https://drive.google.com/file/d/1gGxH1J3Z_I8NNjqBvbrVB5MA0gh4qCD7/view?usp=share_link
mode 0 output : https://drive.google.com/file/d/1MRFQecxx9Ikevnsyk9Ivx6Ofr_dqdwFi/view?usp=share_link
mode 1 output : https://drive.google.com/file/d/1sva-o7Py6beEIWbcA4f0LS1-ikGmvlUC/view?usp=share_link
mode 2 output : https://drive.google.com/file/d/1sva-o7Py6beEIWbcA4f0LS1-ikGmvlUC/view?usp=share_link
for example open 1.00.40 and you will see noise
also improvement is not very good if i am not talking a lot during that part of video
check out usually the late parts of the sound files and you will see it is actually worse in mode 1 and mode 2
for example check 1.02.40 mode 1 and see noise and bad sound quality
for example check 1.32.55 mode 2 and see bad quality and noise glitches
I don't know maybe you can test and experiment with my speech to improve model even further.
thank you very much keep up the good work

Thank you for your interest in our model. Many apologize if it does not work as expected.
Generally, my suggestion is to use mode 0 only. But at the same time, the open-sourced model is not enough for production use and may encounter many bad cases. I wish I can improve the model but currently, I'm working on a different research topic for my PhD. When I have a chance on this topic again I'll try my best to achieve a better open-sourced version.

I'd like to add my own experiences using voicefixer and comparing it against other methods (Deepfilternet2). Voicefixer can do some brilliant work. For example, it removed the non-stationary interference but outside of speech and overlapping with little effect on the quality of speech

Upon further investigation, it has been determined that there is an issue with clipping at the tail and audible noise present between silences and distortion of background vocals. While Descript's Studio Sound appears to be a suitable solution, it should be noted that it also has the potential to erase background vocals.


Update reuseable_workflow.yml

The code coverage will work by using the latest reuseable-workflow and specifying the current branch name after @ in test.yml in place of feature/CI-CD

Feel free to update ;)

Hmmm I believe @Lohann actions are over :laughing:

That seems wrong, before we had different percentages for each project. Now all of them are the same. I believe it is getting the same coverage file for all of them.

That seems wrong, before we had different percentages for each project. Now all of them are the same. I believe it is getting the same coverage file for all of them.

Yes, I looked into it, I was trying to optimise the speed by making tests all in single run and formatting in single run, but it took 1 minute more than before.


BACKLOG-17562: Upgrade jackrabbit library to 2.14.2

Upgrading jackrabbit version to 2.14.2
Refer to BACKLOG-17562 and PPP-3714 for details.
Related PRs being opened to upgrade other projects that depend on jackrabbit.
pentaho-platform : https://github.com/pentaho/pentaho-platform/pull/3708
pdi-ee-plugin: pentaho/pdi-ee-plugin#340
data-access: pentaho/data-access#917
@pentaho/rogueone @pentaho/rebelalliance

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -B -fn -f pom.xml clean install && mvn -B -f pom.xml site

Cleanup Commands
mvn -B -f pom.xml build-helper:remove-project-artifact

Changed files
  plugins/pur/core/pom.xml

Still Broken Tests:
org.pentaho.di.trans.steps.syslog.SyslogMessageConcurrentTest.concurrentSyslogMessageTest:
:red_circle: java.lang.Exception
java.lang.Exception: test timed out after 10000 milliseconds
	at org.pentaho.di.trans.steps.syslog.SyslogMessageConcurrentTest.createSyslogMessageTask(SyslogMessageConcurrentTest.java:119)
	at org.pentaho.di.trans.steps.syslog.SyslogMessageConcurrentTest.concurrentSyslogMessageTest(SyslogMessageConcurrentTest.java:67)

Unit test coverage change
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.
org.pentaho.di.job.entries.evalfilesmetrics.JobEntryEvalFilesMetrics

Branch Change:  + .39%
Complexity Change:  + .51%
Instruction Change:  + .08%

org.pentaho.di.job.entries.getpop.MailConnectionMeta

Branch Change:  + 1.00%
Complexity Change:  + 1.41%
Instruction Change:  + .30%

org.pentaho.di.job.entries.sql.JobEntrySQL

Instruction Change: -3.28%:small_red_triangle_down:
Line Change: -3.87%:small_red_triangle_down:

org.pentaho.di.trans.steps.calculator.CalculatorMetaFunction

Branch Change: -8.70%:small_red_triangle_down:
Complexity Change: -3.03%:small_red_triangle_down:
Instruction Change: -.75%:small_red_triangle_down:
Line Change: -.89%:small_red_triangle_down:

org.pentaho.di.trans.steps.checksum.CheckSumMeta

Instruction Change:  + .11%

org.pentaho.di.trans.steps.combinationlookup.CombinationLookupMeta

Instruction Change:  + .04%

org.pentaho.di.trans.steps.csvinput.CsvInputMeta

Instruction Change:  + .05%

org.pentaho.di.trans.steps.datagrid.DataGridMeta

Branch Change:  + 1.92%
Complexity Change:  + 1.69%
Instruction Change:  + .17%

org.pentaho.di.trans.steps.dbproc.DBProcMeta

Instruction Change:  + .11%

org.pentaho.di.trans.steps.dimensionlookup.DimensionLookupMeta

Branch Change: -.31%:small_red_triangle_down:
Instruction Change: -.06%:small_red_triangle_down:
Line Change:  + .23%
Method Change:  + 1.02%

org.pentaho.di.trans.steps.ifnull.IfNullMeta

Branch Change:  + 2.00%
Complexity Change:  + 1.89%
Instruction Change:  + .17%

org.pentaho.di.trans.steps.insertupdate.InsertUpdateMeta

Instruction Change:  + .05%

org.pentaho.di.trans.steps.replacestring.ReplaceStringMeta

Instruction Change:  + .07%

org.pentaho.di.trans.steps.rowgenerator.RowGeneratorMeta

Instruction Change: -.08%:small_red_triangle_down:

org.pentaho.di.trans.steps.sort.SortRowsMeta

Instruction Change:  + .08%

org.pentaho.di.trans.steps.sortedmerge.SortedMergeMeta

Instruction Change: -.18%:small_red_triangle_down:

org.pentaho.di.trans.steps.synchronizeaftermerge.SynchronizeAfterMergeMeta

Instruction Change: -.04%:small_red_triangle_down:

org.pentaho.di.trans.steps.tableoutput.TableOutputMeta

Branch Change: -.91%:small_red_triangle_down:
Complexity Change: -.82%:small_red_triangle_down:

org.pentaho.di.trans.steps.textfileinput.TextFileInputMeta

Branch Change: -.53%:small_red_triangle_down:

org.pentaho.di.trans.steps.uniquerows.UniqueRowsMeta

Instruction Change:  + .18%

org.pentaho.di.trans.Trans

Branch Change: -.10%:small_red_triangle_down:
Complexity Change: -.13%:small_red_triangle_down:
Instruction Change: -.09%:small_red_triangle_down:
Line Change: -.11%:small_red_triangle_down:

org.pentaho.di.www.TransformationMap

Branch Change: -2.27%:small_red_triangle_down:
Instruction Change: -5.49%:small_red_triangle_down:
Line Change: -4.62%:small_red_triangle_down:

org.pentaho.di.ui.repository.pur.repositoryexplorer.model.UIEERepositoryUser

Branch Change: -8.33%:small_red_triangle_down:
Complexity Change: -6.67%:small_red_triangle_down:
Instruction Change: -.85%:small_red_triangle_down:
Line Change: -3.03%:small_red_triangle_down:

org.pentaho.di.ui.repository.pur.repositoryexplorer.model.UISecurityRole

Branch Change:  + 1.79%
Complexity Change:  + 1.54%
Instruction Change:  + .16%
Line Change:  + .58%

org.pentaho.di.trans.steps.salesforceupdate.SalesforceUpdateMeta

Instruction Change: -.17%:small_red_triangle_down:

org.pentaho.di.trans.steps.salesforceupsert.SalesforceUpsertMeta

Instruction Change: -.14%:small_red_triangle_down:


I can't set the password on rasa x

Rasa version:
Rasa 1.0.0
Python version:
3.6.8
Operating system (windows, osx, ...):
Linux Ubuntu
Issue:
I'm trying install the rasa x community according to this http://rasa.com/docs/rasa-x/deploy/#quick-installation
I cant set password on 4.step. When i run the following command
$ cd /etc/rasa
$ sudo python rasa_x_commands.py set_password PASSWORD

got this error :
usage: rasa_x_commands.py [-h] {create,delete} ...
rasa_x_commands.py: error: invalid choice: 'set_password' (choose from u'create', u'delete')
``
`

Should also be fixed in the latest release (1.0.3) -- @wochinge please confirm

Related to https://github.com/RasaHQ/rasa/issues/3577 but is actually an error in the docs. Thanks for catching this. Will be fixed in the next release.


bootstrap vulnerabilities Bug report

Issue type:

Bug report

Environment:

AdminLTE Version:  2.4.5
Operating System:  N/A
Browser (Version):  N/A

Description:
known XSS vulnerabilities
(detected by Google Chrome Lighthouse Auditing)
<EMAIL_ADDRESS>

See #2038


Feature Request -  Bash Script to link / unlink rom collection folders in SD1 and SD2

Describe the Issue (If applicable)
Currently we have to choose between SD1 or SD2 for roms.
If we use SD2 for roms, SD1 EASYROMS partition folders are not used, and with big sdcards being cheaper and faster nowdays, that's a shame.
I know that EmulationStation doesn't support multiple paths, but alternatively, would be possible for a script that softlinks each folder together to be made available in ArkOS options and one that unlinks them, similarly to how we have the scripts to choose between SD1 or SD2?
What device are you using?
RG36s
What version of ArkOS are you on?

12222023

Anything else you'd like to include that may help to review this issue or feature request?
Thanks in advance!

formats such as fat32 and exfat don't support symlinks.  I'm not sure about ntfs.  This would require all to use ext4 partition and if someone knows how to deal with ext4, they can easily accomplish this on their own.  This is not something I will accomodate and support.


Remove id

The slider id will be duplicated if use multiple sliders.

I have updated as you wrote.
But I can't make build by bili cli command (npm run build), because I don't have installed it with all dependencies.


Add db.Sync() api

hello, @benbjohnson
In my project, I need something like "sync every second"
boltdb only provides db.NoSync option,
Eh...I can do it by committing an empty tx with db.NoSync = true every second :cry:
It looks good to add db.Sync() api, right?

Added DB.Sync() to https://github.com/boltdb/bolt/pull/366. Can you take a look and verify that's what you're looking for?

Yeah, exactly what I need. :+1: :laughing:

Cool, it's merged. :+1:


feat: :sparkles: Added vertex AI provider for orgs using gemini

Organisations or users that use the vertex AI API through google instead of the gemini API need to be able to SSO with gcloud authentication in order to use LLMs. You can see documentation for the API here, viewing the curl tab.
https://cloud.google.com/vertex-ai/generative-ai/docs/start/quickstarts/quickstart-multimodal#send-text-only-request
The vertex AI is gemini compatible (i.e it uses the same API under the hood), so we can use the same gemini parse message and response attributes.
It would greatly help if this provider could be added, as it would allow me to use avante with models available via the vertex AI model garden.
The changes have been tested locally, and I would be happy to maintain this if the API changes as I regularly use this API and can keep track.

I don't have a vertex testing environment here, but there are no issues with the code, so I merged it first.


Fix error on Edge

So silly..

Error:

Solution:

might there be more of these lurking in our code?

I did a quick code scan and did not find any more


VS crashes if you rename an F# symbol in a generic parameter with latest master installed into 15.6

Using 15.6.4 and latest master installed into it, attempt to rename Record in the following code:
type Record = { IntVal: int; StringVal: string }

[<AbstractClass>]
type AbstractFoo<'T>() =
    abstract member Foo: 'T -> 'T

type C() =
    inherit AbstractFoo<Record>()
    override __.Foo(r) = { r with IntVal = 12 }

After typing the first character, the inline rename service will crash, followed by VS crashing.
This is the stack trace in the activity log:
System.NullReferenceException: Object reference not set to an instance of an object. at
Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.InlineRenameSession.CommitCore(IWaitContext waitContext, Boolean previewChanges) at
Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.InlineRenameSession.<>c__DisplayClass71_0.<Commit>b__0(IWaitContext waitContext) at
Microsoft.VisualStudio.LanguageServices.Implementation.Utilities.VisualStudioWaitIndicator.Wait(String title, String message, Boolean allowCancel, Boolean showProgress, Action`1 action) at
Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.InlineRenameSession.Commit(Boolean previewChanges) at
Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.RenameCommandHandler.CommitIfActive(EditorCommandArgs args) at
Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.RenameCommandHandler.CommitIfActiveAndCallNextHandler(EditorCommandArgs args, Action nextHandler) at
Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.RenameCommandHandler.HandlePossibleTypingCommand(EditorCommandArgs args, Action nextHandler, Action`1 actionIfInsideActiveSpan) at
Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.RenameCommandHandler.ExecuteCommand(TypeCharCommandArgs args, Action nextHandler, CommandExecutionContext context) at
Microsoft.VisualStudio.Commanding.CommandHandlerExtensions.ExecuteCommand[T](ICommandHandler commandHandler, T args, Action nextCommandHandler, CommandExecutionContext executionContext) at
Microsoft.VisualStudio.UI.Text.Commanding.Implementation.EditorCommandHandlerService.<>c__DisplayClass14_1`1.<Execute>b__1() at
Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call) --- End of stack trace from previous location where exception was thrown --- at
Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

Currently this makes it impossible to test out a fix for #4231 😢

Some observations, in case it helps:
This is not caused by the latest master, at the very least the bug has been out for a little while longer. I haven't updated to latest master, but I can repro in an instance of VS2017 15.6.4 and VS2017 15.7.0 Preview 2 (which means, I believe, that Preview 2 is "installed into" 15.6.4. as well wrt F# services and compiler).

I also noted that the lookup-screen says "will replace 0 references in 0 files", perhaps that is a hint?

Even more worrying, when I put back focus on the editor while the rename-box is still visible top-right, I get this ("An exception has been encountered"):

And, still more surprising, even when I don't apply the renaming (hit cancel or the X in top-right of rename window), it still crashes!

@cartermp @abelbraaksma I don't get a crash, but I do get a double-rename of he generic parameter:
e.g.
type Record = { IntVal: int; StringVal: string }
...
    inherit AbstractFoo<Record>()

becomes
type AA = { IntVal: int; StringVal: string }
...
    inherit AbstractFoo<AAAA>()

I fixed the double renaming in #4810

@dsyme Did you test this with just 15.6.x, or with 15.6.x and a master VSIX built in, or 15.7? The crash occured for me in the latter two setups, but not "normal" 15.6.x.

Just 15.6.x  plus F5 launch of Visualfsharp. sln

Probably the same issue, I see an error right after I press F2:

Rename doesn't happen, but the 'rename apply' window is always open when the editor windows is in focus:

Same place and machine config (VS 15.7) as in #4209 with today's (May 15) nightly build.

Tested out the original example a couple of times on 15.7.1 and once got the "An exception has been encountered" message and once got the double renaming (now fixed in nightlies).

The double rename also occurs if I rename AbstractFoo.  I've repeated the test roughly 25 times and haven't been able to recreate the exception.  Perhaps requires a solution that has been open/churning for a while to trigger the conditions for this crash.

Error from ActivityLog.xml
System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.InlineRenameSession.CommitCore(IWaitContext waitContext, Boolean previewChanges)
   at Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.InlineRenameSession.<>c__DisplayClass71_0.<Commit>b__0(IWaitContext waitContext)
   at Microsoft.VisualStudio.LanguageServices.Implementation.Utilities.VisualStudioWaitIndicator.Wait(String title, String message, Boolean allowCancel, Boolean showProgress, Action`1 action)
   at Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.InlineRenameSession.Commit(Boolean previewChanges)
   at Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.RenameCommandHandler.ExecuteCommand(ReturnKeyCommandArgs args, CommandExecutionContext context)
   at Microsoft.VisualStudio.Commanding.CommandHandlerExtensions.ExecuteCommand[T](ICommandHandler commandHandler, T args, Action nextCommandHandler, CommandExecutionContext executionContext)
   at Microsoft.VisualStudio.UI.Text.Commanding.Implementation.EditorCommandHandlerService.<>c__DisplayClass14_1`1.<Execute>b__1()
   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

That sounds plausible.  The odd thing was I copy pasted the example into the foot of a file in a lagre F# solution and immediately got the exception on first attempt.  After restart I've not been able to trigger it again.  I'd hoped I'd be able to attach a debugger but wasn't prompted as sometimes happens, I think because the main VS process survived the crash.  The rename box became unusable after the error message and couldn't be dismissed.

This is fixed in #4939


Issue with HA 2024.10.0

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/config/custom_components/ingress/__init__.py", line 227, in async_setup
    hass.http.register_view(IngressView(hass, cfgs, async_get_clientsession(hass)))
  File "/usr/src/homeassistant/homeassistant/components/http/__init__.py", line 432, in register_view
    view.register(self.hass, self.app, self.app.router)
  File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 188, in register
    allow_cors(route)
  File "/usr/src/homeassistant/homeassistant/components/http/cors.py", line 72, in _allow_cors
    cors.add(route, config)
  File "/usr/local/lib/python3.12/site-packages/aiohttp_cors/cors_config.py", line 263, in add
    return self._cors_impl.add(routing_entity, config)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp_cors/cors_config.py", line 134, in add
    self._router_adapter.add_preflight_handler(
  File "/usr/local/lib/python3.12/site-packages/aiohttp_cors/urldispatcher_router_adapter.py", line 195, in add_preflight_handler
    self.add_preflight_handler(route.resource, handler)
  File "/usr/local/lib/python3.12/site-packages/aiohttp_cors/urldispatcher_router_adapter.py", line 161, in add_preflight_handler
    raise ValueError(
ValueError: <DynamicResource  /api/ingress/{token}/{path}> already has OPTIONS handler <function request_handler_factory.<locals>.handle at 0x7f83966e51c0>

I'm having this too since updating HA to 2024.10.0
Logger: homeassistant.setup
Source: setup.py:416
First occurred: 14:30:51 (2 occurrences)
Last logged: 14:30:52

Error during setup of component scrypted
Error during setup of component ingress
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/config/custom_components/scrypted/__init__.py", line 24, in async_setup
    hass.http.register_view(ScryptedView(hass, session))
  File "/usr/src/homeassistant/homeassistant/components/http/__init__.py", line 432, in register_view
    view.register(self.hass, self.app, self.app.router)
  File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 188, in register
    allow_cors(route)
  File "/usr/src/homeassistant/homeassistant/components/http/cors.py", line 72, in _allow_cors
    cors.add(route, config)
  File "/usr/local/lib/python3.12/site-packages/aiohttp_cors/cors_config.py", line 263, in add
    return self._cors_impl.add(routing_entity, config)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp_cors/cors_config.py", line 134, in add
    self._router_adapter.add_preflight_handler(
  File "/usr/local/lib/python3.12/site-packages/aiohttp_cors/urldispatcher_router_adapter.py", line 195, in add_preflight_handler
    self.add_preflight_handler(route.resource, handler)
  File "/usr/local/lib/python3.12/site-packages/aiohttp_cors/urldispatcher_router_adapter.py", line 161, in add_preflight_handler
    raise ValueError(
ValueError: <DynamicResource  /api/scrypted/{token}/{path}> already has OPTIONS handler <function request_handler_factory.<locals>.handle at 0x7fe44dfca5c0>

+1

+1
Issue in HA 2024.10.1 too


Stylesheet root_view is now required?

Not sure if this was an accident or by design... no biggie either way.
It seems we're now required stylesheets to have a def root_view(st).  Should this remain optional or did this have to change with the new PMListScreen + xml layout feature?
I didn't dig into why.  Just noticed something up in our app broke (and was easily fixed).
https://github.com/infinitered/bluepotion/blob/master/lib/project/pro_motion/fragments/pm_screen.rb#L56

The plot thickens.
https://github.com/infinitered/bluepotion/blame/master/lib/project/pro_motion/fragments/pm_screen.rb#L56
/cc @twerth

Yes, we require it if you have a stylesheet. In RedPotion too.

Roger.


Provide committer access to tsx-air

Don't worry I won't merge without code review.
@omryn

This project is unlicensed - doesn't have one, please commit a license so it can be "open source"

added MIT lisence


no CUDA-capable device is detected at ../aten/src/THC/THCGeneral.cpp:47

Hi, thank you for providing this code.
Trying to run, but I get:
RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at /opt/conda/conda-bld/pytorch_1591914838379/work/aten/src/THC/THCGeneral.cpp:47
even though I do have a CUDA-capable device and tested again by running another code.
First I installed in a docker container, got that error.
Then I installed native using the exact instructions. Same error.
(for some reason, I had to:
python -m pip install --upgrade pip
to fix the error with pip, when installing native. Docker install gave no issues.
pip --version
Traceback (most recent call last):
  File "/home/olivier/code/anaconda3/envs/vedastr/bin/pip", line 6, in <module>
    from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip._internal.cli.main'

before
pip install -r requirements.txt
vedastr$ python tools/test.py configs/small_satrn.py pretrained/small-SATRN/Small-SATRN.pth
2020-07-28 04:25:39,895 - INFO - Assemble, Step 1, Build Dataset
2020-07-28 04:25:39,897 - INFO - current dataset length is 287 in ./data/data_lmdb_release/evaluation/CUTE80
2020-07-28 04:25:39,900 - INFO - current dataset length is 867 in ./data/data_lmdb_release/evaluation/IC03_867
2020-07-28 04:25:39,904 - INFO - current dataset length is 1015 in ./data/data_lmdb_release/evaluation/IC13_1015
2020-07-28 04:25:39,911 - INFO - current dataset length is 1922 in ./data/data_lmdb_release/evaluation/IC15_2077
2020-07-28 04:25:39,921 - INFO - current dataset length is 3000 in ./data/data_lmdb_release/evaluation/IIIT5k_3000
2020-07-28 04:25:39,924 - INFO - current dataset length is 647 in ./data/data_lmdb_release/evaluation/SVT
2020-07-28 04:25:39,927 - INFO - current dataset length is 645 in ./data/data_lmdb_release/evaluation/SVTP
2020-07-28 04:25:39,927 - INFO - Assemble, Step 2, Build Dataloader
2020-07-28 04:25:39,927 - INFO - Assemble, Step 3, Build Model
2020-07-28 04:25:39,951 - INFO - GResNet init weights
2020-07-28 04:25:40,271 - INFO - TransformerEncoder init weights
2020-07-28 04:25:40,761 - INFO - TransformerDecoder init weights
2020-07-28 04:25:40,858 - INFO - TransformerHead init weights
2020-07-28 04:25:40,958 - INFO - Using CPU
2020-07-28 04:25:40,958 - INFO - Assemble, Step4, Build Converter
2020-07-28 04:25:40,958 - INFO - Assemble, Step 5, Build Criterion
2020-07-28 04:25:40,959 - INFO - Assemble, Step 6, Build Optimizer
2020-07-28 04:25:40,960 - INFO - Assemble, Step 7, Build LR scheduler
2020-07-28 04:25:40,960 - INFO - Assemble, Step 8, Build Runner
THCudaCheck FAIL file=../aten/src/THC/THCGeneral.cpp line=47 error=100 : no CUDA-capable device is detected
Traceback (most recent call last):
  File "tools/test.py", line 28, in <module>
    main()
  File "tools/test.py", line 23, in main
    runner = assemble(cfg_fp, test_mode=True, checkpoint=checkpoint)
  File "/home/olivier/projects/code/vedastr/tools/../../vedastr/vedastr/assembler/assembler.py", line 130, in assemble
    runner.resume(**cfg['resume'])
  File "/home/olivier/projects/code/vedastr/tools/../../vedastr/vedastr/runner/runner.py", line 256, in resume
    device_id = torch.cuda.current_device()
  File "/opt/conda/lib/python3.6/site-packages/torch/cuda/__init__.py", line 375, in current_device
    _lazy_init()
  File "/opt/conda/lib/python3.6/site-packages/torch/cuda/__init__.py", line 195, in _lazy_init
    torch._C._cuda_init()
RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at ../aten/src/THC/THCGeneral.cpp:47

I noticed the:
2020-07-28 04:25:40,958 - INFO - Using CPU
I welcome your suggestion. I have not found an answer in my web search.

What's the result of torch.cuda.is_avalable() in your environment?

what is the gpu_id in the config file?

https://github.com/Media-Smart/vedastr/blob/b369b40512f5644f71bdd47db61e80d480c9f7d5/configs/resnet_fc.py#L199

Yep, thank you. I had forgotten to look into the configs directory for the small_satrn.py file
I just had it running by replacing in assembler.py:
    os.environ['CUDA_VISIBLE_DEVICES'] = '0' # cfg['gpu_id']
but changing the config file is cleaner!
Thank you and thanks for your swift reply! Best.

You are welcome.


Setting seems to be saved only when the app closed.

I used to change the setting and shutdown my computer without exiting the app, but the setting can not be saved everytime. Then I tried to change the setting and restart the app, and the setting saved.
This issue doesn't affect me anymore, but it may affect other new users.

@M-G-Y-Blue thanks for reporting the issue.
This is duplicated with issue #4 which has already been resolved.
Please update the app to the latest version in the Microsoft Store to fix this problem.


[FLINK-2626][CORE]add averageaccumulator

Add class averageaccumulator for FLINK-accumulator.
And test for it.

@sachingoel0101
Hi,
I removed these two methods as you said.

Looks good, +1 to merge this

Why is public void add(Double value) overloaded with public void add(double value)? The usage of primitive types and there class counterparts seem to be mixed... Why?

@mjsax
Do you mean that remove the public void add(double value)?
I`m not quite sure how this can be used in the feature.
@StephanEwen
Thank you!
Otherwise, Can you take a look about my earlier PRs?
Since I have been fixing those for a long time and recently I took fixes and passed the CI of them.
Many thanks for you and sorry for wasting your time.

@mjsax , primitive add methods for accumulators were introduced in #942 to get rid of potential unnecessary boxing and unboxing.

Yes, I don't see any advantage in having this overload. I would also change add(long value) and add(int value) into add(Long value) and add(Integer value) for consistency (I actually prefer primitive types, too; however, for this case class types seems to be more appropriate because the inherited methods use Double as parameter and as return type in getLocalValue()).
But you should wait for @StephanEwen feedback before chancing anything. I am new to accumulators...

@mjsax, I'm not sure what's the need for those. The add(Double) is only needed because the interface requires this. add(Long) is equivalent to add(long) after unboxing, which is exactly what would happen inside the implementation of add(Long).

Fail enough. Ignore my comment.

@sachingoel0101
@mjsax
Otherwise, could you tell why the CI is failed?

Tests in error:
SlotCountExceedingParallelismTest.testNoSlotSharingAndBlockingResult » JobExecution

and
Failed tests:
KafkaITCase>KafkaTestBase.prepare:155 Test setup failed: Unable to connect to zookeeper server within timeout: 6000
KafkaProducerITCase>KafkaTestBase.prepare:155 Test setup failed: Unable to connect to zookeeper server within timeout: 6000

Tests in error:
KafkaITCase>KafkaTestBase.shutDownServices:196 » NullPointer
KafkaProducerITCase>KafkaTestBase.shutDownServices:196 » NullPointer

@mjsax
Thank you for the info.
I take a fix about your comment and rerun the CI.
As for the error, I have no idea.
Is there any bugs in other module?

@sachingoel0101
Thank you for spending time in explaining.

To me, the tests seems to be unstable. Maybe we need to open a JIRA for them. I will report them on the dev mailing list.

@mjsax
Otherwise, since this accumulator is prepared for the cust metrics in storm-compatibility.
Can you give me a storm example in using the cust metrics?
Or is it more suitable to send a email to you for this question on dev mailing list?

We should discuss this over the dev list.

I am pushing a hotfix to increase timeouts in the Kafka tests. That will hopefully make the Kafka tests more reliable on Travis

@StephanEwen
Just a minor thing:
Does the zk do re-connection if it failed to set up a node or cannot receive the msg from any node?
As I know the zk is unstable in some cases and I have no idea about what cases.

I think you can cinfigure ZooKeeper to do that.
The problem in that test was that the Kafka server has an initial timeout when trying to connect to ZooKeeper. Here, ZooKeeper is an embedded mini-cluster-zookeeper for tests. Apparently either that mini cluster did not start properly, or the build was accidentally very slow (it happens in these shared VM environments) so that the timeout triggered.

@StephanEwen
Thank you.
I'll take learning in your further hotfix.

+1 for merging.


webpack.config.js not getting picked up properly

I'm experiencing an issue where webpack.config.js is not being picked up when running npm run webpack (or yarn webpack) in the branch 03-fem-debug-script. Seems to be caused by both webpack-cli and webpack-command being installed. Removing webpack-command and then doing npm install seems to fix the issue.
I have not completed the full course yet, so not sure if webpack-command is used in anyway later, but otherwise I would suggest to remove it.

I'm also getting this issue in 031-all-module-types

I don't think @TheLarkInn uses webpack-command at all in any of the courses... I just DM'd him to ask if I can remove this from the package.json in all the branches.

Ok, I went and removed webpack-command from all package.json's I could find.


How to create TP/SL orders after creating limit order

For example let's say the current price is 80 and I want to create a new limit order at 100. But after creating limit order I want to set a stop loss at 95 and take profit at 105.
So I tried doing something like the following,
order = client.futures_create_order(symbol=symbol, side=client.SIDE_BUY, newClientOrderId = crypto, type='LIMIT', quantity=qty, price=price, timeInForce="GTC")
print(order)

open_order_id = order['orderId']

print("TP Order")
order = client.futures_create_order(symbol=symbol, side=client.SIDE_SELL,  newClientOrderId= crypto+"_TP",quantity=qty, type=client.FUTURE_ORDER_TYPE_TAKE_PROFIT, stopPrice=tp, price=tp,  timeInForce="GTC", reduceOnly = True)
print(order)

print("SL Order")
order = client.futures_create_order(symbol=symbol, side=client.SIDE_SELL,  newClientOrderId= crypto+"_SL",quantity=qty, type=client.FUTURE_ORDER_TYPE_STOP, stopPrice=sl, price=sl,  timeInForce="GTC", reduceOnly = True)
print(order)

This works fine when the price is at 99 and I want to create a limit order at 100 with 95 SL or 105 TP. But in the first case, it gives me an error that this order would trigger immediately. Which kinda makes sense...
But is there any other methods or api I can use to create tp sl order for a limit order independent of the current price?

Hi
This is what I personally did and it worked for me
You need to first create your limit order, and wait for it to open a position
When the position is opened and active, then you can set your TP/SL
You can connect to user socket stream (How to connect to user data stream) to get updates for your orders
wait for it to give you the FILLED status of your sent order
When you get the FILLED update of your order, set your TP/SL

Having the problem here. Man would think that arg closePosition=True or reduceOnly=True would get rid of "immediately" error. That is not the case. Do not know what is the reason for those 2 arguments to exist if adding BUY and SELL order closes eachother anyways...


Pre tag overflows the width of the container

How can we reproduce this bug?
Write a long piece of css code for example.
Put that on a column div.
The pre tag will overflow the width of the column container
What did you expect to happen?
I expect to see a X axis scrolling bar.
What happened instead?
Text overflows the container width.
Test case:
pre {overflow-x:auto} will fix that.

Hi @BicanMarianValeriu
I confirm this is is an unexpected behavior. I'll open a PR and add pre {overflow-x:auto} to our global styles, because of I think there is no case where we would expect the pre content to overflow.
I made a codepen to verify the bug. Next time, please provide one. It really help us. https://codepen.io/ncoden/pen/ENzmwZ


load program: argument list too long

I tried to run it, but the program reported an error.
I tested on openEuler(4.19.90)
./otel-profiling-agent -collection-agent=<IP_ADDRESS>:11000 -disable-tls -verbose   -bpf-log-level=0
time="2024-05-07T16:21:41.712614957+08:00" level=debug msg="Config:"
time="2024-05-07T16:21:41.713944783+08:00" level=debug msg="bpf-log-level: 0"
time="2024-05-07T16:21:41.714489878+08:00" level=debug msg="bpf-log-size: 65536"
time="2024-05-07T16:21:41.714844795+08:00" level=debug msg="cache-directory: /var/cache/otel/profiling-agent"
time="2024-05-07T16:21:41.715587205+08:00" level=debug msg="collection-agent: <IP_ADDRESS>:11000"
time="2024-05-07T16:21:41.715962906+08:00" level=debug msg="config: /etc/otel/profiling-agent/agent.conf"
time="2024-05-07T16:21:41.716214605+08:00" level=debug msg="copyright: false"
time="2024-05-07T16:21:41.716436016+08:00" level=debug msg="disable-tls: true"
time="2024-05-07T16:21:41.716785813+08:00" level=debug msg="map-scale-factor: 0"
time="2024-05-07T16:21:41.717052825+08:00" level=debug msg="no-kernel-version-check: false"
time="2024-05-07T16:21:41.717499231+08:00" level=debug msg="probabilistic-interval: 1m0s"
time="2024-05-07T16:21:41.717709826+08:00" level=debug msg="probabilistic-threshold: 100"
time="2024-05-07T16:21:41.717866628+08:00" level=debug msg="project-id: 1"
time="2024-05-07T16:21:41.718047638+08:00" level=debug msg="secret-token: abc123"
time="2024-05-07T16:21:41.718288634+08:00" level=debug msg="t: all"
time="2024-05-07T16:21:41.718490844+08:00" level=debug msg="tags: "
time="2024-05-07T16:21:41.718877745+08:00" level=debug msg="tracers: all"
time="2024-05-07T16:21:41.719518458+08:00" level=debug msg="v: true"
time="2024-05-07T16:21:41.719868559+08:00" level=debug msg="verbose: true"
time="2024-05-07T16:21:41.720101154+08:00" level=debug msg="version: false"
time="2024-05-07T16:21:41.720364662+08:00" level=info msg="Starting OTEL profiling agent 1.0.0 (revision OTEL-review, build timestamp N/A)"
time="2024-05-07T16:21:41.786557253+08:00" level=debug msg="Validated tags: "
time="2024-05-07T16:21:41.825674390+08:00" level=debug msg="Traffic to <IP_ADDRESS> is routed from <IP_ADDRESS>"
time="2024-05-07T16:21:41.828227928+08:00" level=error msg="Unable to get host metadata for config: unable to open /proc/sys/kernel/bpf_stats_enabled: open /proc/sys/kernel/bpf_stats_enabled: no such file or directory"
time="2024-05-07T16:21:41.828849137+08:00" level=debug msg="Reading the configuration"
time="2024-05-07T16:21:41.829340743+08:00" level=debug msg="Done setting configuration"
time="2024-05-07T16:21:41.829902847+08:00" level=debug msg="Determining tracers to include"
time="2024-05-07T16:21:41.830438854+08:00" level=debug msg="Tracer string: all"
time="2024-05-07T16:21:41.830999454+08:00" level=info msg="Interpreter tracers: perl,php,python,hotspot,ruby"
time="2024-05-07T16:21:41.831561173+08:00" level=info msg="Automatically determining environment and machine ID ..."
time="2024-05-07T16:21:44.838773933+08:00" level=debug msg="Environment tester (azure) failed: failed to get azure metadata: Get \"http://<IP_ADDRESS>/metadata/instance/compute?api-version=2020-09-01&format=json\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
time="2024-05-07T16:21:54.431239546+08:00" level=debug msg="Environment tester (aws) failed: failed to get aws metadata: EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: RequestError: send request failed\ncaused by: Get \"http://<IP_ADDRESS>/latest/dynamic/instance-identity/document\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
time="2024-05-07T16:21:55.439542972+08:00" level=debug msg="Environment tester (gcp) failed: failed to get GCP metadata: Get \"http://<IP_ADDRESS>/computeMetadata/v1/instance/id\": dial tcp <IP_ADDRESS>:80: i/o timeout"
time="2024-05-07T16:21:55.500070495+08:00" level=debug msg="Using MAC: 0x563412005452"
time="2024-05-07T16:21:55.500789001+08:00" level=info msg="Environment: hardware, machine ID: 0x9eead8d68aa7f8e0"
time="2024-05-07T16:21:55.501188814+08:00" level=info msg="Assigned ProjectID: 1 HostID:<PHONE_NUMBER>648996576"
time="2024-05-07T16:21:55.554270124+08:00" level=debug msg="Traffic to <IP_ADDRESS> is routed from <IP_ADDRESS>"
time="2024-05-07T16:21:55.557283668+08:00" level=error msg="Unable to get host metadata: unable to open /proc/sys/kernel/bpf_stats_enabled: open /proc/sys/kernel/bpf_stats_enabled: no such file or directory"
time="2024-05-07T16:21:58.085100042+08:00" level=debug msg="Size of eBPF map exe_id_to_9_stack_deltas: 65536"
time="2024-05-07T16:21:58.108411365+08:00" level=debug msg="Size of eBPF map exe_id_to_15_stack_deltas: 65536"
time="2024-05-07T16:21:58.134409812+08:00" level=debug msg="Size of eBPF map exe_id_to_12_stack_deltas: 65536"
time="2024-05-07T16:21:58.152563258+08:00" level=debug msg="Size of eBPF map stack_delta_page_to_info: 65536"
time="2024-05-07T16:21:58.183999587+08:00" level=debug msg="Size of eBPF map exe_id_to_8_stack_deltas: 65536"
time="2024-05-07T16:21:58.203253447+08:00" level=debug msg="Size of eBPF map exe_id_to_18_stack_deltas: 65536"
time="2024-05-07T16:21:58.229573099+08:00" level=debug msg="Size of eBPF map exe_id_to_20_stack_deltas: 65536"
time="2024-05-07T16:21:58.268821838+08:00" level=debug msg="Size of eBPF map exe_id_to_19_stack_deltas: 65536"
time="2024-05-07T16:21:58.302900795+08:00" level=debug msg="Size of eBPF map exe_id_to_11_stack_deltas: 65536"
time="2024-05-07T16:21:58.325655006+08:00" level=debug msg="Size of eBPF map exe_id_to_13_stack_deltas: 65536"
time="2024-05-07T16:21:58.347174897+08:00" level=debug msg="Size of eBPF map exe_id_to_14_stack_deltas: 65536"
time="2024-05-07T16:21:58.373934555+08:00" level=debug msg="Size of eBPF map exe_id_to_21_stack_deltas: 65536"
time="2024-05-07T16:21:58.458982697+08:00" level=debug msg="Size of eBPF map exe_id_to_10_stack_deltas: 65536"
time="2024-05-07T16:21:58.480097687+08:00" level=debug msg="Size of eBPF map exe_id_to_16_stack_deltas: 65536"
time="2024-05-07T16:21:58.504682723+08:00" level=debug msg="Size of eBPF map exe_id_to_17_stack_deltas: 65536"
time="2024-05-07T16:21:58.530875781+08:00" level=debug msg="Size of eBPF map pid_page_to_mapping_info: 1048576"
time="2024-05-07T16:21:58.613319392+08:00" level=error msg="load program: argument list too long"
time="2024-05-07T16:21:58.613850103+08:00" level=error msg="Failed to load eBPF tracer: failed to load eBPF code: failed to load eBPF programs: failed to load unwind_native"

if i change to "-bpf-log-level=2 -bpf-log-size=8388608“, got this error:
time="2024-05-07T16:18:51.318253683+08:00" level=error msg="load program: invalid argument"
time="2024-05-07T16:18:51.319925706+08:00" level=error msg="Failed to load eBPF tracer: failed to load eBPF code: failed to load eBPF programs: failed to load unwind_stop"

When you built otel-profiling-agent, what was number of instructions reported for the eBPF programs?
Output from my machine
Instruction counts for tracer.ebpf.x86:

.text has 0 instructions
perf_event/unwind_dotnet has 3597 instructions
perf_event/unwind_hotspot has 3073 instructions
tracepoint/sched/sched_switch has 1159 instructions
tracepoint/syscalls/sys_enter_read has 22 instructions
perf_event/unwind_stop has 445 instructions
perf_event/native_tracer_entry has 426 instructions
perf_event/unwind_native has 3995 instructions
perf_event/unwind_perl has 2646 instructions
perf_event/unwind_php has 2563 instructions
perf_event/unwind_python has 3739 instructions
perf_event/unwind_ruby has 3255 instructions
tracepoint/sched/sched_process_exit has 111 instructions
tracepoint/syscalls/sys_enter_bpf has 25 instructions
raw_tracepoint/sys_enter has 29 instructions
perf_event/unwind_v8 has 3317 instructions

Total instructions: 28402

The max number of instructions per program is 4096 nad the native unwinder is very close to this. If you used a different compiler version, maybe the limit of instructions was reached?

Recently commit f50ab6b7f68db6e43811916d3c87f9e152f38569 was merged that further reduces the unwind_native size. Reportedly it was too large with some compiler versions.
Closing since there was no response for long time. Please reopen with additional information and responses to the questions if the issue persists.


Dynamicaccess service for ACT

Checklist

[ ] I have read the coding guide.
[ ] My change requires a documentation update, and I have done it.
[ ] I have added tests to cover my changes.
[ ] I have filled out the description and linked the related issues.

Description

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

+1


react-router-redux's push() not rendering new route

First of all, sorry if title is misleading.
I've problems with using react-router-redux@next with<EMAIL_ADDRESS>I set up all correctly (I'm migrating from V3) and when I dispatch(push(..)) I can see in DevTools action @@router/LOCATION_CHANGE is triggered. Also URL changes. But components are not rendered. However it works without issues with router's Link
Version
react-router-rom 4.0.0
react-router-redux 5.0.0-alpha.4
Steps to reproduce
I'm attaching file  with simple App containing 3 stateless components and defined 3 routes. Also there're 3 links using Link component and 3 using react-router-redux' push (links to the same components). I couldn't use codepen since I haven't found react-router-redux and react-redux on cdn. Sorry!
File: https://gist.github.com/dominikbulaj/33c37099a0073278eebbba3a0226f2d2
Expected Behavior
Render components when using react-router-redux
Actual Behavior
I see action @@router/LOCATION_CHANGE being triggered. URL changes but nothing changes on page.
Looks like it doesn't push anything to history object.

Read this guide: https://github.com/ReactTraining/react-router/blob/master/packages/react-router/docs/guides/blocked-updates.md

Thanks! Actually this helped me much more: https://github.com/ReactTraining/react-router/blob/master/packages/react-router/docs/guides/redux.md

I tried wrapping all my connected components with withRouter, but it still doesn't seem to work. My structure is the following:
App.jsx:
    <Route component={Home} />

Home.jsx:
      class Home extends React.Component {
           ...
       }
      export default withRouter(connect(mapStateToProps, mapDispatchToProps)(Home))

The export default withRouter(connect(mapStateToProps, mapDispatchToProps)(Component)) doesn't work for me too :(

@dominikbulaj Could you share how you got your Gist example to work with the withRouter higher order component?

@danyim in my case in index.js (entry point) I've:
ReactDOM.render(
  <Provider store={store}>
    <App>
      <Router history={history}/>
    </App>
  </Provider>,
  document.getElementById('root')
)

Router is component with ConnectedRouter root element (this comes from react-router-redux
export default ({history}) => <ConnectedRouter history={history}>
  <Switch>
  <Route exact path='/' component={Home}/>
  <Route path="/login" component={Login}/>
  <Route path="/logout" component={Logout}/>
{* ... *}
</Switch>
</ConnectedRouter>

NOTE not every comonent needs withRouter (I'd say I use it in just ~30%)

@dominikbulaj In which component did you have to add withRouter to solve the blocked renders?

@dominikbulaj Thanks. We were able to figure it out. The boilerplate we were using nested a BrowserRouter inside of a ConnectedRouter that needed to be passed into the withRouter higher order component.

@dominikbulaj In the latest version of react-router, they removed ConnectedRouter. I also try withRouter but it doesn't working

ConnectedRouter  imported from react-router-redux, not from react-router

@viennv1709 Hmm, I'm still using it. Here's what I import in my Router component:
import { Redirect, Route, Switch } from 'react-router-dom'
import { ConnectedRouter } from 'react-router-redux'

ConnectedRouter is part of react-router-redux (sorry if I confused anyone)

If my opinion matters to anyone, I got no luck using withRouter HOC. As @dominikbulaj , I got everything working replacing BrowserRouter with ConnectedRouter from react-router-redux. Simply follow the example in the README. To me, this seems the way to go if you're using Redux. First because it enables time traveling and keeps state in sync. Second and most important, it forces components to re-render since the state changes. This way, you don't need to worry about keeping track of the components you need to wrap with withRoute. I also found this video on YouTube that can clarify thinngs a bit.

I figured out the best way to do this. BrowserRouter internally creates its own history object. That's what was causing the problem for me. I solved it by avoiding using BrowserRouter, using Router instead and creating my own history object:
import { Router, Route } from 'react-router-dom';
import createHistory from 'history/createBrowserHistory';

const history = createHistory();

const App= () => (
   <Router history={history}>

         <Route path='/mypath' component={MyComponent history={history}} />

   </Router>
);

And then inside MyComponent, use this to navigate to a new URL:
this.props.history.push('/myurl');

@dominikbulaj
Do you call createHistory() multiple times?
I created History from different files and I had same issue. And I solved it after I import history from myHistory.js file.
// myHistory.js
import createHistory from 'history/createBrowserHistory';
const history = createHistory({
  basename: '/users'
});
export default history;

import myHistory.js anywhere you called createHistory():
// example: AdminRoutes.js
import { ConnectedRouter } from 'react-router-redux';
import history from './myHistory';
import App from '../containers/AppContainer';

/////////////////////////////////// I did create here, now removed!!
//import createHistory from 'history/createBrowserHistory';
//const history = createHistory(});
///////////////////////////////////

const AdminRoutes = (props) => {
	return (
			<ConnectedRouter history={history}>
        <App muiTheme={muiTheme} {...props} />
			</ConnectedRouter>
	);
}

@josephMG no I call createHistory() once than pass it to routerMiddleware from react-router-redux
So my example is as follows:
// index.js

import createHistory from 'history/createBrowserHistory'
import { Provider } from 'react-redux'
import configureStore from './configureStore'
// ...

const history = createHistory()
const store = configureStore(history)

ReactDOM.render(
  <Provider store={store}>
    <App>
      <Router history={history}/>
    </App>
  </Provider>,
  document.getElementById('root')
)

And inside configureStore I have just:
// configureStore.js

import multi from 'redux-multi'
import thunkMiddleware from 'redux-thunk'
import { routerMiddleware } from 'react-router-redux'
// ...

const configureStore = (browserHistory) => {

  let middleware = [
    thunkMiddleware, // lets us dispatch() functions
    routerMiddleware(browserHistory), // <-- here I put createHistory() response/value
    multi
  ]

    return createStore(
    reducers,
    applyMiddleware(
      ...middleware
    ))
}

export default configureStore

@naderchehab's solution worked for me. Wohoo! What a day!

@dominikbulaj example solved my problem (y)

@MtDalPizzol solution worked for me. Check out the video.
Basically instead of using:
import {BrowserRouter as Router} from 'react-router-dom';
Use:
import {ConnectedRouter as Router} from 'react-router-redux';
<Provider store={props.store}>
    <Router history={history}>
    </Router>
</Provider>

@naderchehab
first off thanks for commenting your post helped me to think in the right direction but there is an error in your snippet

          <Route path='/mypath' component={<MyComponent history={history} />}

that will throw an error for sure since is one glaring syntax error in the code a missing />
I fixed mine like so
`render() {
  	return (
  		<Router history={history}>

			  <NavBar history={history} />

  		</Router>
);`

and in the component I did this:

 {                          if (x.user) {                              x.history.push(/home/${x.user._id})                         }                          else{x.history.push('/')}                        }}> Connex

it worked like a charm once i passed the history in as a prop.
once again thanks @naderchehab  for helping me think in the right direction

<Router history={history}>
    <App>
      <Switch>
        <Route exact path="/" component={indexComponent} />
        <Route path="/login" component={LoginView} />
        <Route path="/partner" render={renderPartner} />
      </Switch>
    </App>
</Router>

In case if someone has a code like this, it's important to use WithRouter with a parent component, for example, App. So, the parent component will be able to detect changes in location object.

@Dictory That was the trick! Many thanks! This should be pointed out in the docs to avoid hours of frustration. :)

Took me a while to figure this out, but @Dictory's suggestion worked with the least changes. Be sure to wrap withRouter around the child component of your ConnectedRouter. Thanks for the thread!

Do you call createHistory() multiple times? I created History from different files and I had same issue. And I solved it after I import history from myHistory.js file.
Great! My problem is solved

@naderchehab 's solution worked for me as well. @timdorr Is there a plan to possibly reopen this issue? We did not have any shouldComponentUpdate or PureComponents in the component tree that were affecting this issue. withRouter alone did not help, but switching from BrowserRouter to Router w/withHistory definitely worked.

Since you guys are talking about react-router-redux is using contextTypes not the preferred solution anymore?
MyComponent.propTypes = {   classes: PropTypes.object.isRequired, };
Then you just simply call it like this:
this.context.router.history.push(location);


Delete SpaceY-Lifters-1.13.2.ckan

@titan041996 Can you give the reason to remove this file

Ah 404


consul-template: migrate to Homebrew

Deleting consul-template from cask as part of deduplication process . See context here.
Please note that this PR is created to continue case-by-case discussions from thread linked above and if decision is made not to remove the cask, PR will be closed.

Thank you for the contribution. It needed some fixes, so they were made in 5e24f36c15587790fe6567aa90ed9af405e02313. Your contribution is still included (and still credited to you), with the appropriate modifications. Please feel free to ask about any of the changes.


Dialogue System Enhancement

Dialogue System Required
Created new tile palettes
Bunny Ground palette created for scene
Created Dialogue Folder

Created SimpleDialogue script for handling dialogues with NPCs

Issues

Boxes not able to appear even call DialogueBox at Start method

Enhancement is appreciated if possible

NEEDED A.S.A.P

If possible please do, thanks

Regarding the dialogue system it was found that during the dialogue player still able to move and end the dialogue halfway through. Is there any way to stop that from happening? I wish to freeze player but not the animation

Yes, it is possible but it would happen as in different issue. Could you open up a new issue for us to make changes?


SnsWebConfiguration depends on webmvc

Type: Bug
Component:
SNS
Describe the bug
v. 2.3.0-RC2
Spring (boot 2.4.2) fails to start with ClassNotFoundException.
We use webflow and have excluded webmvc from the classpath.
Sample
The SnsWebConfiguration.class depends on mvc at SnsAutoconfiguration:85
If you replaced
@ConditionalOnClass(WebMvcConfigurer.class)
with
@ConditionalOnClass(name = "org.springframework.web.servlet.config.annotation.WebMvcConfigurer.class")
people who may not have spring webmvc on the classpath may take advantage of this autoconfiguration too. Thanks.

Hey @willerrgit ,
I can't reproduce an issue. I used this for testing.
https://github.com/MatejNedic/webmvc-sns-test

@willerrgit thanks for the report but we are unable to reproduce it and now there is a test which make sure that everything works properly even if the spring-mvc dependency is missing. I will close the issue but feel free to reopen with a sample project.


Ability to choose axis scale

Especially important when plotting a multi-site (facet), the scales are often different and that can be confusing, misleading. It would be nice to be able to have the same scale and/or edit them as desired.

I think this would be pretty difficult to do, probably too difficult. However, I will leave open for now and think about it


fixed HMR

assetPrefix will only be used in production (when HMR is not needed). That way the basePath and the assetPrefix will be the same in development.


Additional Docker parameters

Summary

Start container with custom IP/Netmask (ex: host IP)
Auto-install plugins on container first start
Use tini for ENTRYPOINT

NOTES:
Use Docker_entrypoint.sh to generate the initial config isn't the best solution,  but since the app doesn't provide other way to do it, it's the only way for now.

moved label to enhanced to allow review of the PR


Properly place windows with xdg-positioner

See this sway pr

On hold until the switch to the compositor is complete. By changing over, this should be fixed.


How do you create bookmarks?

The last time I built readthedocs I seem to recall that there was a way to create bookmarks.
I've just finished building again but cannot locate the bookmark command.
Is this something that has been removed or do I need to enable something before I can create bookmarks?
I'm using commonmark (which is working quite well) and the standard doc template.
Many Thanks
Chris

Hi @carukc! Can you provide more information about this? I don't know what you mean by "create bookmarks", I don't know this feature.

This feature won't be available anymore and will be completely removed on #3659.
Please, reopen if you consider.