pip install failed using http proxy

Dockerfile:
FROM python:3.6.3
COPY . /app
WORKDIR /app
RUN pip install --no-cache-dir flask
ENTRYPOINT ["python"]
CMD ["app.py"]

docker build --build-arg HTTP_PROXY="http://<IP_ADDRESS>:1080" --build-arg HTTPS_PROXY="http://<IP_ADDRESS>:1080" -t flask-sample:latest
Sending build context to Docker daemon  4.096kB
Step 1/6 : FROM python:3.6.3
 ---> a8f7167de312
Step 2/6 : COPY . /app
 ---> 600e50e4058b
Step 3/6 : WORKDIR /app
 ---> Running in 12bb12b4d9bc
Removing intermediate container 12bb12b4d9bc
 ---> 8b8cf38db809
Step 4/6 : RUN pip install --no-cache-dir flask
 ---> Running in 3b5147d6ca01
Collecting flask
  Could not fetch URL https://pypi.python.org/simple/flask/: There was a problem confirming the ssl certificate: EOF occurred in violation of protocol (_ssl.c:777) - skipping
  Could not find a version that satisfies the requirement flask (from versions: )
No matching distribution found for flask
The command '/bin/sh -c pip install --no-cache-dir flask' returned a non-zero code: 1

sometimes this error:
Collecting flask
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 589, in urlopen
    self._prepare_proxy(conn)
  File "/usr/local/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 797, in _prepare_proxy
    conn.connect()
  File "/usr/local/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connection.py", line 289, in connect
    ssl_version=resolved_ssl_version)
  File "/usr/local/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py", line 308, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/local/lib/python3.6/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/usr/local/lib/python3.6/ssl.py", line 814, in __init__
    self.do_handshake()
  File "/usr/local/lib/python3.6/ssl.py", line 1068, in do_handshake
    self._sslobj.do_handshake()
  File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:777)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/pip/_vendor/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/usr/local/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 621, in urlopen
    raise SSLError(e)
pip._vendor.requests.packages.urllib3.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:777)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/local/lib/python3.6/site-packages/pip/commands/install.py", line 335, in run
    wb.build(autobuilding=True)
  File "/usr/local/lib/python3.6/site-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/usr/local/lib/python3.6/site-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/local/lib/python3.6/site-packages/pip/req/req_set.py", line 620, in _prepare_file
    session=self.session, hashes=hashes)
  File "/usr/local/lib/python3.6/site-packages/pip/download.py", line 821, in unpack_url
    hashes=hashes
  File "/usr/local/lib/python3.6/site-packages/pip/download.py", line 659, in unpack_http_url
    hashes)
  File "/usr/local/lib/python3.6/site-packages/pip/download.py", line 853, in _download_http_url
    stream=True,
  File "/usr/local/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 488, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/pip/download.py", line 386, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 596, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/pip/_vendor/cachecontrol/adapter.py", line 47, in send
    resp = super(CacheControlAdapter, self).send(request, **kw)
  File "/usr/local/lib/python3.6/site-packages/pip/_vendor/requests/adapters.py", line 497, in send
    raise SSLError(e, request=request)
pip._vendor.requests.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:777)

FROM python:3.6.3
COPY . /app
WORKDIR /app
RUN pwd
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python get-pip.py
RUN pip install flask
ENTRYPOINT ["python"]
CMD ["app.py"]

now it works


gRPC cluster configuration

Hello,
I have some gRPC services that I'd like to proxy through envoy and rotor. Is there a way to specify Http2ProtocolOptions on a cluster?

We are working on a method to staticly configure clusters and listeners at rotor startup. Stay tuned!

I was hoping for something dynamic, as my services are in DCOS and ECS. Maybe additional labels like grpc: true would work? Something like they have in Ambassador grpc integration

Do you add and remove services regularly, or is the dynamism mostly about service discovery? If the latter, static listener configs would work fine.
The other thing we're considering is being able to specify a new listener template, so each new listener added would use the same template.
The reason we'd rather stick to either statically defined listeners or listener templates is that we'd like to avoid reinventing the surface area of envoy configuration; the existing envoy configuration schema was purpose built to describe this sort of stuff.
Fully dynamic LDS/RDS is unfortunately out of scope for Rotor, since it requires a durable backing-store; that’s part of what we sell as our commercial product, Houston. However, Envoy makes it reasonable to separate your CDS/EDS (service discovery) implementation from your LDS/RDS (routing) implementation, and this is our suggestion for anyone who needs real dynamism at the routing layer.

We have a few gRPC services and a few HTTP services in one ECS cluster. This is why I need to be able to dynamically specify protocol based on the service. The names change fairly frequently as we test multiple feature branches in parallel. Statically configured listeners should be fine, but picking http2_protocol_options or http1_protocol_options (or make it a default) for envoy cluster per service is definitely something dynamic in my mind.

Thanks for the context.
We will continue to ponder this, but for the moment, dynamic cluster/route/listener configuration is not a core goal for the project.
One approach that might work, assuming we ship a "new cluster template" option, would be to set up a pair of Rotors, each collecting a different label, one for HTTP services, one for gRPC. Then point your envoys at both rotors in the static resources. I think that will give you the dynamism you need.

static cluster/listener configuration landed in 7acd7cd08a3512d0424a6b742033abb5d50f295c, available in the 0.18.0 tag.


Cannot print/save as pdf with pdf-lib 1.17.1

What were you trying to do?
I can generate my pdf (which includes forms, images, embedded fonts and metadata), but it seems to be impossible to save/print it afterwards because of the following errors

How did you attempt to do it?
Rollbacking to version 1.16.0 seems to fix the issue
What actually happened?
I guess that some metadata are not correctly generated
What did you expect to happen?
being able to print/save with versions above 1.16.0
How can we reproduce the issue?
Assigning metadata with:
function generatePDFMetaData(projectInfo: ProjectInfo): ICreatePDFOptions['metaValues'] {
  return {
    title: projectInfo.title || 'New title',
    author: `Author`,
    creator: `Creator`,
    producer: `Producer`,
    creationDate: projectInfo.createdAt,
    modificationDate: projectInfo.modifiedAt,
    keywords: [],
    subject: 'Subject',
  }
}
  for (const [key, value] of Object.entries(generatePDFMetaData(projectInfo)) {
    pdf[`set${upperFirst(key)}`](value)
  }

Version
1.17.1
What environment are you running pdf-lib in?
Browser
Checklist

[X] My report includes a Short, Self Contained, Correct (Compilable) Example.
[X] I have attached all PDFs, images, and other files needed to run my SSCCE.

Additional Notes
No response

Have you solve it @oktapodia ?

Have you solve it @oktapodia ?

Did rollback to 1.16.0 to make it work :/

Do you have a minimal working reproduction code? The OP example is not runnable


Implement [Image] properties

Name
Type
Default Value
Description

textCoords
[vec2]

Sets the texture coordinates used by the image. The texture coordinates must be a list of four coordinates representing the UV coordinates of the four corners.

opaque
boolean

Sets the opacity state of the image.

ui
boolean

Sets whether the image is rendered on UI Layer.

imageFrameResource
BigInt

Sets the model resource used for the image frame. Note: Frame models are expected to be one meter high, one meter wide, and centered at the origin.

renderResource
BigInt

Sets the render resource used for the image.

MXSCOMP-82

textCoords - textures are not supported by android
opaque - <1
ui - unclear
imageFrameResource - blocked by another ticket (not implemented yet)
renderResource - as above


[AutoPR network/resource-manager] Network August release

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/7208

This PR has been merged into https://github.com/Azure/azure-sdk-for-go/pull/5763


Added CSS to project

This PR adds a CSS Style sheet and an updated HTML file for the Prework Study Guide application.


Fix operator check of the catalog

Fix https://github.com/apache/camel-k/issues/4715

When there is a catalog build error, show in the operator log
Only prints catalog information when it's available

In case there is an error when parsing the camelcatalog version, the camelcatalog controller will create a new one.

Release Note
NONE

Checks are failing always in the same test. It seems there could be a problem, please, have a look to them.

Checks failing because https://github.com/apache/camel-k/issues/4750


Support slot batch operation for CLUSTERX SETSLOT

Support for #510
It is an enhancement to the original implement of command CLUSTERX SETSLOT  #463
Command formart
CLUSTERX SETSLOT "$slot_batch" NODE $node_id $new_version
assign batch slots to the node if new version is current version+1.
It is compatible with the original command syntax.
Parameter Changes

$slot_batch: batch slots which we want to assign. It can be given by single slotid or slot batch.  Slot batch can be given by continuous slot range or discrete slot list with spaces as separators, e.g. "3 5 9 10-20".

Example
CLUSTERX SETSLOT 1 NODE $nodeid1 1
CLUSTERX SETSLOT "3 5 9 20-30" NODE $nodeid1 2

@ChrisZMF you may separate the fix typo part into a dedicated patch and resolve the conflict so that we can continue reviewing this patch :)

Closed as inactive. You may resubmit the patch base on the latest unstable branch.


bug: NPE in SpringStatManager

Codecov Report
Base: 58.94% // Head: 58.94% // Increases project coverage by +0.00% :tada:

Coverage data is based on head (5974073) compared to base (d92126a).
Patch coverage: 50.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #4525   +/-   ##
=========================================
  Coverage     58.94%   58.94%
+ Complexity    26910    26909    -1
=========================================
  Files          1268     1268
  Lines        122755   122756    +1
  Branches      23123    23124    +1
=========================================
+ Hits          72355    72356    +1
+ Misses        41381    41380    -1
- Partials       9019     9020    +1

Impacted Files
Coverage Δ

...a/druid/support/spring/stat/SpringStatManager.java
57.50% <50.00%> (-1.48%)
:arrow_down:

.../java/com/alibaba/druid/util/JdbcSqlStatUtils.java
58.62% <0.00%> (-3.45%)
:arrow_down:

...n/java/com/alibaba/druid/pool/DruidDataSource.java
71.98% <0.00%> (ø)

...baba/druid/pool/DruidDataSourceStatLoggerImpl.java
51.72% <0.00%> (+1.72%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

这里目前实际add的stat只有SpringStat类型的，不会触发抛异常的场景，但是先前代码写得绕，所以ide可能会提示该变量可能为null


Fix bindings wrong constructor call

Fix super constructor call using old class name as godot only knows its class names.
This resolves #57
@chippmann should I update versions here or I let you do it in your PR ?

@piiertho Depending on how fast one or the other gets merged.
I would say you can also bumpt the version and the faster wins and the other has to rebase ;-)

Done !
I did not updated getting started as I think it should stay with released version.

Done !
I did not updated getting started as I think it should stay with released version.

I personally don't agree as the readme should reflect the sate of the commit
so if one needs a documentation for a specific version, he can look at the readme from the releases tag.
But we maybe should add a link to the master readme where it links to all the releases readme's

@chippmann that's a good idea ! I do this on lunch time.


Php client code instead of telnet

Hey. How can I connect to my server by php client instead of telnet? There is no code sample. (I need php client instead of browser client).

ratchet/pawl is a socket client for php github: ratchetphp/Pawl


Can't install any extentions behind a corporate proxy

VSCode Version: Code 1.3.1 (e6b4afa53e9c0f54edef1673de9001e9f0f547ae, 2016-07-12T13:35:06.227Z)
OS Version: Windows_NT ia32 6.1.7601

Steps to Reproduce:

Open extentions
Wait loading @popular
Press install on any extention
Nothing happened, after 10 minutes waiting

my proxy setup is (from user's settings.json):
"http.proxyStrictSSL":false,
"http.proxy": "http://user:pass@webproxy:3128/",
"https.proxy": "https://user:pass@webproxy:3128/",

+1 Same behavior here

@vborzykin Can you try using the latest Insiders build, see if you get any errors?

@joaomoreno, I can.
Proxy settings are already defined.

407 means proxy authentication required.
Are you sure you have the right user name and password in the URL? Note that any special characters need to be properly escaped.
One way to verify whether you have the right value is to run something like the following snipped in the command line. In the following example, the password has the @ special character:
$ node -p 'require("url").parse("http://user:pass%40123@webproxy:3128/")'
Url {
  protocol: 'http:',
  slashes: true,
  auth: 'user:pass@123',
  host: 'webproxy:3128',
  port: '3128',
  hostname: 'webproxy',
  hash: null,
  search: null,
  query: null,
  pathname: '/',
  path: '/',
  href: 'http://user:pass%40123@webproxy:3128/' }

Can you can say URL and file extention?
Maybe, our proxy block connection by them.

And you still get 407? Just triple check that your credentials are OK and the settings are OK too. 407 is a configuration problem.
Also what do you get when running this from a Command Prompt?
reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer"

Finally, if you want to sideload an extension you can download it from the Marketplace (https://dbaeumer.gallery.vsassets.io/_apis/public/gallery/publisher/dbaeumer/extension/vscode-eslint/0.10.17/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage) and simply open it in Code with File > Open.

@joaomoreno
I still get 407 error. I already rechecked my credentials hundreds time and all of them OK.

reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer"
Error: Unable to find the specified key or value in the registry.

Do you have a systems administrator in your corp environment that could help you out with this?

Closing in favor of #22214


Missing module

I am getting an error of missing module 'canary' after simple invoking 'pyethapp'. The error log is:
Traceback (most recent call last):
  File "/usr/local/bin/pyethapp", line 9, in <module>
    load_entry_point('pyethapp==0.9.18', 'console_scripts', 'pyethapp')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/local/lib/python2.7/dist-packages/pyethapp-0.9.18-py2.7.egg/pyethapp/app.py", line 14, in <module>
    from eth_service import ChainService
  File "/usr/local/lib/python2.7/dist-packages/pyethapp-0.9.18-py2.7.egg/pyethapp/eth_service.py", line 23, in <module>
    from pyethapp.canary import canary_addresses
ImportError: No module named canary

fixed in be2890360316dd91c403f4857d05af30f8b4b805


Option to support all ports via tproxy

Currently, singularity has to be configured with ports at startup or be configured to dynamically bind to ports with the "dangerously allow request ports" option.
If you have a dedicated IP address for singularity on the machine, it may be possible to use the tproxy module in linux along with SO_TRANSPARENT socket option to redirect incoming connections on all ports for that IP to singularity.
Cloudflare has a great blog post on how to accomplish this.
Alternatively, if Singularity supported the PROXY protocol, users could set up this trick and forward traffic to Singularity with the original/port available in headers sent to the application

Thank you. tproxy support is an interesting idea and we will look into it.

Branch https://github.com/nccgroup/singularity/tree/feature/tproxy includes experimental support for tproxy. I've performed a quick test from 80 -> 8080 with the multiple answers rebinding strategy and it seems to work well. Further testing is required for all strategies and features such as hook and control/scanning etc.

Wow that was quick! I'm glad to hear the test went well, I will give it a try after work. Thank you for taking the time to look at this. Your work/research is very much appreciated

Merged to main branch.


feat: avatar

Building Leather at commit 27ea9fd

This PR creates an Avatar component using the Radix Avatar primitive. As discussed in our eng sync, this allows us to have access to some of the built-in functionality for loading, etc w/out having to build it from scratch. The Fallback is a nice way to render an icon or an emoji in the component, or letter(s) for an actual fallback. I went with using xl as the default (36x36) for now with current designs, but not sure if this will change with redesign efforts.
EDIT: Note, the component uses PNGs instead of using SVGs for avatar icons. There are a few which are unused atm, but I think there is intention to use all of the ones I have included here and I wanted to export them all consistently.
Also, there are two variants included in the recipe bc the designs asked for a 'square' version to use as a thumbnail avatar. But, the default variant is 'circle'.

Nice, thanks a lot for getting this done! Is it correct that there's not a branch build available to test and just storybook to look at?
Regarding PNGs: Is that primarily a decision based on consistent file types? Assuming all avail assets can be delivered as SVGs, could we switch to svg then, or is there a different reason? Lmk and I can get that done.

Do we use the avatars for external SIP 10 images @fbwoolf? These are probs raster images

@kyranjamie @fabric-8 I went with PNGs bc they are typically used for avatars and what is expected using the Radix primitive, however it is flexible enough to work with an SVG if we prefer it? I still think we should use this implementation which sets us up to be able to use an image src later if we ever use user avatar images, etc. Also, keep in my that sharing PNGs b/w web and mobile is easier. RN doesn't built-in support for SVGs w/out an library. I exported the 32x32 avatars in Figma at 2x, but could increase that?
We do currently use the token image from the metadata of the SIP-10, so that isn't great. Any ideas on how to improve that, I will look into it. I don't think we can avoid using the token image passed to us though?

Correction here, we render the data uri from the token metadata, which can be an SVG but doesn't look like is often a PNG in the metadata.

Correction here, we render the data uri from the token metadata, which can be an SVG. However, it is often a PNG in the metadata.

@kyranjamie @fabric-8 made changes here to use svgs instead, they just look better. I made a new Avatar.Svg to wrap when we use svgs, so we can still use Avatar.Image and the fallback for images ...which we have to for the SIP-10 token metadata. I refactored those to use the new component, along with using it on the swaps asset list with the alex-sdk icon string. If tests pass here I'll likely just merge this.
I made a couple comments in Figma bc I think our BNS icon is outdated, references:
https://stacks.gamma.io/collections/bns/xn--hp8ha.app
https://bnsdao.xyz/
Hoping we can replace ours with an svg? Also, I believe we just made up our Stamps icon, so maybe we can update that to use our new icons and get an svg for that too? @fabric-8 I know you wanted to contribute here, so maybe you can make those changes off dev after I merge this (if you want)?


Remove FlyingMessageEvent

Webview and Native course enrollment now have the same UX, and do not use "flying messages".
I did some auto-formatting; view diff ignoring whitespace

@BenjiLee ?

:+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1:

Bleh, I just realized that these flying events rely on the fact that it needs to exist in the xml files to fly the event to. We are planning on getting rid of these completely correct?

The events don't rely on that, the messages do though.
As far as removing them from the base class; We can move them into a "flying message fragment" that works with any activity or better yet (IMO) change them all into Snackbars.

I vote for snacks
@miankhalid @1zaman What do you guys think?

hell yes, who doesn't love snacks :wink:


Move flow into a feature branch?

It's really awesome, but that's my opinion, and I want you all to be able to make your own choices.

The existing redux branch fairly heavily relies on flow. I need to come up with the best strategy for this case.

I would be interested in hearing peoples experiences with the npm run flow:remove script.  Is this sufficient?  What is your merging experience like after flow has been ejected?  Would you strongly prefer flow to be moved into a feature branch?

I personally remove flow from my fork after each update. The script works but leaves artifacts behind, extra spaces, code comments, etc.

I did some editing by hand after running flow:remove. From that point on, i'm copy/pasting commits from branches i have combined. Should try some cherry-picking/conflict resolving though 🤣

OK, I've decided to make this happen.  I feel like non-flow users will outweigh flow users, and I want this to be a generic starter.  For the good of the community, I'll drop flow as the default.

Staged on next


feat: ✨ setup codecov [skip-release]

closes: #25

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@68aa4e8). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             master       #28   +/-   ##
==========================================
  Coverage          ?   100.00%
==========================================
  Files             ?         1
  Lines             ?         1
  Branches          ?         1
==========================================
  Hits              ?         1
  Misses            ?         0
  Partials          ?         0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 68aa4e8...0856162. Read the comment docs.


Likes aren't recorded to the DB

The likes aren't saved by the factory to the DB.
The following patch should fix this:
@@ -31,10 +31,11 @@ class ArtistRepository implements RepositoryInterface
             'name' => $artist->getName(),
             'short_biography' => $artist->getShortBiography(),
             'biography' => $artist->getBiography(),
             'soundcloud_url' => $artist->getSoundCloudUrl(),
             'image' => $artist->getImage(),
+            'likes' => $artist->getLikes(),
         );

         if ($artist->getId()) {
             // If a new image was uploaded, make sure the filename gets set.
             $newFile = $this->handleFileUpload($artist);

Hope this helps.

Cherry-pick from https://github.com/olberger/musicbox/commit/c70ef15f997ee0bbd61b592bc952ee5accf42c55 at will


Problem when trying to enable more resolutions on a signal

Best regards.
I set up the service in docker, currently the server I added the https to have the HLS signal with valid SSL certificate, everything works fine until I enable :
exec_push /usr/local/bin/ffmpeg -i rtmp://localhost:1935/$app/$name -async 1 -vsync -1
-c:v libx264 -c:a aac -b:v 256k -b:a 64k -vf "scale=480:trunc(ow/a/2)*2" -tune zerolatency -preset superfast -crf 23 -f flv rtmp://localhost:1935/show/$name_low
-c:v libx264 -c:a aac -b:v 768k -b:a 128k -vf "scale=720:trunc(ow/a/2)*2" -tune zerolatency -preset superfast -crf 23 -f flv rtmp://localhost:1935/show/$name_mid
-c:v libx264 -c:a aac -b:v 1024k -b:a 128k -vf "scale=960:trunc(ow/a/2)*2" -tune zerolatency -preset superfast -crf 23 -f flv rtmp://localhost:1935/show/$name_high
-c:v libx264 -c:a aac -b:v 1920k -b:a 128k -vf "scale=1280:trunc(ow/a/2)*2" -tune zerolatency -preset superfast -crf 23 -f flv rtmp://localhost:1935/show/$name_hd720
-c copy -f flv rtmp://localhost:1935/show/$name_src;
I send 4 signals and only in 1 I get the audio and video from the signal, in the others I only get the audio, I thought that maybe it was server, so with this test signal:
rtmp://stream.mediaserver.com.co:8083/live/buenisimatv
when trying to broadcast from my local pc each signal, I realize that the rtmp link sometimes connects well and sometimes stays idle as in a timeout style, I pass my current configuration file, which did not add the options but only left the part of the bandwidth, but I would like everything to work from the s
nginx.txt
erver or if done from outside the connection to the rtmp is agile and without timeout

Hi @jhonyesg
Try using the nginx_ffmpeg.conf config file provided in the conf directory.
Simply rename the existing nginx.conf to something else like nginx_default.conf and then rename nginx_ffmpeg.conf to nginx.conf and restart the container.
Check out the instructions here for more information on how to stream to the server.

it is correct what I did was in the config file to enable the option of the resolutions according to the bandwidth, in this case I only wanted to enable 3 qualities
low
_mid
_srs
but when taking with fmmpeg:
ffmpeg -re -i "rtmp://<IP_ADDRESS>:1935/live/telemusica" -c copy -f flv -strict experimental rtmp://<IP_ADDRESS>:8084/live/telemusica_srs
ffmpeg -re -i "rtmp://<IP_ADDRESS>:8084/live/telemusica_srs" -vf scale=1280x720 -c:v libx264 -preset superfast -c:a copy -f flv -strict experimental -b:a 64k rtmp://<IP_ADDRESS>:1935/live/telemusica_mid
ffmpeg -re -i "rtmp://<IP_ADDRESS>:8084/live/telemusica_srs" -vf scale=250x100 -c:v libx264 -preset superfast -c:a copy -f flv -strict experimental -b:a 64k rtmp://<IP_ADDRESS>:1935/live/telemusica_low
it keeps thinking when capturing the rtmp to rebroadcast, then I am blocked, since I thought to allocate a computer to broadcast in the qualities, to solve but with the local or public ip I try with ffmpeg to make the capture and it remains without action or if it does action, it does not allow me the execution of script that take the original rtmp to transcode it in several qualities, example create scrip. sh for each signal quality if I run it sometimes starts well, if I pause it or there is a slight internet outage it does not reconnect to the original rtmp, even though it is running well.

Best regards.
Dear sir, I tried to perform this solution:
For Example: http://<IP_ADDRESS>:8080/hls/telemorisco.m3u8
but the problem is that when sending the other signals, it starts to blqouear due to the quality change, so it makes it very inefficient.
If you could solve it, it would be very helpful and of course I would acknowledge your support for a coffee.

Your FFMPEG config should use localhost for the source.
I recommend using the existing config and remove the qualities you dont want:
exec_push  /usr/local/bin/ffmpeg -i rtmp://localhost:1935/$app/$name -async 1 -vsync -1
        -c:v libx264 -c:a aac -b:v 256k  -b:a 64k  -vf "scale=480:trunc(ow/a/2)*2"  -tune zerolatency -preset superfast -crf 23 -f flv rtmp://localhost:1935/show/$name_low
        -c:v libx264 -c:a aac -b:v 768k  -b:a 128k -vf "scale=720:trunc(ow/a/2)*2"  -tune zerolatency -preset superfast -crf 23 -f flv rtmp://localhost:1935/show/$name_mid
        -c copy -f flv rtmp://localhost:1935/show/$name_src;

You can modify the bandwidth requirements for each quality in the config file.
Lines 81 through 85 (Values are in Bits per Second)
      # Instruct clients to adjust resolution according to bandwidth
      hls_variant _src BANDWIDTH=4096000; # Source bitrate, source resolution
      hls_variant _hd720 BANDWIDTH=2048000; # High bitrate, HD 720p resolution
      hls_variant _high BANDWIDTH=1152000; # High bitrate, higher-than-SD resolution
      hls_variant _mid BANDWIDTH=448000; # Medium bitrate, SD resolution
      hls_variant _low BANDWIDTH=288000; # Low bitrate, sub-SD resolution

The video will always buffer slightly when switching quality. Unfortunatley there isnt much i can do about that.
Adding the hls_nested on; directive to the config may help? (try adding it below Line 76)
This toggles HLS nested mode. In this mode a subdirectory of hls_path is created for each stream. Playlist and fragments are created in that subdirectory. Default is off.

Dear, thank you in advance for your support, unfortunately it did not work for me.
Although now I have this problem that if I would like to solve root, it happens that I want to capture the RTMP, enable the capture, but when I make multiple connections, using vlc or ffmplay, it keeps thinking and sometimes does not connect, I see that only allowed as 1 or 2 connections in rtmp max.
Do you know what it could be and how to solve it.

I'm not sure on that one. This container isnt really intended to receive more than 1 stream at any given time.
It's mainly intended to allow you to revieve on stream and forward it on to multiple destinations (youtube and facebook, etc) at once.


add status_category column to jira_issue table

Status Category in Jira is fixed: In Progress, To Do or Done.  On the other hand, status is custom based on the workflow.
So if you need to list all Open tickets, you will need to know those custom statuses for your project, which is not always possible, and statuses can change from one project to another. That's why we can use status_category, which is always fixed for any project and workflow.
Example query results

Results
select status, status_category from local_jira.jira_issue
+-------------------------+-----------------+
| status                  | status_category |
+-------------------------+-----------------+
| Fixed                   | Done            |
| Open                    | To Do           |
| Fixed                   | Done            |
| Fixed                   | Done            |
| Open                    | To Do           |
| Sec Review              | In Progress     |
| Fixed                   | Done            |
| Risk Accepted           | Done            |
| In Progress             | In Progress     |
| Fixed                   | Done            |
| In Progress             | In Progress     |
| False Positive Accepted | Done            |
| Fixed                   | Done            |
| Fixed                   | Done            |
| Open                    | To Do           |

Thanks for the PR @gabrielsoltz 👍 . Definitely worth adding the status_category column which provides users with the ability to easily query tickets based on pre-defined statuses.
Could you also add an example query in the docs/tables/jira_issue.md file that the users could easily refer to?
For instance:
List Issues are in progress

select
  id,
  key,
  summary,
  status,
  assignee_display_name
from
  jira_issue
where
  status_category = 'In Progress';

Thank you, @misraved. I updated the documentation. Let me know if this makes sense.

Thanks a lot @gabrielsoltz for making the changes and apologies for going back and forth on the table docs 👍 .
I will be releasing the change shortly 😃


Brain Stroke Prediction

ML-Crate Repository (Proposing new issue)
:red_circle: Project Title : Brain Stroke Prediction
:red_circle: Aim : Create a prediction model to predict the brain stroke.
:red_circle: Dataset : https://www.kaggle.com/datasets/zzettrkalpakbal/full-filled-brain-stroke-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.

📍 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.

: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' and 'JWOC' contributors of 'ML-Crate' project.

:white_check_mark: To be Mentioned while taking the issue :

Full name :
GitHub Profile Link :
Participant ID (If not, then put NA) :
Approach for this Project :
What is your participant role? (Mention the Open Source Program name. Eg. HRSoC, GSSoC, GSOC etc.)

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

@abhisheks008 please assign me this

Issue assigned to you @Avik-creator


Preflight image not passing preflight

Bug Description
./preflight check container quay.io/opdev/preflight:0594f25 --pyxis-api-token XX  --certification-project-id XX --pyxis-host catalog.uat.redhat.com/api/containers

time="2022-03-17T10:00:18+02:00" level=info msg="check completed: RunAsNonRoot" result=FAILED

time="2022-03-17T10:00:38+02:00" level=error msg="Error when checking for /licenses : stat /var/folders/pt/whb_vsh96p1d2wyvny7lwnjc0000gn/T/preflight-1534093280/fs/licenses: no such file or directory"
time="2022-03-17T10:00:38+02:00" level=info msg="check completed: HasLicense" result=FAILED

Expected Result
All checks should pass.

/assign


Increase path planner speeed

Whenever you are back in let's do some tests and see how far off our top speed we are


[svengbr] cypress-plugin-snapshots causes GitHub Dependabot message

Where to find the issue
https://github.com/corona-warn-app/cwa-website/blob/master/package.json
Line 54
"devDependencies": {
   ...
    "cypress-plugin-snapshots": "^1.4.3",
   ...
}

Describe the issue
This is a follow-on to Differences in package-lock.json from nodejs concerning the web test environment.
cypress-plugin-snapshots defined in the devDependencies object of package.json causes the github Dependabot to warn that jpeg-js needs to be updated to >=0.4.0, however that is not possible because of dependencies defined in the package<EMAIL_ADDRESS>Dependabot advises:
<EMAIL_ADDRESS>requires<EMAIL_ADDRESS>via a transitive dependency on<EMAIL_ADDRESS>There is further information in https://github.com/advisories/GHSA-w7q9-p3jq-fmhm.

Link to PR https://github.com/meinaart/cypress-plugin-snapshots/pull/159 in cypress-plugin-snapshots

@DawChihLiou
Thanks for drawing the attention to the issue in the cypress-plugin-snapshots repo!
https://github.com/oliver-moran/jimp/blob/master/README.md#notice-of-potentially-breaking-change includes:

Notice of potentially breaking change
As of v0.10.4, core-js is no longer included with jimp or its extensions. If you rely on core-js, install it with either yarn add core-js or npm i core-js

which may make fixing the dependencies more complicated.
At least now the issue has been reported in the correct place.

Glad to help!
Updating @jimp alone should be sufficient. I double checked and there's no dependencies depend on core-js other than @jimp in the plugin.

@DawChihLiou
Nobody has responded to your PR https://github.com/meinaart/cypress-plugin-snapshots/pull/159 yet. In fact, the repo https://github.com/meinaart/cypress-plugin-snapshots/pulse/monthly show little activity,  and there haven't been any commits pushed to master there in the last month. 😞

@DawChihLiou
I was notified that your PR https://github.com/meinaart/cypress-plugin-snapshots/pull/159 was merged! 🎉
I guess the maintainer needs to release a new version (currently at https://github.com/meinaart/cypress-plugin-snapshots/releases/tag/v1.4.4) before this makes any difference externally. I looks like they are bundling together quite a few different changes, so let's wait and see!

Awesome! Thanks for keeping an eye on it!

https://github.com/meinaart/cypress-plugin-snapshots/releases/tag/v1.4.4 is still the latest release from over one year ago with no sign of a new release.
GitHub regularly identifies dependabot alerts in this repository, so it does not seem necessary to single out this particular one.
Closing as unresolved.


Improved exception handling

This PR includes some refactoring of the exceptions and some minor fixes, following full tests of the wopiserver - cf. https://github.com/cs3org/wopiserver/pull/161

@diocas this is good for review/merge (GitHub tells me that there are conflicts but I fixed them), can you please have a look?


intermittent error seen when provisioning clusters - "Error from server (Forbidden)"

Steps to reproduce the problem:
Provisioning custom cluster with 2 control nodes/3 etcd and 3 worker nodes
When provisioning is still in progress , we see the following intermittent  error message shown:
Waiting for API to be available; exit status 1, Error from server (Forbidden): error when retrieving current configuration of: &{0xc420720e40 0xc4205ff340 cattle-system management-state/tmp/yaml-405267538 0xc4216686b0 0xc4216686b0 false} from server for: "management-state/tmp/yaml-405267538": namespaces "cattle-system" is forbidden: User "user-w9nc8" cannot get namespaces in the namespace "cattle-system" Error from server (Forbidden): error when retrieving current configuration of: &{0xc4201bcd80 0xc420595500 cattle-system cattle management-state/tmp/yaml-405267538 0xc42175a230 0xc42175a230 false} from server for: "management-state/tmp/yaml-405267538": serviceaccounts "cattle" is forbidden: User "user-w9nc8" cannot get serviceaccounts in the namespace "cattle-system" Error from server (Forbidden): error when retrieving current configuration of: &{0xc420720f00 0xc4205fcd90 cattle management-state/tmp/yaml-405267538 0xc421668818 0xc421668818 false} from server for: "management-state/tmp/yaml-405267538": clusterrolebindings.rbac.authorization.k8s.io "cattle" is forbidden: User "user-w9nc8" cannot get clusterrolebindings.rbac.authorization.k8s.io at the cluster scope Error from server (Forbidden): error when retrieving current configuration of: &{0xc4201bce40 0xc4205f0a10 cattle-system cattle-credentials-d8618c7 management-state/tmp/yaml-405267538 0xc42175a2a0 0xc42175a2a0 false} from server for: "management-state/tmp/yaml-405267538": secrets "cattle-credentials-d8618c7" is forbidden: User "user-w9nc8" cannot get secrets in the namespace "cattle-system" Error from server (Forbidden): error when retrieving current configuration of: &{0xc420720fc0 0xc4202c04d0 cattle-system cattle-cluster-agent management-state/tmp/yaml-405267538 0xc4216688a8 0xc4216688a8 false} from server for: "management-state/tmp/yaml-405267538": deployments.extensions "cattle-cluster-agent" is forbidden: User "user-w9nc8" cannot get deployments.extensions in the namespace "cattle-system" Error from server (Forbidden): error when retrieving current configuration of: &{0xc4201bcf00 0xc42004ecb0 cattle-system cattle-node-agent management-state/tmp/yaml-405267538 0xc42175a330 0xc42175a330 false} from server for: "management-state/tmp/yaml-405267538": daemonsets.extensions "cattle-node-agent" is forbidden: User "user-w9nc8" cannot get daemonsets.extensions in the namespace "cattle-system"
This full message shows up as cluster status in UI .
Is there way to prevent this intermediate error from happening / reporting in the UI ?

Tested with latest build from master 91a916874851        rancher/rancher:master
I saw this intermediate error message show up when provisoning a 1 node cluster.

Moving the issue out as @carolynhu couldn't reproduce it, and the error is intermittent and recoverable from. Will debug on the issue more in the next release.

For what it's worth, running rancher/rancher:v2.1.0 with https://github.com/rancher/rancher/pull/15688 applied makes the cluster stick in "Waiting for API to be available", but this error is not shown. There are no applicable log entries that I could see.

Another note: This seems to be a possible regression in 2.1.x, 2.0.8 appears to work just fine?

@bradjones1
Not sure if your issue is related to https://github.com/rancher/rancher/issues/16012

exit status 1, Error from server (Forbidden): error when retrieving current configuration of: &{0xc420720e40 0xc4205ff340 cattle-system management-state/tmp/yaml-405267538 0xc4216686b0 0xc4216686b0 false} from server for: "management-state/tmp/yaml-405267538": namespaces "cattle-system" is forbidden: User "user-w9nc8" cannot get namespaces in the namespace "cattle-system"

Did you see the similar logs in your rancher server like above?
Can you create a separated issue if not, please?

Seeing the same problem after migrating to 2.1.x - definitely looks like a regression.
We are seeing the same forbidden error for the user when adding new nodes to a cluster

Same here - I might add that this problem occurs for us only on virtualBox nodes that are cloned from each other. The drive image we clone has a clean docker installed already (but is not configured as a rancher node, yet).

If it is only happening for clones, maybe it has to do with duplicate MAC addresses causing two nodes to get the same IP address in your network?
Just a wild guess.
Otherwise a more detailed description of your setup (like the template found when you create a new issue) and a snippet of the server logs might be helpful.

@cjellick Thanks for the hint but I ruled that out before, assigning the clones differnt MAC addresses. After I couldn't get that cluster to work I destroyed it completely, wiped /var/lib/rancher and all docker containers from all nodes and created a new cluster. This time it worked. The setup was the same: One ControlPlane node, two WorkerNodes. The only thing I changed: I didn't add the worker nodes simultaneously but one after the other. I can't tell if it's coincidence or in fact a race condition but now everything works as expected.

Were they cloned from a machine that was already a rancher node and thus had a /var/lib/rancher dir when closed? That dir cannot be cloned. Has a little bit of state/identifying data in it

During Helm install i am getting below error. Can anyone help me out to solve this issue?
$ helm install rancher-stable/rancher --kubeconfig ~/.kube/config --name rancher --namespace cattle-system --set hostname=rancher2.test.com --set ingress.tls.source=secret
Error: release rancher failed: namespaces "cattle-system" is forbidden: User "system:serviceaccount:kube-system:default" cannot get resource "namespaces" in API group "" in the namespace "cattle-system"

@mohapma yours is different as you are trying to launch rancher server versus the original one is for when you are trying to add clusters into rancher server.
Closing as any new issues should be filed separately.


No sign in but download screen says user can come back and review answers

Think this was confused with "You can come back to this website later to take additional steps."


Fix and clean-up MaxPool.

The new API version of maxpool is under dev and needs to be debugged. Currently the old version is used in production resnet model. That needs to be migrated once the new API version is working.
Also there are multiple versions of max pool in ttnn. The new version should be fixed and all other versions should be removed.

Need to get the new maxpool API version working asap. This is blocking data parallel/multi-device work.

i have a draft PR, all unit tests pass, but i see some pcc issues with resnet, im investigating.
https://github.com/tenstorrent/tt-metal/pull/10825