Pool: Replaced RandomConn and NextConn with LeastBusyConn

Inspired by https://github.com/scylladb/gocql/pull/86
Fixes #137

this PR contains some unrelated code

My apologies, that wasn't intentional, quite frankly I am not sure how this code got there as I haven't made these changes.

And there is another connection that's at least 20% less busy. Then we use the least busy connection instead of the one that connects to the right shard.

Will do! Thanks!

func (c *Conn) moreLoadedThan(leastBusy *Conn) bool {
	return int(float64(c.Waiting())*loadDiffThreshold) > leastBusy.Waiting()
}

func (c *Conn) isHeavyLoaded() bool {
	return int(float64(c.Waiting())/heavyLoadThreshold) > maxStreamID
}

This may seem a bit clunky but allows us to have easily modifiable constants.

I like the idea.

Props for pushing it and fixing the test 💯.


Add sequence normalization using DataFrames; normalization bug fixes

Refer to this link for build results (access rights to CI server needed):
/job/datavec_PR/57/


Can't edit game if game folder is missing

I deleted the sandbox folder and tried to load a new game but go this error:

When editing a game, it should always create a new sandbox folder if one doesn't already exist.

The EditGame() method now looks for the Game Dir first before trying to delete it.


Codegen tool and query parameters for TasksOperations.ListAsync

Task listing method doesn't have parameter for filtering. As I understand before add it, I should run codegen tool to generate new models. I tried to run it, but got errors.
.\specgen.go:99:27: undefined: types.ContainerChange
.\specgen.go:113:27: undefined: types.ContainerProcessList
.\specgen.go:115:27: undefined: types.ImageDelete
.\specgen.go:116:27: undefined: types.ImageHistory
.\specgen.go:194:17: undefined: types.ContainerChange
.\specgen.go:239:17: undefined: types.ContainerProcessList
.\specgen.go:285:17: undefined: types.ImageDelete
.\specgen.go:288:17: undefined: types.ImageHistory

Is codegen tool still working?

Yes codegen works for me. Did you restore the vendor files? What is the specific method you are trying to add filtering for?

I tried to add filtering for TasksOperations.ListAsync. I found that it has filters parameter, but it doesn't exist in the dotnet client.

Oh I see. There is no parameters at all for ListAsync. I will submit a fix for this for ya. Thanks for pointing it out.


Adding an email under .com

Sorry!! I had tried to add this mail in ae file in place of .com, please consider the following

It's quite clear that this website is a fraud, so is there really a need to consider it further?

It's quite clear that this website is a fraud, so is there really a need to consider it further?

This email is used by literally thousands of students in the middle east, are you sure your qualified to reply??

@philipto This mailbox has been widely leaked on the Internet. I can find one and log in successfully, as shown in the picture below.

@philipto This mailbox has been widely leaked on the Internet. I can find one and log in successfully, as shown in the picture below.

@Robthebobs First stage of verification passed, official domain is twitter.com as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision. Proof of domain ownership: https://twitter.com/thiruvasu/status/1395066566027448321

@Robthebobs Regrettably, this request has signs of fraud. I have to close it without merging.

Sorry!! I had tried to add this mail in ae file in place of .com, please consider the following

I am aware of whether it is fraudulent or not. I can casually log into this mailbox. I initially uploaded the evidence and later deleted it. I simply lack the motivation to expose you.

@Robthebobs First stage of verification passed, official domain is twitter.com as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision. Proof of domain ownership: https://twitter.com/thiruvasu/status/1395066566027448321


Studying "The Best of: Jimmy O. Yang"

https://www.youtube.com/watch?v=lbicNSnF7e0

part 1.
like about 10 years ago, I went on a college trip to Tijuana, Mexico.
Because that's just what a good american college student would do.
and the thing is walking into mexico from US they don't check anything.
there's just a big revolving door, you walk right in, they don't check your id.
it's easier to get into mexico than costco. you just walk in. and that's it.
but coming back was totally different story. coming back from mexico to US, there is not more revolving doors. now it's concrete windowless tunnel with guards with m16 machine guns.
and i was super nervous being immigrant and all
my college buddy Ian next to me, he was lilke,
jimmy, don't worry man. just tell them you're american, they will let you right through.
i'm like, easy for you to say, Ian.
Ian walks up he gets through with no problem.
i walk up the first thing they asked me, they're like,
sir. are you an americal citizen?
i was like, yes.
but i forgot one very minor detail, that i wasn't.
i was still an immigrant on an green card.
and I wasn't a ~full a~ full-on citizen yet.
next thing you know i was detain in 10x10 box, and they started interrogating me.
they're like, sir, why did you lie ~by you're~ about your american citizenship?
i was like, I am so sorry. Im drunken. I really wasn't trying to lie. my friend in front of me told me to tell you i was american. and that's what I did. it's ~ease of~ knee-jerk reaction.
he was like, well is he american?
i was like, his name was ian. Probably.

and i was super nervous being immigrant and all
full-on_ citizen
knee jerk

part 2
will start from https://youtu.be/lbicNSnF7e0?t=96

part 3
will start from https://youtu.be/lbicNSnF7e0?t=196

part 4
start from https://youtu.be/lbicNSnF7e0?t=263

part 5
will start from https://youtu.be/lbicNSnF7e0?t=332

part 6
from https://youtu.be/lbicNSnF7e0?t=441

Questions

did you understand every story?
have you experienced any racial discrimination? (treating people unfavorably because he/she is of a certan race)
have you ever been caught by a policeman?


Test report not sending to Testrail with cypress:run --browser chrome command

Everything is fine when I run my tests with cypress:run command in headless electron
but when I run tests using cypress:run --browser chrome then the plugin is not sending the report to Testrail! Any configuration change needed to make it workable with chrome?

From my observation I've found that it is not related to any browser issue.
It doesn't work when the video property is set to video: false  in cypress.json.

Ah! finally found that it doesn't work in single run mode. If anyone wants to send the report when using chrome as the browser then just use  cypress run  --browser chrome --no-exit flag.

Finally It works on me, using chrome browser: yarn cypress run --browser chrome


Fixed bug of pruned weight won't be updated in back propagation with torch as framework.

Fixed bug of pruned weight won't be updated in back propagation with torch as framework.
Signed-off-by: Xinyu Ye<EMAIL_ADDRESS>Type of Change
Bug fix.
API not changed.
Description
detail description
JIRA ticket: xxx
Expected Behavior & Potential Risk
the expected behavior that triggered by this PR
How has this PR been tested?
how to reproduce the test (including hardware information)
Dependency Change?
any library dependency introduced or removed

/Azurepipeline run Model-Test


Correction for raw affiliation UMR 1110 MoISA, INRAE-Montpellier Supagro, 2 Place Viala, 34060 Montpellier Cedex 2, France

Correction needed for raw affiliation UMR 1110 MoISA, INRAE-Montpellier Supagro, 2 Place Viala, 34060 Montpellier Cedex 2, France
raw_affiliation_name: UMR 1110 MoISA, INRAE-Montpellier Supagro, 2 Place Viala, 34060 Montpellier Cedex 2, France
new_rors: 03rnk6m14;003vg9w96;011xg1225
previous_rors: 03rnk6m14;003vg9w96
works_examples: W4289229413
contact: 6c29fd29ae9571554907dee618d349a0:6e1397f73dcf40e0 @ supagro.fr

This issue was accepted and ingested by the OpenAlex team on 2024-12-19. The new affiliations should be visible within the next 7 days.


User/yreda/arm surgery

Closing this PR bc the v1 test day PR includes these changes and prob more fixes


doc: samples/synchronization: update README.rst

Updated with actual console results output to console. Also, when target board is
selected as qemu_x86_64, it shows the execution results on dual cpu.
Signed-off-by: Youndong Park<EMAIL_ADDRESS>

please close #36463


Request on mounted

I am working on a movie app and wanted to fetch all the information about the specific movie by id  ie: url/movie/[id] when I go to this page the first time it works well, but the second I refresh I get undefined, I've also tried putting this on the onMouted function and still same error. I'll share some of the code I've tried. I tried putting it the hook outside as well

In useQuery you should use the options called enabled. You shouldn't use useQuery inside the mounted hook as we don't know when it will fetch or how long it will take to fetch a query. I think what you could do:
const id;
const {data}  = useQuery("movie",  moviefetcher, {enabled: Boolean(id)})

onMounted(() => {
   id = 1
})

If your problem is not solved feel free to reopen the issue.


2 News files are added

Hi, hope you are well I have added two new files

@khawajaazfar2000, can you please elaborate on your work?


Stop cover image file errors from crashing the script

Fix for the issue seen in issue: https://github.com/aedocw/epub2tts/issues/280

Excellent, thanks for the patch!


Use FST as dictionary?

Just wanted to ask if you considered using FST as the dictionary. It allows efficient fuzzy queries with levenshtein distance for spelling correction. Look ups are also quite fast, and it provides pretty good compression. Iteration would be slower than a vec, but not sure why you would need that with the features it provides.
FST dicitonary
https://docs.rs/fst/latest/fst/
FST fuzzy queries
https://docs.rs/levenshtein_automata/latest/levenshtein_automata/

I did not consider using an FST, although it looks exceptionally cool. I'll toy around with it as soon as I have time. It should be pretty trivial to get it integrated into Harper (and hopefully speed up those spellcheck times).
Thanks for bringing it up!

This would be very cool, but I started looking into this, and it doesn't look like a drop-in replacement to me. The biggest differences are these:

Once constructed, a Map can never be modified.
Maps must be constructed with lexicographically ordered byte sequences. There is no restricting on the ordering of values.

The existence of MergedDictionary might make this feasible.
Fuzzy finding would be nice, but the documentation has this to say:

Warning: Levenshtein automatons use a lot of memory
The construction of Levenshtein automatons should be consider “proof of concept” quality. Namely, they do just enough > to be correct. But they haven’t had any effort put into them to be memory conscious.
Note that an error will be returned if a Levenshtein automaton gets too big (tens of MB in heap usage).

I'm not 100% sure how big of an issue this would be, but my understanding is that one of Harper's motivations is to have a small memory footprint (compared to LanguageTool).

I'm going to do a proof of concept implementation regardless, and just see how everything works out.

You probably should use https://crates.io/crates/levenshtein_automata for fuzzy search, as the fst one is broken. I don't think memory consumption will be an issue.

Can you elaborate on what you mean by broken?

https://github.com/BurntSushi/fst/issues/38

From what I read there, it looks like it is only broken for japanese characters (or maybe complex unicode in general), but considering Harper only supports english for the forseable future, I'll just make a note of it and continue with Fst in my proof of concept.


Global component not working

Following the video on creating global components and the button is not displaying on the page. It does seem to exist in the Vue inspector, just don't see it on the page. Any ideas?

I believe the syntax changed in Vue 2.4, and that video pre-dates it. Give the following a try and let me know if it works. If it doesn't, are you seeing any errors in the console?
import buttonComponent from './path/to/button.vue';

export default {
    'v-button': buttonComponent,
};

Perfect, thanks so much for the speedy reply. I'm pretty comfortable with October, just learning Vue so figuring out how they can work together is proving challenging.
Great work here though and thanks for your contributions!


Add asyncclick

https://github.com/python-trio/asyncclick

It doesn't seem well maintained unfortunately :/


Prevent html entity escaping on delete branch

Deletion confirmation message is escaping html tags.

Codecov Report

Merging #4471 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4471   +/-   ##
=======================================
  Coverage   20.08%   20.08%
=======================================
  Files         155      155
  Lines       31099    31099
=======================================
  Hits         6245     6245
  Misses      23898    23898
  Partials      956      956

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 fe78154...10c8acb. Read the comment docs.

This could be backport to v1.5


katib-db-manager: waiting for relational-db data

Bug Description
As shown in below logs, Katib-db-manager is continously waiting for the relation-db data from mysql which is still busy in installing the Agent
$ juju status
Model     Controller  Cloud/Region      Version  SLA          Timestamp
kubeflow  uk8sx       my-k8s/localhost  3.4.4    unsupported  11:04:24-07:00

App                        Version                  Status   Scale  Charm                    Channel          Rev  Address         Exposed  Message
admission-webhook                                   active       1  admission-webhook        1.8/stable       301  <IP_ADDRESS>  no
argo-controller                                     active       1  argo-controller          3.3.10/stable    424  <IP_ADDRESS>   no
dex-auth                                            active       1  dex-auth                 2.36/stable      422  <IP_ADDRESS>  no
envoy                      res:oci-image@cc06b3e    active       1  envoy                    2.0/stable       194  <IP_ADDRESS>   no
istio-ingressgateway                                active       1  istio-gateway            1.17/stable     1000  <IP_ADDRESS>   no
istio-pilot                                         active       1  istio-pilot              1.17/stable     1011  <IP_ADDRESS>  no
jupyter-controller                                  active       1  jupyter-controller       1.8/stable       849  <IP_ADDRESS>  no
jupyter-ui                                          active       1  jupyter-ui               1.8/stable       858  <IP_ADDRESS>   no
katib-controller           res:oci-image@31ccd70    active       1  katib-controller         0.16/stable      576  <IP_ADDRESS>  no
katib-db                                            waiting      1  mysql-k8s                8.0/stable       153  <IP_ADDRESS>   no       installing agent
katib-db-manager                                    waiting      1  katib-db-manager         0.16/stable      539  <IP_ADDRESS>  no       installing agent
katib-ui                                            active       1  katib-ui                 0.16/stable      422  <IP_ADDRESS>  no
kfp-api                                             active       1  kfp-api                  2.0/stable      1283  <IP_ADDRESS>  no
kfp-db                     8.0.36-0ubuntu<IP_ADDRESS>  active       1  mysql-k8s                8.0/stable       153  <IP_ADDRESS>   no
kfp-metadata-writer                                 active       1  kfp-metadata-writer      2.0/stable       334  <IP_ADDRESS>  no
kfp-persistence                                     active       1  kfp-persistence          2.0/stable      1291  <IP_ADDRESS>  no
kfp-profile-controller                              waiting      1  kfp-profile-controller   2.0/stable      1315  <IP_ADDRESS>   no       installing agent
kfp-schedwf                                         active       1  kfp-schedwf              2.0/stable      1302  <IP_ADDRESS>  no
kfp-ui                                              active       1  kfp-ui                   2.0/stable      1285  <IP_ADDRESS>   no
kfp-viewer                                          active       1  kfp-viewer               2.0/stable      1317  <IP_ADDRESS>   no
kfp-viz                                             active       1  kfp-viz                  2.0/stable      1235  <IP_ADDRESS>  no
knative-eventing                                    active       1  knative-eventing         1.10/stable      353  <IP_ADDRESS>  no
knative-operator                                    active       1  knative-operator         1.10/stable      328  <IP_ADDRESS>  no
knative-serving                                     active       1  knative-serving          1.10/stable      409  <IP_ADDRESS>  no
kserve-controller                                   active       1  kserve-controller        0.11/stable      523  <IP_ADDRESS>   no
kubeflow-dashboard                                  active       1  kubeflow-dashboard       1.8/stable       582  <IP_ADDRESS>   no
kubeflow-profiles                                   active       1  kubeflow-profiles        1.8/stable       355  <IP_ADDRESS>  no
kubeflow-roles                                      active       1  kubeflow-roles           1.8/stable       187  <IP_ADDRESS>   no
kubeflow-volumes           res:oci-image@2261827    active       1  kubeflow-volumes         1.8/stable       260  <IP_ADDRESS>  no
metacontroller-operator                             active       1  metacontroller-operator  3.0/stable       252  <IP_ADDRESS>  no
minio                      res:oci-image@1755999    active       1  minio                    ckf-1.8/stable   278  <IP_ADDRESS>  no
mlmd                       res:oci-image@44abc5d    active       1  mlmd                     1.14/stable      127  <IP_ADDRESS>   no
oidc-gatekeeper                                     active       1  oidc-gatekeeper          ckf-1.8/stable   350  <IP_ADDRESS>  no
pvcviewer-operator                                  active       1  pvcviewer-operator       1.8/stable        30  <IP_ADDRESS>   no
seldon-controller-manager                           active       1  seldon-core              1.17/stable      664  <IP_ADDRESS>   no
tensorboard-controller                              active       1  tensorboard-controller   1.8/stable       257  <IP_ADDRESS>  no
tensorboards-web-app                                active       1  tensorboards-web-app     1.8/stable       245  <IP_ADDRESS>  no
training-operator                                   active       1  training-operator        1.7/stable       347  <IP_ADDRESS>  no

Unit                          Workload     Agent  Address       Ports          Message
admission-webhook/0*          active       idle   <IP_ADDRESS>
argo-controller/0*            active       idle   <IP_ADDRESS>
dex-auth/0*                   active       idle   <IP_ADDRESS>
envoy/0*                      active       idle   <IP_ADDRESS>   9090,9901/TCP
istio-ingressgateway/0*       active       idle   <IP_ADDRESS>
istio-pilot/0*                active       idle   <IP_ADDRESS>
jupyter-controller/0*         active       idle   <IP_ADDRESS>
jupyter-ui/0*                 active       idle   <IP_ADDRESS>
katib-controller/0*           active       idle   <IP_ADDRESS>   443,8080/TCP
katib-db-manager/0*           waiting      idle   <IP_ADDRESS>                 Waiting for relational-db data
katib-db/0*                   unknown      idle   <IP_ADDRESS>
katib-ui/0*                   active       idle   <IP_ADDRESS>
kfp-api/0*                    active       idle   <IP_ADDRESS>
kfp-db/0*                     active       idle   <IP_ADDRESS>                 Primary
kfp-metadata-writer/0*        active       idle   <IP_ADDRESS>
kfp-persistence/0*            active       idle   <IP_ADDRESS>
kfp-profile-controller/0*     maintenance  idle   <IP_ADDRESS>                 Reconciling charm: executing component container:kfp-profile-controller
kfp-schedwf/0*                active       idle   <IP_ADDRESS>
kfp-ui/0*                     active       idle   <IP_ADDRESS>
kfp-viewer/0*                 active       idle   <IP_ADDRESS>
kfp-viz/0*                    active       idle   <IP_ADDRESS>
knative-eventing/0*           active       idle   <IP_ADDRESS>
knative-operator/0*           active       idle   <IP_ADDRESS>
knative-serving/0*            active       idle   <IP_ADDRESS>
kserve-controller/0*          active       idle   <IP_ADDRESS>
kubeflow-dashboard/0*         active       idle   <IP_ADDRESS>
kubeflow-profiles/0*          active       idle   <IP_ADDRESS>
kubeflow-roles/0*             active       idle   <IP_ADDRESS>
kubeflow-volumes/0*           active       idle   <IP_ADDRESS>   5000/TCP
metacontroller-operator/0*    active       idle   <IP_ADDRESS>
minio/0*                      active       idle   <IP_ADDRESS>  9000-9001/TCP
mlmd/0*                       active       idle   <IP_ADDRESS>   8080/TCP
oidc-gatekeeper/0*            active       idle   <IP_ADDRESS>
pvcviewer-operator/0*         active       idle   <IP_ADDRESS>
seldon-controller-manager/0*  active       idle   <IP_ADDRESS>
tensorboard-controller/0*     active       idle   <IP_ADDRESS>
tensorboards-web-app/0*       active       idle   <IP_ADDRESS>
training-operator/0*          active       idle   <IP_ADDRESS>

To Reproduce
sudo snap install microk8s --channel=1.29/stable --classic
sudo snap install juju --classic --channel=3.4/stable
microk8s config | juju add-k8s my-k8s --client
juju bootstrap my-k8s uk8sx
juju add-model kubeflow
juju deploy kubeflow --trust  --channel=1.8/stable

Environment
Microk8s: 1.29/stable
Juju: 3.4/stable
Kubeflow:1.8/stable

Relevant Log Output
$ kubectl logs katib-db-manager-0 -n kubeflow

2024-07-01T17:53:26.548Z [container-agent] 2024-07-01 17:53:26 INFO juju-log HTTP Request: PATCH https://<IP_ADDRESS>/apis/rbac.authorization.k8s.io/v1/clusterroles/katib-db-manager?force=true&fieldManager=lightkube "HTTP/1.1 200 OK"
2024-07-01T17:53:26.760Z [container-agent] 2024-07-01 17:53:26 INFO juju-log HTTP Request: PATCH https://<IP_ADDRESS>/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/katib-db-manager?force=true&fieldManager=lightkube "HTTP/1.1 200 OK"
2024-07-01T17:53:26.835Z [container-agent] 2024-07-01 17:53:26 INFO juju-log Reconcile completed successfully
2024-07-01T17:53:27.004Z [container-agent] 2024-07-01 17:53:27 INFO juju-log Found empty relation data for relational-db relation.
2024-07-01T17:53:27.052Z [container-agent] 2024-07-01 17:53:27 ERROR juju-log Failed to handle <UpdateStatusEvent via KatibDBManagerOperator/on/update_status[181]> with error: Waiting for relational-db data
2024-07-01T17:53:27.260Z [container-agent] 2024-07-01 17:53:27 INFO juju-log HTTP Request: GET https://<IP_ADDRESS>/api/v1/namespaces/kubeflow/services/katib-db-manager "HTTP/1.1 200 OK"
2024-07-01T17:53:27.423Z [container-agent] 2024-07-01 17:53:27 INFO juju-log HTTP Request: PATCH https://<IP_ADDRESS>/api/v1/namespaces/kubeflow/services/katib-db-manager "HTTP/1.1 200 OK"
2024-07-01T17:53:27.496Z [container-agent] 2024-07-01 17:53:27 INFO juju-log Kubernetes service 'katib-db-manager' patched successfully
2024-07-01T17:53:27.825Z [container-agent] 2024-07-01 17:53:27 INFO juju.worker.uniter.operation runhook.go:186 ran "update-status" hook (via hook dispatching script: dispatch)
2024-07-01T17:58:35.227Z [container-agent] 2024-07-01 17:58:35 INFO juju-log HTTP Request: GET https://<IP_ADDRESS>/apis/apiextensions.k8s.io/v1/customresourcedefinitions "HTTP/1.1 200 OK"
2024-07-01T17:58:35.632Z [container-agent] 2024-07-01 17:58:35 INFO juju-log Rendering manifests
2024-07-01T17:58:35.871Z [container-agent] 2024-07-01 17:58:35 INFO juju-log HTTP Request: PATCH https://<IP_ADDRESS>/apis/rbac.authorization.k8s.io/v1/clusterroles/katib-db-manager?force=true&fieldManager=lightkube "HTTP/1.1 200 OK"
2024-07-01T17:58:36.038Z [container-agent] 2024-07-01 17:58:36 INFO juju-log HTTP Request: PATCH https://<IP_ADDRESS>/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/katib-db-manager?force=true&fieldManager=lightkube "HTTP/1.1 200 OK"
2024-07-01T17:58:36.110Z [container-agent] 2024-07-01 17:58:36 INFO juju-log Reconcile completed successfully
2024-07-01T17:58:36.278Z [container-agent] 2024-07-01 17:58:36 INFO juju-log Found empty relation data for relational-db relation.
2024-07-01T17:58:36.322Z [container-agent] 2024-07-01 17:58:36 ERROR juju-log Failed to handle <UpdateStatusEvent via KatibDBManagerOperator/on/update_status[186]> with error: Waiting for relational-db data
2024-07-01T17:58:36.517Z [container-agent] 2024-07-01 17:58:36 INFO juju-log HTTP Request: GET https://<IP_ADDRESS>/api/v1/namespaces/kubeflow/services/katib-db-manager "HTTP/1.1 200 OK"
2024-07-01T17:58:36.680Z [container-agent] 2024-07-01 17:58:36 INFO juju-log HTTP Request: PATCH https://<IP_ADDRESS>/api/v1/namespaces/kubeflow/services/katib-db-manager "HTTP/1.1 200 OK"
2024-07-01T17:58:36.750Z [container-agent] 2024-07-01 17:58:36 INFO juju-log Kubernetes service 'katib-db-manager' patched successfully
2024-07-01T17:58:37.078Z [container-agent] 2024-07-01 17:58:37 INFO juju.worker.uniter.operation runhook.go:186 ran "update-status" hook (via hook dispatching script: dispatch)

Logs from mysql katib-db container
mysql.zip
Additional Context
No response

Hi @ACodingfreak thanks for reporting this!
Please note there is a katib-db-manager and a katib-db charm (which underneath is just the mysql-k8s charm). The katib-db-manager depends on the katib-db charm to be active, idle and serving; otherwise it will just go into a waiting status.
From the juju status output you have provided I can see:
katib-db                                            waiting      1  mysql-k8s                8.0/stable       153  <IP_ADDRESS>   no       installing agent

...
katib-db/0*                   unknown      idle   <IP_ADDRESS>

As you mentioned, it is stuck in waiting status with installing agent message. Unfortunately, the logs you have provided come from the katib-db-manager charm, which doesn't seem to be the one causing issues.
Pinging @paulomach, @shayancanonical - have you folks run into this? what other logs could be useful for debugging this issue?

my guess is that there is some sort of pebble issue causing mysqld to not start up, followed by errors connecting to the mysqld service. would you have the katib-db container still running? if so, would you be able to provide the output of pebble services as well as the content of /var/log/mysql/error.log and any logs from /var/log/mysql/archive_error/*.log?
relevant error traces from the mysql katib-db container logs.
the following error occurs numerous times first:
2024-07-01T16:44:14.625Z [container-agent] 2024-07-01 16:44:14 ERROR juju-log Uncaught exception while in charm code:
2024-07-01T16:44:14.625Z [container-agent] Traceback (most recent call last):
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/./src/charm.py", line 839, in <module>
2024-07-01T16:44:14.625Z [container-agent]     main(MySQLOperatorCharm)
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/main.py", line 548, in main
2024-07-01T16:44:14.625Z [container-agent]     manager.run()
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/main.py", line 527, in run
2024-07-01T16:44:14.625Z [container-agent]     self._emit()
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/main.py", line 516, in _emit
2024-07-01T16:44:14.625Z [container-agent]     _emit_charm_event(self.charm, self.dispatcher.event_name)
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/main.py", line 147, in _emit_charm_event
2024-07-01T16:44:14.625Z [container-agent]     event_to_emit.emit(*args, **kwargs)
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/framework.py", line 348, in emit
2024-07-01T16:44:14.625Z [container-agent]     framework._emit(event)
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/framework.py", line 860, in _emit
2024-07-01T16:44:14.625Z [container-agent]     self._reemit(event_path)
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/framework.py", line 950, in _reemit
2024-07-01T16:44:14.625Z [container-agent]     custom_handler(event)
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 544, in wrapped_function
2024-07-01T16:44:14.625Z [container-agent]     return callable(*args, **kwargs)  # type: ignore
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/./src/charm.py", line 648, in _on_mysql_pebble_ready
2024-07-01T16:44:14.625Z [container-agent]     self._configure_instance(container)
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 544, in wrapped_function
2024-07-01T16:44:14.625Z [container-agent]     return callable(*args, **kwargs)  # type: ignore
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/./src/charm.py", line 574, in _configure_instance
2024-07-01T16:44:14.625Z [container-agent]     container.restart(MYSQLD_SAFE_SERVICE)
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/model.py", line 2226, in restart
2024-07-01T16:44:14.625Z [container-agent]     self._pebble.restart_services(service_names)
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/pebble.py", line 2065, in restart_services
2024-07-01T16:44:14.625Z [container-agent]     return self._services_action('restart', services, timeout, delay)
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/pebble.py", line 2085, in _services_action
2024-07-01T16:44:14.625Z [container-agent]     resp = self._request('POST', '/v1/services', body=body)
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/pebble.py", line 1859, in _request
2024-07-01T16:44:14.625Z [container-agent]     response = self._request_raw(method, path, query, headers, data)
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/pebble.py", line 1898, in _request_raw
2024-07-01T16:44:14.625Z [container-agent]     response = self.opener.open(request, timeout=self.timeout)
2024-07-01T16:44:14.625Z [container-agent]   File "/usr/lib/python3.10/urllib/request.py", line 519, in open
2024-07-01T16:44:14.625Z [container-agent]     response = self._open(req, data)
2024-07-01T16:44:14.625Z [container-agent]   File "/usr/lib/python3.10/urllib/request.py", line 536, in _open
2024-07-01T16:44:14.625Z [container-agent]     result = self._call_chain(self.handle_open, protocol, protocol +
2024-07-01T16:44:14.625Z [container-agent]   File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
2024-07-01T16:44:14.625Z [container-agent]     result = func(*args)
2024-07-01T16:44:14.625Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/pebble.py", line 373, in http_open
2024-07-01T16:44:14.625Z [container-agent]     return self.do_open(
2024-07-01T16:44:14.625Z [container-agent]   File "/usr/lib/python3.10/urllib/request.py", line 1352, in do_open
2024-07-01T16:44:14.625Z [container-agent]     r = h.getresponse()
2024-07-01T16:44:14.625Z [container-agent]   File "/usr/lib/python3.10/http/client.py", line 1375, in getresponse
2024-07-01T16:44:14.625Z [container-agent]     response.begin()
2024-07-01T16:44:14.625Z [container-agent]   File "/usr/lib/python3.10/http/client.py", line 318, in begin
2024-07-01T16:44:14.625Z [container-agent]     version, status, reason = self._read_status()
2024-07-01T16:44:14.625Z [container-agent]   File "/usr/lib/python3.10/http/client.py", line 279, in _read_status
2024-07-01T16:44:14.625Z [container-agent]     line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
2024-07-01T16:44:14.625Z [container-agent]   File "/usr/lib/python3.10/socket.py", line 705, in readinto
2024-07-01T16:44:14.625Z [container-agent]     return self._sock.recv_into(b)
2024-07-01T16:44:14.625Z [container-agent] TimeoutError: timed out

after a while, the following error repeats in the logs
2024-07-01T16:51:12.515Z [container-agent] 2024-07-01 16:51:12 INFO juju-log Adding pebble layer
2024-07-01T16:51:13.639Z [container-agent] 2024-07-01 16:51:13 ERROR juju-log Failed to connect to MySQL with mysqlsh
2024-07-01T16:51:13.639Z [container-agent] Traceback (most recent call last):
2024-07-01T16:51:13.639Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/src/mysql_k8s_helpers.py", line 602, in _run_mysqlsh_script
2024-07-01T16:51:13.639Z [container-agent]     stdout, _ = process.wait_output()
2024-07-01T16:51:13.639Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/pebble.py", line 1635, in wait_output
2024-07-01T16:51:13.639Z [container-agent]     raise ExecError[AnyStr](self._command, exit_code, out_value, err_value)
2024-07-01T16:51:13.639Z [container-agent] ops.pebble.ExecError: non-zero exit code 1 executing ['/usr/bin/mysqlsh', '--no-wizard', '--python', '--verbose=1', '-f', '/tmp/script.py', ';', 'rm', '/tmp/script.py'], stdout='', stderr='Cannot set LC_ALL to locale en_US.UTF-8: No such file or directory\nverbose: 2024-07-01T16:51:13Z: Loading startup files...\nverbose: 2024-07-01T16:51:13Z: Loading plugins...\nverbose: 2024-07-01T16:51:13Z: Connecting to MySQL at<EMAIL_ADDRESS>(most recent call last):\n  File "<string>", line 1, in <module>\nmysqlsh.DBError: MySQL Error (1045): Shell.connect: Access denied for user<EMAIL_ADDRESS>(using password: YES)\n'
2024-07-01T16:51:13.639Z [container-agent]
2024-07-01T16:51:13.639Z [container-agent] During handling of the above exception, another exception occurred:
2024-07-01T16:51:13.639Z [container-agent]
2024-07-01T16:51:13.639Z [container-agent] Traceback (most recent call last):
2024-07-01T16:51:13.639Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/lib/charms/mysql/v0/mysql.py", line 3108, in check_mysqlsh_connection
2024-07-01T16:51:13.639Z [container-agent]     self._run_mysqlsh_script("\n".join(connect_commands))
2024-07-01T16:51:13.639Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 544, in wrapped_function
2024-07-01T16:51:13.639Z [container-agent]     return callable(*args, **kwargs)  # type: ignore
2024-07-01T16:51:13.639Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/src/mysql_k8s_helpers.py", line 605, in _run_mysqlsh_script
2024-07-01T16:51:13.639Z [container-agent]     raise MySQLClientError(e.stderr)
2024-07-01T16:51:13.639Z [container-agent] charms.mysql.v0.mysql.MySQLClientError: Cannot set LC_ALL to locale en_US.UTF-8: No such file or directory
2024-07-01T16:51:13.639Z [container-agent] verbose: 2024-07-01T16:51:13Z: Loading startup files...
2024-07-01T16:51:13.639Z [container-agent] verbose: 2024-07-01T16:51:13Z: Loading plugins...
2024-07-01T16:51:13.639Z [container-agent] verbose: 2024-07-01T16:51:13Z: Connecting to MySQL at<EMAIL_ADDRESS>2024-07-01T16:51:13.639Z [container-agent] Traceback (most recent call last):
2024-07-01T16:51:13.639Z [container-agent]   File "<string>", line 1, in <module>
2024-07-01T16:51:13.639Z [container-agent] mysqlsh.DBError: MySQL Error (1045): Shell.connect: Access denied for user<EMAIL_ADDRESS>(using password: YES)

2024-07-01T16:51:46.858Z [container-agent]
2024-07-01T16:51:46.916Z [container-agent] 2024-07-01 16:51:46 ERROR juju-log Uncaught exception while in charm code:
2024-07-01T16:51:46.916Z [container-agent] Traceback (most recent call last):
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/./src/charm.py", line 839, in <module>
2024-07-01T16:51:46.916Z [container-agent]     main(MySQLOperatorCharm)
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/main.py", line 548, in main
2024-07-01T16:51:46.916Z [container-agent]     manager.run()
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/main.py", line 527, in run
2024-07-01T16:51:46.916Z [container-agent]     self._emit()
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/main.py", line 516, in _emit
2024-07-01T16:51:46.916Z [container-agent]     _emit_charm_event(self.charm, self.dispatcher.event_name)
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/main.py", line 147, in _emit_charm_event
2024-07-01T16:51:46.916Z [container-agent]     event_to_emit.emit(*args, **kwargs)
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/framework.py", line 348, in emit
2024-07-01T16:51:46.916Z [container-agent]     framework._emit(event)
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/framework.py", line 860, in _emit
2024-07-01T16:51:46.916Z [container-agent]     self._reemit(event_path)
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/ops/framework.py", line 950, in _reemit
2024-07-01T16:51:46.916Z [container-agent]     custom_handler(event)
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 544, in wrapped_function
2024-07-01T16:51:46.916Z [container-agent]     return callable(*args, **kwargs)  # type: ignore
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/./src/charm.py", line 642, in _on_mysql_pebble_ready
2024-07-01T16:51:46.916Z [container-agent]     self._reconcile_pebble_layer(container)
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 544, in wrapped_function
2024-07-01T16:51:46.916Z [container-agent]     return callable(*args, **kwargs)  # type: ignore
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/./src/charm.py", line 395, in _reconcile_pebble_layer
2024-07-01T16:51:46.916Z [container-agent]     self._mysql.wait_until_mysql_connection()
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 544, in wrapped_function
2024-07-01T16:51:46.916Z [container-agent]     return callable(*args, **kwargs)  # type: ignore
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/tenacity/__init__.py", line 330, in wrapped_f
2024-07-01T16:51:46.916Z [container-agent]     return self(f, *args, **kw)
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/tenacity/__init__.py", line 467, in __call__
2024-07-01T16:51:46.916Z [container-agent]     do = self.iter(retry_state=retry_state)
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/tenacity/__init__.py", line 368, in iter
2024-07-01T16:51:46.916Z [container-agent]     result = action(retry_state)
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/tenacity/__init__.py", line 410, in exc_check
2024-07-01T16:51:46.916Z [container-agent]     raise retry_exc.reraise()
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/tenacity/__init__.py", line 183, in reraise
2024-07-01T16:51:46.916Z [container-agent]     raise self.last_attempt.result()
2024-07-01T16:51:46.916Z [container-agent]   File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
2024-07-01T16:51:46.916Z [container-agent]     return self.__get_result()
2024-07-01T16:51:46.916Z [container-agent]   File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
2024-07-01T16:51:46.916Z [container-agent]     raise self._exception
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/venv/tenacity/__init__.py", line 470, in __call__
2024-07-01T16:51:46.916Z [container-agent]     result = fn(*args, **kwargs)
2024-07-01T16:51:46.916Z [container-agent]   File "/var/lib/juju/agents/unit-katib-db-0/charm/src/mysql_k8s_helpers.py", line 232, in wait_until_mysql_connection
2024-07-01T16:51:46.916Z [container-agent]     raise MySQLServiceNotRunningError("Connection with mysqlsh not possible")
2024-07-01T16:51:46.916Z [container-agent] charms.mysql.v0.mysql.MySQLServiceNotRunningError: Connection with mysqlsh not possible

Hi All,
I did attach logs from katib-db container in the bug named as mysql.zip. Is this good enough ?
https://github.com/user-attachments/files/16057534/mysql.zip

Unfortunately, we dont yet have a tool similar to microk8s inspect which will dump all the logs required for troubleshooting the mysql charm - but I believe we have something similar in our backlog.
Were you able to get CKF running? If not, would you be able to provide us with the environment details where you're deploying CKF so we can reproduce the issue?

Note that the root of this bug is caused by MySQL bug
https://github.com/canonical/mysql-k8s-operator/issues/457

I am not sure if there is any new fix after I filed this issue but when I try the steps once again today it just works.


Update 'hyperkit' binary to newer version

Solution/Idea
This PR does some refactoring of the cache/versioning code, and then adds version checks for the hyperkit binary before updating it to a newer version.
Proposed changes
List main as well as consequential changes you introduced or had to introduce.

machine drivers/oc/goodhosts caching code is refactored, but there should not be any user-visible changes (apart from slightly different debug output)
hyperkit binary is upgraded from v0.20180403-36-ge3b37f to v0.20200224-44-gb54460
...

Testing
What is the bottom-line functionality that needs testing? Describe in pseudo-code or in English. Use verifiable statements that tie your changes to existing functionality.

Check that caching (including older version upgrades) of machine drivers/oc/goodhosts did not regress
Check that hyperkit is upgraded to a newer version after crc setup (won't work as expected at the moment as the newer binary is not uploaded yet to gtihub.com)

/hold
we need to first release the machine-driver-hyperkit with new hyperkit version before merging this one.

/hold
we need to first release the machine-driver-hyperkit with new hyperkit version before merging this one.

Are you referring to https://github.com/code-ready/machine-driver-hyperkit/blob/5f2c6ee9b191903b0eb8f1473a40ec7d4a51fc25/pkg/hyperkit/driver.go#L39 ? Or to something else?
If you are referring to the former, I don't think it's strongly tied to the hyperkit binary version we are using, as current crc releases use hyperkit v0.20180403-36-ge3b37f while the machine driver's go.mod uses github.com/moby/hyperkit v0.0.0-20171204115932-858492e3d919
I've tried the newer binary without machine driver changes and did not notice issues.

If your comment was referring to https://github.com/code-ready/machine-driver-hyperkit/blob/5f2c6ee9b191903b0eb8f1473a40ec7d4a51fc25/pkg/hyperkit/driver.go#L39 , I'd prefer to delay updating this until we look at adding disk resizing to machine-driver-hyperkit as it will be required at this point, and I'm not sure the update is trivial (there might be a hard dependency on qcow-tool being available)

I was referring to https://github.com/code-ready/crc/pull/1530/commits/4dc811828a98d9541af357aed47fc6b48e79a379 one since now the version check is in place for hyperkit binary and we are downloading this binary from the https://github.com/code-ready/machine-driver-hyperkit/releases/tag/v0.12.7 which contains an old version so if we merge this PR to master and someone test it on mac then he always going to get version mismatch for hyperkit binary

I was referring to 4dc8118 one since now the version check is in place for hyperkit binary and we are downloading this binary from the https://github.com/code-ready/machine-driver-hyperkit/releases/tag/v0.12.7 which contains an old version so if we merge this PR to master and someone test it on mac then he always going to get version mismatch for hyperkit binary

I dropped the last commit which was the problematic one, this should allow to move forward with the rest of the changes, and to add the missing commit at release time.


The value of property accessTierChangeTime is set when upload blob on block blob in Azurite

Error Description:
In Azure, property accessTierChangeTime is null when upload blob on block blob.
But in Azurite, property accessTierChangeTime has a value in this case.
To Reproduce:
Please run the demo code as following:
import { BlobServiceClient, StorageSharedKeyCredential } from "@azure/storage-blob";
import { assert } from "chai";

async function main() {
    const blobServiceClient = new BlobServiceClient("<Azurite-https-endpoint>", new StorageSharedKeyCredential("<account-name>", "<account-key>"));
    const containerClient = blobServiceClient.getContainerClient("<container-name>");
    await containerClient.create();
    const blockBlobClient = containerClient.getBlockBlobClient("<blob-name>");
    const content = "Hello World";
    await blockBlobClient.upload(content, content.length);

    const properties = await blockBlobClient.getProperties();
    assert.ok(!properties.accessTierChangedOn);
}

main();

Error Track:
https://github.com/Azure/Azurite/blob/master/src/blob/handlers/BlockBlobHandler.ts#L119

In Azurite, the value of property accessTierChangeTime is set when upload blob on block blob.
Expected Behavior:
In Azurite, property accessTierChangeTime is null when upload blob on block blob.
@jongio for notification.

@zzhxiaofeng
Thanks for raising this issue!
We will look at it.
Azurite welcome contribution.
It would be great if you can raise a PR to fix it.


Code highlight doesn't update unless a model is linked

Hello, I was testing this package and I found it quite interesting, however, I found a issue, which happens in the main demo too. If I update the code, aka, type a new one in the window, the new code won't have a new highlight. If I set a default code, it will have the highlight.
However, if I link it to a data model, the highlight works just fine. Below I gave some snippets.
Also, if that's expected, just ignore me :-P
Browser: Firefox 68.0.1
example code:
With this code the highlight doesn't work
Vue.use(BootstrapVue);
Vue.component("prism-editor", VuePrismEditor);

var default_app = new Vue({el: "#app"});

<prism-editor emit-events line-numbers language="js"></prism-editor>

With this code, the highlight work just fine.
Vue.use(BootstrapVue);
Vue.component("prism-editor", VuePrismEditor);

var default_app = new Vue({
    el: "#app",
    data: {
        code: ""
    }
});

<prism-editor v-model="code" emit-events line-numbers language="js"></prism-editor>

Also, if you want a complete working code can be found in my package:
https://github.com/Cerberus1746/PandaCoreData/tree/development/panda_core_data/ui

Hi thanks.
If you don't give a model what is the purpose of using it? Just trying to understand your use case.

Exactly! :V
But I took a while to realize what the issue was because I am a noob with vue. So I would suggest raising an exception if a model could not be found, and it was kinda weird because it was an error that was happening in the demo too.

Alright maybe we'll do sth about it :) Cheers.

Note! There's a point in not using the v-model, because there's a change event:
		<prism-editor
			v-model="___"
			:code="value"
			@change="handleChange"
			language="html"
			:lineNumbers="false"
		/>

S without v-model, it's still useful to use @change.


Improve the jsx transpiler

Add some sort of templating to see if we can allow lazy evaluation of functions
then improve the language parsing
handle all the edge cases of states

https://github.com/ucodery/fyeah - this is a good solution but we need to understand what is happening here

I want to create a way where we can compile/transpile something like this
def function():
...

def function2():
...

<pyml>
All the component code here and then it will be rendered in components.
</pyml>

Something to keep an eye on:
PEP 701 – Syntactic formalization of f-strings


Add CI for Pharo 8

IT does not work. Needs more time how to add pharo 8. I will create issue for this


246 constanttime

this closes issue #246

I didn't read the PR, but think there is no reason not to approve it.


[software/firmware] sequential motor control

We need smoother motion for our machine. Right now we stop at each corner; it would be better to interpolate between them.
https://github.com/modular-things/modular-things/blob/main/src/lib/virtualThings/synchronizer.js

The current code for the firmware is here: https://github.com/hackclub/haxidraw/blob/main/motor-control-board/firmware/firmware.ino


I'm asking for help!

I was on play.google.com, everything was fine. I decided to change my account, clicked on the profile on the top right and clicked "Change Account". Authorized in the selected account and then I had some sort of profile created in my browser. All my saved tabs, history, and in general everything was deleted. I lost everything. How do I get it back? I really need help please.

@Alex313031 (^_^)

@QueenUlyana If you added another account, you should be able to switch.
However, if you are using Google sync, you should sign out, then sign back in to the previous account.
Then, for adding the second one, click the profile button and at the bottom you should see an "Other profiles" section with the guest account and "+ Add". Click that to make a new profile, then once you are in that profile, sign in to your other google account.
From thereafter you can switch between the two.


Ensure pf rules (and firewall) are loaded.

Wait for the network connections to come up to avoid the DIOCADDRULE error and manually start up the firewall.

:fireworks:


Fixes #453 ink strokes not captured until stylus up

This fixes #453 by using reflection to get a frozen copy of DrawingGroups from the inking thread's real-time visual. Under normal use cases, it seems strokes are transitioned from the inking thread to the UI thread's InkCanvas when completed (e.g. stylus up). However, in our sort of unique case of animating the drawing process, we do want to see the real-time visual incrementally, so this fix pulls over the partial stroke as DrawingGroups into an image overlay that is Z-ordered above the InkCanvas. This extra partial-stroke-copy logic is only performed when a capture is desired (via thetimer), and the inking overlay is emptied when no partial stroke is alive.

Thanks for taking your time to deal with that issue. I'm waiting to get in hands with a computer with touch this week in order to test it.

I still could not test it, is it working ok for you?

Sorry I'm lame - I got pulled into overtime at work. There is still the
edge case that results in it going all wonky. I'll try to fix it this
weekend.
On Thu, Dec 5, 2019 at 8:32 PM Nicke Manarin<EMAIL_ADDRESS>wrote:

I still could not test it, is it working ok for you?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NickeManarin/ScreenToGif/pull/540?email_source=notifications&email_token=AADV6U4EH63KNR2766WF6HDQXGTTZA5CNFSM4JCQFJLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGCXBAY#issuecomment-562393219,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADV6U5IHFN5NQ3ZZJJKS2TQXGTTZANCNFSM4JCQFJLA
.

Sorry for the delay again. I was able to test the recorder by using an input injector (mouse input to touch or pen input).
The recorder looks fine.
If it's still janky, maybe the TransparentCornerPoint could use the width and height of the current board size.


Challenge fails claiming dns provider does not control specified zone

Logs below
{"level":"error","ts":1710942267.4963665,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"*.some.domain","issuer":"acme.zerossl.com-v2-DV90","error":"[*.some.domain] solving challenges: presenting for challenge: adding temporary record for zone \"some.domain.\": This DNS provider (https://XXXXXXXX/admin/dns/custom) does not control the specified zone (some.domain) (order=https://acme.zerossl.com/v2/DV90/order/WS5yvMALdQHOjQ5hf1GKkQ) (ca=https://acme.zerossl.com/v2/DV90)"}
{"level":"error","ts":1710942267.4964108,"logger":"tls.obtain","msg":"will retry","error":"[*.some.domain] Obtain: [*.some.domain] solving challenges: presenting for challenge: adding temporary record for zone \"some.domain.\": This DNS provider (https://XXXXXXX/admin/dns/custom) does not control the specified zone (some.domain) (order=https://acme.zerossl.com/v2/DV90/order/WS5yvMALdQHOjQ5hf1GKkQ) (ca=https://acme.zerossl.com/v2/DV90)","attempt":1,"retrying_in":60,"elapsed":1.595847131,"max_duration":2592000}
{"level":"info","ts":1710942327.497451,"logger":"tls.obtain","msg":"obtaining certificate","identifier":"*.some.domain"}
{"level":"info","ts":1710942327.9719977,"logger":"tls.issuance.acme.acme_client","msg":"trying to solve challenge","identifier":"*.some.domain","challenge_type":"dns-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
{"level":"error","ts":1710942327.9720736,"logger":"tls.issuance.acme.acme_client","msg":"cleaning up solver","identifier":"*.some.domain","challenge_type":"dns-01","error":"no memory of presenting a DNS record for \"_acme-challenge.some.domain\" (usually OK if presenting also failed)"}
{"level":"error","ts":1710942328.0477962,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"*.some.domain","issuer":"acme-v02.api.letsencrypt.org-directory","error":"[*.some.domain] solving challenges: presenting for challenge: adding temporary record for zone \"some.domain.\": This DNS provider (https://XXXXXXX/admin/dns/custom) does not control the specified zone (some.domain) (order=https://acme-staging-v02.api.letsencrypt.org/acme/order/141047364/15402251954) (ca=https://acme-staging-v02.api.letsencrypt.org/directory)"}
{"level":"info","ts":1710942328.684937,"logger":"tls.issuance.zerossl.acme_client","msg":"trying to solve challenge","identifier":"*.some.domain","challenge_type":"dns-01","ca":"https://acme.zerossl.com/v2/DV90"}
{"level":"error","ts":1710942328.684999,"logger":"tls.issuance.zerossl.acme_client","msg":"cleaning up solver","identifier":"*.some.domain","challenge_type":"dns-01","error":"no memory of presenting a DNS record for \"_acme-challenge.some.domain\" (usually OK if presenting also failed)"}
{"level":"error","ts":1710942328.8402696,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"*.some.domain","issuer":"acme.zerossl.com-v2-DV90","error":"[*.some.domain] solving challenges: presenting for challenge: adding temporary record for zone \"some.domain.\": This DNS provider (https://XXXXXXX/admin/dns/custom) does not control the specified zone (some.domain) (order=https://acme.zerossl.com/v2/DV90/order/m6URXUNOEEFuLhd7VFs5IQ) (ca=https://acme.zerossl.com/v2/DV90)"}
{"level":"error","ts":1710942328.840312,"logger":"tls.obtain","msg":"will retry","error":"[*.some.domain] Obtain: [*.some.domain] solving challenges: presenting for challenge: adding temporary record for zone \"some.domain.\": This DNS provider (https://XXXXXX/admin/dns/custom) does not control the specified zone (some.domain) (order=https://acme.zerossl.com/v2/DV90/order/m6URXUNOEEFuLhd7VFs5IQ) (ca=https://acme.zerossl.com/v2/DV90)","attempt":2,"retrying_in":120,"elapsed":62.93974797,"max_duration":2592000}

It looks like you have your caddy file misconfigured. From this log, I can see that caddy is trying to get a wildcard cert for the domain some.domain from your box dns server at https://box.jtg.business.  Since some.domain isn't a real TLD, I'm guessing this is a mistake. The wildcard part of the config should say *.jtg.business instead of *.some.domain
If you don't see the mistake, post your caddy file here with the sensitive stuff masked (passwords, email address, maybe ip addresses,) and I'll see if I can help.

@luv2code Thanks for reply. Would you mind removing the domain from your reply. I meant to edit it out to all XXXXX. Ive updated my original post to do that.
As for the domain, I was using some.domain as a place holder for my actual domain. It was indeed the correct domain.
http://some domain:some port{
 reverse_proxy some ip:some port
}

*.some.domain:some port{
 reverse_proxy localip:port
 tls {
  dns mailinabox {
   api_url https://domain here/admin/dns/custom
   email_address email here
   password password here
  }
 }
}

Would you mind removing the domain from your reply.

done.
so you figured it out?

Would you mind removing the domain from your reply.

done.
so you figured it out?

Thank you. Would you mind also deleting the edit revision history. If you click the little edited arrow and then click the old one and then click delete revision.
No I never got it working. It just continued to get the below error:
This DNS provider (https://XXXXXX/admin/dns/custom) does not control the specified zone

I am not really sure how to debug further as I am 100% sure it does control the domain. I am using acme.sh and the cerbot dns-multi now with mailinabox and it works fine

OIC, so you tried to replace your domain with "some.domain" in the logs but you missed a couple.
If your box address is https://box.business.com, the log message says:
This DNS provider (https://box.business.com/admin/dns/custom) does not control the specified zone (business.com)

If your box is at box.business.com, and you're trying to get a wildcard for *.shop.com, it won't work because multi-zone mail-in-a-box dns isn't supported by this plugin yet.
the code that is throws this error is here:
https://github.com/libdns/mailinabox/blob/e163e289a4429e66fd270f32bef22450539cbe1d/provider.go#L40
It checks that the zone, "business.com", is contained withing the API string, "https://box.business.com/admin/dns/custom". If it isn't, this error is logged and it doesn't work.

Ah okay well that would explain the issue I am having then. I assumed as long as my mail in the box(MIAB) had the domain it would work. I didnt think there was any difference really. Just to make sure I am understanding correctly though I am going to give an example of what I ideally want and just confirm its not supported.
So, I have the domain lets call it miab.com, and my mail in a box server(MIAB) is configured on this domain such that the admin interface is at box.miab.com. This same MIAB server also hosts another domain, lets call it caddy.com. Now I want to use this addon to get a certificate for proxy.caddy.com. Even though caddy.com is hosted on a MIAB server, because the admin domain does not match the domain of the certificate it will not work.

You got it right.
It only doesn't work because I don't have the inclination to make it work. My box only hosts a single domain. To make it work with multiple, I'd want to set my own box up to with multiple zones to test. I just don't need or want to do that.
I did add a note to the readme so maybe others can avoid this confusion.

Okay cool noted. Shall I close this issue for the time being then noted its not supported?


fix hpc7g

This gets lammps running, but now I do not have a container with efa for usernetes. So I want to switch batch to hpc6a and see if I can fix there as well

It's working. My god. It's slow (as expected) but I'm really not bothered by it!


get the "run-operator-playbook" make target to behave more like a deployed operator

part of: #3528
This goes with https://github.com/kiali/kiali/pull/3530

To test, see: https://github.com/kiali/kiali/pull/3530#issuecomment-747115963


Getting an error when running az aks kollect

Describe the bug
Running "az aks kollect" command, will install the "aks-periscope" tool. However, I get the following message. Looks like the link to the repo is not correct:
Deploying aks-periscope
b"error: rawResources failed to read Resources: Load from path https://github.com/azure/aks-periscope//deployment/base?ref=v0.9 failed: evalsymlink failure on '/tmp/tmpe6p4e62s/https:/github.com/azure/aks-periscope/deployment/base?ref=v0.9' : lstat /tmp/tmpe6p4e62s/https:: no such file or directory\n"
To Reproduce

Run "az aks kollect" command

https://github.com/Azure/aks-periscope/tree/master/deployment/base (correct link)
https://github.com/azure/aks-periscope//deployment/base?ref=v0.9 (the link Azure CLI expects)

Thanks @zaalion for re3porting this against this repo, this is azure-cli issue, but glad you mentioned so that we can take a quicker look.
Can you please share what version of az-cli and aks-preview cli extension you are running? Here is a successful run from my local (screenshots below) Please give it a try with latest if the version is not the latest. Please let us know how it goes and we can dig a little deeper to help you. ☕ cc @peterbom as well.
For further unblocking help: If you want to get unblocked you could use some the yaml deployment directly and a small guidance here: https://github.com/Azure/aks-periscope#dependent-consuming-tools-and-working-contract or you can use VsCode AKS extension.

Thanks and I hope this helps,

Update: I updated to your versions, but I still get the error

:

All good @zaalion, Thank you! glad you have got the latest now. ☕💡
Cool, so from what I can see form the error message in azure-cli and the specific line of code of CLI here is: https://github.com/Azure/azure-cli-extensions/blob/main/src/aks-preview/azext_aks_preview/aks_diagnostics.py#L128

Is your resourceGroupName has https:/*** in it? it is trying to make the temp directory with https which seems be be failing.

FYI and cc: @peterbom for eyes and ideas as well. thanks,

Hello there @zaalion , can you please share your kubectl version you are running locally? cmd -> “kubectl version”
Reason we ask because an older version of kubectl might not be able to handle kustomize file formal we use.
Thank you cc: @peterbom ☕

https://github.com/Azure/aks-periscope/tree/master/deployment/base (correct link) https://github.com/azure/aks-periscope//deployment/base?ref=v0.9 (the link Azure CLI expects)

@zaalion: The kustomization.yaml file that we generate uses the remote directories feature to reference a kustomize base in a GitHub repository. That's why the reference isn't a normal URL that you can navigate to in a browser.
I'm pretty sure the reference we're constructing is correct, at least for recent kubectl versions. But it could be that this feature is not implemented (or implemented differently) in the version of Kustomize that's embedded in the kubectl version you're using (hence the question from @Tatsinnit).
I'll run some tests to see what versions it does and doesn't work in, which I'll post back to this thread. If that does turn out to be the problem, we might need to update our documentation to be more explicit about which versions are supported.

Thanks. Looking forward to the update.
Best
On Mon, Jun 27, 2022 at 11:36 PM peterbom @.***> wrote:

https://github.com/Azure/aks-periscope/tree/master/deployment/base
(correct link)
https://github.com/azure/aks-periscope//deployment/base?ref=v0.9 (the
link Azure CLI expects)
@zaalion https://github.com/zaalion: The kustomization.yaml file that
we generate uses the remote directories
https://github.com/kubernetes-sigs/kustomize/blob/master/examples/remoteBuild.md#remote-directories
feature to reference a kustomize base in a GitHub repository. That's why
the reference isn't a normal URL that you can navigate to in a browser.
I'm pretty sure the reference we're constructing is correct, at least for
recent kubectl versions. But it could be that this feature is not
implemented (or implemented differently) in the version of Kustomize that's
embedded in the kubectl version you're using (hence the question from
@Tatsinnit https://github.com/Tatsinnit).
I'll run some tests to see what versions it does and doesn't work in,
which I'll post back to this thread. If that does turn out to be the
problem, we might need to update our documentation to be more explicit
about which versions are supported.
—
Reply to this email directly, view it on GitHub
https://github.com/Azure/aks-periscope/issues/184#issuecomment-1168180501,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABV346QM6RMY45GHKPBRA4TVRJXM7ANCNFSM5ZY2WBUA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Reza Salehi
https://www.linkedin.com/in/rezasalehi2008

@zaalion - yep, that does appear to be the problem. I can replicate your issue in kubectl versions prior to 1.21.0.
I'm guessing you're on 1.20 or below? Would you be able to upgrade to a more recent version and see if the error goes away?

Hiya @zaalion , please let us know how it goes, like @peterbom pointed out seems like this is likely because of the old version of kubectl, please feel free to loop back, other wise we can more clearly document this at our repo level and close it if there is no further action is in need. Thank you so much.

Thanks. Yes, upgradingh Kubectl to the latest version fixced the issue. Thanks!

Yes! It works with the latest kubectl version.
Thanks for your help,
Best!
On Tue, Jun 28, 2022 at 12:01 AM peterbom @.***> wrote:

@zaalion https://github.com/zaalion - yep, that does appear to be the
problem. I can replicate your issue in kubectl versions prior to 1.21.0.
I'm guessing you're on 1.20 or below? Would you be able to upgrade to a
more recent version and see if the error goes away?
—
Reply to this email directly, view it on GitHub
https://github.com/Azure/aks-periscope/issues/184#issuecomment-1168192031,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABV346XMRJDCA6GWMMJKDNLVRJ2LBANCNFSM5ZY2WBUA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Reza Salehi
https://www.linkedin.com/in/rezasalehi2008


autoMenuHide doesnt reflect

I have set my new browser window autoHideMenuBar: True
When I look a the titlebar generated from the package it doesn't reflect it.
Using the documentation to create new menus causes construct errors in angular 8

Can you attach your code?


Dark theme support

Nice work on this extension!
Dark theme support would be great:

Also it works great with Uno Platform apps :)

Hey @jeromelaban , thanks for your feedback!
I will fix that soon!

Closed as completed in 1.0.0


Add equivalent to nginx's auth_request

I have recently seen https://github.com/bitly/oauth2_proxy which is an interesting way to manage access to internal applications. At the end of the readme use of nginx's auth_request functionality is used to implement authentication without proxying every request. It would be nice to be able to do that in Caddy.
It seems to be that two things are missing to achieve equivalence with the nginx example:

Caddy's errors directive does not allow a URL to be given for an error code, only a static file as far as I am aware. This could be worked around with clientside JS on the error, but that's not a nice solution.

Caddy lacks support for auth_request, whilst this could be implemented in middleware I believe, it would be nice functionality to have built in.

This echoes my thoughts exactly. We're using Caddy at our company to proxy all our internal webservices to the world (and because it automatically takes care of TLS certs), but authentication is currently a pain. We're using nginx with auth_request to great success to authenticate against our internal LDAP, but if we could drop nginx and have the proxying done fully in Caddy, it would be ideal.

Guessing that you read hacker news as well... I had pretty much the same request wrt #1506 myself...

This will not be done

Why not?

@skorokithakis Why not what?

@mholt I got an email notification from you posting on this thread "This will not be done", but it's not here any more, odd.

@skorokithakis That wasn't me. :wink: https://twitter.com/mholt6/status/857335971733319680

Huh, damn. How do we know what's real and what's not?!

@skorokithakis My account says "Owner" on comments in this repository. Also my profile won't be empty: https://twitter.com/mholt6/status/857335173012086784

Ah, right. That's some good masquerading, though.

@skorokithakis Meh, don't give him any credit. My comments usually sound intelligent. 😅
Okay -- back on topic.
To be honest, I haven't looked into this issue enough to know how to implement it. I'm guessing this would be a good plugin though?

Yes, it would certainly be a good plugin (and should probably be a plugin rather than something in core). Unfortunately, I'm not very good with Go and worse with Caddy internals, so I can't help much on this one.
However, basically:

Receive HTTP Basic auth credentials.
Issue a request with the same credentials (still with HTTP Basic) to a pre-configured URL.
If that URL returns 200, allow the auth. 401/403 fails the auth, anything else returns a 500.

That's pretty much it. That would enable us to write a small authentication daemon and basically bolt on whatever type of auth we want (Kerberos, IMAP, LDAP) to Caddy.

@mholt is possible to redirect to a different URL if the code is 401 (to allow a custom login page)

@skorokithakis Great, that's helpful -- I think that's a pretty easy plugin to write. Here are instructions: https://github.com/mholt/caddy/wiki/Writing-a-Plugin:-Directives
And yeah, it could definitely redirect to a different URL if the status is 401.
I think I'll close this, though, since we don't use this issue tracker for plugins -- just Caddy itself. But I would be happy to see this put up on the Caddy website if anyone wants to write it!

For others on this thread, http.reauth's upstream is basically this: https://github.com/freman/caddy-reauth#upstream


Hibernation

Hi Tobias,
ty for the huge amount of work you put into translating qowyns java code to C#.
Have you planned to integrate hibernation entries any time ? It is not used on dedicated servers, but is default for single player and non-dedicated servers (few players).
Pete

Hello!
What are hibernation entries? Are you able to elaborate on the problem you experience with extracting singleplayer saves?
If you have a savegame I can look at that would help in tracking down the problem.
If you want you can contact me on Discord, my tag is Tobias#5051.

Support for reading hibernation entries is already implemented in ark-savegame-toolkit:
https://github.com/Qowyn/ark-savegame-toolkit/blob/master/src/main/java/qowyn/ark/ArkSavegame.java
https://github.com/Qowyn/ark-savegame-toolkit/blob/master/src/main/java/qowyn/ark/HibernationEntry.java

That's what I told you on sunday on Discord, it's your decision to implement it or not.

Yes. This is the issue tracking system. All information relevant to solving an issue gets added here :)


adding Nuget and Twitter badges

Current coverage is 75.43%

Merging #355 into master will decrease coverage by -0.28% as of 1ddd50a

@@            master    #355   diff @@
======================================
  Files           45      45
  Stmts         4673    4673
  Branches       418     418
  Methods
======================================
- Hit           3538    3525    -13
+ Partial        181     179     -2
- Missed         954     969    +15

Review entire Coverage Diff as of 1ddd50a

Powered by Codecov. Updated on successful CI builds.

LGTM


Shader power type doesn't change based on conditions or changing origins.

If you have a custom power with shader as the type on a custom origin, when you switch origins, the shader isn't removed and the effect still applies. The same goes for if the shader is conditioned based.
Code:
shader_power.json:
{
  "type": "origins:shader",
  "shader": "minecraft:shaders/post/blur.json",
  "condition": {
  	"type": "origins:exposed_to_sky"
  }
}

test_origin.json:
{
	"impact": 4,
	"order": 1,
	"icon": "minecraft:iron_pickaxe",
	"powers": [
		"<modid>:sun_blinded"
	]
}

Expected:

When the player is in sunlight, the "blur" effect should be applied.

Actual:

The "blur" effect is permanently applied, regardless of switching classes or going into the dark. That is, until you perform a resource reload.

What works:

If you switch to the origin with the shader power, the shader is applied.

Fixed in version 0.6.0.


1.5.1: Failed to parse id_token

I have an angular 6 project where I use the latest oidc-client<EMAIL_ADDRESS>angular@6.0.4).
During dev-builds everything works as expected, but when I make a production build by ng build --prod, the method UserManager.signinRedirectCallback() (which gets called right after the authentication server redirected to the app's auth-callback) throws the error "Failed to parse id_token".
Has anybody experienced the same error? I did not change anything on my code, but updating oidc-client to v1.5.1 (from 1.5.0).
When i revert oidc-client back to 1.5.0, everythings works as expected again (also in production builds).
I will try to prepare a StackBlitz for monday, but I don't know if the error will show up, since it occurs in production builds only...

Same error here when updating to<EMAIL_ADDRESS>

Sorry, I also should have asked for the client-side logs. That might help where in the workflow it's failing to parse the id_token.

Also, if the only thing that changed was a version of angular then it makes me wonder if somehow the id_token is being truncated in some way?

Also I have the same problem with the version oidc-client 1.5.1 and angular 6. In one SPA where the URL is shorter is working also with 1.5.1 and in one with longer url and /de or /en on end is not working with 1.5.1 but is working with 1.5.0.

My client-side error-logs:

ResponseValidator._validateIdToken: Failed to parse id_token
{…}
header: null
payload: null
proto: Object { … }

Error: Failed to parse id_token
Stack trace:
3Rfw/e.exports</t.ResponseValidator</e.prototype._validateIdToken@http://my.internal.url/main.f5e30e257df08d940baa.js:1:71847
3Rfw/e.exports</t.ResponseValidator</e.prototype._validateIdTokenAndAccessToken@http://my.internal.url/main.f5e30e257df08d940baa.js:1:71407
3Rfw/e.exports</t.ResponseValidator</e.prototype._validateTokens@http://my.internal.url/main.f5e30e257df08d940baa.js:1:71095
3Rfw/e.exports</t.ResponseValidator</e.prototype.validateSigninResponse/<@http://my.internal.url/main.f5e30e257df08d940baa.js:1:66780
0TWp/</</u</t.prototype.invoke@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:8059
onInvoke@http://my.internal.url/main.f5e30e257df08d940baa.js:1:332799
0TWp/</</u</t.prototype.invoke@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:7986
0TWp/</</i</n.prototype.run@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:3219
D/<@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:14483
0TWp/</</u</t.prototype.invokeTask@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:8734
onInvokeTask@http://my.internal.url/main.f5e30e257df08d940baa.js:1:332711
0TWp/</</u</t.prototype.invokeTask@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:8647
0TWp/</</i</n.prototype.runTask@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:3910
d@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:10963
0TWp/</</c</n.invokeTask@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:9864
m@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:20756
b@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:20988

...this refers to the method parseJwt@oidc-client.js:11924:
JoseUtil.parseJwt = function parseJwt(jwt) {
    _Log.Log.debug("JoseUtil.parseJwt");
    try {
        var token = _jsrsasign.jws.JWS.parse(jwt);
        return {
            header: token.headerObj,
            payload: token.payloadObj
        };
    } catch (e) {
        _Log.Log.error(e);
    }
};

which is called by the method _validateIdToken@oidc-client.js:11686:
    var jwt = this._joseUtil.parseJwt(response.id_token);
    if (!jwt || !jwt.header || !jwt.payload) {
        _Log.Log.error("ResponseValidator._validateIdToken: Failed to parse id_token", jwt);
        return Promise.reject(new Error("Failed to parse id_token"));
    }

Somewhere in the processing the token header and payload became null, so let's dig deeper:
I  logged the token which is passed to the method _jsrsasign.jws.JWS.parse(jwt); and decoded it at jwt.io:
JoseUtil.parseJwt = function parseJwt(jwt) {
    _Log.Log.debug("JoseUtil.parseJwt");
    _Log.Log.info(jwt): // <-- token logged here
    try {
        var token = _jsrsasign.jws.JWS.parse(jwt);
        return {
            header: token.headerObj,
            payload: token.payloadObj
        };
    } catch (e) {
        _Log.Log.error(e);
    }
};

Decoded token:
    HEADER:ALGORITHM & TOKEN TYPE
    {
      "alg": "RS256",
      "kid": "--hidden--",
      "typ": "JWT"
    }

    PAYLOAD:DATA
    {
      "nbf":<PHONE_NUMBER>,
      "exp":<PHONE_NUMBER>,
      "iss": "--hidden--",
      "aud": "--hidden--",
      "nonce": "0a31733215fb44feaf5ba6de037cf182",
      "iat":<PHONE_NUMBER>,
      "at_hash": "AUEkF42sPR2WOSn0KqWDpg",
      "sid": "705a5fc38f40260daa5755b312585cd7",
      "sub": "--hidden--",
      "auth_time":<PHONE_NUMBER>,
      "idp": "local",
      "amr": [
        "pwd"
      ]
    }

...looks valid. Any ideas?

Oh, I missed a log message:

UserManager.getUser: user not found in storage

This message gets logged 3 times (after my app's auth-callback gets called and right before the id_token related error messages get logged).

Changed Log.level to DEBUG:

Switched to http://my.internal.url/
GET http://my.internal.url/
...some additional http GET calls...
UserManager._loadUser: no user storageString
UserManager._loadUser: no user storageString
UserManager._loadUser: no user storageString
UserManager._signinStart: got navigator window handle
OidcClient.createSigninRequest
MetadataService.getMetadataProperty for: authorization_endpoint
MetadataService.getMetadata: getting metadata from http://my.auth.server.url/auth/.well-known/openid-configuration
JsonService.getJson, url:  http://my.auth.server.url/auth/.well-known/openid-configuration
UserManager.getUser: user not found in storage
UserManager.getUser: user not found in storage
UserManager.getUser: user not found in storage
XHR GET http://my.auth.server.url/auth/.well-known/openid-configuration
JsonService.getJson: HTTP response received, status 200
MetadataService.getMetadata: json received
MetadataService.getMetadataProperty: metadata recieved
OidcClient.createSigninRequest: Received authorization endpoint http://my.auth.server.url/auth/connect/authorize
SigninState.toStorageString
WebStorageStateStore.set 9a9ffe24e52344dbb910a4e659d8bdc3
UserManager._signinStart: got signin request

Switched to http://my.auth.server.url/auth/connect/authorize?client_id=hidden&redirect_uri=http%3A%2F%2Fmy.internal.url%2Fauth-callback&response_type=id_token token&scope=openid profile my.api&state=9a9ffe24e52344dbb910a4e659d8bdc3&nonce=86c6f5b48b5f4624a3230dc0c36c0cb4
UserManager.signinRedirect: successful
GET http://my.auth.server.url/auth/connect/authorize?client_id=hidden&redirect_uri=http%3A%2F%2Fmy.internal.url%2Fauth-callback&response_type=id_token token&scope=openid profile my.api&state=9a9ffe24e52344dbb910a4e659d8bdc3&nonce=86c6f5b48b5f4624a3230dc0c36c0cb4
GET http://my.auth.server.url/auth/account/login?returnUrl=%2Fauth%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3Dhidden%26redirect_uri%3Dhttp%253A%252F%252Fmy.internal.url%252Fauth-callback%26response_type%3Did_token%2520token%26scope%3Dopenid%2520profile%2520my.api%26state%3D9a9ffe24e52344dbb910a4e659d8bdc3%26nonce%3D86c6f5b48b5f4624a3230dc0c36c0cb4
...some additional http GET calls...

Switched to http://my.auth.server.url/auth/Account/Login?returnurl=%2Fauth%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3Dhidden%26redirect_uri%3Dhttp%253A%252F%252Fmy.internal.url%252Fauth-callback%26response_type%3Did_token%2520token%26scope%3Dopenid%2520profile%2520my.api%26state%3D9a9ffe24e52344dbb910a4e659d8bdc3%26nonce%3D86c6f5b48b5f4624a3230dc0c36c0cb4
POST http://my.auth.server.url/auth/Account/Login?returnurl=%2Fauth%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3Dhidden%26redirect_uri%3Dhttp%253A%252F%252Fmy.internal.url%252Fauth-callback%26response_type%3Did_token%2520token%26scope%3Dopenid%2520profile%2520my.api%26state%3D9a9ffe24e52344dbb910a4e659d8bdc3%26nonce%3D86c6f5b48b5f4624a3230dc0c36c0cb4
GET http://my.auth.server.url/auth/connect/authorize/callback?client_id=hidden&redirect_uri=http%3A%2F%2Fmy.internal.url%2Fauth-callback&response_type=id_token token&scope=openid profile my.api&state=9a9ffe24e52344dbb910a4e659d8bdc3&nonce=86c6f5b48b5f4624a3230dc0c36c0cb4
GET http://my.internal.url/auth-callback#id_token=hidden&access_token=hidden&token_type=Bearer&expires_in=600&scope=openid profile my.api&state=9a9ffe24e52344dbb910a4e659d8bdc3&session_state=VTbM8RrNUxMFJe3mCHHZ6J6hs3wPmN_IAxWdPNSc86E.6974d18abbe4b4ddce3968a01cec5021
...some additional http GET calls...
UserManager._loadUser: no user storageString
UserManager._loadUser: no user storageString
UserManager._loadUser: no user storageString
UserManager.getUser: user not found in storage
UserManager.getUser: user not found in storage
UserManager.getUser: user not found in storage
OidcClient.processSigninResponse
WebStorageStateStore.remove 9a9ffe24e52344dbb910a4e659d8bdc3
SigninState.fromStorageString
OidcClient.processSigninResponse: Received state from storage; validating response
ResponseValidator.validateSigninResponse
ResponseValidator._processSigninParams: state validated
ResponseValidator.validateSigninResponse: state processed
ResponseValidator._validateTokens: Validating id_token and access_token
JoseUtil.parseJwt
ResponseValidator._validateIdToken: Failed to parse id_token
Object { header: null, payload: null }
Error: Failed to parse id_token
Stack trace:
3Rfw/e.exports</t.ResponseValidator</e.prototype._validateIdToken@http://my.internal.url/main.a9fcdd1fb67265d20798.js:1:71847
3Rfw/e.exports</t.ResponseValidator</e.prototype._validateIdTokenAndAccessToken@http://my.internal.url/main.a9fcdd1fb67265d20798.js:1:71407
3Rfw/e.exports</t.ResponseValidator</e.prototype._validateTokens@http://my.internal.url/main.a9fcdd1fb67265d20798.js:1:71095
3Rfw/e.exports</t.ResponseValidator</e.prototype.validateSigninResponse/<@http://my.internal.url/main.a9fcdd1fb67265d20798.js:1:66780
0TWp/</</u</t.prototype.invoke@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:8059
onInvoke@http://my.internal.url/main.a9fcdd1fb67265d20798.js:1:332813
0TWp/</</u</t.prototype.invoke@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:7986
0TWp/</</i</n.prototype.run@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:3219
D/<@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:14483
0TWp/</</u</t.prototype.invokeTask@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:8734
onInvokeTask@http://my.internal.url/main.a9fcdd1fb67265d20798.js:1:332725
0TWp/</</u</t.prototype.invokeTask@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:8647
0TWp/</</i</n.prototype.runTask@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:3910
d@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:10963
0TWp/</</c</n.invokeTask@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:9864
m@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:20756
b@http://my.internal.url/polyfills.d31abbb2bb1aefc761e8.js:1:20988

Have the same issue. However I am using react-js@16 webpack@4, I would guess that it is something related to the webpack uglify-js minification code is borking something.

Are you all using the ~/lib version or the ~/dist version?

ng serve --open --aot this works fine
but when ng serve --prod --open --aot used then create issue.

~/dist version.

Angular uses the minified ~/lib version (I tested this to be 100% sure).

but when ng serve --prod --open --aot used then create issue.

So what does that do differently?

Rolling back to v1.5.0 made the thing.
Had React 16 and Webpack 4

I have the same problem, I didn't change anything in my code and I'm using Angular 6.0.4, I updated from oidc-client.js version 1.5.0 to 1.5.1 and the issue appeared, when reverting back to 1.5.0 everything started to work as expected.

I am affected by the same problem.
Here is an example project which lets you reproduce the problem.
Steps to reproduce:

update oidc-client in package.json to 1.5.1
npm i
start using npm run start:prod -> error when click on "Protected"
stop and start using npm run start -> click on "Protected" works as expected

Here's a workaround I'm using with webpack@4 and<EMAIL_ADDRESS>{
    resolve: {
        alias: {
            "oidc-client": resolve(__dirname, "node_modules", "oidc-client", "lib", "oidc-client.js")
        }
    }
}

@ljani but that means your pulling in the non-minified version. so this means there's something wonky with how minification is being done.

Hi all -- so I think isolated the issue for this and it has something to do with how I updated webpack (and so that makes me think I did it wrong). In any event, I pushed a branch that reverted the webpack change I made in 1.5.0. The branch is here:
https://github.com/IdentityModel/oidc-client-js/tree/revert_webpack_update
Mind testing by dropping it in and seeing if it's better for you? I tested with @jonek's sample and it seems to be working.

Problem still exists. How should we use this lib with angular? I have the callback and silent renew html pages which import the "min" file and then in the app code I import the classes and use them. I think that the problem is not in the "min" file but in how this lib is compiled with angular 6.

file but in how this lib is compiled with angular 6.

I don't know angular6 and its build system, so I would need from you something that helps debug this.

The thing is that with 1.5.0 is working fine. With 1.5.1 the renew interval is broken and something under the hood happens because all the calls to the services fail. With Chrome it says... "failed to fetch data", thats why the error "Failed to parse id_token" is thrown.

hmmm... ok... that helps, i think. i'll try to put out another branch with a possible fix. thanks for helping -- it's very hard to debug these things if you can't see what's happening :)

Apparently the issue dissapears but now I get the same error that was in 1.5.0 (https://github.com/IdentityModel/oidc-client-js/issues/560) regarding "Cannot execute from a freed script". I'm trying 1.4.1.

It's a minification issue. I'm using Webpack 4 to instead of Webpack 3 to bundle the lib (https://github.com/IdentityModel/oidc-client-js/pull/601) and when I set
optimization: {
        minimize: false
}

I get a lib of 409 Ko in size and it works.
I have to play with the different Uglify flags to see which one is the culprit.

Okay, understood. I am fully functional on version 1.4.1 using minification, so I guess I'll stay on that version until this is resolved. But the code in the revert_jsrsasign_pruning branch above does not seem to fix this issue.

If someone can get webpack-stream out of my way, it doesn't output anything when I set a custom minimizer with Webpack 4 :confused:

@akiander do you have a super simple repo that I can use/test with?

@brockallen - I put several hours into trying to build a simple repo that will reproduce the issue but I failed. Whenever I try to generate a small project that experiences this issue, I typically find that I just can't reproduce the issue. It only happens against my production application which is fairly large and proprietary, so not really something I can put on github.
@DavidRouyer  - I tried out PR #601 and it fixes my issue. After applying that pull request locally and npm installing it, the issue I am running into is solved.
My recommendation is to go with PR #601
I really appreciate the support on this one.

Okies, I'll have a look at it then. Thanks everyone for trying to help sort this out!

Here's a minimal repro.

Same problem here. Not an angular or react app.
Webpack 4.11.1/webpack-cli 3.0.3
Typescript 2.9.1
oidc-client 1.5.1
I've simply got oidc-client listed as a dependency in package.json.
And in typescript I require OidcClient like this:
import { UserManager, Log, User, WebStorageStateStore } from "oidc-client";

Dev webpack build works just fine.
I am successfully logging in to the ID Server and getting redirected to the client login call back. But production webpack build produces: ResponseValidator._validateIdToken: Failed to parse id_token {header: null, payload: null} from within the client login callback -- when signinPopupCallback is called.

I should also mention that logout seems broken too. Most likely due to the client not receiving a token.

I put out a 1.5.2-beta.1 that contains this fix. Please have a look! Thanks everyone for helping me out on this. I'm a security person, not a cutting edge front-end JS person. :/

@brockallen Confirmed fixed. Thanks so much! This app is now in the hands of my QA department.

I can also confirm that 1.5.2-beta.1 fixes the issue.
Great work!

I have the same Issue with Angular 6 and the newest oidc-client Version 1.5.4
It only works with Version 1.5.0.
From 1.5.1 it does not work anymore.

I work with 1.5.2 and angular 6 and is working fine

ResponseValidator.prototype._validateIdToken::_validateIdToken this._joseUtil.parseJwt
Exception: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at Function.remoteFunction (:2:14) at e._validateIdToken


Update admin client wrt to restatedev/restate#996

Update admin client wrt to restatedev/restate#996

Thanks for the review @slinkydeveloper. Merging this PR now.


Curly quotes in PowerShell script prevent it from working

The PowerShell script as posted here will note work. Somewhere along the way some of the double quote marks became "curly quotes". To correct this, all open and closing curly quotes (these are two different items) need to be changed to straight quotes. After making that change the script will function.

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

ID: c7734ca5-0770-5bbd-7da5-dda4c1cf5ae0
Version Independent ID: cb98ef23-d0c6-e62e-b72b-9b5f5d724e8e
Content: Update Windows 10 media with Dynamic Update - Windows Deployment
Content Source: windows/deployment/update/media-dynamic-update.md
Product: w10
Technology: windows
GitHub Login: @SteveDiAcetis
Microsoft Alias: jaimeo

Thanks for pointing out this hidden issue. I will start a Pull Request to have that corrected.

@hsehestedt The Pull Requests #6264 has been rejected by document author via the following feedback,

@illfated I'm going to go with #6275 b/c that PR is from the SME for the topic--he specifically did not want the PowerShell identifier for the code block b/c it was rendering strangely (we should probably file a bug on that). That's why we went with the plain generic rendering.

Thank you.


Support to Serve Packages for ARM

Hi @nroi,
first of all thanks for further improving/evolving cpcache as flexo. :+1:
I would like to ask if it would be possible to cache and serve packages for other architectures than x86_64, especially arm*?
I did a first quick try and it did not work. I also tried to add some arm mirror, but this also did not help.
Thanks.

Hi @cuberoot74088,
serving packages for ARM architectures is currently not supported. I've described a bit about why supporting ARM clients would require many changes: https://github.com/nroi/cpcache/issues/25
I'll see how many people leave a thumbs-up on this issue, so I might implement this in the future.
Just out of curiosity: What exactly is your use case, do you have many ARM devices, do you use ARM inside QEMU, or something completely different? I would have assumed that people who use ArchLinux ARM usually only have a single ARM device, so I didn't prioritize ARM client support for flexo or cpcache.

Hi,
thanks for the hint to the cpcache ticket. I have never thought about the mirror selection or redirections going on. Great, that flexo takes care of that!
Regarding the missing mirror json for ARM ... I would have hoped to be able to simply provide some mirrors manually via the  mirrors_predefined = [ ] list and let flexo choose the best from there - similar to what is happening for "normal" mirrors. But that did not work.
Sure, very valid question. I currently have three raspberry pi running with ArchLinux ARM and would like to use the package cache similar to what "I am used to" for normal arch on x86_84. :innocent:

You can get the current list of http mirrors with their locations from here, I don't know why you have to set these headers to get the data, but whatever.
GET: https://archlinuxarm.org/data/mirrors/list
Header: Referer: https://archlinuxarm.org/about/mirrors
Header: X-Requested-With: XMLHttpRequest
Although I don't know if that is particularly useful to you, as you mentioned the official mirrorlist providing lots of quality related info, it does at least provide an up to date list of mirrors.
Might I propose flexo add functionality to generate it's own quality info using the list above, similar to what reflector does? The archlinux arm maintainers clearly have no interest in providing their own data.

I don't know why you have to set these headers to get the data, but whatever.

The fact that this JSON endpoint is undocumented and requires these headers indicates that it's not meant to be used by third parties. So I assume that they are not committed to provide a stable API, so the JSON format or the address could change at any time. They might also introduce new methods to block requests that do not originate from the archlinuxarm website, so just setting those two headers may not be sufficient in the future.
If Arch Linux ARM does not provide an official endpoint for fetching mirror data, than I think it's best to just stick to the default method recommended by the Arch Linux ARM team (i.e., using mirror.archlinuxarm.org as your only mirror).

I have added a section in the README that describes how to use the custom_repo feature to fetch ARM packages from Flexo: https://github.com/nroi/flexo#serving-packages-for-arm-clients
I've tested this on my Raspberry PI and it seems to work well. But notice that you will only have the caching functionality of Flexo when you use the custom_repo feature, additional features like automatically selecting mirrors or automatically switching to a faster mirror are not available.
I don't use my Raspberry PI very often, so please comment if anything doesn't work well.

@nroi thanks, this working fine! 👍


Add a DEBUG option

Gorjun has no DEBUG option. But has a logger that can be set to this level of verbosity. This should be set and then in the relevant parts we should add some entry for the self explanation of what is happening inside gorjun

We are now using logger for another golang based project - Subutai CLI
Debug output of this program looks the following way:

So the same approach can be applied in Gorjun.
For example, these lines of code provide debug output that is hidden in higher loglevel, but could be displayed with debug option: https://github.com/subutai-io/agent/blob/master/agent/agent.go#L135-L137
Switching of the log level can be done like this: https://github.com/subutai-io/agent/blob/master/main.go#L28

Added in refactored CDN.


[CMT-804-1155] create de.md -What are Vaults and Strategies?- DE

Description

Please include a summary of the change and which issue is fixed.
Please also include relevant motivation and context.

This pull request ...
Fixed issue

Please indicate the fixed issues with this exact format Fixes #232 where 232 is the number of the issue. This will trigger an auto-close if the issue when this PR is merged.
Supported keywords:
Fixes #1,#2,#3
close #1, #2, #3
fix #1 #2 #3
resolve #1,#2 #3
Resolves: #1,#2,#3
closed : #1, #2, #3

Fixes #(issue)
Type of change

Please delete options that are not relevant and check the box.

[ ] Add a new article/page
[ ] Fix a Typo
[x] Add a new translation
[ ] Other

Resources

Any screenshots, links or relevant resources to explain better the changes.

@Nesyeth could you review this?

looks good.