apt repo for Xenial says the package cannot be authenticated

I have 4 brand new, out of the box pieces of hardware, I've installed Xenial 16.04 on them and updated all packages.
Having added the key for docker and the xenial package repository and attempted to install docker-engine on each of the four machines, I get the following error;
user@Machine:~$ sudo apt-get install -y docker-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  aufs-tools cgroupfs-mount libltdl7
Suggested packages:
  mountall
The following NEW packages will be installed
  aufs-tools cgroupfs-mount docker-engine libltdl7
0 to upgrade, 4 to newly install, 0 to remove and 0 not to upgrade.
Need to get 14.6 MB of archives.
After this operation, 73.8 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  docker-engine
E: There were unauthenticated packages and -y was used without --allow-unauthenticated
user@Machine:~$

Is the package in the Xenial repository not signed?

did you run sudo apt-key update and sudo apt-get update before installing?

@thaJeztah Yes, indeed.
user@Machine:~$ sudo apt-key update
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key<EMAIL_ADDRESS>not changed
gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key<EMAIL_ADDRESS>not changed
gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012<EMAIL_ADDRESS>not changed
gpg: key EFE21092: "Ubuntu CD Image Automatic Signing Key (2012<EMAIL_ADDRESS>not changed
gpg: Total number processed: 4
gpg:              unchanged: 4
user@Machine:~$ sudo apt-get update
Hit:1 http://gb.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Get:3 http://gb.archive.ubuntu.com/ubuntu xenial-updates InRelease [93.3 kB]
Hit:4 http://gb.archive.ubuntu.com/ubuntu xenial-backports InRelease
Ign:5 https://apt.dockerproject.org/repo ubuntu-xenial InRelease
Hit:6 https://apt.dockerproject.org/repo ubuntu-xenial Release
Get:7 https://apt.dockerproject.org/repo ubuntu-xenial Release.gpg [801 B]
Fetched 94.1 kB in 0s (132 kB/s)
Reading package lists... Done
user@Machine:~$ sudo apt-get install docker-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  aufs-tools cgroupfs-mount libltdl7
Suggested packages:
  mountall
The following NEW packages will be installed
  aufs-tools cgroupfs-mount docker-engine libltdl7
0 to upgrade, 4 to newly install, 0 to remove and 0 not to upgrade.
Need to get 14.6 MB of archives.
After this operation, 73.8 MB of additional disk space will be used.
Do you want to continue? [Y/n]
WARNING: The following packages cannot be authenticated!
  docker-engine
Install these packages without verification? [y/N]

I don't have a physical box to test on, but I just created a fresh Ubuntu Xenial droplet on DigitalOcean, but I'm not able to reproduce, using these steps;
apt-get update
apt-get install apt-transport-https ca-certificates
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install docker-engine

(skipped some steps, such as installing dependencies for aufs, and updating apparmor)

Ok, I solved it by deleting the key from the documentation: HERE
Unfortunately, this means, since I did not receive the pubkey directly from the Docker documentation I have no way to prove the docker-engine I downloaded is the version from Docker themselves, that it is genuine, or even that the signature I retrieved from the keyserver is really whom it claims to be.
Essentially, for all intents and purposes, I have circumvented the exact reason package signatures exist, which is to prove the author.
58118E89F3A912897C070ADBF76221572C52609D

and instead using the one suggested in the out put of apt-get update
Reading package lists... Done
W: GPG error: https://apt.dockerproject.org/repo ubuntu-xenial Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F76221572C52609D
W: The repository 'https://apt.dockerproject.org/repo ubuntu-xenial Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: There is no public key available for the following key IDs:
F76221572C52609D

``

your output states;
https://apt.dockerproject.org/repo ubuntu-xenial Release

What does /etc/apt/sources.list.d/docker.list contain? Perhaps I'm confused, but the repository should be main, not Release

Never mind, I suspect that's the output of the GPG error only. But don't understand why it wouldn't work for you

ping @tianon any ideas what can cause this? I'm not able to reproduce

@thaJeztah That did make me wonder, when I saw that, but here's the content:
user@Machine:~$ cat /etc/apt/sources.list.d/docker.list
deb https://apt.dockerproject.org/repo ubuntu-xenial main
user@Machine:~$

Sorry, I don't have a clear answer what can cause this. Is there something special in your setup (a proxy-server, apt-cacher?)

Not that I'm aware of, but it's possible something operations have done I'm unaware of. I've set up all the systems now by deleting the keys and adding the one suggested in apt-get update. I'll look into it more if it occurs again. Thanks.

I was able to reach all Ubuntu official ppa's, but I had the problem of not getting the keys for the Docker ppa. Which is what led me to this post.
W: GPG error: https://apt.dockerproject.org/repo ubuntu-xenial Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F76221572C52609D

SOLVED: by adding proxy settings.  Seems the company proxy allowed direct to "official" ppa's but proxied the one for docker. Works for me now.

I have this problem too.

I can't reproduce: :cry:
FROM ubuntu:xenial

RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 \
    --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

RUN echo 'deb http://apt.dockerproject.org/repo ubuntu-xenial main' \
    > /etc/apt/sources.list.d/docker.list

RUN apt-get update && apt-get install -y docker-engine

RUN docker -v

(output below trimmed for readability)
$ docker build .
Sending build context to Docker daemon 2.048 kB
Step 1 : FROM ubuntu:xenial
 ---> c5f1cf30c96b
Step 2 : RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
 ---> Running in a8f553d5d9bb
Executing: /tmp/tmp.CB21FieIfD/gpg.1.sh --keyserver
hkp://p80.pool.sks-keyservers.net:80
--recv-keys
58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker<EMAIL_ADDRESS>imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
 ---> 0badecc43513
Removing intermediate container a8f553d5d9bb
Step 3 : RUN echo 'deb http://apt.dockerproject.org/repo ubuntu-xenial main' > /etc/apt/sources.list.d/docker.list
 ---> Running in 4bd4bf38861b
 ---><PHONE_NUMBER>60
Removing intermediate container 4bd4bf38861b
Step 4 : RUN apt-get update && apt-get install -y docker-engine
 ---> Running in<PHONE_NUMBER>7d
Ign:1 http://apt.dockerproject.org/repo ubuntu-xenial InRelease
Get:2 http://apt.dockerproject.org/repo ubuntu-xenial Release [19.7 kB]
Get:3 http://apt.dockerproject.org/repo ubuntu-xenial Release.gpg [801 B]
Get:4 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:5 http://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages [1224 B]
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [94.5 kB]
...
Get:25 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [6767 B]
Fetched 23.0 MB in 2s (8896 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
The following additional packages will be installed:
  apparmor aufs-tools busybox-initramfs ca-certificates cgroupfs-mount cpio
  dh-python file git git-man ifupdown initramfs-tools initramfs-tools-bin
  initramfs-tools-core iproute2 iptables isc-dhcp-client isc-dhcp-common
  klibc-utils kmod krb5-locales less libapparmor-perl libasn1-8-heimdal
  libatm1 libbsd0 libcurl3-gnutls libdns-export162 libedit2 liberror-perl
  libexpat1 libffi6 libgdbm3 libgmp10 libgnutls30 libgssapi-krb5-2
  libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
  libheimntlm0-heimdal libhogweed4 libhx509-5-heimdal libidn11
  libisc-export160 libk5crypto3 libkeyutils1 libklibc libkrb5-26-heimdal
  libkrb5-3 libkrb5support0 libldap-2.4-2 libltdl7 libmagic1 libmnl0 libmpdec2
  libnettle6 libnfnetlink0 libp11-kit0 libperl5.22 libpopt0 libpython3-stdlib
  libpython3.5-minimal libpython3.5-stdlib libroken18-heimdal librtmp1
  libsasl2-2 libsasl2-modules libsasl2-modules-db libsqlite3-0 libssl1.0.0
  libtasn1-6 libwind0-heimdal libx11-6 libx11-data libxau6 libxcb1 libxdmcp6
  libxext6 libxmuu1 libxtables11 linux-base mime-support netbase
  openssh-client openssl patch perl perl-modules-5.22 python3 python3-minimal
  python3.5 python3.5-minimal rename rsync udev xauth xz-utils
Suggested packages:
  apparmor-profiles apparmor-profiles-extra apparmor-docs apparmor-utils
  mountall libarchive1 libdpkg-perl gettext-base git-daemon-run
  | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch
  git-cvs git-mediawiki git-svn ppp rdnssd bash-completion iproute2-doc
  resolvconf avahi-autoipd isc-dhcp-client-ddns gnutls-bin krb5-doc krb5-user
  libsasl2-modules-otp libsasl2-modules-ldap libsasl2-modules-sql
  libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal ssh-askpass
  libpam-ssh keychain monkeysphere ed diffutils-doc perl-doc
  libterm-readline-gnu-perl | libterm-readline-perl-perl make python3-doc
  python3-tk python3-venv python3.5-venv python3.5-doc binutils binfmt-support
  openssh-server
The following NEW packages will be installed:
  apparmor aufs-tools busybox-initramfs ca-certificates cgroupfs-mount cpio
  dh-python docker-engine file git git-man ifupdown initramfs-tools
  initramfs-tools-bin initramfs-tools-core iproute2 iptables isc-dhcp-client
  isc-dhcp-common klibc-utils kmod krb5-locales less libapparmor-perl
  libasn1-8-heimdal libatm1 libbsd0 libcurl3-gnutls libdns-export162 libedit2
  liberror-perl libexpat1 libffi6 libgdbm3 libgmp10 libgnutls30
  libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
  libheimntlm0-heimdal libhogweed4 libhx509-5-heimdal libidn11
  libisc-export160 libk5crypto3 libkeyutils1 libklibc libkrb5-26-heimdal
  libkrb5-3 libkrb5support0 libldap-2.4-2 libltdl7 libmagic1 libmnl0 libmpdec2
  libnettle6 libnfnetlink0 libp11-kit0 libperl5.22 libpopt0 libpython3-stdlib
  libpython3.5-minimal libpython3.5-stdlib libroken18-heimdal librtmp1
  libsasl2-2 libsasl2-modules libsasl2-modules-db libsqlite3-0 libssl1.0.0
  libtasn1-6 libwind0-heimdal libx11-6 libx11-data libxau6 libxcb1 libxdmcp6
  libxext6 libxmuu1 libxtables11 linux-base mime-support netbase
  openssh-client openssl patch perl perl-modules-5.22 python3 python3-minimal
  python3.5 python3.5-minimal rename rsync udev xauth xz-utils
0 upgraded, 98 newly installed, 0 to remove and 0 not upgraded.
Need to get 41.1 MB of archives.
After this operation, 213 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libatm1 amd64 1:2.5.1-1.5 [24.2 kB]
...
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libssl1.0.0 amd64 1.0.2g-1ubuntu4.1 [1122 kB]
Get:5 http://apt.dockerproject.org/repo ubuntu-xenial/main amd64 docker-engine amd64 1.11.1-0~xenial [14.5 MB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/main amd64 libpython3.5-minimal amd64 3.5.1-10 [521 kB]
...
Get:98 http://archive.ubuntu.com/ubuntu xenial/main amd64 xz-utils amd64 5.1.1alpha+20120614-2ubuntu2 [78.8 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 41.1 MB in 25s (1593 kB/s)
Selecting previously unselected package libatm1:amd64.
(Reading database ... 7253 files and directories currently installed.)
Preparing to unpack .../libatm1_1%3a2.5.1-1.5_amd64.deb ...
...
Selecting previously unselected package docker-engine.
Preparing to unpack .../docker-engine_1.11.1-0~xenial_amd64.deb ...
Unpacking docker-engine (1.11.1-0~xenial) ...
...
Unpacking xz-utils (5.1.1alpha+20120614-2ubuntu2) ...
Processing triggers for systemd (229-4ubuntu4) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libatm1:amd64 (1:2.5.1-1.5) ...
...
Setting up docker-engine (1.11.1-0~xenial) ...
invoke-rc.d: policy-rc.d denied execution of start.
Setting up liberror-perl (0.17-1.2) ...
...
Updating certificates in /etc/ssl/certs...
173 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
 ---> 33697b8b61da
Removing intermediate container<PHONE_NUMBER>7d
Step 5 : RUN docker -v
 ---> Running in 8fb0042eaf1c
Docker version 1.11.1, build 5604cbe
 ---> c5128ef75047
Removing intermediate container 8fb0042eaf1c
Successfully built c5128ef75047

Discussing this with @tianon and @tiborvass - most likely suspects are corporate firewall, or CDN/transparent proxy (like apt-cacher-ng), but none of us is able to reproduce so far

oh, lol, see @tianon just commented :-)

Ive seen this succeeed and fail.
In the case where it has failed. It was a physical machine, I followed the documented Docker install instructions.
In the cases where it succeeded both were on virtual machines one was a virtual box VM and other was a VM in Google Cloud platform.
Both the physical machine and Virtual Box VM are on the same network.

I Have also been seeing this issue for the last couple of days.I am using Vagrant shell provisioning to run

sudo curl -sSL "https://get.docker.com/" | sh

Up unit  5/6/16, I was able to provision my Ubuntu Trusty VM (Virtual Box) using this script. As of 5/6/16, I started getting:

WARNING: The following packages cannot be authenticated!
docker-engine
E: There are problems and -y was used without --force-yes

I am operating behind a firewall and proxy. Using my company's proxy credentials I have been able to set up docker this way for the past few months without issue.

May be I didn't make it specific enough, for me it fails in AWS. I've used ami-840910ee.

Can somebody try reproduce my fix? I deleted the key, cleaned apt cache and updated again. This errors about missing key so I copied the missing key shown by apt and added it usimg the command from the instructions (note it's a different hex string).
Apt update again and suddenly it worked.

Oh, also, I found out I run behind squid proxy but it shouldn't affect my traffic, especially not HTTPS. Also, these four machines are the only instance of this happening to me.
The only differences from the hundreds of other docker installs I've done on the same network are; that I used a muxed terminal to run the command simultaneously on all 4 machines and that I'm using the xenial repository, normally I use the 14.04 one.

I am using this:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-get update

It worked.

Here was the solution for me, similar to iEmiya:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553

I am trying to install a new VM on Digital Ocean with Xenial and have the same problem, I have tried both  the documented version and @iEmiya version (using ubuntu keyserver). Since this time I'm installing from DO, I rule out any squid proxy or cache within my corporate environment. Can @iEmiya and @tbenst confirm they're using the Xenial repository? It's the only repo I have this issue on. Also, @iEmiya Didn't show the commands to the point of installing docker-engine. I'd like to point out that the apt update works fine with the key from either keyserver, it's installing docker-engine that fails to install due to being unable to authenticate. I still suspect the Xenial packages are mis-signed or signed with some other key?

So this is the key in question;
http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xF76221572C52609D

If you install it using the fingerprint as documented here "Update your apt sources", section 4;
https://docs.docker.com/engine/installation/linux/ubuntulinux/
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

The apt update will succeed but the apt install docker-engine will fail.
If you then remove the key and install it again using;
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F76221572C52609D

Importantly, using the F7622157 and NOT the fingerprint, followed by and apt update and the apt install docker-engine succeeds.
Hopefully this can point us at the cause.

@hamid-elaosta which region did you run on on DigitalOcean?
Here's what I did;

Created a new droplet (Ubuntu 16.04 x64, AMS3 region, 2GB memory)
Logged in, then:

apt-get update
apt-get install apt-transport-https ca-certificates
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' > /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install linux-image-extra-$(uname -r)
apt-get install docker-engine

After that, running docker version
Client:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   5604cbe
 Built:        Tue Apr 26 23:43:49 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   5604cbe
 Built:        Tue Apr 26 23:43:49 2016
 OS/Arch:      linux/amd64

Hi @thaJeztah I ran it on LON1, using the 2GB and Ubuntu 16.04 x64
I added the Xenial repository to /etc/apt/sources.list.d/docker.list and the key imports mentioned above then the update and install.

Did you install apt-transport-https and ca-certificates?
apt-get install apt-transport-https ca-certificates

Hi Hamid, yes I was on the default xenial repos
Tyler Benster | tylerbenster.com
Twitter: @tbenst http://twitter.com/tbenst | LinkedIn: tylerbenster
http://www.linkedin.com/in/tylerbenster/
US mobile: +1<PHONE_NUMBER> | International: +1<PHONE_NUMBER>
On Wed, Jun 1, 2016 at 10:00 AM, Sebastiaan van Stijn <
<EMAIL_ADDRESS>wrote:

Did you install apt-transport-https and ca-certificates?
apt-get install apt-transport-https ca-certificates
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/docker/docker/issues/22599#issuecomment-223057400,
or mute the thread
https://github.com/notifications/unsubscribe/AA0sX7ztphRqC114u4NCRzA03nhm45Rzks5qHbrHgaJpZM4IaGhU
.

@thaJeztah Initially, the machines I had the issue with had them installed and up-to date already when I attempted to install them. I installed a fresh machine and installed those packages (they were missing this time) and it worked. However, I've just tried with another machine (clean install of Xenial on a physical server) which had those packages installed already after a fresh install/upgrade and it worked as expected. I'm no more clear on what the cause is/was than when I started.

I am still seeing this in EC2, has anyone else attempted to reproduce in EC2?

I can see it when I am configuring from raw Xenial ISOs inside of a Packer based Linux VM Image bootstrap procedure. I am working on narrowing down the cause.

It seems like it can be prevented by ensuring all of the following commands are run before the aptitude / apt-get update:
early debs needed for apt-add-repository and nodesource https repo
aptitude -y install software-properties-common apt-transport-https curl
docker
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F76221572C52609D
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
curl -sSL https://get.docker.com/gpg | apt-key add -
curl -sSL https://apt.dockerproject.org/gpg | apt-key add -

I just encountered the very same problem. I managed to reproduce it under 16.04 VM.
If I do the following, the problem doesn't appear:
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > /etc/apt/sources.list.d/apt_dockerproject_org_repo.list
apt-get update
apt-get install docker-engine

However, I can reproduce this problem in a fresh VM if I add the repo first, and only add the key after apt-get update. Rerunning apt-get update doesn't solve the problem:
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > /etc/apt/sources.list.d/apt_dockerproject_org_repo.list
# here it complains about missing F76221572C52609D key
apt-get update
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
# this second update changes nothing (albeit it doesn't complain about keys anymore)
apt-get update
# apt-get install complains now (I abort here)
apt-get install docker-engine

Once it gets into this state, the only way to recover seems to be manually removing apt cache files:
rm /var/lib/apt/lists/apt.dockerproject.org_repo_dists_ubuntu-xenial_*
apt-get update
# and now it works
apt-get install docker-engine

It appears to me to be some apt-get quirk - adding a key after retrieving the repo list should be perfectly fine, AFAIK.  Hope that helps.

Good catch. It might be wise to report this to the Debian / Ubuntu developers.
On Mon, Jun 13, 2016 at 09:25:52AM -0700, Przemys??aw W??grzyn wrote:

I just encountered the very same problem. I managed to reproduce it under 16.04 VM.
If I do the following, the problem doesn't appear:
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > /etc/apt/sources.list.d/apt_dockerproject_org_repo.list
apt-get update
apt-get install docker-engine

However, I can reproduce this problem in a fresh VM if I add the repo first, and only add the key after apt-get update. Rerunning apt-get update doesn't solve the problem:
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > /etc/apt/sources.list.d/apt_dockerproject_org_repo.list
# here it complains about missing F76221572C52609D key
apt-get update
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
# this second update changes nothing (albeit it doesn't complain about keys anymore)
apt-get update
# apt-get install complains now (I abort here)
apt-get install docker-engine

Once it gets into this state, the only way to recover seems to be manually removing apt cache files:
rm /var/lib/apt/lists/apt.dockerproject.org_repo_dists_ubuntu-xenial_*
apt-get update
# and now it works
apt-get install docker-engine

It appears to me to be some apt-get quirk - adding a key after retrieving the repo list should be perfectly fine, AFAIK.  Hope that helps.

You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/docker/docker/issues/22599#issuecomment-225632998

@codepainters so it sounds like cloudinit also needs a fix (see my snippet in https://github.com/docker/docker/issues/22599#issuecomment-218485236)...

Good catch. It might be wise to report this to the Debian / Ubuntu developers.

100%. Has anyone does this already?

I haven't, I was way too busy those days. I'll try to check it with Debian, and then perhaps fill the ticket before next week. I'll post an update here.

Hmm, something must have changed in the meantime - I can no longer reproduce it under Ubuntu 16.04 VM. Can anyone confirm?

I'm still seeing this - is the base image going to get a refresh of keys? @tianon ?

Getting same issue
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

not getting pubkey

@jamtur01 @roshan3133 is this an issue with the workaround mentioned above, where you import the key before adding the repository?

@justincormack Hi! The issue for me if that I shouldn't have to use the workaround at all and the base image should get an update.

@codepainters On a fresh 16.04.1 it no longer happens if I forget to at the key first. I just add it then apt update and it installs like normal.

Ok... will check that
On 1 Sep 2016 14:16, "Hamid"<EMAIL_ADDRESS>wrote:

@codepainters https://github.com/codepainters On a fresh 16.04.1 it no
longer happens if I forget to at the key first. I just add it then apt
update and it installs like normal.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/docker/docker/issues/22599#issuecomment-244015196,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHEi4clArijJSa-VGfEwXdErg5Eu9eW5ks5qlpDzgaJpZM4IaGhU
.

@jamtur01 not sure I understand what you're suggesting -- are you suggesting that we add Docker's APT repo key into the ubuntu base image?

It seems that this one can be closed now: the issue is resolved for most, and doesn't seem like something that we can solve at our level. Please let me know if I'm missing something! Thank you all for reporting.

Website instructions are wrong, here is what works in 16.04:
curl -s https://yum.dockerproject.org/gpg | sudo apt-key add
apt-key fingerprint 58118E89F3A912897C070ADBF76221572C52609D
sudo add-apt-repository "deb https://apt.dockerproject.org/repo ubuntu-$(lsb_release -cs) main"
sudo apt-get update
sudo apt-get install docker-engine=1.13.0-0~ubuntu-xenial

Thanks, @lkraider I just stubbed my toe on this setting up a new machine after 1.13 launch. Website needs to be updated.

docs should be fixed now, apologies for the inconvenience! And thanks @lkraider for helping out here!

If your distro is Linux Mint, pay attention to this warning in the official docker repos:

Note: Sometimes, in a distribution like Linux Mint, you might have to change ubuntu-$(lsb_release -cs) to your parent Ubuntu distribution. example: If you are using Linux Mint Rafaela, you could type in ubuntu-trusty

Currently, lsb_release -cs returns sarah. I checked my parent distro on Mint, which is xenial. Then went to the additional repositories /etc/apt/sources.list.d/additional-repositories.list, removed sarah  and added ubuntu-xenial as the distro version.

For Linux Mint this fixed it for me:
Menu -> Administration -> Software Sources -> Additional Repositories -> Edit the URL of the docker entry -> Replace sarah with xenial

replace your source.list with this
deb http://repo.kali.org/kali kali-rolling main contrib free
deb-src http://repo.kali.org/kali kali-rolling main contrib free

FYI I hit this problem even with latest docker-machine 1.14 and in my case the problem was caused by an aptcacherng proxy.
docker-machine only gave this unhelpful error:
$ docker-machine create --driver generic --generic-ip-address=<IP_ADDRESS>  --generic-ssh-key ~/.ssh/id_examplepoc --generic-ssh-user=root --engine-storage-driver=overlay2 example-poc
Running pre-create checks...
Creating machine...
(example-poc) Importing SSH key...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Error creating machine: Error running provisioning: error installing docker:

A little more info from an apt update on the server:
# apt update
Ign:1 https://download.docker.com/linux/ubuntu xenial InRelease
Err:2 https://download.docker.com/linux/ubuntu xenial Release
  Received HTTP code 403 from proxy after CONNECT
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu xenial Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Commenting this line out of /etc/apt/apt.conf allowed it all to work.
#Acquire::http::Proxy "http://<IP_ADDRESS>:3142/";


Error during failsafe response: Pundit::AuthorizationNotPerformedError

I can't get past this Pundit error.  Have you used Pundit with gaffe?  The 'AuthorizationNotPerformedError' seems to be a general Pundit error.  I have all error views, I have a policy method for each view.  Not sure where or why this is preventing gaffe from returning the error page.
Here is the trace:
Processing by Gaffe::ErrorsController#show as HTML
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
School Load (0.9ms)  SELECT  "schools".* FROM "schools" WHERE "schools"."id" = $1 LIMIT 1  [["id", 1]]
Rendered errors/internal_server_error.html.erb within layouts/error (0.2ms)
Completed 406 Not Acceptable in 41ms
Error during failsafe response: Pundit::AuthorizationNotPerformedError
/Users/XXXX/.rvm/gems/ruby-2.2.0-rc1@XXXX/gems/pundit-0.3.0/lib/pundit.rb:58:in `verify_authorized'

The Error during failsafe response message indicates that an error occurred while Gaffe was trying to render its view and therefore Rails is rendering its failsafe response.

The Pundit::AuthorizationNotPerformedError error is raised when Gaffe is trying to render its page. To prevent this, you’ll have to avoid raising the error. Maybe skip a before_action filter in your ErrorsController?

I’m going to close down this issue since there has been no response from OP.

Thanks!  Sorry for the late response.  I was unable to resolve this and simply stopped using Gaffe.


provide a way to return from main function with non-zero exit code and run all deferred function

os.Exit allows to set a non-zero status code, but it exit the program immediately and no deferred functions are run.

panic?

panic?

no.

func main() {
    os.Exit(realMain())
}

func realMain() int {
    ...
    return 1
}

Since the author deleted their account and Ian provided an easy solution, I'm going to close this.


Fix memory leak in vkcube.

Allocated memory is not freed after being used. This causes memory leak.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Changes look good and it's passing on our local CI.
Global CI seems to be screwing up though.
I'll take a look at this and get back to you.

Global CI should be fixed.  Please rebase and resubmit your change so that it can run through CI.


doc: document commonly used fetchgit flags

Some important ones like fetchLFS were missing. See
https://discourse.nixos.org/t/how-to-use-git-lfs-with-fetchgit/55975 for a
documented instance where this confused a user.
This still isn't complete but the remaining ones I felt were rather niche and I
am not familiar enough with the to sufficiently document their purpose or usage.

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/how-to-use-git-lfs-with-fetchgit/55975/3

This looks a lot nicer now, thanks!
   fetchgit   Used with Git. Expects url to a Git repo, rev, and hash. rev in this case can be full the git commit id (SHA1 hash) or a tag name like refs/tags/v1.0.Additionally, the following optional arguments can be given:fetchSubmodules (Boolean)Whether to also fetch the submodules of a repository.fetchLFS (Boolean)Whether to fetch LFS objects.postFetch (String)Shell code executed after the file has been fetched successfully.
This can do things like check or transform the file.leaveDotGit (Boolean)Whether the .git directory of the clone should not be removed after checkout.Be warned though that the git repository format is not stable and this flag is therefore not suitable for actual use by itself.
Only use this for testing purposes or in conjunction with removing the .git directory in postFetch.deepClone (Boolean)Clone the entire repository as opposing to just creating a shallow clone.
This implies leaveDotGit.sparseCheckout (List of String)Prevent git from fetching unnecessary blobs from server.
This is useful if only parts of the repository are needed.Example 268. Use sparseCheckout to only include some directories:{ stdenv, fetchgit }:
stdenv.mkDerivation {
name = "hello";
src = fetchgit {
url = "https://...";
sparseCheckout = [
"directory/to/be/included"
"another/directory"
];
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
};
}
See git sparse-checkout for more information.Some additional parameters for niche use-cases can be found listed in the function parameters in the declaration of fetchgit: pkgs/build-support/fetchgit/default.nix.
Future parameters additions might also happen without immediately being documented here.
(The example is formatted properly in the actual manual.)

Backporting because this is an improvement without possibility of any breakage and because it's required for this which should also be backported: https://github.com/NixOS/nixpkgs/pull/355973

This seems to break the manual:
nixos_render_docs.redirects.RedirectsError:
Identifiers present in the source must have a mapping in the redirects file.
    - ex-fetchgit-sparseCheckout

    This can happen when an identifier was added or renamed.
    Please update doc/redirects.json or nixos/doc/manual/redirects.json!

NOTE: If your Manual build passes locally and you see this message in CI, you probably need a rebase.

Probably due to #353513 and can be fixed with
diff --git a/doc/redirects.json b/doc/redirects.json
index de640eed00c1..a5a876961848 100644
--- a/doc/redirects.json
+++ b/doc/redirects.json
@@ -1274,6 +1274,9 @@
   "fetchgit": [
     "index.html#fetchgit"
   ],
+  "ex-fetchgit-sparseCheckout": [
+    "index.html#ex-fetchgit-sparseCheckout"
+  ],
   "fetchfossil": [
     "index.html#fetchfossil"
   ],

@gador yes, thanks for your patience. @GetPsyched will soon add a helper command so we don't have to do these things manually.

Thanks for the fix @gador.
@fricklerhandwerk @GetPsyched I was not aware that you'd need to do this. You should probably announce the fact that you must do this in the breaking changes for unstable thread.

Thinking about this again, I don't think it was necessary to backport this for https://github.com/NixOS/nixpkgs/pull/355973 because this is just docs whereas the actual important thing for backports is the functionality.
It doesn't hurt to have this aswell as the docs in 24.11 but I won't backport to 24.05.

@fricklerhandwerk @GetPsyched I was not aware that you'd need to do this. You should probably announce the fact that you must do this in the breaking changes for unstable thread.

I'm unsure how is this a breaking change. The CI will fail if the redirects aren't correct; it didn't fail for this PR simply because the CI on this PR ran before the redirects system was merged into master.

I see. Though I think that's all the more reason to announce this as that'd allow those who might be caught by this caveat to notice it in their PRs.
If I knew of this change and that there was the possibility of an integration hazard like this, I'd have checked.


"Protecting users" session updates

Updates the session title and abstract for the "Protecting users…" session.
I've split this into two commits, the first is the content changes, the second renames the file to match the title. I'm not sure if that creates any issues (caching, linking, etc) so I've left it separate in case you just want to cherry pick.

We can survive without the redirect I think.

@rowan-m thanks for the PR!


Submit Hufs

School Name: 한국외국어대학교 (Hankuk University of Foreign Studies)
domain: hufs.ac.kr
URL: https://www.hufs.ac.kr/

@yoonju977 I am sorry, the domain hufs.ac.kr is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Program. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


"node-csr-approval" is not in the list of known controllers

Bug Report
Description
With the most recent chart release, talos-ccm crash loops with the error message that it doesn't recognize the controller name. I figure it's because there wasn't a version released that included the code yet, although the chart is configured for it.
Logs
"node-csr-approval" is not in the list of known controllers
E0828 19:00:49.247979       1 run.go:74] "command failed" err="\"node-csr-approval\" is not in the list of known controllers"

(I had to manually approve the node's CSR to get the logs, avoiding a catch-22 I found myself in before realizing that was an option. I thought I can't capture the logs as there is a TLS error, but the error won't be resolved as talos-ccm isn't running. :smile: )
Environment

Talos CCM version: 1.6
Talos version: 1.7.6
Kubernetes version: 1.30.1
Platform: metal

Hi, this param appears here https://github.com/siderolabs/talos-cloud-controller-manager/blob/main/docs/deploy/cloud-controller-manager-edge.yml for edge version. It has imagePullPolicy: Always policy.
How do you deploy the CCM ?

I'm using Helmfile to deploy, with the following configuration entry:
releases:
  - name: talos-cloud-controller-manager
    namespace: kube-system
    chart: oci://ghcr.io/siderolabs/charts/talos-cloud-controller-manager
    version: 0.4.0
    values:
      - ./chart-values/talos-ccm.yaml

Thank you for feedback. Yap not I see what append here.
I update the documentation and remove node-csr-approval controller by default #194

merged

I deployed the helm chart 0.4.1 with the example values.yaml from the README.md
# talos-ccm.yaml

replicaCount: 2

enabledControllers:
  - cloud-node
  - node-csr-approval

# Deploy CCM only on control-plane nodes
nodeSelector:
  node-role.kubernetes.io/control-plane: ""
tolerations:
  - key: node-role.kubernetes.io/control-plane
    effect: NoSchedule

I get the same error as explained in the issue here:
"node-csr-approval" is not in the list of known controllers
Environment

Talos CCM Helm Chart: 0.4.1
Talos CCM version: 1.6.0
Talos version: 1.7.6
Kubernetes version: 1.30.3
Platform: metal

Hi, you force the list of controllers:
enabledControllers:
  - cloud-node
  - node-csr-approval

Documentation was updated recently for new (future) release. It will work for edge version.
We are waiting Talos release right now, to release CCM.

I see, i was missing that the changes are only deployed on the edge version. Thank you for the clarification.


mypy error: Argument 1 to "toPyDataSet" has incompatible type "Dataset"; expected "BasicDataset"

Describe the bug

system.dataset.toPyDataSet and the underlying method check if the dataset is of type BasicDataset, it should accept any class implementing Dataset.
Classes implementing Dataset:

AbstractDataset, ArrayDataset, BasicDataset, BasicStreamingDataset, CacheAggregateDataset, ColumnAttributesDataSet, ColumnFilteredDataSet, DatasetUtilities.PyDataSet, JsonDataset, MutableDataset, NonSerializingDataset, OptimizedDataSet, RowFilteredDataSet, StreamingDataset, TimeMaskedDataset

To Reproduce

Anything other than an instance of BasicDataset throws the same error.
Expected behavior

Allow instance of a class which implements the Dataset interface.
Screenshots

Additional context

Closed via #52


remove old reference to "nightly" feature

Hi,  found this but it looks like this is outdated and can be removed?
https://github.com/rustwasm/wasm-bindgen/blob/12889ef666f9b355585602e268be2b70d7f3ec80/guide/src/reference/passing-rust-closures-to-js.md?plain=1#L66-L71

Yes, would you mind making a PR?

Yep, done!


"get_type_map" not found in the Schema

File "C:\Repository\django_graphql\env\lib\site-packages\graphdoc\utilities.py", line 43, in build_types_reference
type_map = schema.type_map if hasattr(schema, 'type_map') else schema.get_type_map()
File "C:\Repository\django_graphql\env\lib\site-packages\graphene\types\schema.py", line 552, in getattr
raise AttributeError(f'Type "{type_name}" not found in the Schema')

Hey @PriyatamNayak. Thanks for reporting the issue :beetle:
What version of graphene-django and graphene are you using?
Also, can you paste how you are passing schema to the graphdoc.to_doc method?
That way I can reproduce the error.

(env) C:\Repository\django_graphql>pip freeze
aniso8601==8.1.1
asgiref==3.3.4
certifi==2020.12.5
chardet==4.0.0
Django==3.2
django-filter==2.4.0
django-graphqldoc==0.1.1
djangorestframework==3.12.4
gql==2.0.0
graphdoc==0.2.3
graphene==3.0b7
graphene-django==3.0.0b7
graphene-django-extras==0.5.1
graphql-core==3.1.4
graphql-relay==3.1.0
idna==2.10
Jinja2==2.11.3
markdown2==2.4.0
MarkupSafe==1.1.1
(env) C:\Repository\django_graphql>pip freeze
aniso8601==8.1.1
asgiref==3.3.4
certifi==2020.12.5
chardet==4.0.0
Django==3.2
django-filter==2.4.0
django-graphqldoc==0.1.1
djangorestframework==3.12.4
gql==2.0.0
graphdoc==0.2.3
graphene==3.0b7
graphene-django==3.0.0b7
graphene-django-extras==0.5.1
graphql-core==3.1.4
graphql-relay==3.1.0
idna==2.10
Jinja2==2.11.3
markdown2==2.4.0
MarkupSafe==1.1.1

@wallee94
def graphql_docs(request):
html = graphdoc.to_doc(GraphQLView().schema)
return HttpResponse(html, co
class Query(graphene.ObjectType):
all_data = DjangoListObjectField(BloomBergType, description='All Users query')
def resolve_all_data(self, info, **kwargs):
    return BloomBerg.objects.all()

ntent_type='text/html')
Create your views here.
class Query(graphene.ObjectType):
all_data = DjangoListObjectField(BloomBergType, description='All Users query')
def resolve_all_data(self, info, **kwargs):
    return BloomBerg.objects.all()

@PriyatamNayak Thanks, I was able to reproduce the error. The code wasn't compatible with graphene 3 yet.
This has been fixed in version 0.2.4.
You will have to change the next line when using graphene>=3:
html = graphdoc.to_doc(GraphQLView().schema)

to:
html = graphdoc.to_doc(GraphQLView().schema.graphql_schema)

Thanks for you fix..you are awesome @wallee94
Could you please also tell me ,how can use the graphdocs using fastapi and graphene

Also how to customize this name... want to change the headings

Sure! GraphQLView().schema.graphql_schema and schema in the FastAPI/Ariadne example in the readme are the same class GraphQLSchema, you can just replace it :slightly_smiling_face:
from fastapi import FastAPI, Response
from graphene_django.views import GraphQLView
import graphdoc

app = FastAPI()

@app.get("/docs")
async def graphql_docs():
    html = graphdoc.to_doc(GraphQLView().schema.graphql_schema)
    return Response(content=html, media_type="text/html")

About changing the header, I want to release this feature in a new version next week, using custom jinja templates, but right now it's not possible.

Thanks bro

Will wait for the release


fix: hide cookie banner now uses button instead of link

:tada: This PR is included in version 1.26.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


fetch form model definition as part of script rather than using listForms

Expected Behaviour
Actual Behaviour
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version
Sample Code that illustrates the problem
Logs taken while reproducing problem

this is fixed. now listForms is not required.


Problems with HardwareSerial on Arduino DUE

Great work, I am using Your Sketch on a Mega for my Home Automation and it works fine, Thank You for that.
But now I wanted to port it to a DUE, because the Mega is running out of Speed.
I have problems compiling Your Sketch on my DUE causing a HardwareSerial error.
Working on a MAC Version 10.11.2, Arduino 1.65 gives this error:

Arduino:` 1.6.5 (Mac OS X), Platine: "Arduino Due (Programming Port)"
ModbusSensor.cpp: In member function 'void modbusMaster::begin(uint16_t, uint8_t)':
ModbusSensor.cpp:205: error: no matching function for call to 'HardwareSerial::begin(uint16_t&, uint8_t&)'
(_hwSerial).begin(baudrate, byteFormat);
^
ModbusSensor.cpp:205:42: note: candidate is:
In file included from /Users/abe/Library/Arduino15/packages/arduino/hardware/sam/1.6.7/cores/arduino/Arduino.h:195:0,
from ModbusSensor.h:16,
from ModbusSensor.cpp:25:
/Users/abe/Library/Arduino15/packages/arduino/hardware/sam/1.6.7/cores/arduino/HardwareSerial.h:29:18: note: virtual void HardwareSerial::begin(long unsigned int)
virtual void begin(unsigned long);
^
/Users/abe/Library/Arduino15/packages/arduino/hardware/sam/1.6.7/cores/arduino/HardwareSerial.h:29:18: note:   candidate expects 1 argument, 2 provided
ModbusSensor.cpp: In member function 'boolean modbusMaster::available()':
ModbusSensor.cpp:251: error: 'class HardwareSerial' has no member named 'availableForWrite'
if ((_hwSerial).availableForWrite() == SERIAL_TX_BUFFER_SIZE - 1) { //TX buffer empty
^
ModbusSensor.cpp:251: error: 'SERIAL_TX_BUFFER_SIZE' was not declared in this scope
if ((*_hwSerial).availableForWrite() == SERIAL_TX_BUFFER_SIZE - 1) { //TX buffer empty
^
no matching function for call to 'HardwareSerial::begin(uint16_t&, uint8_t&)'

Then I found this Thread in the Arduino Forum:
http://forum.arduino.cc/index.php?topic=142753.0
I changed "HardwareSerial" to "USARTClass" in Your ModbusSensor.cpp( one time ) and in ModbusSensor.h ( two times ).
But now I get this error:

Arduino: 1.6.5 (Mac OS X), Platine: "Arduino Due (Programming Port)"

ModbusSensor.cpp: In member function 'void modbusMaster::begin(uint16_t, uint8_t)':
ModbusSensor.cpp:205: error: call of overloaded 'begin(uint16_t&, uint8_t&)' is ambiguous
(_hwSerial).begin(baudrate, byteFormat);
^
ModbusSensor.cpp:205:42: note: candidates are:
In file included from /Users/abe/Library/Arduino15/packages/arduino/hardware/sam/1.6.7/variants/arduino_due_x/variant.h:39:0,
from /Users/abe/Library/Arduino15/packages/arduino/hardware/sam/1.6.7/cores/arduino/Arduino.h:201,
from ModbusSensor.h:16,
from ModbusSensor.cpp:25:
/Users/abe/Library/Arduino15/packages/arduino/hardware/sam/1.6.7/cores/arduino/USARTClass.h:111:10: note: void USARTClass::begin(uint32_t, USARTClass::USARTModes)
void begin(const uint32_t dwBaudRate, const USARTModes config);
^
/Users/abe/Library/Arduino15/packages/arduino/hardware/sam/1.6.7/cores/arduino/USARTClass.h:111:10: note:   no known conversion for argument 2 from 'uint8_t {aka unsigned char}' to 'USARTClass::USARTModes'
/Users/abe/Library/Arduino15/packages/arduino/hardware/sam/1.6.7/cores/arduino/USARTClass.h:112:10: note: void USARTClass::begin(uint32_t, UARTClass::UARTModes)
void begin(const uint32_t dwBaudRate, const UARTModes config);
^
/Users/abe/Library/Arduino15/packages/arduino/hardware/sam/1.6.7/cores/arduino/USARTClass.h:112:10: note:   no known conversion for argument 2 from 'uint8_t {aka unsigned char}' to 'UARTClass::UARTModes'
ModbusSensor.cpp: In member function 'boolean modbusMaster::available()':
ModbusSensor.cpp:251: error: 'SERIAL_TX_BUFFER_SIZE' was not declared in this scope
if ((_hwSerial).availableForWrite() == SERIAL_TX_BUFFER_SIZE - 1) { //TX buffer empty
^
call of overloaded 'begin(uint16_t&, uint8_t&)' is ambiguous

Will You please help me porting Your great work to an Arduino DUE?

I'm sorry, at this moment I can't spend time in this project. Also I haven't studied Arduino DUE and different libraries to adapt.
This problem is developed in https://github.com/peninquen/Modbus-Energy-Monitor-Arduino/issues/11
you can use a different alternative to check when the Txbuffer is empty. Maybe UARTclass has a bool function to check it.


Feature ~ to hide DefaultSyblos section

Hi! Thank you for this wonderful plugin, it solves the problem with the generation of guidelines for developers ;)
It would be great if you implemented this feature, as it would give you the opportunity to fully control the appearance of the page with elements and make cool video presentations ;)

It would also be nice if you could take a caption to each section that appears above its caption

And it would be great to be able to exclude individual symbols.

Great suggestion on ability to hide certain symbols! I will work on it.
And the feature of hiding Default symbol is coming soon.

Great news, thank you.


MT0013: Script for merging the realign (2)

Description
There is an existing package called mt-aligner-prep-tool, which is used to align tibetan and english text files containing in github organization "MonlamAI". Currently, the aligner and the realigner script is working, but when we want to merge the realigner branch to main branch, merge conflict issue is coming. So this problem we must solve.
Completion Criteria

Successfully merging a branch from a test TMxxxx repo successfully with the main without any issues.
Successfully able to run the aligner script from the bdrc server and no human intervention within the process.

Implementation Plan

Subtask:

[x] script to merge the git branch to main
[x] test the script
[x] suppress the unneccessary outputs in pipeline
[x] update the script in server
[x] test the aligner script from the server

the approach to merge the branch with main changed since there were merge conflit for TMxx-bo.txt and TMxx-en.txt files too, so in the new approach, where ever there is a merge conflict, we choose the incoming changes(from new branch) automatically .


Chooses submodule over main repository

I have 2 repositories in my source control and there is no way to pick which repository I want to MR to. I can only MR to the submodule repository

This issue has been resolved in the latest version


Target netstandard2.1

Are there plans to target netstandard? Trying to integrate this package into my service and my team has expressed concern about having to change our target to netcoreapp3.1.

This library actually seems to work fine when used from an application targeting .NET 6 or .NET 7 in my experience. I actually forgot this library specifically targeted 3.1 until I saw this issue. A better solution might be to multi-target a few different runtimes instead of just .NET standard.

Hello I have opened a PR to allow multi-targeting. @wapplegate.
https://github.com/awslabs/aws-embedded-metrics-dotnet/pull/53


[SPARK-6643][MLLIB] Implement StandardScalerModel missing methods

This is the sub-task of SPARK-6254.
Wrap missing method for StandardScalerModel.

Test build #29545 has started for   PR 5310 at commit 82683a0.

Test build #29545 has finished for   PR 5310 at commit 82683a0.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.
This patch does not change any dependencies.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/29545/
Test PASSed.

@viirya Thank you for comment. I updated.

Test build #29672 has started for   PR 5310 at commit a38f155.

Test build #29672 has finished for   PR 5310 at commit a38f155.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.
This patch does not change any dependencies.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/29672/
Test PASSed.

@mengxr Yes. If I think again, it is unnecessary. Thank you for pointing out. I updated.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/29701/
Test FAILed.

LGTM. Let's retry Jenkins.
test this please

test this please

Test build #29817 has started for   PR 5310 at commit bd31a64.

Test build #29817 has finished for   PR 5310 at commit bd31a64.

This patch fails Python style tests.
This patch merges cleanly.
This patch adds no public classes.
This patch does not change any dependencies.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/29817/
Test FAILed.

@Lewuathe You need an extra empty line to pass python style checker. Try dev/lint-python on your local and see the error message.

@mengxr I updated. Thank you!

Test build #30073 has started for   PR 5310 at commit fafd690.

Test build #30073 has finished for   PR 5310 at commit fafd690.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.
This patch does not change any dependencies.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/30073/
Test PASSed.

Merged into master. Thanks!


Change "about" link from stable to latest

The "about" link here https://github.com/BIH-CEI/phenopacket_mapper
goes to https://bih-cei.github.io/phenopacket_mapper/stable/# which is very nice api docs, but not much else
I think it should point here? https://bih-cei.github.io/phenopacket_mapper/latest/

Dear Chris, thanks for catching this


Handle percentage format for font size, table height, width and margin

Handle percentage format for fontsize, table height and width.
Temporarily handle percentage formats for margins.

There are no such test cases as we simply pass the height and width in percentage format.
Do you want me to create one similar?

This will require a further ticket for refinement, but at least we don't get blank tables. Thank you for this! @K-Kumar-01


ESP32 Crashing / Rebooting

Wondering if anyone has seen the same, or if this is a config issue?
Code compiles and uploads fine, then reboots in a loop, Serial output as below
Board Settings as below

16:55:13.635 -> Rebooting...
16:55:13.635 -> ets Jul 29 2019 12:21:46
16:55:13.635 ->
16:55:13.635 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
16:55:13.668 -> configsip: 0, SPIWP:0xee
16:55:13.668 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
16:55:13.668 -> mode:DIO, clock div:1
16:55:13.668 -> load:0x3fff0030,len:1344
16:55:13.668 -> load:0x40078000,len:13964
16:55:13.668 -> load:0x40080400,len:3600
16:55:13.668 -> entry 0x400805f0
16:55:13.909 -> Initializing velocity field...
16:55:13.909 -> Initializing color fields...
16:55:14.018 -> Launching tasks...
16:55:14.409 ->
16:55:14.409 -> abort() was called at PC 0x400ec723 on core 0
16:55:14.409 ->
16:55:14.409 ->
16:55:14.409 -> Backtrace: 0x400837c5:0x3ffd6d40 0x40089e11:0x3ffd6d60 0x4008f4b9:0x3ffd6d80 0x400ec723:0x3ffd6e00 0x400ec76a:0x3ffd6e20 0x400ec6cb:0x3ffd6e40 0x400ecade:0x3ffd6e60 0x400ed2f5:0x3ffd6e80 0x400d367a:0x3ffd6ea0
16:55:14.409 ->
16:55:14.409 ->
16:55:14.409 ->
16:55:14.409 ->
16:55:14.409 -> ELF file SHA256: 3d77bcd89486d06c
16:55:14.409 ->
16:55:14.551 -> Rebooting...
16:55:14.551 -> ets Jul 29 2019 12:21:46
16:55:14.551 ->
16:55:14.551 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
16:55:14.551 -> configsip: 0, SPIWP:0xee
16:55:14.551 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
16:55:14.551 -> mode:DIO, clock div:1
16:55:14.551 -> load:0x3fff0030,len:1344
16:55:14.584 -> load:0x40078000,len:13964
16:55:14.584 -> load:0x40080400,len:3600
16:55:14.584 -> entry 0x400805f0
16:55:14.803 -> Initializing velocity field...
16:55:14.803 -> Initializing color fields...
16:55:14.911 -> Launching tasks...
16:55:15.292 ->
16:55:15.292 -> abort() was called at PC 0x400ec723 on core 0
16:55:15.292 ->
16:55:15.292 ->
16:55:15.292 -> Backtrace: 0x400837c5:0x3ffd6d40 0x40089e11:0x3ffd6d60 0x4008f4b9:0x3ffd6d80 0x400ec723:0x3ffd6e00 0x400ec76a:0x3ffd6e20 0x400ec6cb:0x3ffd6e40 0x400ecade:0x3ffd6e60 0x400ed2f5:0x3ffd6e80 0x400d367a:0x3ffd6ea0
16:55:15.326 ->

Yep, looks like I can replicate this. This code works fine is compiled with v2.0.9 of the ESP32 Arduino core, but goes into this abort loop for versions v2.0.10 and v2.0.11. For now, I'll leave a disclaimer in README.md as a workaround.
I'd also like to know what changed from v2.0.9 to v2.0.10, so I'll leave this issue open.

Ah, but I'd also appreciate it if you could confirm switching to v2.0.9 also stops the abort loop for you.

Hi, thanks, confirming a switch to 2.0.9 and it all works! Love your work, thank you
09:41:15.843 -> ets Jul 29 2019 12:21:46
09:41:15.843 ->
09:41:15.843 -> rst:0x1 (POWERON_RESET),boot:0x13 (SInitializing velocity field...
09:41:15.876 -> Initializing color fields...
09:41:15.983 -> Launching tasks...
09:41:21.036 -> FPS: 11.0, Pct times: (10.5%, 64.0%, 0.0%, 25.6%, 0.0%), Touch queue sz: 0
09:41:26.092 -> FPS: 11.5, Pct times: (10.5%, 64.0%, 0.0%, 25.6%, 0.0%), Touch queue sz: 0
09:41:31.119 -> FPS: 11.5, Pct times: (10.3%, 63.2%, 0.0%, 26.4%, 0.0%), Touch queue sz: 0
09:41:36.144 -> FPS: 11.5, Pct times: (10.6%, 64.7%, 0.0%, 24.7%, 0.0%), Touch queue sz: 4
09:41:41.204 -> FPS: 11.5, Pct times: (10.3%, 63.2%, 0.0%, 26.4%, 0.0%), Touch queue sz: 0
09:41:46.208 -> FPS: 11.5, Pct times: (10.5%, 64.0%, 0.0%, 25.6%, 0.0%), Touch queue sz: 0
09:41:51.264 -> FPS: 11.5, Pct times: (10.5%, 64.0%, 0.0%, 25.6%, 0.0%), Touch queue sz: 0


pretrained model

Hi, due to the lack of GRU resource, I can not run the model with batch_size=1024.  Therefore, can you release a pretrained simCLR model?
Thanks very much!

Sry to hear it. I did not save the checkpoints for CIFAR datasets.
Will try to upload a new one once I rerun it. Or if anyone else who see this issue has such checkpoint, would appreciate if the checkpoint could be shared here.

Looking forward to it! Thanks!


Move default Redis connection string out of CD spec into secret

The Kubernetes specification files as provided contain a hard-coded connection string to Redis. You can of course change it in there (the cd.yaml spec file in your repo), but I think it is more elegant to remove the value from the specification files and place it inside a secrets file, as is being done with the Solr connection string. This makes the spec file implementation-agnostic, easier to upgrade and not containing environment specific variables / parameters. Subsequently, you can choose to retrieve this connection string value either from an Azure DevOps Variable group, or by using a secret from your Azure KeyVault instance for example, to inject the correct value in the secrets file at provisioning-time.
I also mentioned this in my blog post https://www.robhabraken.nl/index.php/3619/paas-to-aks-arm-for-eds/, this is the corresponding Pull Request of said change to the spec files.

Thanks Jonas! I only saw this remark in the README after submitting my PR. Thanks for evaluating my proposal and looking forward to a contrib branch!

@michaelbaranov can you share with the container team.


BlueRov: Collisions of the submarine with the ocean floor objects

While the UE camera can detect collisions with the objects on the ocean floor, the BlueROV model passes through the objects. Is there any chance to get this somehow fixed, or get a quick explanation how I can do that myself?
Thanks!

Hi, currently it's not supported. The main focus of this simulation is the visual interaction. It is possible to integrate ray tracing capabilities under the submodule UE4PythonBridge.


pull request for e2e test at 12/29/2016 02:15:08

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Add licensing information

You mentioned that the addon is under the MIT license on https://godotengine.org/asset-library/asset/edit/235, but it's not visible in the downloaded files.
Please add a LICENSE file with the license text, see https://choosealicense.com/

Sorry for that. I just added the LICENSE file.

On Mar 9, 2017, at 10:27 AM, Rémi Verschelde<EMAIL_ADDRESS>wrote:
You mentioned that the addon is under the MIT license on https://godotengine.org/asset-library/asset/edit/235 https://godotengine.org/asset-library/asset/edit/235, but it's not visible in the downloaded files.
Please add a LICENSE file with the license text, see https://choosealicense.com/ https://choosealicense.com/
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/vlabo/Godot_rope_addon/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AHaTSSwseLCeMZf-Xt5GC-_HWBbsGTHjks5rj7ftgaJpZM4MXx0G.

Fixed with 7b522a4.


Console spam

Log Files
https://pste.ch/egurexamak.pl
Describe the bug
Console spam from an exception in pretty pipes
Steps to reproduce

Use pretty pipes with item terminals while linked to drawers
Console spam every time you open the terminal

Hi! It looks like the paste is empty? Or the site changed? Either way, I can't fix this without a stack trace unfortunately!


MS COCO dataset

ML-Crate Repository (Proposing new issue)
:red_circle: Project Title : MS COCO dataset
:red_circle: Aim : TTo detect objects from the image and then generate captions for them. LSTM (Long short term memory) network is responsible for generating sentences in English and CNN is used to extract features from image. To build a caption generator we have to combine these two models.
:red_circle: Dataset : https://www.kaggle.com/awsaf49/coco-2017-dataset
:red_circle: Approach : Try to use 3-4 algorithms to implement the models and compare all the algorithms to find out the best fitted algorithm for the model by checking the accuracy scores. Also do not forget to do a exploratory data analysis before creating any model.
Hello, ML-Crate contributors, this issue is only for the contribution purposes and allocated only to the participants of SWOC 2.0 Open Source Program.

📍 Follow the Guidelines to Contribute in the Project :

You need to create a separate folder named as the Project Title.
Inside that folder, there will be four main components.

Images - To store the required images.
Dataset - To store the dataset or, information/source about the dataset.
Model - To store the machine learning model you've created using the dataset.
requirements.txt - This file will contain the required packages/libraries to run the project in other machines.

Inside the Model folder, the README.md file must be filled up properly, with proper visualizations and conclusions.
A Demo Project has been created to guide you about the whole structure of presenting the Project in this repository. Here's the link of the Demo Project - https://github.com/abhisheks008/ML-Crate/tree/main/Project-Demo-Folder

:red_circle::yellow_circle: Points to Note :

The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Follow Contributing Guidelines & Code of Conduct before start Contributing.
This issue is only for 'SWOC' contributors of 'ML-Crate' project.

:white_check_mark: To be Mentioned while taking the issue :

Full name :
GitHub Profile Link :
Participant ID :
Approach for this Project :
Are you a participant of SWOC 2.0?

[ ] YES
[ ]  No

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

Full name : Karishni Mehta
GitHub Profile Link : https://github.com/karishni
Participant ID : 466
Approach for this Project : Combine the LSTM model with CNN (please let me know if there are other ways to do it)
Are you a participant of SWOC 2.0?
YES

Issue assigned to you @karishni

I would like to work on the flickr8k (https://www.kaggle.com/adityajn105/flickr8k) dataset instead of ms coco

@karishni okay go ahead.

This is duplicate of caption generation from images

This is duplicate of caption generation from images

@abhisheks008

@abhisheks008

@sankalp-srivastava  the dataset is very large(28gb) hence she has taken a  smaller one.

@sankalp-srivastava  the dataset is very large(28gb) hence she has taken a  smaller one.

@sankalp-srivastava Don't worry, as she is going to use a different dataset, let's check the accuracy and it will also make a comparison of the two datasets.

@sankalp-srivastava Don't worry, as she is going to use a different dataset, let's check the accuracy and it will also make a comparison of the two datasets.

@karishni What's the update here for this project?

I’m working on it, had some issue with my laptop due to which I couldn’t work for a few day, sorry for the delay

@karishni ?

@abhisheks008 Hey, I had messaged you stating that my exams are going on and won’t be able to complete this till the end of the month, but this will be done by the end of next week

OKAY!

I'm done with this issue, had a doubt, what should I name the folder as the name of the issue is MS COCO dataset but I'm using the flickr8k dataset

Name the folder as, FLICKR8k Dataset Analysis (MS COCO)
@karishni


#166 - add optional auth url param to client settings

Pull Request Test Coverage Report for Build 510

3 of 3 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-1.4%) to 98.63%

Totals

Change from base Build 508:
-1.4%

Covered Lines:
44

Relevant Lines:
44

💛  - Coveralls


Access To QueryHistory_version.txt is denied.

Microsoft PowerToys version
<IP_ADDRESS>
Running as admin

[X] Yes

Area(s) with issue?
PowerToys Run
Steps to reproduce
PowerToys Run funciton didnt work anymore after I connected  and remove my Company's account
Version: <IP_ADDRESS>
OS Version: Microsoft Windows NT 10.0.22499.0
IntPtr Length: 8
x64: True
Date: 22/11/2021 6:29:09 PM
Exception:
System.UnauthorizedAccessException: Access to the path 'C:\Users\zswki\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\QueryHistory_version.txt' is denied.
   at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
   at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding)
   at System.IO.File.ReadAllText(String path)
   at System.IO.Abstractions.FileWrapper.ReadAllText(String path)
   at Wox.Infrastructure.Storage.StoragePowerToysVersionInfo.GetPreviousVersion()
   at Wox.Infrastructure.Storage.StoragePowerToysVersionInfo..ctor(String associatedFilePath, Int32 type)
   at Wox.Infrastructure.Storage.JsonStorage`1.Load()
   at PowerLauncher.ViewModel.MainViewModel..ctor(PowerToysRunSettings settings)
   at PowerLauncher.App.<>c__DisplayClass14_0.<OnStartup>b__0()
   at Wox.Infrastructure.Stopwatch.Normal(String message, Action action)
   at PowerLauncher.App.OnStartup(Object sender, StartupEventArgs e)
   at System.Windows.Application.OnStartup(StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

✔ Expected Behavior
No response
❌ Actual Behavior
PowerToys Run funciton didnt work anymore after I connected  and remove my Company's account
Version: <IP_ADDRESS>
OS Version: Microsoft Windows NT 10.0.22499.0
IntPtr Length: 8
x64: True
Date: 22/11/2021 6:29:09 PM
Exception:
System.UnauthorizedAccessException: Access to the path 'C:\Users\zswki\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\QueryHistory_version.txt' is denied.
   at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
   at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding)
   at System.IO.File.ReadAllText(String path)
   at System.IO.Abstractions.FileWrapper.ReadAllText(String path)
   at Wox.Infrastructure.Storage.StoragePowerToysVersionInfo.GetPreviousVersion()
   at Wox.Infrastructure.Storage.StoragePowerToysVersionInfo..ctor(String associatedFilePath, Int32 type)
   at Wox.Infrastructure.Storage.JsonStorage`1.Load()
   at PowerLauncher.ViewModel.MainViewModel..ctor(PowerToysRunSettings settings)
   at PowerLauncher.App.<>c__DisplayClass14_0.<OnStartup>b__0()
   at Wox.Infrastructure.Stopwatch.Normal(String message, Action action)
   at PowerLauncher.App.OnStartup(Object sender, StartupEventArgs e)
   at System.Windows.Application.OnStartup(StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Other Software
No response

Cloud you take a screenshot for the permission of that file? Thank you.

I know what the default answer here is which is to just delete the appdata for PT Run but agreed, it would be good to understand why your app data folder is locked down it looks like.

Hey Mate,
I think it is related with file permission.
But i check my folder and the file. The owner is myself.
Do u know how to fix the permission?

Please go to the properties of the file and click on the Security tab, then click on the Advanced button and take a screenshot.

Feel free to remove any sensitive information. :D

It might be the two "PowerToys Run" instances starting at once issue.
Could you please send a bug report?
Right-click on the PowerToys icon in the tray menu and select Report Bug

Drag and drop report into a GitHub comment.


Update coverage test to run in Py3.6 instead of Py2.7

This is necessary especially given the upcoming deprecation of Py2.

Coverage decreased (-0.3%) to 94.336% when pulling c0a704685a9c8827147b50cdca76a24b3f18e17f on drdavella:py3-coverage into 947b4fc743490ffdbd66bc002f109c3ab031ab09 on spacetelescope:master.

Coverage increased (+0.2%) to 94.884% when pulling a7fec1e2730d14936426b750217b6c7e69817a59 on drdavella:py3-coverage into 947b4fc743490ffdbd66bc002f109c3ab031ab09 on spacetelescope:master.


[bootstrap] New v5 release

v5 release: https://getbootstrap.com/docs/5.0/
Schedule image is no longer updated: https://github.com/twbs/release/pull/14
Since bootstrap LTS has 3 phases, and we can only show 2 - I put a note about v4's Active Maintenance EoL for now.

Looks good at https://deploy-preview-248--endoflife-date.netlify.app/bootstrap. Merging.


KAFKA-15004: Fix configuration dual-write during migration

This PR builds on top of #13736.
Fixes the following:

Topic configs are not sycned while handling snapshot.
New broker/topic configs in KRaft that did not exist in ZK will not be sync'd to ZK.
The sensitive configs are not encoded while writing them to Zookeeper.
Handle topic configs in ConfigMigrationClient and KRaftMigrationZkWriter#handleConfigsSnapshot

Added tests to ensure we no longer have the above mentioned issues.
Co-Authored-By: Akhilesh C<EMAIL_ADDRESS>

Got a reasonable test run:
[Build / JDK 17 and Scala 2.13 / org.apache.kafka.tools.MetadataQuorumCommandTest.[6] Type=Raft-Isolated, Name=testDescribeQuorumReplicationSuccessful, MetadataVersion=3.5-IV2, Security=PLAINTEXT](https://ci-builds.apache.org/job/Kafka/job/kafka-pr/job/PR-13767/6/testReport/junit/org.apache.kafka.tools/MetadataQuorumCommandTest/Build___JDK_17_and_Scala_2_13____6__Type_Raft_Isolated__Name_testDescribeQuorumReplicationSuccessful__MetadataVersion_3_5_IV2__Security_PLAINTEXT/)
[Build / JDK 8 and Scala 2.12 / kafka.admin.DescribeConsumerGroupTest.testDescribeStateOfExistingGroupWithRoundRobinAssignor()](https://ci-builds.apache.org/job/Kafka/job/kafka-pr/job/PR-13767/6/testReport/junit/kafka.admin/DescribeConsumerGroupTest/Build___JDK_8_and_Scala_2_12___testDescribeStateOfExistingGroupWithRoundRobinAssignor__/)
[Build / JDK 11 and Scala 2.13 / integration.kafka.server.FetchFromFollowerIntegrationTest.testRackAwareRangeAssignor()](https://ci-builds.apache.org/job/Kafka/job/kafka-pr/job/PR-13767/6/testReport/junit/integration.kafka.server/FetchFromFollowerIntegrationTest/Build___JDK_11_and_Scala_2_13___testRackAwareRangeAssignor__/)
[Build / JDK 11 and Scala 2.13 / kafka.admin.TopicCommandIntegrationTest.testDescribeUnderMinIsrPartitionsMixed(String).quorum=zk](https://ci-builds.apache.org/job/Kafka/job/kafka-pr/job/PR-13767/6/testReport/junit/kafka.admin/TopicCommandIntegrationTest/Build___JDK_11_and_Scala_2_13___testDescribeUnderMinIsrPartitionsMixed_String__quorum_zk/)
[Build / JDK 11 and Scala 2.13 / org.apache.kafka.trogdor.coordinator.CoordinatorTest.testTaskRequestWithOldStartMsGetsUpdated()](https://ci-builds.apache.org/job/Kafka/job/kafka-pr/job/PR-13767/6/testReport/junit/org.apache.kafka.trogdor.coordinator/CoordinatorTest/Build___JDK_11_and_Scala_2_13___testTaskRequestWithOldStartMsGetsUpdated__/)


response.Body.FlushAsync does nothing until 1024 bytes written to body

I searched through the source code to try and explain this behavior. Closest thing I found is: https://github.com/aspnet/KestrelHttpServer/issues/1061 ,which is a change for a future release I don't have.
I don't think that is what I'm seeing though, as that describes a 64k buffer and it applies to the whole stream, and it keeps buffering after the first write. I've confirmed what I'm seeing happens until 1k, never happens afterwards, and adding response headers does not affect it.
Here a minimal ActionResult's ExecuteResultAsync, which should be all you need to reproduce:
		public async override Task ExecuteResultAsync(ActionContext context) {
			HttpResponse response = context.HttpContext.Response;
			response.Headers.Add("Content-Encoding", "none");
			response.ContentType = "text/plain";
			while (true) {
				if (context.HttpContext.RequestAborted.IsCancellationRequested) {
					return;
				}

				try {
					await response.WriteAsync("1234567890");
					await response.Body.FlushAsync();
				} catch (Exception) {
					try {
						response.Body.Dispose();
					} catch (Exception) { }
				}

				await Task.Delay(100);
			}
		}

I've only recently discovered you can use async functions for routes... this is what I hacked together not knowing that. Should still work. Works fine past 1kb of content.
Only workaround I've figured out is to spit out 1kb of garbage data before any real data which isn't ideal.
I am using the .NET Core 1.0 release, running on Windows 7 x64. My project is using Kestrel.
[Edit: Going to try .NET Core source stepping assuming that's a thing you can do and see what the code is doing that way.]
[Edit: I traced the code all the way down to Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.write. Both calls seem identical before and after 1024 bytes have been written; I have no clue what's different.]

I think I have identified the issue and raised a separate one that encapsulates it https://github.com/aspnet/KestrelHttpServer/issues/1093
Btw you don't need to Dispose the Body stream as it is a null operation; but you also probably shouldn't continue to infinitely loop after you have tried to dispose the Body stream.

Basically FlushAsync completes immediately if below buffer limit as does WriteAsync so you are writing to the stream in a very very tight loop and likely write 1024 bytes on it before it gets a chance to output it.

Btw you don't need to Dispose the Body stream as it is a null operation;

You shouldn't dispose streams you didn't create.

Btw you don't need to Dispose the Body stream as it is a null operation;

You shouldn't dispose streams you didn't create.

Ah, yes might do bad thing if was SSL, GZip or buffer stream

Alright, thanks. I think I got that from StackOverflow, and I probably used .NET 4.5 code and modified it to work on .NET Core. I assumed at some point RequestAborted would get set. I'll replace the Dispose with a return statement.
Glad to hear you were able to reproduce and have an idea to fix. Is there a workaround I can do in the meantime? Something I can tweak through Reflection? Or something quick and dirty in the source I can modify and recompile?

I assumed at some point RequestAborted would get set. I'll replace the Dispose with a return statement.

Just some info on RequestAborted; https://github.com/aspnet/Mvc/issues/5239#issuecomment-244991339

Glad to hear you were able to reproduce and have an idea to fix. Is there a workaround I can do in the meantime?

Flush will flush the stream; the issue is on the server you regain the ability to write before the flush is complete.
Eventually it will block and pause the writes so I'm not sure it will cause a huge issue it in that you shouldn't end up with a large backlog of items to be written; and the flush will be actioned.

That is not the issue I filed this bug report about.
Whether I call Flush or not doesn't change the behavior of the sample code I posted; the problem I am seeing can be reproduced without it.
Scenarios I tested:

I write out less than 1024 bytes to the response body and return from ExecuteResultAsync immediately. The output is then immediately sent to the browser and I can see it.
I write out more than 1024 bytes right away to the response and don't return from ExecuteResultAsync, but endlessly loop. The output shows up in the browser right away. Any future WriteAsync calls show up right away.
I write out less than 1024 bytes right away to the response and don't return from ExecuteResultAsync, but endlessly loop. The output does not show up in the browser until the output accumulates to 1024 bytes. Chrome's Network Developer Tool claims 0 bytes received on the connection until that point.

Other things I tested:

Adding additional headers to the response does not change the required 1024 bytes in the body. This suggests to me whatever is happening is happening on the HTTP protocol handling level (or higher) rather than the socket level.
Including or not including the FlushAsync call has no effect on the output.
Using Body.WriteAsync instead of response.WriteAsync is no different.
Substituting an async controller for a ActionResult gives the same result:

		[Route("test"), HttpGet]
		public async Task Test() {
			HttpResponse response = this.HttpContext.Response;
			response.Headers.Add("Content-Encoding", "none");
			response.ContentType = "text/plain";
			while (true) {
				if (this.HttpContext.RequestAborted.IsCancellationRequested) {
					return;
				}

				try {
					await response.WriteAsync("1234567890");
					await response.Body.FlushAsync();
				} catch {
					return;
				}

				await Task.Delay(100);
			}
		}

As a side note I am navigating to my API endpoints using Google Chrome and seeing this behavior (latest Stable and Dev both work).

Its more likely that Chrome is trying is waiting for the end of the response; what does dev tools show you on the time to first byte? Are you going via a reverse proxy (e.g. IIS/ngnix)

I just tested using PowerShell and the problem is gone, so it does seem to be a Chrome/Firefox issue. >_<


[WFLY-6885] EJB: log information about the exception in transaction t…

…hat was rolledback because of timeout

Retest this please
@dmlloyd @stuartwdouglas please approve


Allow lockedNodeIds to be a set

A vector is fine, but it would be nice if you could use a set as well.  That way I don't have to worry about an ID being in there multiple times, and it also makes it easier to remove them without searching for multiples.

Vectors are now replaced with sets for locked nodes with PPR #57


x/tools/gopls: rapid changes cause errors, context cancellation

Forked from https://github.com/golang/go/issues/32667#issuecomment-503556349.
I'm seeing this in a module context. In my situation, there are a number of relatively rapid changes to certain files (a code generator is the source of the changes, but the changes are notified to gopls via didChange notifications).
I first see a number of lines like:
unable to check package for file:///path/to/file.go: context canceled

I also see a number of lines like:
failed to deliver diagnostic for file:///path/to/file.go (will retry): context canceled

Then I see a number of lines like:
unable to check package for file:///path/to/file.go: loadParseTypeCheck: no package found for /path/to/file.go

I also see a number of lines like:
file:///path/to/file.go is not part of a package

I don't yet have a repro for this.

What version of Go are you using (go version)?

$ go version
go version go1.12.6 linux/amd64
$ go list -m golang.org/x/tools
golang.org/x/tools v0.0.0-20190618233249-04b924abaa25
$ go list -m golang.org/x/tools/gopls
golang.org/x/tools/gopls v0.0.0-20190618233249-04b924abaa25

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="amd64"
GOBIN="/home/myitcv/gostuff/src/github.com/myitcv/govim/cmd/govim/.bin"
GOCACHE="/home/myitcv/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/myitcv/gostuff"
GOPROXY=""
GORACE=""
GOROOT="/home/myitcv/gos"
GOTMPDIR=""
GOTOOLDIR="/home/myitcv/gos/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/myitcv/gostuff/src/github.com/myitcv/govim/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build453321011=/tmp/go-build -gno-record-gcc-switches"

FWIW this was also an issue with:
golang.org/x/tools v0.0.0-20190612231717-10539ce30318
golang.org/x/tools/gopls v0.1.0

Per discussions with @stamblerre and @ianthehat on Slack, I suspect the issue here is something along the lines of:

lots of didOpen/didChange notifications because of the code generation
gopls cancels the handling/something of one/more of these notifications because of #reasons (hence the context canceled messages)
this leaves gopls in a bad state for the file in question
we get the subsequent error messages:

/path/to/file is not part of a package

This change fixed a similar issue. Are you still seeing this failure?

I still see the errors mentioned in https://github.com/golang/go/issues/32899#issuecomment-507807268 as of fb37f6ba8261. The tricky thing is, this is very much a timing related issue... so I can't reproduce it reliably.
I can't test much beyond that because https://go-review.googlesource.com/c/tools/+/184257 appears to have introduced some sort of bug/issue whereby trying to call goimports (i.e. the code action) after the steps above causes gopls to hang (or it was hung up before I tried to call it, not sure).
Stack trace of that hang:
https://gist.github.com/myitcv/9d1f257c32e1cddde1589c63d34c9a0e

Oh, I expect you are seeing the issues fixed by @muirrn here: https://go-review.googlesource.com/c/tools/+/184880.

Thanks, yes that did fix the hang. I'll monitor 504de27b367a and feedback here if I do/don't see any occurrences of the context cancellation issue.

@myitcv: Any updates here? Can we close this issue?

Hello!
I'm using gopls at revision 128824a23e7c038a341252700f1001ad29ef1988 and I'm consistently seeing this issue. I can reproduce on the Kubernetes codebase almost everytime, and when restarting gopls it happens again when I interact after some seconds. It happens specially when going back and forth (I'm using lsp-mode on emacs), so if I somewhat in a fast fashion do M-., M-,, and M-. again I get GetAST: unable to check package for file:///path/to/existing/go/file.go: no packages found for file:///path/to/existing/go/file.go.
~/p/g/s/g/x/tools (master) > gopls version
golang.org/x/tools/cmd/gopls v0.1.3-cmd.gopls
    golang.org/x/tools@(devel)

I'm fairly new to gopls, so please tell me if there's a way I can be more helpful :)

@ereslibre: To confirm my understanding, does gopls work fine on this codebase until you send a large number of commands? Could you share a specific repro case for this?

@ereslibre: To confirm my understanding, does gopls work fine on this codebase until you send a large number of commands? Could you share a specific repro case for this?

I tried with master and I couldn't easily reproduce, so I will point to a way I can reproduce 100% with a couple of keystrokes.
If you checkout https://github.com/ereslibre/kubernetes, the ping-on-long-running-commands, I do the following:

Open /staging/src/k8s.io/kubectl/pkg/cmd/logs/logs.go (I do C-c p f with projectile and kubectl logs.go)
Navigate to line 380; visit StreamWithPing (M-.)
Go back (M-,)
Try to visit StreamWithPing again (M-.)

Error: GetAST: unable to check package for...
If I restart gopls with M-x lsp-restart-workspace, same thing, I can visit it once, go back, and when visiting again it will fail again.
Sorry, is the best I have :(

Murphy's law, now I can go back and forth without any issue after the last restart.

I was actually able to reproduce this issue myself in VSCode. Thanks for sharing the info - I will file a separate issue (https://github.com/golang/go/issues/33551) because this sounds like a specific issue with the Kubernetes repository.

Thanks a lot @stamblerre!

@stamblerre - I'm definitely seeing issues with 6d4652c779c4. Whether it's related to this issue or not, gopls simply dies. I'll try and take a look today.

Turns out that issue was unrelated. Also looks (from a very unscientific couple of attempts to try and repro the issue) like things are "fixed" (just tested against 6d4652c779c4add9e1a69db058dabafddba21c37)
Will close for now; we can always re-open if this rears its head again.


start providing also py310

added python post 3.9 support all the way to 3.12 (3.13 is not stable enough)


CommonJS: require() jQuery if not already loaded

Bootstrap currently assumes jQuery is defined globally.  This has been bothering me for years.  Ideally I'd love it if each plugin was UMD-wrapped - I can put this into another PR if you are OK with it - but defining it globally is probably the quickest fix for the cjs-export.

I'd love it if each plugin was UMD-wrapped - I can put this into another PR if you are OK with it

We are addressing this in Bootstrap v4 via ES6 modules and Babel transpilation into the various and sundry warring JavaScript module formats. AMD/UMD support is WontFix for Bootstrap v3; see also https://github.com/twbs/bootstrap/issues/14755#issuecomment-58324290

This is such a small change. And is very specific, on the grunt/bs-commonjs-generator.js. Why not simply merge it? It has no way to affect any other feature. Ok, you are planning a BIG upgrade for v4. This is not a big upgrade, this is a small fix that will help everyone using commonjs. Bootstrap will probably not even need this file once v4 is done.

Bootstrap 3 is no longer being officially developed or supported.
All work has moved onto our next major release, v4. As such, this issue or pull request is being closed as a "won't fix." For additional help and support, we recommend utilizing our community resources. Thanks for your understanding, and see you on the other side of v4!
<3,
@mdo and team

Sadly to find this as a wontfix. There's tons of v3 projects to be migrated to v4 and v3 is not useable via commonJs. Please merge it.


View as DataFrame when debugging python

Python extensions lack the feature "View as DataFrame" As Pycharm or Spyder do. It will be very helpful when debugging.
(https://www.jetbrains.com/help/pycharm/viewing-as-array.html)

Dup of https://github.com/microsoft/vscode-python/issues/7063


[CONTP-387] Validation Webhook base e2e test

What does this PR do?
Tests that the validation admission webhook created by the Datadog Cluster Agent exists in the Kubernetes configuration
Motivation
E2E test coverage for the validation admission webhook similar to the mutating admission webhook in this previous PR
Describe how to test/QA your changes
Run the inv new-e2e-tests.run --targets ./tests/containers/ --run TestEKSSuite command
Possible Drawbacks / Trade-offs
N/A
Additional Notes

/merge


Module 'osqp' has no attribute 'solve'.

I installed version 0.6.2.post0 via pip under Python 3.6 and noticed that there is no stateless solve function in the osqp namespace as claimed in the documentation:
>>> import osqp
>>> osqp.solve
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'osqp' has no attribute 'solve'

@bstellato - I checked commit 5445af2 from the master branch of osqp-python (i.e. before I did anything to do the code), and don't see that this would have worked - there's not top-level solve function available from the osqp package. Do you remember if we used to support it sometime but later removed it? Perhaps we should update the documentation to remove mention of this stateless function?


simpleStreaming.js doesn't seem to work

We're interested in finding out more about data available for streaming.
First, if I use simpleStreaming.js as shown in the "usage": simpleStreaming -p <password> username
all it does is show me the "Usage" message and it doesn't seem to be attempting to log in.  Should the username be an option? ie. add this line?
  .option('-u, --username [string]', 'username (needed only if token not cached)')

Second, get_command uses
headers: { Authorization: "Bearer " + options.authToken, 'Content-Type': 'application/json; charset=utf-8'}

It looks like function startStreaming uses an auth member in req and not a header token from the .token file; is this work in progress or is the API different for streaming?
When we tried streaming the other day (with a valid login .token, which I do not have available at the moment) it kept failing with a message about "no authentication mechanism".
If it's working for you, I will attempt to reproduce it and get more details. Thanks!

@TrevorPT The Tesla provided streaming API works very differently from the other APIs.  You log in to the streaming portal using the username and a "token" that is returned from the vehicles() call.
I find and fix an issue with the sample that was related to the migration to the sample framework.  If you can update to the latest please try the sample again.  And note that for a parked vehicle the streaming results can take up to several minutes to return.

@mseminatore Updated to latest (2.1.16) and confirmed it works now. Thanks!
The function startStreaming -- by the name it seems to imply that it starts a continuous data streaming process, but looking at the code it only makes one request and (presumably) gets one response. Is that correct? So it does not start actually streaming the data continuously, it has to be polled? Also, I didn't find the docs on the streaming API on https://github.com/timdorr (other than looking at stream.rb); is it found elsewhere?

@TrevorPT Did you try it?  If the car is parked you should receive ~2 responses before the connection closes.  If the car is moving you should many at a rate of one every ~250ms.
The way that Tesla seems to have implemented streaming is as a long-lived http socket connection.

@TrevorPT Regarding API documentation you will want to consume and follow this thread: https://teslamotorsclub.com/tmc/threads/model-s-rest-api.13410/page-93#post-1933566

Thanks for clarifying. I did try it but only when parked so only got two records.  Just reading the code I wasn't sure if there was some kind of keep-alive in effect, and I suppose now that if the car is parked the Tesla server is optimized to kill the connection and not waste bandwidth. Thanks for the pointer to the API thread.


(PTC-W0043) Unnecessary delete statement in a local scope

Description
Passing a local variable to a del statement results in that variable being removed from the local namespace. When exiting a function all local variables are deleted, so it is unnecessary to explicitly delete variables in such cases. It is recommended to remove this del statement. Not preferred: ```python def …
Occurrences
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/kijk2869/discodo/issue/PTC-W0043/occurrences/

This may be deepsource analyzer bug.
Use pop method alternative of del

This may be deepsource analyzer bug.
Use pop method alternative of del


[WIP]Drop packets from unknown interfaces in classifier table

Change the priority of tableMiss from 80 to 0. Otherwise there would be
another flow entry with action "Normal" added by OVS automatically after
the bridge is created.
Change the default action of classifier table to drop packets.

Fixes #195
Signed-off-by: wenyingd<EMAIL_ADDRESS>

/test-e2e

@wenyingd: if we do not drop the packets, what will be the problem? I was thinking in some testing scenarios, could we create an extra interface on the bridge.

@jianjuns If we don't drop the packets, packets sent from non-Pod/non-gw0/non-tunnel could be forwarded normally. Then it is possible that the unleagel packets can be sent to pods.
We current found an issue with openflow binding, if Openflow entries are not realized before GARP(it is possible because OF binding is async, even if the flow entries is sent out from the UDS channel, it might be not realized at that time), the GARP packets are forwarded by the Normal flow. But after change the default action to "drop", the GARP packets might be dropped, and it affects several "Conformance" test. But it should be another issue about race between different goroutines.
" I was thinking in some testing scenarios, could we create an extra interface on the bridge." Do you mean these interfaces have no specific Openflow rules installed, and we want to leverage the Normal flow to forward the packets? Shall we install specific flow entries for these interfaces in such test cases?

But non-Pod/tunnel/gw ports must be added manually for some purpose if they exist, so I feel no need to handle them specially.
But my question is more that if we do not add the default drop flow, will we hit some issues. For example, before the classification flow is installed for a normal Pod port, if we do not drop the packets will the packets be forwarded wrongly?

If we don't drop the packets, they should be forwarded normally, it is following OVS default actions after a bridge is created.
Current code has another flow entry("priority=80,ip,actions=resubmit(,10)") which will enforce IP packets into table10(Spoofing guard table). Table10 will check inport/IP/Mac bindings, and drop all unlegal packets. If the packet is from unkown source, it should be dropped here. I will remove this flow in this PR, no matter the default actions in table0 is to drop or normal.

Ok. I feel still better to drop the packets from unknown sources at least for now, to drop packets from a Pod interface that has no flow (inc. networkpolicy flows) installed. We could consider another approach later if we have cases to add test ports to the bridge.

/test-e2e

Update according to @tnqn comment https://github.com/vmware-tanzu/antrea/issues/195#issuecomment-564609943

/test-e2e

Rebase to master to enforce golangci-lint check.

/test-e2e


chore: update devDependencies to reduce unnecessary version bumps

https://github.com/lerna/lerna/issues/1737


RDKTV-11503 : Gdial Crash fix

Reason for change: quit thread when geting SIGTERM
Test Procedure: Refer JIRA
Risks: Low
Signed-off-by: Akhil Baby Sarada<EMAIL_ADDRESS>

Closed due to inactivity, please restore if still needed.


Loading long strings while debugging is clunky

VSCode Version: 0.10.12-alpha
OS Version: Windows 10

Steps to Reproduce:

Following #4952
Create a string with at least 10,000 characters
Start debugging
Hover over the variable in the debug window

There is briefly a white box filled with nothing even though it takes a bit of time to load anyway. It should probably not show the box until the text is ready to be shown.

This is just the way that electron renders hover on windows since this is the native hover, not our custom VSCode one.
This also works nicely on Mac, and probably on linux.
Closing as can not fix, since this is electron behavior

We also introduced a 5000 character limit in the hover, so I believe this should behave better now

The loading time is better but now sometimes it seems to flash or load multiple times while the cursor is still hovered over it (causing the flashing).

We have introduced a limit of 1024 which should make this experience nicer now