.Net core website in docker linux container not loading in browser with SSL

Hi, I submitted this question on stack overflow after going through the guide. It works in development but not in production on an Ubuntu VPS.
https://stackoverflow.com/questions/65708669/net-core-website-in-docker-linux-container-not-loading-in-browser-with-ssl
Regards

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: abf7806c-d9e4-1811-3308-b5efb6f159f0
Version Independent ID: 2117dfa1-9e6d-2bc2-2348-e792f3c81806
Content: Hosting ASP.NET Core image in container using docker compose with HTTPS
Content Source: aspnetcore/security/docker-compose-https.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @ravipal
Microsoft Alias: ravipal

Thank you for contacting us. Due to a lack of activity on this discussion issue we're closing it in an effort to keep our backlog manageable. If you believe there is a concern which hasn't been addressed, please file a new issue.


Replays with pro mode don't play

Upon opening a replay with PM modifier following stacktrace is being thrown:
[CRITICAL @ 05:32:24 | UnityEngine] FieldAccessException: Field `GameplayModifiers:_proMode' is inaccessible from method `BeatLeader.Utils.ReplayDataHelper/EditableModifiers:set_proMode (bool)'
[CRITICAL @ 05:32:24 | UnityEngine] BeatLeader.Utils.ReplayDataHelper.GetModifiersFromReplay (BeatLeader.Models.Replay replay) (at <076921e7a4104b9dba226bbec2a1c9a4>:0)
[CRITICAL @ 05:32:24 | UnityEngine] BeatLeader.Utils.ReplayDataHelper.CreateTransitionData (BeatLeader.Models.ReplayLaunchData launchData, PlayerDataModel playerModel) (at <076921e7a4104b9dba226bbec2a1c9a4>:0)
[CRITICAL @ 05:32:24 | UnityEngine] BeatLeader.Replayer.ReplayerLauncher+<StartReplayAsync>d__18.MoveNext () (at <076921e7a4104b9dba226bbec2a1c9a4>:0)
[CRITICAL @ 05:32:24 | UnityEngine] --- End of stack trace from previous location where exception was thrown ---
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] BeatLeader.Replayer.ReplayerLauncher+<StartReplayAsync>d__17.MoveNext () (at <076921e7a4104b9dba226bbec2a1c9a4>:0)
[CRITICAL @ 05:32:24 | UnityEngine] --- End of stack trace from previous location where exception was thrown ---
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] BeatLeader.Replayer.ReplayerMenuLoader+<StartReplayAsync>d__44.MoveNext () (at <076921e7a4104b9dba226bbec2a1c9a4>:0)
[CRITICAL @ 05:32:24 | UnityEngine] --- End of stack trace from previous location where exception was thrown ---
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.CompilerServices.TaskAwaiter.GetResult () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] BeatLeader.Replayer.ReplayerMenuLoader+<StartReplayAsync>d__43.MoveNext () (at <076921e7a4104b9dba226bbec2a1c9a4>:0)
[CRITICAL @ 05:32:24 | UnityEngine] --- End of stack trace from previous location where exception was thrown ---
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
[CRITICAL @ 05:32:24 | UnityEngine] UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <451019b49f1347529b43a32c5de769af>:0)
[CRITICAL @ 05:32:24 | UnityEngine] UnityEngine.UnitySynchronizationContext:ExecuteTasks()

This is both on latest ci build and latest release, game version 1.27.

very speedy, ty!


make save/query buttons work

make save/query buttons work

https://github.com/airbnb/superset/pull/1581

https://github.com/airbnb/superset/pull/1612


Log error details to the console

As an administrator of the Pact Broker I want to be able to see the error details in my logs so I can work out what is going wrong when the Pact Broker starts to return 500 responses.
Often the full error is returned in the response, but depending on the client it may not be logged. Even if the client did happen to log the error, as the administrator of the Pact Broker I may not know who to talk to or where to find those logs.
Today when a 500 occurs on the server the log line looks something like this:
123.456.789.101 - - [27/Sep/2016:23:33:12 +0000] "GET /pacts/provider/providername/consumer/consumername/version/1.0 HTTP/1.1" 500 6073 0.0154

This line is useful, but in addition it would be good if the full exception details and stack trace were also output to the console.

@uglyog - did we do something along these lines for using the pb with docker?

@BenSayers what you're looking at appears to be the HTTP logs. The application log is where you'll find the backtrace. You can see the code that does it here: https://github.com/bethesque/pact_broker/blob/master/lib/pact_broker/api/resources/base_resource.rb#L21
The logs go into ./log. You can configure it as shown here: https://github.com/bethesque/pact_broker/blob/master/example/config.ru#L23

@bethesque is there a way to configure the logger to spit everything out in the console rather then in a log file?
For my particular use case our infrastructure is configured to extract the console output of the running servers and send that to other logging systems for indexing/monitoring etc. We try to avoid having log files on the file system as these servers are in an auto scaling group which means the servers are frequently created and destroyed.

Off the top of my head try this in the configuration block:
config.logger = Logger.new($stdout)

Thanks @bethesque, that worked.


NBitcoin.Indexer.Console Hang

It seems there is an issue with processing transactions in block 22131 or 22132 of segnet testnet. When I issue the command "NBitcoin.Indexer.Console -t --From 22131 --TO 22132" it hangs and also it seems the https://segnet.metaco.com/blocks/tip reports the tip block to be 22131 which at the time of writing is 22502 (seems to me the same problem).

Interesting thanks for reporting the issue, I'm looking that out.

mmmh my segnet bitcoin node is itself stuck at 22131.
I don't think this is a indexer prroblem, but a bitcoin node problem... I'm investigating that.

mmh another block explorer is also stuck https://segnet.smartbit.com.au/

Isn't it built on yours Indexer?

smartbit no. http://api.qbit.ninja/ http://tapi.qbit.ninja/ http://segnet.metaco.com/ are.
Smartbit has the same bitcoind binaries (I passed them) so maybe an incompatible stuff happened. I'm recompiling bitcoind with segwit and will try to update my node to see how it goes.

If it helps. I am able to index blocks up to the end, this just happens for transactions.

I'm trying first to recompile bitcoind, install the new version and see how it goes. Compiling for windows take a while, so I'll keep you updated tomorrow.

Thanks. More about my configuration; in my installation I have <add key="BlockDirectory" value=xxx"/> in LocalSettings.config and I have built my own segwit bitcoind using https://github.com/phelix/easywinbuilder on windows.

is your node stuck ?

or only indexer ?

The node works well and gets blocks (It is now on 22526). Indexer.Console with --ALL switch hanged, so I first indexed blocks and the started to index transactions 2000, 3000 numbers each time until I found that magic number.

Also I imported much of blocks from a Linux muchine running segwit code (I think this block is imported from the linux machine).
And thank you very much for your efforts on bringing Bitcoin to .Net.

mmmh I have problem for compiling the windows binaires on linux right now... I have some work to do until friday, so I can't get a look before easily.
If you can send me the problematic block (where it hangs) in hex, I can probably check what is going wrong with it though.

Attached are the blocks 22131 and 22132. I am not sure which block is the source of the problem, but I think it should be the latter one since I think I am able to index 22131: "NBitcoin.Indexer Information: 0 : Checkpoint default/transactions loaded at 22131"
The method I used to get these blocks was: (on Windows machine):
1- bitcoin-cli -conf=[confFile] getblockhash 22132
2- bitcoin-cli -conf=[confFile] getblock<PHONE_NUMBER>721249c0e56bef4aacd0ecb418c0cf6816afa3fb32b1c06ce82247 false > 22132.txt
Thank you for your attention.
22131.txt
22132.txt

It is interesting for me to see the 22132 is larger than 1 Megabyte although it seems because of segwit.

@bijakatlykkex I think your node is wacky. I just updated my bitcoind, and I am at block https://segnet.metaco.com/blocks/tip (22145)
It is strange that you are in 22502.
I don't think NBitcoin.Indexer is stalling also. If this is a big block, and your VM is not in Azure (I recommend having your vm hosted in azure colocated with your storage), then a big block can take a while.

https://segnet.smartbit.com.au/ is same as me.

oook so a strange thing is happening, you seems to be forked of segnet since your block... I'm trying to gather more info about why your block is rejected by the network but accepted by your node.

In my Linux machine I have gen=1 in the configuration file, may it be related? Is it normal not to have new blocks for some days as in your case?

I don't know. This is very strange, as smartbit, myself, and @CodeShark noticed that blocks suddenly stopped being mined. My biggest question is why are you on block 22502.
Did you mined all of that ? if yes, you seems to be isolated from the network now. Can you give me the ip of your node so I see if I can sync with it ?

Also when is the last time your built bitcoind ?

The linux ip is <IP_ADDRESS> , probably all ports closed with firewall except 8332 for RPC. I am not sure how bitcoin works on low level.

Can you open the 28333 ? This is the port for segnet normally.

My getpeerinfo returns <IP_ADDRESS> and <IP_ADDRESS>

The linux machine port in now open.

Definitively something wrong with your node

Can you explain what is this command line?

I tried add your node to the connected node of my bitcoind. It rejected your node because one of your header is invalid. I'm trying to checkout why.

My source code is from https://github.com/sipa/bitcoin/tree/segwit

when did you compiled it ?

I am not sure, I have 2 one for windows, one for Linux, at most 10 or 15 days ago (the earliest) time; the latest commit is for 29 days ago so makes no difference I think. But instead of zip with link on Github page I may used the .tar.gz (https://github.com/sipa/bitcoin/archive/segwit.tar.gz) I think the archive is built on fly.

I checked your chain. Our last common block is https://segnet.metaco.com/blocks/22131 I'm trying to find out why your 22132 get rejected now...

My Linux source is the zip file for Feb 27.

Can the situation be two different isolated networks?

I don't know... trying to submit your block manually through command line but it is too big.

In block 22310 I have received 0.5 BTC from segwit faucet https://segwit.greenaddress.it/faucet/

The problem was I had a old client and it forked me off segnet. Block 22132 is not stalling, it just take time to index.
You should always index on a box in azure collocated with the storage or it can take ages.
Proof, my explorer got synched automatically when reindexing the blocks of my node: https://segnet.metaco.com/blocks/22132

Thanks. I am running against local "Azure Storage Emulator" and after nearly a day it has not yet imported that 22132 single block. segnet.metaco.com seems to be update to the latest block.

A day ?! yes this sounds like a problem. But might be the Azure Storage Emulator problem also.
I always tested on real storage. Can you try to index on a real one and tell me how it goes ?

Yes. It worked with real Azure queue as expected.

But Azure Storage Emulator is OK with regtest mode.

Thanks for your attention.

Btw, the indexer has a bunch of unit tests, by changing the LocalSettings.config to match the storage emulator you can run them. You will probably discover what crash, as the tests try lots of edge cases I encountered in the wild.


Bump version to 0.2.0

Codecov Report
Patch and project coverage have no change.

Comparison is base (2946cb8) 100.00% compared to head (9d0a55d) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #25   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            4         4
  Lines          339       339
  Branches        68        68
=========================================
  Hits           339       339

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


Error: Element img is missing required attribute src.

Describe your problem/question
When I go to https://validator.w3.org/ to validate HTML of my website, I get an
Error: Element img is missing required attribute src.
You can check your demo page http://afarkas.github.io/lazysizes/#examples and see that error.
It is true when I replace img by data-src, it affects the HTML structure. The browser does not see image anymore. Or am I wrong?
Anyway could you please help to get rid of this error?
Thank you
P.S. I have searched but I did not find that issue in the history.
Add tags/keywords
img, error, HTML error, attribute
⚠ Search for existing open/closed issues/discussions before you ask your question.
⚠ I work on my spare time on helping users out. This means make it easy for me to simply see your live problem and help to fix it.
🤘 No panic: Don't be afraid to ask a question.

@IrynaShcharbakova
Read: https://github.com/aFarkas/lazysizes?tab=readme-ov-file#broken-image-symbol
You could consider doing something similar to...
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="/path/to/image" class="lazyload">


Reserve Replica.ActiveChain[0] for backing image

Is this a preparation for backing-image-based volume?
cc @ChanYiLin


Handle WebException on incorrect authentication.

Previously the scanner threw an unhandled exception when connecting to the server with incorrect credentials and crashed the application. This fix handles the exception with http unauthorized response and adds it to the logging instead.

@phrusher Thank you for your contribution.


Fix: scroll to top for Chapter.2 Intro-1

Fixes #462

tACK!

Is this a problem on any other page?

Only noticed in from chapters overview page to ch. 2 intro-1.

@vinayaksh42 I wonder if we can put this logic in a higher parent component like in [slug]/[lesson]/page.tsx to ensure we don't have to repeat this logic if it crops up in the future?
Outside of that, finding the logic that explains why it might happen only on this page?

@vinayaksh42 I wonder if we can put this logic in a higher parent component like in [slug]/[lesson]/page.tsx to ensure we don't have to repeat this logic if it crops up in the future?
Outside of that, finding the logic that explains why it might happen only on this page?

Sure, we can have this logic at a deeper level.
This is actually only happening in the Firefox browser, the issue here is that the scroll done in order to reach the chapter 2 button on the chapter overview page persists to the intro page of chapter-2.

Ok well in that case it sounds like it might be possible to happen on other pages should the copy of the previous page be long enough, in that case lets go ahead and move it to the page.tsx whereby once any lesson page is rendered we can ensure it starts at the top of the page so th user doesn't miss any content

I agree with @benalleng here, other lessons might not use the TextImageLayout component but could be suffering from the same issue (for whatever reason), simplest way to ensure users are always sent to the top of the page on mobile is to just always scroll to 0, 0 which can be easily achieved by placing this effect in [slug]/[lesson]/page.tsx instead.

@ecurrencyhodler Can you check if the fix still works for iPhone/firefox?
I did try it out and majority of the time it worked properly but a few times (1/10) the fix didn't really work.
I think it has something to do with when the actual page loads. Having the logic in page.tsx initiates the useEffect at an early stage, were as when it was in the TextImageLayout.tsx it was being initiated when the component actually got mounted.
Found this discussion:  https://github.com/vercel/next.js/issues/28778
I have tried out most of the solutions mentioned in the above discussion but nothing really works as reliably as having the useEffect scrollTo within TextImageLayout.tsx

Let's go back to your initial fix of bring it back down to the page rather than page.tsx

tACK!


Investigate options for large file storage

Storing large files in git repositories can be problematic.  Since this repository is only really intended for testing set-ups it seems not unreasonable to do this but we might be able to work with other options as well.

use git lfs: Need to understand if this can play nicely once the package is installed via pip, away from git
Use existing open-access data solutions.  Cern's opendata platform is very nice, but it's not straightforward to put new files into it.
Jim Pivarski has suggested S3 as a cheaper alternative to DropBox

If EOS had and HTTP front-end (e.g. for eospublic.cern.ch), that would be a possibility as well.

So, short anser to HTTP EOS: it does exist, but

https://eospublichttp.cern.ch/eos/: requires X509
https://eospublichttp.cern.ch:8443/eos: requires kerberos auth

The only way to get a public instance (no auth) is to request it: https://cern.service-now.com/service-portal/

I suppose CERN-box might be workable instead though. I think you can download files directly from that (though don't remember the last time I tried).

Closing given the discussions, decisions and actions of https://github.com/scikit-hep/scikit-hep-testdata/issues/48. FYI @jpivarski, @henryiii.


Add ssh key for nbock

btw: you can use git rebase origin/master
and git push -f
to update your pull request to not have an ugly merge commit on there. No need to close it and open a new one.

Good point @bmwiedemann . I had used the web UI to create the PR and it ended up creating a branch here for some reason as opposed to a branch in my fork. So the main reason I closed this PR was to be able to delete the branch here and move the change to a branch on my fork. I guess this wasn't really necessary, but it felt "cleaner" :smile:


ERROR: Invalid requirement: 'myLibraryName>=1.0.0.': . suffix can only be used with == or != operators    myLibraryName>=1.0.0.*

Since recently the libraries configured via a text file (e.g. requirenments-bug.txt > attached) cannot be installed due to following error:
...
2024-06-26 15:37:30.832 [info] ERROR: Invalid requirement: 'zipp>=3.18.*': .* suffix can only be used with `==` or `!=` operators
    zipp>=3.18.*
        ~~~~~~~^ (from line 1 of c:\git_mappings\rof-motion-test-development\requirements-bug.txt)
...

As far as I could see the pip update will be done:
...
2024-06-26 15:37:21.618 [info] CREATE_VENV.UPGRADING_PIP
Running: c:\git_mappings\rof-motion-test-development\.venv\Scripts\python.exe -m pip install --upgrade pip
...

and with pip 24.1 the error occurs.
E.g. with pip 22.0.4 the error does not occur.
requirements-bug.txt
Python.log

We do update pip to latest in your environment on creation. If that is not working you can downgrade pip in your environment manually. But this is a bug on pip (https://github.com/pypa/pip/issues)

Thanks @karthiknadig.
I've created an issue for pip: https://github.com/pypa/pip/issues/12802

But this is a bug on pip (https://github.com/pypa/pip/issues)

FWIW this is not a bug on pip side, but pip 24.1 included the breaking change of finally being PEP 440 compliant.
Some further details: https://pradyunsg.me/blog/2024/05/13/pip-24-1-betas/


[WIP] Ray backend implementation

pmap working, mmap broken, set_parallel needs another way of remembering and setting default backend

Codecov Report

Merging #875 (350ebb3) into main (5090e08) will decrease coverage by 2.03%.
The diff coverage is 61.81%.

:exclamation: Current head 350ebb3 differs from pull request most recent head 42c3070. Consider uploading reports for the commit 42c3070 to get more accurate results

@@            Coverage Diff             @@
##             main     #875      +/-   ##
==========================================
- Coverage   70.94%   68.91%   -2.04%
==========================================
  Files         185      198      +13
  Lines        8182     8680     +498
  Branches     1339     1437      +98
==========================================
+ Hits         5805     5982     +177
- Misses       1979     2282     +303
- Partials      398      416      +18

Impacted Files
Coverage Δ

towhee/functional/mixins/parallel.py
58.24% <57.57%> (-36.10%)
:arrow_down:

towhee/functional/data_collection.py
92.97% <100.00%> (-0.92%)
:arrow_down:

towhee/functional/option.py
77.77% <100.00%> (ø)

towhee/trainer/utils/visualization.py
59.66% <0.00%> (-27.99%)
:arrow_down:

towhee/functional/mixins/computer_vision.py
22.22% <0.00%> (-24.84%)
:arrow_down:

towhee/functional/mixins/data_source.py
18.91% <0.00%> (-19.18%)
:arrow_down:

towhee/functional/mixins/dispatcher.py
66.66% <0.00%> (-18.34%)
:arrow_down:

towhee/engine/task_scheduler.py
60.49% <0.00%> (-11.12%)
:arrow_down:

towhee/engine/graph_context.py
86.15% <0.00%> (-4.62%)
:arrow_down:

... and 33 more

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 5090e08...42c3070. Read the comment docs.


Metadata fetching is performed on the UI thread

Whenever the app makes a request for metadata, the request is processed on the UI thread making
any app that changes the project id manually completely unresponsive to the user while the projects is waiting for a response from iSense.

Chris can you explain more about what you mean by the app making a "request for metadata"?

I have some block functions that request metadata attached to the given project ID (ProjectName ProjectAuthor GetFieldsList etc.)


Allow passing classes for creating custom breaker strategies.

I believe this is the intent of the current initialize_strategy code, but respond_to? is an instance, not class method, so currently a custom strategy would need to be passed in as an instance.
With this patch a custom strategy can be passed in as a class:
CB2::Breaker.new(
      strategy:  CustomStrategy,
      duration:  60,
      threshold: 10,
      reenable_after: 600)

@pedro Let me know if I'm totally off here. From my perspective (and I'm not the greatest rubyist), I don't think the current code allows for passing in custom strategies. Since we check respond_to? on the instance, but then attempt to call new.

Going to close this one out...


Confusing doc / error

fw add --help
fw-add
Add project to config

USAGE:
    fw add [OPTIONS] <URL> [--] [NAME]

...

then:
fw add -t rust git@github.com:chevdor/fw.git

error: The following required arguments were not provided:
    <URL>

USAGE:
    fw add <URL> --tag <tag>...

The 2 doc don't agree with each other.

I stumbled on this a while ago.
https://github.com/brocode/fw/blob/master/src/app/mod.rs#L164 the issue is probably the index here.
I didn't have the time to analyze this further.

No stress, I may look into this eventually, I noticed that following the doc did not behave as intended. I guess something changed and the doc was not updated.

So the right syntax as currently implemented is:
fw add <URL> [NAME] [-t ... ]

The usage fw add [OPTIONS] <URL> [--] [NAME] is wrong.

The library generates the help and the parser. So either we are doing something wrong using it or the lib has bug.

I will have a look, I just wanted to document what I briefly checked to at least know how it works as I ended up with git urls as tags 😄

I had a look and I think the code as it is is OK.
clap gets lots if the options such as -t rust are provided before the URL.
It would be interesting to see whether clap 3 handles this better.


Add function to signature file

Hello @auduchinok, I'd like to add a code action that adds a val entry to a signature file for a function that is not exposed.
I've made a very raw proposal of what I have in mind.
The val generation itself would not be a string concatenation but you get the idea 😸.
Would you be ok with having this? If so, do you have any pointers on how to best approach this?

@nojaf This is an interesting feature, but limiting it to certain kinds of symbols like module functions doesn't feel right. We should design big features like this properly.

Hey @auduchinok, I wrote some code and could probably use a review 😸.
Anyway, I created a quick fix to update an existing signature file if the val no longer matches.


Tried to set strict-ssl to false in .nmprc file, but process.env.npm_config_strict_ssl return empty string

Tried to set strict-ssl to false in .nmprc file, but process.env.npm_config_strict_ssl return empty string. So, this setting is not worked. Can this problem be fixed in the next version?
npm version:　6.14.7
.npmrc config
strict-ssl=false

Current souce code
	opts = Object.assign({
		encoding: null,
		rejectUnauthorized: process.env.npm_config_strict_ssl !== 'false'
	}, opts);

Resolved source code
    const strictSSL = process.env.npm_config_strict_ssl;
	opts = Object.assign({
		encoding: null,
		rejectUnauthorized: strictSSL ? (strictSSL !== 'false') : (!!strictSSL)
	}, opts);

Has resolved in PR #199


VS Code TypeScript started failing with "To enable project-wide ... language features, exclude large folders..."

Bug Report
I was fine yesterday, and between then and today at some point VS Code starts to always show me the error
To enable project-wide JavaScript/TypeScript language features, exclude large folders with source files that you do not work on.

🔎 Search Terms
^ the error above
🕗 Version & Regression Information

This is a crash No

This changed between versions ______ and _______

Here's my version as of today:
Version: 1.76.2 (Universal)
Commit: ee2b180d582a7f601fa6ecfdad8d9fd269ab1884
Date: 2023-03-14T17:54:09.061Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 22.3.0
Sandboxed: Yes

This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________

This just started happening today. I was fine before today. Nothing has changed in the project, I have not pulled new code today, and now VS Code will not load Intellisense features, showing a tooltip with that message:

I tried adding exclusions (didn't have to before) but no luck. Warning persists.

I was unable to test this on prior versions because time_

⏯ Playground Link
N/A
💻 Code

N/A
🙁 Actual behavior
The warning
🙂 Expected behavior
No warning

Is there some sort of numerical limit that prevents VS Code TypeScript features from turning on (similar to how other things like folding, syntax, etc, are disabled for large files)? If so, has that changed recently? And is there an option to turn off the limit?

We haven't seen other users reporting this on the VS Code side. @trusktr What version did you update from?

I'm seeing this as well. Just started today after updating to 1.77.3.

for me... it was after i had ran expo build:web which created a massive web-build directory. i added that dir to my exclude list in tsconfig.json and everything was right with the world.

I started seeing this issue earlier this week when our organization installed the GitHub Copilot extension. I don't know what the conflict is, but I can reliably resolve the issue by disabling Copilot in my IDE. I'm apparently the only one on my team seeing the issue at the moment, but it definitely seems to be related to Copilot.

I had the same problem for quite some time now, but I had it only in one project where I am working on few different project and what was interesting is that it was the smallest project, like just a bunch of files for some experiments.
I found out that I had "allowJs": true in tsconfig so it was also checking all js files, so I started to look for a big js file. It turned out it was bundle file that I was building using webpack, when I excluded that bundle file then error disappeared.

Although I very aggressively tried to exclude everything I could, I still have the warning.
More annoying than the warning is not having a proper autocomplete.

Same issue, exclude "" resolves the warning, but even listing all hidden and non-hidden files individually is not helping. Of course "" is not an option - no autocomplete.

I started seeing this issue earlier this week when our organization installed the GitHub Copilot extension. I don't know what the conflict is, but I can reliably resolve the issue by disabling Copilot in my IDE. I'm apparently the only one on my team seeing the issue at the moment, but it definitely seems to be related to Copilot.
Adding an aggressive list of includes to jsconfig.json allows Intellisense to load, but it takes a long time (several minutes) and seems really flaky. I'll regularly see the "initializing JS/TS features" message in the info bar, and Intellisense will not function while that is happening.
[Update] In my case, this appears to be an issue that was introduced in v1.85.75 of the Copilot extension for VSCode. Reverting to the version before that makes the issue go away. I believe my situation is entirely unrelated to the TS server, but maybe this will help someone.

After removing Copilot, it resolved my issue too. Thanks.

Had to exclude some folders to get it working again.

This has suddenly started happening for us. Huge blocker. Concerned to see this open for a year already without solution or workaround.

We need a way to reproduce the problem to investigate it. It'd be great if someone could provide one.

I'm really sorry that people are encountering problems, but if we don't have a way to reproduce the problem, we have zero chance of fixing it.

I am having constant issues with VSCode doing this and becoming unresponsive. Anytime I do a build of our packages in our monorepo VSCode goes unresponsive and unusable .... the only solution is hard restart of the app.
I've tried this with all extensions disabled

That's very unfortunate. We need a way to reproduce the problem so that we can fix it. Can you help?

Locking / closing due to lack of repro. If you're seeing this, please log a new issue
including enough information to reproduce the problem
and we'll be happy to investigate. Thanks!


Vault connecting issues

Hi,
Please let me note that all is most likely fine with the Alfred workflow. It would most likely be me at fault and user ignorance or error.
Someone from the Obsidian Forum sent me here to get the workflow being as there is no way, other than Alfred to open, create, or modify files in Obsidian without opening them within Obsidian.
I downloaded and installed the workflow, but I am having trouble connecting to my vaults.  They are in iCloud Drive.  The reason for keeping them there, I can use Obsidian on the Mac OS and Taio on iOs.  My understanding of the iCoud Drive for mobile, the files need to reside there for ease of operation in the Taio app.  All is fine with Obsidian seeing all the files and folders, as well as Taio doing the same.
The only available area for connection that I can see when assigning a vault to Alfred, is ~/iCloud.  Connecting to that, does not link anything to Obsidian.
The real area where all the folders reside is:
iCloud Drive/Taio/Editor. There are many folders and subfolders beyond the Editor subdirectory.  I included this information just incase it would be of help.
Any help would be greatly appreciated,
Thank you,
Dan

I'll need more information before I can help.
Which commands aren't working for you? Is oo working for you? Did you follow the setup instructions here? Also, check out #17, which might be relevant. It'd be helpful if you can show me what are your environment variables (see #17 and #11 if you're unsure what I'm referring to).

Hi Hausellin,
I read the reference notes you listed in the reply.  I manually removed the vaults like specified in those articles. I removed the workflow and then reinstalled it, also reassigning the vault. The "oo" shortcut does open to my main vault.
I cannot however see, or open any files within the Obsidian vault. I assigned the daily vault and it will create a new note, but only seems to do so in the root directory of the vault.
I am not able to open any notes in the vault, as they are not seen in the Alfred workflow area.
These keywords:  os, or, ot (or oss, orr, ott) give the the search criteria, i.e. search within 3 days etc., but none of them yield any results.
Please forgive my ignorance. It is like trying to teach a dog to climb a ladder and squirt a hose at a fire, so to speak.  This is all new to me.
Thanks,
Dan

Could you try the solutions suggested in #15? They might be related.

Reading through the last suggested thread you posted for me to look at and try, nothing worked and down the list of replies to that thread I went.  Coming to @etiennepellegrini post, I tried that and now os works.
I have yet to try the other things that were not working.

Since the last post, finding and opening files works fine. Appending an inbox note does not and now the daily note does not work.
Thx Dan

Since the last post, finding and opening files works fine. Appending an inbox note does not and now the daily note does not work.
Thx Dan

My hunch is that the paths to your inbox and daily notes haven't been specified correctly. For the daily note, you'll have to make sure a few other settings are correct (see here again).
It'd be helpful if you show me the debugging output when you run od and oi, just like what you did previously.

Thank you for your patience.
I have gotten a lot accomplished since the last reply.  I am now able to open any and all MD files in Obsidian, create a new daily note, today, tomorrow, etc. I am also able to add things to the already existing inbox note.
There are just a couple items left. Ironically one is that which would be used quite often, on. When trying the on function, I get this error:

Unable to find a vault for the URL obsidian://open?vault=Obsidian%20Mobile&file=202103221451

...and the only other is the one searching for notes the last 3 days.
Thanks for all your help.

Awesome. Glad it's working for you now.


Cannot use library in Typescript CJS workspace

The workarounds described in https://github.com/peerigon/parse-domain/issues/142#issuecomment-1172249709 work for me using JavaScript, but do not work when I switch to Typescript.
I created a minimal example here: https://github.com/dmattia/parse-domain-error-example
with a CI Job that just tries to run a typescript file that parses a single domain, with failing output here: https://github.com/dmattia/parse-domain-error-example/actions/runs/3244800468/jobs/5321456053
When I change the test.ts file to test.js, remove the type annotation, and run with yarn node test.js, the output succeeds as expected. It is only with typescript/ts-node where I cannot get this to work at runtime

We use the NestJS framework and don't have ESM related options at all.
The only way to use the parse-domain module in TypeScript is to use a version no older than 5.x.x. It WAS a good module, but the author(s) don't seem to care about its fate. I think that it would be possible to make 2 versions - ESM and CJS, but no...

I'm sorry, we switched to ECMAScript modules only. I recommend to also migrate to ESM as this problem will come up everytime a new dependency version switches to ESM.
You should also be able to import ECMAScript modules asynchronously into CommonJS though:
import("parse-domain").then(({parseDomain}) => {
  // This gets executed once the module is loaded
  // You can call parseDomain() now
}):

I think that it would be possible to make 2 versions - ESM and CJS, but no...

Yes, it is possible, but very error prone. A lot of module authors get it wrong to configure it properly and I don't have the time to support two module systems. You're welcome to fork the module and create a CommonJS build.


backswipe:fix could not blcklist messagegui.new.js

fix for https://github.com/espruino/BangleApps/issues/3388

Nice, thanks!


plotting spin density

Hi,
please is there anyone give a code to plot the total spin density along the z-axis according to this equation nσ(z)=∫ρσ(r) dxdy  ?
Thanks

The cubegen module probably closes to your needs. https://github.com/pyscf/pyscf/blob/master/pyscf/tools/cubegen.py#L58
You can define your own mesh grids than the get_coords method provided by the Cube class. Then calling the similar script to calculate the density for spin-up density matrix and spin-down density matrix. After that, tracing the grids along x and y directions and scaling the results with the area (= dx * dy of your mesh), that would give you an approximate spin density on z-axis, subject to some small errors near the core of each atom.

Hi @DeepDevIA , thanks for your question. Has it been resolved now and can this issue be closed?


workaround can be fixed

https://github.com/rust-lang/rustup.rs/blob/master/src/lib.rs#L54 is naming an issue which is the reason for some workaround.
the issue is now fixed, therefore the workaround can be removed ;)

This looks to be fairly easy to do:

[ ] remove the workaround
[ ] update error-chain version
[ ] verify everything is okay incl. with clippy

I'm prepared to help anyone along who wants to do this.


Add rbac k8s deployment using Kubespray in Jenkins pipeline

Short summary about the issue/question:
Add rbac k8s deployment using Kubespray in Jenkins pipeline.

closed and tracked in #2455


The Chinese （ & ） are forced to \uFF08 & \uFF09, how to keep them?

There are some Chinese chars in my code , example :
var name = "大城小胖（fins）";

I use escodegen.generate to re-generate my code , the string become :
var name = '大城小胖\uFF08fins\uFF09';

How to keep them ?
And I've test , it's not esprima.parse's fault.
the string in the AST is original.
version:
"escodegen": "^1.11.0",
"esprima": "^4.0.1",

I  found it's  esutils's bug.
It's too old (the last update at 4 years ago)
I think  escodegen should find a new tool.

And I found 2  esutils projects at npmjs :
npm i  esutils
npm i @gerhobbelt/esutils

I've create a PR to @gerhobbelt/esutils .

I found  ，  (is not , )  is also with this bug.


recover from dump.rdb

redis is already up when trying to set data dir. This is ok for the first run, but when restarting the container then it's too late already and it doesn't recover the data in dump.rdb
Need to do something like this:
redis-server --dbfilename dump.rdb --dir /data

fixed in 0.35


Ephemeral pods

It is my understanding that a pod's metrics are not retained upon its death, therefore jobs running for short periods (i.e. less than the scraping interval) are likely to pass under the radar of any current metering effort. By contrast, public cloud platforms are able to provide precise accounting and throttling of resources (cpu credits), although I suppose at the expense of running customized hypervisors.
Today, a customer of a container platform can run a workload in the form of a lot of small jobs and its resource usage will be underestimated, am I right?
Are you aware if this is a limitation that k8s may overcome, and if there's any documented effort to work in that direction? I am aware this may depend on the container runtime as well.
Thanks

This is mostly an artifact of how you do monitoring. We use Prometheus, so it's pull based and suffers from many issues like those described. Longer term, this is something that needs be addressed by the monitoring stack no matter what, for it's own purposes, and for ours. We're moderately aware of this issue and we're working with the Openshift monitoring team to discuss how Prometheus can handle this better.
In my past discussions we've discussed a few things that might be something that can be done:

You can configure Prometheus to scrape more frequently, though this can degrade performance if done for everything, so:
You can dedicate specific nodes to running ephemeral workloads, and then you can configure Prometheus to scrape those specific nodes more frequently.

I've tried to think of decent ways of using pushgateway also, but haven't really come up with any decent ideas.


[v1.2] Extra annotations and labels are not added to hook resources

Wait for a fix in helm post-renderer (https://github.com/helm/helm/issues/7891)

Added as of werf v2.


possible bug, or just not implemented. auto user and tinkers weapons.

The automated user doesn't recognize tinkers weapons as weapons and instead just does punch damage.

yeah i do see this happening. WIth a tinkers Firewoord Broadsdword i can kill a creeper in 3-4 hits, it takes more than double that.
Not sure why this happens , since im just calling     fakePlayer.get().attackTargetEntityWithCurrentItem(ent);
im going to try some alternate methods such as http://www.minecraftforge.net/forum/index.php?topic=43152.0

Fix coming out soon. now a Manulyn broadsword in the user kills a creeper in 2 hits.  This also fixes enchantments such as sharpness being ignored.  Also tested with enderio sword.

Fixed in 1.9.8  https://minecraft.curseforge.com/projects/cyclic/files/2361405


Task26&27

@kurubabullesairam
Task -25
Code verified.
Task -26
Code verified.
Task -27
Code verified.


Add a "grep directory" keybinding

This PR adds a new kind of search: grep directory. It's similar to "search directory" but instead of fuzzy-matching file names, grep directory does regex-matching on file content, powered by rg. The default hotkey is ctrl-g.
Here's what it looks like, and one example of why I think it's cool.

There's a few minor shortcomings that I left out for now to avoid complicating the code. If you think this feature is worthy of inclusion, I'd be happy to give any or all of these a shot!

This hardcodes rg, and so there's no way to switch to ag, or grep -r.
If you hit the ctrl-g hotkey with an incomplete token in the buffer, we unconditionally pass that along to rg as the initial regex. We could be a little more nuanced. fzf.fish's directory search checks if the input ends with a slash and is a directory, and if so, sets that as the base directory for fzf's input. I think that'd be a good fit here too.
Running rg with no regular expression shows a list of empty results. We can probably do something better than that, but I'm not sure what. (Maybe default to showing all lines when user input is empty, to better match the "filtering" affordance)
~The preview window just shows the top of the file. We should automatically scroll to the matching line.~ edit: Implemented!
The preview window should highlight the matching line. To do so we need to thread --highlight-line {2} from _fzf_grep_directory into bat. The blocker here is _fzf_preview_file's comment of "we collect all the arguments into one single [path] variable". (I temporarily hacked in support for highlighting the matching line in the preview video above, but it's not shippable.)

Anyway, thanks for fzf.fish! Let me know if there's anything you'd like me to improve on here.

Hi Shawn, thanks for being interested in contributing. To be honest, this is a really tough feature to add for various reasons. See my previous thoughts on it here. https://github.com/PatrickF1/fzf.fish/pull/118#issuecomment-780738223
Even if we implement this exactly the way I specified in the comment, I'm still not sure I would merge it.

That's unfortunate :/ Thanks again for fzf.fish.

Sorry about the wasted time spent on this. And thanks for being a good sport and understanding!

It’s all good! Most of the time was spent on the implementation, which I can still keep for myself :)


cannot import name 'FastAPIUsers' from 'fastapi_users'

Following the SQLAlchemy tutorial. I'm indeed doing from fastapi_users import FastAPIUsers, but as you can see even without it __init__.py is trying same and can't reach it. Version 3.0.4.
$ pip install fastapi fastapi_users[sqlalchemy]
$ python
>>> import fastapi_users
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.7/site-packages/fastapi_users/__init__.py", line 6, in <module>
    from fastapi_users.fastapi_users import FastAPIUsers  # noqa: F401
  File "/usr/local/lib/python3.7/site-packages/fastapi_users/fastapi_users.py", line 6, in <module>
    from fastapi_users.authentication import Authenticator, BaseAuthentication
  File "/usr/local/lib/python3.7/site-packages/fastapi_users/authentication/__init__.py", line 9, in <module>
    from fastapi_users.authentication.cookie import CookieAuthentication  # noqa: F401
  File "/usr/local/lib/python3.7/site-packages/fastapi_users/authentication/cookie.py", line 3, in <module>
    import jwt
  File "/app/app/jwt.py", line 2, in <module>
    from fastapi_users import FastAPIUsers
ImportError: cannot import name 'FastAPIUsers' from 'fastapi_users' (/usr/local/lib/python3.7/site-packages/fastapi_users/__init__.py)

Hmm, new docker container with same deps no error. Maybe a fluke, I'll reopen if not


[Refactor] Migrate all workergroup-related interface functions from ProcessServiceImpl

Purpose of the pull request

This PR close #12470
This is a part of #12403

Brief change log

Migrate all workergroup interfacen methods to API
Add UT

Verify this pull request
This change added tests

Codecov Report

Merging #12493 (6fcbf37) into dev (b5193ee) will increase coverage by 0.05%.
The diff coverage is 80.00%.

@@             Coverage Diff              @@
##                dev   #12493      +/-   ##
============================================
+ Coverage     39.41%   39.46%   +0.05%
- Complexity     4214     4227      +13
============================================
  Files          1039     1039
  Lines         39140    39094      -46
  Branches       4475     4459      -16
============================================
+ Hits          15426    15429       +3
+ Misses        21941    21902      -39
+ Partials       1773     1763      -10

Impacted Files
Coverage Δ

...nscheduler/service/process/ProcessServiceImpl.java
32.06% <ø> (+0.25%)
:arrow_up:

...duler/api/service/impl/WorkerGroupServiceImpl.java
84.07% <78.57%> (+23.23%)
:arrow_up:

...cheduler/api/service/impl/ExecutorServiceImpl.java
43.73% <100.00%> (ø)

...r/plugin/registry/zookeeper/ZookeeperRegistry.java
43.54% <0.00%> (-6.46%)
:arrow_down:

...eduler/api/dto/schedule/ScheduleCreateRequest.java
83.33% <0.00%> (-2.39%)
:arrow_down:

...org/apache/dolphinscheduler/remote/utils/Host.java
42.55% <0.00%> (-2.13%)
:arrow_down:

...e/dolphinscheduler/remote/NettyRemotingClient.java
51.38% <0.00%> (-1.39%)
:arrow_down:

...e/dolphinscheduler/service/queue/TaskPriority.java
51.31% <0.00%> (-1.25%)
:arrow_down:

...cheduler/plugin/alert/dingtalk/DingTalkSender.java
34.13% <0.00%> (-0.78%)
:arrow_down:

...hinscheduler/service/storage/impl/HadoopUtils.java
15.94% <0.00%> (-0.73%)
:arrow_down:

... and 27 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ruanwenjun Please help to review this PR. thx.


Request to Join Community

Please send an invitation to join the Org.

To join the org, pls follow the instructions in the link here: https://github.com/yfosp/start-here


crashes after a few seconds/a minute in a new world

crash-2022-12-28_17.55.48-client.txt
its consistent (every time i load into a previous or a new world), it doesnt happen when indium is not used, i use the 1.0.7 version of indium because i play on 1.19.
(also i am unable to remove iris as both it and indium are needed for some of my texture packs)

Can you disable your texture packs and test without Sodium/Indium/Iris? It doesn't seem likely that any of these would directly cause this issue; the crash seems to indicate that another mod is accessing the client's world from the wrong thread. When you test without Sodium, set the "Chunk Builder" option to "Threaded" (as this makes it more likely for you to replicate the issue).


feature: make it possible to set the global DEBUG rule in runtime

Currently, once a debug function is exported from the debug module eg.:
var debug = require('debug')('worker');

It's not possible to globally change enabled/disabled state of the debug function.
This'd come handy when you want to change the debug setup at runtime.
In other words, if a node process is established with disabled debug, I'd like to have an option to set the global DEBUG rule and enable some debug functions without restarting the node process.

@fogine we have an open PR linked above.  Feel free to jump into the conversation :)


Add National Ilan University

Add National Ilan University

official website URL: https://niu-en.niu.edu.tw/

@kflejohn I am sorry, the domain 365.niu.edu.tw 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).


Update _variables.scss

add a jasmine color

Thanks but we'll pass on this. It's exactly what you're meant to add on a custom build.


希望出一个macos m2的安装教程

mac m2安装，模型加载成功了，知识库文件也上传成功了，但是一问答就会报错，报错内容如下
  File "/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/lib/python3.10/site-packages/gradio/routes.py", line 437, in run_predict
    output = await app.get_blocks().process_api(
  File "/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/lib/python3.10/site-packages/gradio/blocks.py", line 1346, in process_api
    result = await self.call_function(
  File "/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/lib/python3.10/site-packages/gradio/blocks.py", line 1090, in call_function
    prediction = await utils.async_iteration(iterator)
  File "/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/lib/python3.10/site-packages/gradio/utils.py", line 341, in async_iteration
    return await iterator.__anext__()
  File "/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/lib/python3.10/site-packages/gradio/utils.py", line 334, in __anext__
    return await anyio.to_thread.run_sync(
  File "/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/lib/python3.10/site-packages/gradio/utils.py", line 317, in run_sync_iterator_async
    return next(iterator)
  File "/Users/tangjianghua5/projects/ai/langchain-ChatGLM/webui.py", line 55, in get_answer
    for resp, history in local_doc_qa.get_knowledge_based_answer(
  File "/Users/tangjianghua5/projects/ai/langchain-ChatGLM/chains/local_doc_qa.py", line 227, in get_knowledge_based_answer
    related_docs_with_score = vector_store.similarity_search_with_score(query, k=self.top_k)
  File "/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/lib/python3.10/site-packages/langchain/vectorstores/faiss.py", line 245, in similarity_search_with_score
    docs = self.similarity_search_with_score_by_vector(
TypeError: MyFAISS.similarity_search_with_score_by_vector() got an unexpected keyword argument 'filter'

我也是一样，我也是mac arm架构的

mac arm安装报错求大神帮助：
$ pip install --use-pep517 -r requirements.txt

Building wheels for collected packages: onnx
  Building wheel for onnx (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for onnx (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [86 lines of output]
      fatal: not a git repository (or any of the parent directories): .git
      running bdist_wheel
      running build
      running build_py
      running create_version
      running cmake_build
      Using cmake args: ['/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/bin/cmake', '-DPYTHON_INCLUDE_DIR=/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/include/python3.10', '-DPYTHON_EXECUTABLE=/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/bin/python', '-DBUILD_ONNX_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=onnx', '-DPY_EXT_SUFFIX=.cpython-310-darwin.so', '-DCMAKE_BUILD_TYPE=Release', '-DONNX_ML=1', '/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-install-hf8luq8_/onnx_a7831cd3a4664f3098b93458710ac2c7']
      -- The C compiler identification is AppleClang <IP_ADDRESS>30022
      -- The CXX compiler identification is AppleClang <IP_ADDRESS>30022
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Found PythonInterp: /Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/bin/python (found version "3.10.11")
      -- Found PythonLibs: /Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/lib/libpython3.10.dylib (found version "3.10.11")
      Generated: /private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-install-hf8luq8_/onnx_a7831cd3a4664f3098b93458710ac2c7/.setuptools-cmake-build/onnx/onnx-ml.proto
      CMake Error at CMakeLists.txt:299 (message):
        Protobuf compiler not found
      Call Stack (most recent call first):
        CMakeLists.txt:330 (relative_protobuf_generate_cpp)

      -- Configuring incomplete, errors occurred!
      See also "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-install-hf8luq8_/onnx_a7831cd3a4664f3098b93458710ac2c7/.setuptools-cmake-build/CMakeFiles/CMakeOutput.log".
      See also "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-install-hf8luq8_/onnx_a7831cd3a4664f3098b93458710ac2c7/.setuptools-cmake-build/CMakeFiles/CMakeError.log".
      Traceback (most recent call last):
        File "/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 416, in build_wheel
          return self._build_with_temp_dir(['bdist_wheel'], '.whl',
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 401, in _build_with_temp_dir
          self.run_setup()
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 487, in run_setup
          super(_BuildMetaLegacyBackend,
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 332, in <module>
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 107, in setup
          return distutils.core.setup(**attrs)
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 343, in run
          self.run_command("build")
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "<string>", line 223, in run
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
          super().run_command(command)
        File "/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-build-env-bgidsg72/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "<string>", line 209, in run
        File "/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/lib/python3.10/subprocess.py", line 369, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/bin/cmake', '-DPYTHON_INCLUDE_DIR=/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/include/python3.10', '-DPYTHON_EXECUTABLE=/Users/tangjianghua5/miniconda3/envs/langchain-ChatGLM/bin/python', '-DBUILD_ONNX_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=onnx', '-DPY_EXT_SUFFIX=.cpython-310-darwin.so', '-DCMAKE_BUILD_TYPE=Release', '-DONNX_ML=1', '/private/var/folders/tc/3lqshyjx3d5bsfvxdlbsm2g00000gp/T/pip-install-hf8luq8_/onnx_a7831cd3a4664f3098b93458710ac2c7']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for onnx
Failed to build onnx
ERROR: Could not build wheels for onnx, which is required to install pyproject.toml-based projects

安装没有报错，执行python cli_demo.py报错

langchain版本不对，按照requirements.txt的版本装

我M2成功运行了，不过出文字速度感人

咋搞的兄弟

langchain版本不对，按照requirements.txt的版本装

Mac M1的一直提示模型未加载成功，点击对话，就报AttributeError: 'NoneType' object has no attribute 'int4WeightExtractionHalf'这个异常，也是因为都要按照requirements的安装吗？我看介绍Mac的torch不是要安装night版本的吗？

langchain版本不对，按照requirements.txt的版本装

Mac M1的一直提示模型未加载成功，点击对话，就报AttributeError: 'NoneType' object has no attribute 'int4WeightExtractionHalf'这个异常，也是因为都要按照requirements的安装吗？我看介绍Mac的torch不是要安装night版本的吗？

没有遇到这个错误，优先按照requirements安装。 但是q5.1的LLaMA 7秒出一个token，你再考虑一下还有没有继续搞的必要...

(aifin) huangying@MacBook-Pro-2 aifin % python api.py
INFO  2023-07-05 19:25:26,058-1d:
loading model config
llm device: mps
embedding device: cpu
dir: /Users/huangying/PycharmProjects/aifin
flagging username: 617558d9d64b46728a67b2bbc80f1091
/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/pkg_resources/init.py:121: DeprecationWarning: pkg_resources is deprecated as an API
warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/pkg_resources/init.py:2870: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('google').
Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/pkg_resources/init.py:2870: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('google.logging').
Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/pkg_resources/init.py:2349: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('google').
Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(parent)
/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/pkg_resources/init.py:2870: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('mpl_toolkits').
Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/pkg_resources/init.py:2870: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('zope').
Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/lmdb/pycache/lmdb_cffi.c:267:14: fatal error: 'lmdb.h' file not found
#include "lmdb.h"
^~~~~~~~
1 error generated.
Traceback (most recent call last):
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/lmdb/init.py", line 42, in
from lmdb.cpython import *
ImportError: dlopen(/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/lmdb/cpython.cpython-310-darwin.so, 0x0002): tried: '/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/lmdb/cpython.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/setuptools/_distutils/unixccompiler.py", line 185, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/setuptools/_distutils/ccompiler.py", line 1041, in spawn
spawn(cmd, dry_run=self.dry_run, **kwargs)
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/setuptools/_distutils/spawn.py", line 70, in spawn
raise DistutilsExecError(
distutils.errors.DistutilsExecError: command '/usr/bin/clang' failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/cffi/ffiplatform.py", line 51, in _build
dist.run_command('build_ext')
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
super().run_command(command)
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
objects = self.compiler.compile(
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/setuptools/_distutils/ccompiler.py", line 600, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/setuptools/_distutils/unixccompiler.py", line 187, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command '/usr/bin/clang' failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/huangying/PycharmProjects/aifin/api.py", line 17, in
from chains.local_doc_qa import LocalDocQA
File "/Users/huangying/PycharmProjects/aifin/chains/local_doc_qa.py", line 11, in
from loader import UnstructuredPaddleImageLoader, UnstructuredPaddlePDFLoader
File "/Users/huangying/PycharmProjects/aifin/loader/init.py", line 1, in
from .image_loader import UnstructuredPaddleImageLoader
File "/Users/huangying/PycharmProjects/aifin/loader/image_loader.py", line 5, in
from paddleocr import PaddleOCR
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/paddleocr/init.py", line 14, in
from .paddleocr import *
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/paddleocr/paddleocr.py", line 37, in
from tools.infer import predict_system
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/paddleocr/tools/infer/predict_system.py", line 33, in
import tools.infer.predict_det as predict_det
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/paddleocr/tools/infer/predict_det.py", line 31, in
from ppocr.data import create_operators, transform
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/paddleocr/ppocr/data/init.py", line 37, in
from ppocr.data.lmdb_dataset import LMDBDataSet, LMDBDataSetSR
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/paddleocr/ppocr/data/lmdb_dataset.py", line 17, in
import lmdb
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/lmdb/init.py", line 48, in
from lmdb.cffi import *
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/lmdb/cffi.py", line 372, in
_lib = _ffi.verify(_CFFI_VERIFY,
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/cffi/api.py", line 468, in verify
lib = self.verifier.load_library()
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/cffi/verifier.py", line 105, in load_library
self._compile_module()
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/cffi/verifier.py", line 202, in _compile_module
outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/cffi/ffiplatform.py", line 22, in compile
outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
File "/Users/huangying/miniconda3/envs/aifin/lib/python3.10/site-packages/cffi/ffiplatform.py", line 58, in _build
raise VerificationError('%s: %s' % (e.class.name, e))
cffi.VerificationError: CompileError: command '/usr/bin/clang' failed with exit code 1
(aifin) huangying@MacBook-Pro-2 aifin %
这个错误解决了吗？

你们是用docker安装的吗?
docker image inspect registry.cn-beijing.aliyuncs.com/chatchat/chatchat:0.2.0,我看这个镜像只支持amd吧。


[BUG] Cluster start upon first install fails with CSR names (tcp connection error)

General information

OS:  Windows
Hypervisor: Hyper-V
Did you run crc setup before starting it (Yes/No)? Yes

CRC version
# Put `crc version` output here
version: 1.0.0-beta.3-4.1.11+e97bf65

CRC status
# Put `crc status` output here
C:\Users\nhasan>crc status
CRC VM:          Running
OpenShift:       Running (v4.x)
Disk Usage:      11.22GB of 32.2GB (Inside the CRC VM)
Cache Usage:     11.08GB
Cache Directory: C:\Users\nhasan\.crc\cache

CRC config
# Put `crc config view` output here
C:\Users\nhasan>crc config view
- bundle                             : C:\Users\nhasan\.crc\crc_hyperv_4.1.11.crcbundle
- cpus                               : 4
- memory                             : 8192
- nameserver                         :
- pull-secret-file                   :
- vm-driver                          : hyperv
- warn-check-bundle-cached           : true

Host Operating System
# Put the output of `cat /etc/os-release` in case of Linux
# put the output of `sw_vers` in case of Mac
# Put the output of `sysinfo` in case of Windows
C:\Users\nhasan>sysinfo
'sysinfo' is not recognized as an internal or external command,
operable program or batch file.

Steps to reproduce

start up crc after install
Error displays ERRO Error occurred: Error approving the node csr Not able to get csr names (exit status 1 : Unable to connect to the server: dial tcp: lookup api.crc.testing: no such host
)
Console came up and was able to login using the web gui however some of the service are not working (could be related to the error on #2)
Also, notice the dns query failure earlier on - not sure if it is related to the error down the road.

Expected
Cluster start
Actual
-- Steps below along with a couple of troubleshooting items I tried.
C:\Users\nhasan>crc start
INFO Checking if oc binary is cached
INFO Checking if CRC bundle is cached in '$HOME/.crc'
INFO Check Windows 10 release
INFO Hyper-V installed and operational
INFO Is user a member of the Hyper-V Administrators group
INFO Does the Hyper-V virtual switch exist
INFO Loading bundle: crc_hyperv_4.1.11.crcbundle ...
INFO Creating VM ...
INFO Verifying validity of the cluster certificates ...
INFO Check internal and public dns query ...
WARN Failed Public dns query: ssh command error:
command : host -R 3 quay.io
err     : exit status 1
output  : ;; connection timed out; no servers could be reached
:
INFO Copying kubeconfig file to instance dir ...
INFO Adding user's pull secret and cluster ID ...
INFO Starting OpenShift cluster ... [waiting 3m]
INFO To access the cluster using 'oc', run 'eval $(crc oc-env) && oc login -u kubeadmin -p  https://api.crc.testing:6443'
INFO Access the OpenShift web-console here: https://console-openshift-console.apps-crc.testing
INFO Login to the console with user: kubeadmin, password:
ERRO Error occurred: Error approving the node csr Not able to get csr names (exit status 1 : Unable to connect to the server: dial tcp: lookup api.crc.testing: no such host
)
C:\Users\nhasan>eval $(crc oc-env)
'eval' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\nhasan>
C:\Users\nhasan>oc login -u kubeadmin -p  https://api.crc.testing:6443'
'oc' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\nhasan>crc oc-env
SET PATH=C:\Users\nhasan.crc\bin;%PATH%
REM Run this command to configure your shell:
REM     @FOR /f "tokens=*" %i IN ('crc oc-env') DO @call %i
C:\Users\nhasan>oc login -u kubeadmin -p 78UVa-zNj5W-YB62Z-ggxGZ https://api.crc.testing:6443'
'oc' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\nhasan>SET PATH=C:\Users\nhasan.crc\bin;%PATH%
C:\Users\nhasan>oc login -u kubeadmin -p  https://api.crc.testing:6443'
error: not a valid URL: parse https://api.crc.testing:6443': invalid port ":6443'" after host
C:\Users\nhasan>oc login -u kubeadmin -p  https://api.crc.testing
The server uses a certificate signed by an unknown authority.
You can bypass the certificate check, but any data you send to the server could be intercepted by others.
Use insecure connections? (y/n): y
error: Seems you passed an HTML page (console?) instead of server URL.
Verify provided address and try again.
Logs
You can start crc with crc start --log-level debug to collect logs.
Please consider posting this on http://gist.github.com/ and post the link in the issue.

Logs attached crc.log

You can use 'oc start -n <IP_ADDRESS>' to restart your cluster. That should fix your names issue.


demo is further than git

Hi,
I noticed the demo has a few changed that are not in the git repo.
Is the demo further along?

Hey, sorry it took me so long to reply. IIRC, the demo is now a fair bit behind the current version.


improve statefulset ipam cmdDel

Describe the bug
In the dual stack situation, once the IPv4 IP address was allocated but failed to allocate IPv6 address and the rollback function failed. In the next IPAM cmdAdd, the statefulset will retrieve from SpiderEndpoint but just get one IPv4 address. And we can't process it next.

fix #1046


OpenSea images no longer load if overriden by a TokenScript

My bad, I had set a blank view in view & view iconified


Do not run webpack for file changes that do not need webpack

Overview
TL;DR
For file changes that do not require a webpack run, ie HTML, the assets will still be copied to the output directory, but webpack will not run (as it’s too slow).
Changes that require attention

The pipeline was using async.cargo, which has been changed to async.queue due to the need to pass information to the code generation task about which file has changed. The concurrency for this has been set to 10 somewhat arbitrarily and could use some feedback as to if this is the right approach and what the concurrency value could be.
This PR contains breaking changes for users that have previously ejected their webpack config using embark eject-webpack (introduced in version 3.2.1). webpack.config.js's ejected in version 3.2.1 - 3.2.2 still require the NODE_PATH overrides, which were removed in this PR in cmd.js. Considering that this may only affect a small number of users, what do you propose we do to warn users about this? Also, we might need to consider semver versioning.

Cool Spaceship Picture

@emizzle can you rebase this plz

@alaibe, @michaelsbradleyjr -

Good point, I've limited this to 3, as a child process is spawned for every change that requires webpack. 10 was a bit much for my CPU, and honestly even 3 seems to be send the CPU crazy, but at the very least, it much more handleable and it resolves after a shorter time.

Yes, we should probably warn the user somehow. I tried detecting a new webpack config vs an old one, but didn't have any luck. @michaelsbradleyjr - is there a way you would recommend to detect the new webpack config vs the old, so that we can warn a user if they need to re-eject? Here is the warning I came up with in case you find a way:
console.warn("\n===== Webpack changes needed =====\nPlease re-eject your webpack config (embark eject-webpack) and merge your changes with the ejected config and your existing config.\n");

@emizzle, the only good reason for a DApp author to eject the webpack config is to modify it, so we don't have a lot of great options for detecting that a webpack config needs to be re-ejected. If we stored in embark.json and/or the webpack config the version number of embark, then if the running embark is a later version and the webpack config is ejected, we could print a warning. Figuring out in what cases we should do that (ideally) seems related to questions about semver and embark versioning. Also, it's not a silver bullet because a DApp author might have a .babelrc / babel.config.js in the DApp, and those get picked up by the pipeline even if the webpack config isn't ejected. The point being that across embark versions (even if we're adhering to semver very strictly), a .babelrc that was working may suddenly have problems relative to embark's default webpack config (due to plugin ordering, etc.). We could change embark's webpack config so that it no longer honors a DApp's .babelrc / babel.config.js; in other words, the only way to customize the build behavior would be to eject the config.
Sorry, I don't yet have a firm recommendation, but wanted to explain some of the problems I see.


Tests fail with v0.8.9

With the following logs:
not ok 1 PhantomJS 1.9 - Global error: SyntaxError: Parse error at http://localhost:7357/assets/test-support.js, line 7347
    ---
        Log: |
            { type: 'error',
              text: 'SyntaxError: Parse error at http://localhost:7357/assets/test-support.js, line 7347\n' }
    ...
not ok 2 PhantomJS 1.9 - Global error: ReferenceError: Can't find variable: blanket at http://localhost:7357/assets/blanket-options.js, line 30
    ---
        Log: |
            { type: 'error',
              text: 'ReferenceError: Can\'t find variable: blanket at http://localhost:7357/assets/blanket-options.js, line 30\n' }
    ...
not ok 3 PhantomJS 1.9 - Global error: ReferenceError: Can't find variable: blanket at http://localhost:7357/assets/blanket-loader.js, line 4
    ---
        Log: |
            { type: 'error',
              text: 'ReferenceError: Can\'t find variable: blanket at http://localhost:7357/assets/blanket-loader.js, line 4\n' }
    ...
not ok 4 PhantomJS 1.9 - Global error: Error: Could not find module `ember-mocha` imported from `emedia-esmc/tests/test-helper` at http://localhost:7357/assets/vendor.js, line 180
    ---
        Log: |
            { type: 'error',
              text: 'Error: Could not find module `ember-mocha` imported from `emedia-esmc/tests/test-helper` at http://localhost:7357/assets/vendor.js, line 180\n' }
    ...
not ok 5 PhantomJS 1.9 - Global error: ReferenceError: Can't find variable: blanket at http://localhost:7357/assets/test-loader.js, line 119
    ---
        Log: |
            { type: 'error',
              text: 'ReferenceError: Can\'t find variable: blanket at http://localhost:7357/assets/test-loader.js, line 119\n' }
    ...
not ok 6 PhantomJS 1.9 - Global error: Error: Assertion Failed: The tests file was not loaded. Make sure your tests index.html includes "assets/tests.js". at http://localhost:7357/assets/vendor.js, line 16840
    ---
        Log: |
            { type: 'error',
              text: 'Error: Assertion Failed: The tests file was not loaded. Make sure your tests index.html includes "assets/tests.js". at http://localhost:7357/assets/vendor.js, line 16840\n' }
    ...

I encounter the same. Locking to the previous version (0.8.8) is the workaround for now.
@rwjblue So it seems to be related to the update of ember-test-helpers (this looks like the only difference between the two last releases).
The root error here seems to be that it cannot find the module 'ember-mocha'. I don't know how to go further

Can someone put together a demo repo that I can test with?

@rwjblue it's here: https://github.com/sly7-7/ember-mocha-bug
It's just an empty new app, with ember-cli-mocha installed.
launch ember test and the error is:
not ok 1 PhantomJS 2.0 - Global error: SyntaxError: Unexpected token '(' at http://localhost:7357/assets/test-support.js, line 2048
    ---
        Log: |
            { type: 'error',
              text: 'SyntaxError: Unexpected token \'(\' at http://localhost:7357/assets/test-support.js, line 2048\n' }
    ...
not ok 2 PhantomJS 2.0 - Global error: Error: Could not find module `ember-mocha` imported from `ember-mocha-bug/tests/test-helper` at http://localhost:7357/assets/vendor.js, line 173
    ---
        Log: |
            { type: 'error',
              text: 'Error: Could not find module `ember-mocha` imported from `ember-mocha-bug/tests/test-helper` at http://localhost:7357/assets/vendor.js, line 173\n' }
    ...
not ok 3 PhantomJS 2.0 - Global error: Error: Assertion Failed: The tests file was not loaded. Make sure your tests index.html includes "assets/tests.js". at http://localhost:7357/assets/vendor.js, line 15692
    ---
        Log: |
            { type: 'error',
              text: 'Error: Assertion Failed: The tests file was not loaded. Make sure your tests index.html includes "assets/tests.js". at http://localhost:7357/assets/vendor.js, line 15692\n' }
    ...

This line https://github.com/switchfly/ember-test-helpers/blob/master/lib/ember-test-helpers/test-module-for-acceptance.js#L19 is throwing Uncaught SyntaxError: Unexpected token {
Is this a compiler compatibilty problem, or something like that ?

Most likely this is not being babel transpiled properly.  I'm digging into it now...

@rwjblue I think this is the problem as well.
This is from the bower_components/ember-mocha/ember-mocha.js
// ...
      let { Application, config } = this.callbacks;
      let application;

      Ember['default'].run(() => {
        application = Application.create(config);
        application.setupForTesting();
        application.injectTestHelpers();
      });
// ...

Yep, I had made some changes to the ember-qunit build pipeline to allow us to use ember-test-helpers internally, but I forgot that I hadn't also updated the ember-mocha pipeline.
I'm working on updating right now, and will hopefully have a 0.8.10 published in the next hour or so....

Released 0.8.10 with the corrections from #72. I'll reopen this until someone can confirm that things are working properly again...

@rwjblue I had problems with an update from 0.8.8 to 0.8.9 (my ember test command simply hanged after Built project successfully.). But with 0.8.10 everything works fine :+1:

Awesome, thanks for confirming @pavloo.  I also confirmed with @sly7-7 in slack.
Closing this, sorry for all the troubles y'all!

Thanks for the good work guys!

I seem to have a similar issue with 0.8.11:
not ok 1 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: define at http://localhost:7357/assets/tests.js, line 1
    ---
        Log: |
            { type: 'error',
              text: 'ReferenceError: Can\'t find variable: define at http://localhost:7357/assets/tests.js, line 1\n' }
    ...
not ok 2 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: define at http://localhost:7357/assets/test-loader.js, line 3
    ---
        Log: |
            { type: 'error',
              text: 'ReferenceError: Can\'t find variable: define at http://localhost:7357/assets/test-loader.js, line 3\n' }
    ...
not ok 3 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: EmberENV at http://localhost:7357/6451/tests/index.html?hidepassed, line 39
    ---
        Log: |
            { type: 'error',
              text: 'ReferenceError: Can\'t find variable: EmberENV at http://localhost:7357/6451/tests/index.html?hidepassed, line 39\n' }
    ...

Unfortunately it's not reproducible and only happens sometimes causing the CI to randomly fail. if I restart the CI build it usually works fine again.

@turbo87 - I believe that is related to an issue opened recently in ember-cli.

@rwjblue I'm using 1.13.15 of ember-cli if that matters

@Turbo87 Did you ever resolve your issue? I am running into this as well.

@tavosansal I don't remember... 🙈    but I'm using ember-cli-mocha on a current project so in general it works fine.


Assignment Completed

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
Created new repositories, moved files.
What did you learn from the changes you have made?
How to do the above.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
No.
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
Watched the session videos.
How were these changes tested?
Pulled co-worker's file.
A reference to a related issue in your repository (if applicable)
Checklist

[X] I can confirm that my changes are working as intended

Wrong repo.


Enable all warnings (or close to all) in Xcode build

http://boredzo.org/blog/archives/2009-11-07/warnings


speedseq sv- error in svtyper step

Hi,
Attempting to use speedseq sv in this fashion (below) to produce a genotyped set of SV calls.  I do not have pre-prepared split read files or discordant read files.  I'm under the impression that this script should generate these files if absent.
speedseq sv -B bamfile.bam -R reference.fasta -t 8 -g -d -A -v
I get an error like this:
svtyper: error: argument -S/--split_bam: expected one argument
and it results from a call like this, with no splitter file named
/usr/bin/python27 /frazer01/software/speedseq-20151103/bin/svtyper -i 001a6b85-bf54-4e81-b4f7-cff27a06e863.mdup.bam.K2FpPZNdw40d/testbam.mdup.bam.sv.vcf -B /frazer01/projects/WGS/alignment_bwa/001a6b85-bf54-4e81-b4f7-cff27a06e863/001a6b85-bf54-4e81-b4f7-cff27a06e863.mdup.bam -S  > 001a6b85-bf54-4e81-b4f7-cff27a06e863.mdup.bam.K2FpPZNdw40d/001a6b85-bf54-4e81-b4f7-cff27a06e863.mdup.bam.sv.gt.vcf
I was curious about why this is happening.  Without the -g flag things run as I would expect and an annotated vcf.bz is produced.
Thanks in advance for your help!

The error is caused by the "-S" in your command without a parameter. -B, -S, and -D are all required for speedseq sv

Thanks for the quick reply- will try with those flags, didn't realize they were required.

So to be clear, will speedseq sv autogenerate split read and discordant files (as mentioned in documentation)?
a command like this fails for me:
speedseq sv -B bam.mdup.bam -S -D -R reference.fasta -t 8 -g -d -A -v
Error: BAM file -D not found.

if you align from BAM or fastq, "speedseq align" autogenerates split-read
and discordant files along with the aligned bam. but speedseq sv needs
those files to be pre-generated before running

Sent from mobile.
On Nov 12, 2015, at 17:09, djakubosky<EMAIL_ADDRESS>wrote:
So to be clear, will speedseq sv autogenerate split read and discordant
files (as mentioned in documentation)?
a command like this fails for me:
speedseq sv -B bam.mdup.bam -S -D -R reference.fasta -t 8 -g -d -A -v
Error: BAM file -D not found.
—
Reply to this email directly or view it on GitHub
https://github.com/hall-lab/speedseq/issues/60#issuecomment-156265898.

Ahh okay I undersand, we have pre-existing BWA-mem aligned bams- I'll go ahead and generate these splitters/disc files myself.  You can close this issue.
Thanks!
David


Add the Draft parameter for merge request structs

Currently, in GitLab 14.4.0 the draft url parameter is not implemented -
and I'm still unsure whether it should be? You still filter for non-draft
merge requests with wip=yes. If GitLab ever removes the wip url param
and replaces it with draft the typing of this field becomes a difficult
question I think, might be wrong here.
This should be backwards compatible due to the omitempty being in both the
Draft and WIP fields of the merge request structs.
Also adjusted the tests to use Draft: instead of WIP:. It might be worth
considering having tests for both but that would raise questions on which
behaviour to expect - the removed WIP: not working or until it is still in
supported versions to maintain backwards compatibility.
(This tries to work towards #1168)

The API doc is indeed quite confusion regarding the use of draft: there are no mention of ?draft= instead of ?wip= parameter and  there are nothing about the draft: field in the response body other than its presence in the snippets. However, I agree and like the approach you took of adding the Draft struct member instead of renaming/substituting WIP or WorkInProgress. It seems good to me.


MxNet triggered Segmentation Fault when using together with Ray or PyTorch

Platform: Ubuntu 16.04
MxNet version: 1.6.0 from pip (mxnet-cu90mkl --pre)
When MxNet is imported with some other commonly used library, such as ray and pytorch, segmentation fault happened.
With Ray, ray version: 0.7.3 (from pip)
import ray

@ray.remote
def foo():
	import mxnet
	return 1

def main():
	ray.init()
	a = foo.remote()
	ray.get(a)

if __name__ == '__main__':
	main()

Error messages:
(pid=13872) Fatal Python error: Segmentation fault
(pid=13872)
(pid=13872) Stack (most recent call first):
(pid=13872)   File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
(pid=13872)   File "<frozen importlib._bootstrap_external>", line 922 in create_module
(pid=13872)   File "<frozen importlib._bootstrap>", line 571 in module_from_spec
(pid=13872)   File "<frozen importlib._bootstrap>", line 658 in _load_unlocked
(pid=13872)   File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked
(pid=13872)   File "<frozen importlib._bootstrap>", line 971 in _find_and_load
(pid=13872)   File "/home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/torch/__init__.py", line 80 in <module>
(pid=13872)   File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
(pid=13872)   File "<frozen importlib._bootstrap_external>", line 678 in exec_module
(pid=13872)   File "<frozen importlib._bootstrap>", line 665 in _load_unlocked
(pid=13872)   File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked
(pid=13872)   File "<frozen importlib._bootstrap>", line 971 in _find_and_load
(pid=13872)   File "/home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/ray/pyarrow_files/pyarrow/serialization.py", line 230 in register_torch_serialization_handlers
(pid=13872)   File "/home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/ray/worker.py", line 1191 in _initialize_serialization
(pid=13872)   File "/home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/ray/worker.py", line 256 in get_serialization_context
(pid=13872)   File "/home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/ray/worker.py", line 327 in store_and_register
(pid=13872)   File "/home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/ray/worker.py", line 418 in _try_store_and_register
(pid=13872)   File "/home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/ray/worker.py", line 398 in put_object
(pid=13872)   File "/home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/ray/worker.py", line 880 in _store_outputs_in_object_store
(pid=13872)   File "/home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/ray/worker.py", line 967 in _process_task
(pid=13872)   File "/home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/ray/worker.py", line 1039 in _wait_for_and_process_task
(pid=13872)   File "/home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/ray/worker.py", line 1088 in main_loop
(pid=13872)   File "/home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/ray/workers/default_worker.py", line 98 in <module>
  File "<stdin>", line 13, in main
  File "/home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/ray/worker.py", line 2247, in get
    raise value
ray.exceptions.RayWorkerError: The worker died unexpectedly while executing this task.

With PyTorch,  torch version: 0.4.1.post2
import torch
import mxnet

Error messages:
Segmentation fault: 11

Stack trace:
  [bt] (0) /home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x341a7e0) [0x7f31f470a7e0]
  [bt] (1) /lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7f326afa54b0]
  [bt] (2) /home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/onnx/onnx_cpp2py_export.cpython-36m-x86_64-linux-gnu.so(+0x6601d) [0x7f319843901d]
  [bt] (3) /home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/onnx/onnx_cpp2py_export.cpython-36m-x86_64-linux-gnu.so(+0x71c4f) [0x7f3198444c4f]
  [bt] (4) /home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/onnx/onnx_cpp2py_export.cpython-36m-x86_64-linux-gnu.so(+0x56439) [0x7f3198429439]
  [bt] (5) /home/ubuntu/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/onnx/onnx_cpp2py_export.cpython-36m-x86_64-linux-gnu.so(PyInit_onnx_cpp2py_export+0x10f) [0x7f319842ce3f]
  [bt] (6) python(_PyImport_LoadDynamicModuleWithSpec+0x185) [0x560a0d8a6b85]
  [bt] (7) python(+0x215d85) [0x560a0d8a6d85]
  [bt] (8) python(PyCFunction_Call+0x131) [0x560a0d7a3ae1]

@anirudh2290 @larroy @zhreshold

It is related to the third-party memory allocation libraries, such as gperftools, tcmalloc, jemalloc. There is the same problem in other frameworks.

@wkcn Thanks! Good to know that. My goal is to use Ray together with MxNet. It seems Ray works fine with PyTorch.

Wanna check if there is any update or guidance over how to solve these issues? Does it mean mxnet and pytorch not to be imported at the same time?

Wanna check if there is any update or guidance over how to solve these issues? Does it mean mxnet and pytorch not to be imported at the same time?

Seems to be a solved issue for master branch / 2.0:
▶ ipython
Python 3.7.9 (default, Nov 20 2020, 23:58:42)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.9.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import torch

In [2]: import mxnet

In [3]: torch.__version__
Out[3]: '1.7.1'

In [4]: mxnet.__version__
Out[4]: '2.0.0'

Seems to be a solved issue for master branch / 2.0:
▶ ipython
Python 3.7.9 (default, Nov 20 2020, 23:58:42)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.9.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import torch

In [2]: import mxnet

In [3]: torch.__version__
Out[3]: '1.7.1'

In [4]: mxnet.__version__
Out[4]: '2.0.0'