DHCP request not acked

after the DHCP offer from the RP2040 over USB, the computer (USB host) requests the offered IP.
but the RP2040 does not ACK this request.
thus the DCHP negotiation does not complete and the IP is not assigned to the interface (at least nor under Linuc Arch using dhcpcd).
see attached trace where DHCP client repeats the unanswered request.

Okay, that's strange, works on my machine. Will do a wireshark trace this evening an compare with yours.
In the meantime, is there anything strange in the kernel logs? USB device resetting or similar?

Just checked, I can definitely see a DHCP ACK here:

Did you build the source code yourself or did you use some UF2-file from the GitHub actions?
The DHCP server is part of the lwIP-stack, it's not written by me. I might be able to add or active some debugging options but I didn't yet dig into it.

I had the same problem with a UF2-file from the GitHub actions (https://github.com/OpenLightingProject/rp2040-dmxsun/suites/6080805161/artifacts/210508458)

Thanks for the pcap-file, that will help a lot. Unfortunately, I didn't yet find the time to investigate the root cause :/

I did some investigation today. First thought: Only "a limited amount" of requests can be served. Proofed wrong.
Then I tried dhcpcd as DHCP client and I can reproduce the failing behaviour of not getting the DHCP ACK. However, when I use NetworkManager's internal DHCP client afterwards on the same connection (= without disconnecting the board), it serves the DHCP ACK just fine. However, still no explanation why this happens. The DHCP server code is not written by me but I will try to debug it to see where it fails.

I think I found the root cause: tinyUSB's DHCP server expects the MESSAGETYPE option in DISCOVER or REQUEST packages to be the first option in the packet. Some clients seem to not to adhere to this expectations. The trace you attached and the "dhcpcd" I tried send the requested IP option first.
Pull-request for tinyUSB has been created, but it might take some time until the fix makes it into tinyUSB and from there into the pico-sdk. I might try to hack something together so the builds created by the GitHub actions behave correctly.
In the meantime, here's an UF2-file that includes the fix:
rp2040-dmxsun.zip. Might be a DEBUG build containing some more logging statements than required but it would be nice if you could confirm that this fixes the issue. Thanks!

Fix has been merged upstream. I now need to check if I can update to the latest upstream master of tinyUSB or if there are incompatibilities that I need to fix. Thus, leaving this open

Alright, I'm working on a way to fix this locally without waiting for the upstream version of tinyUSB to tickle down into the pico-sdk.

Should be fixed with #68.
I copied the DHCP server code into the project to be able to modify it.


Problem running on Ubuntu desktop

It runs just fine on Ubuntu Server but thats not a suitable development environment.
When running on a Ubuntu Desktop its unable to start on port 53.
developer@Dev:~/Code/DnsServer$ sudo node app.js  { Error: bind EADDRINUSE <IP_ADDRESS>:53     at Object.exports._errnoException (util.js:1036:11)     at exports._exceptionWithHostPort (util.js:1059:20)     at dgram.js:221:18     at _combinedTickCallback (internal/process/next_tick.js:77:11)     at process._tickCallback (internal/process/next_tick.js:98:9)     at Module.runMain (module.js:592:11)     at run (bootstrap_node.js:394:7)     at startup (bootstrap_node.js:149:9)     at bootstrap_node.js:509:3   code: 'EADDRINUSE',   errno: 'EADDRINUSE',   syscall: 'bind',   address: '<IP_ADDRESS>',   port: 53 }
Listing processes on port 53 shows nothing:
lsof -i tcp:53
How have you setup your development environment?

@fernfrost
Yes I did.
The solutions are two:
1 Find what program is starting a DNS server at your machine
Try the bellow to get the used port
netstat -anp | grep ":53"

In fact you can use this application running in another port (app.js:8 server.serve(53);) but by some tests that I've done linux could not understand a different port than 53.
This is link talking about how disable the default Linux DNS server, network manager(used by Fedora and Unbutu desktop version) that start a local DNS server (53 port).
2 Run it from docker
more details
To use this approach  you will need docker and JAVA installed, because using docker the application will use a port inside the docker container where everything is free to be used.
I suggest for test that you run:
$ npm install
$ ./gradlew build

It will change your DNS files automatically(only while the docker containers is running, after everything backs to original stage) or run
$ npm install
$ ./gradlew build-dev

But it will not change your /etc/resolv.conf ( where you set your DNS servers) so you need to change manually. To change your /etc/resolv.conf do something like:
nameserver dockerip

To get the docker container ip you can run docker inspect dns-proxy-server
Testing it
Finally to test if it is working run nslookup dns.mageddo it need to be resolved by the dns-proxy-server

In fact gradle is not necessary to use docker, for this reason I've created the #2 issue that implements a docker-compose.yml but not implemented yet

DNS servers uses UDP

Thank you.
running netstat -anp | grep ":53" on a fresh install of ubuntu desktop reveals that networkmanager listens to port 53 (though it is listed as dnsmasq)
I tried installing dnsmasq and setting the port=0.
This should according to documentation disable dns capabilities entirely.
But, alas, no success.
Running killall dnsmasq solved the problem but its not a good solution
I would like to utilize the dhcp capabilities of dnsmasq.
So is there a way of disable the built-in dns listening to port 53?

Actually, setting port=0 in /etc/dnsmasq.conf, took effect after a reboot.
So happy for now:)

Will request.address.address in handleRequest be the ip address of the device that made the request or will it always be <IP_ADDRESS>?
Is there a way of testing this other than host some.domain on the local machine that always results in the request address being <IP_ADDRESS>?

I don't know how effective is the client IP identifier but testing with docker I did the follow:

Create two Ubuntu machines
Run the DNS server at one IP <IP_ADDRESS>
Run the command host google.com <IP_ADDRESS> in the another
Result is: m=solve, requestFrom= <IP_ADDRESS>  really is the client IP

To make some tests you can do the same or create  two virtual machines with Virtualbox, configure a bridge network, run the DNS in one and test from another.
I am curious, Why did it is important for you?


Namespace stuck in Terminating status

Description
When I delete a namespace (kubectl delete namespace) running kubedb database(s) it stuck in Terminating state forever. Any further attempts to delete namespace are failing with:
Error from server (Conflict): Operation cannot be fulfilled on namespaces "<my_poor_namespace>": The system is ensuring all content is removed from this namespace.  Upon completion, this namespace will automatically be purged by the system.

Might be somehow linked to #600 but I'm not sure about that.
Steps to reproduce

Create a namespace and switch to it:

kubectl create namespace test-mongo
kubectl config set-context --current --namespace=test-mongo

Create a mongodb resource:

cat <<EOF | kubectl apply -f -
apiVersion: kubedb.com/v1alpha1
kind: MongoDB
metadata:
  name: mongodb
spec:
  version: "4.1"
  storageType: Ephemeral
  terminationPolicy: WipeOut
EOF

Delete the namespace

kubectl delete namespace test-mongo

At this point command never releases terminal input, only if ^C pressed. A subsequent run of kubectl delete namespace test-mongo throws an error:
kubectl delete namespace test-mongo
Error from server (Conflict): Operation cannot be fulfilled on namespaces "test-mongo": The system is ensuring all content is removed from this namespace.  Upon completion, this namespace will automatically be purged by the system.

Corresponding logs from kubedb-operator pod.
When MongoDB created:
I1113 08:27:32.778565       1 mongodb.go:58] Patching MongoDB test-mongo/mongodb with {"metadata":{"finalizers":null}}.
I1113 08:28:07.968461       1 mongodb.go:58] Patching MongoDB test-mongo/mongodb with {"metadata":{"finalizers":["kubedb.com"]}}.
I1113 08:28:08.048845       1 service.go:19] Creating Service test-mongo/mongodb-gvr.
I1113 08:28:08.086534       1 serviceaccount.go:19] Creating ServiceAccount test-mongo/mongodb.
I1113 08:28:08.111912       1 role.go:19] Creating Role test-mongo/mongodb.
I1113 08:28:08.176827       1 rolebinding.go:19] Creating RoleBinding test-mongo/mongodb.
I1113 08:28:08.240176       1 service.go:19] Creating Service test-mongo/mongodb.
I1113 08:28:08.282776       1 mongodb.go:58] Patching MongoDB test-mongo/mongodb with {"spec":{"databaseSecret":{"secretName":"mongodb-auth"}}}.
I1113 08:28:08.343091       1 statefulset.go:22] Creating StatefulSet test-mongo/mongodb.
I1113 08:28:08.363877       1 pdb.go:22] Creating PodDisruptionBudget test-mongo/mongodb.
I1113 08:28:27.290482       1 appbinding.go:23] Creating AppBinding test-mongo/mongodb.
I1113 08:28:27.399311       1 service.go:121] spec.monitor.agent is not coreos-operator or builtin.
I1113 08:28:27.476923       1 service.go:56] Patching Service test-mongo/mongodb-gvr with {"spec":{"$setElementOrder/ports":[{"port":27017}],"ports":[{"port":27017,"protocol":null,"targetPort":0}]}}.
I1113 08:28:27.559230       1 service.go:121] spec.monitor.agent is not coreos-operator or builtin.

When namespace deleted:
E1113 08:28:50.413372       1 workqueue.go:36] error in wiping out database.: error in getting db secret: secrets "mongodb-auth" not found
E1113 08:28:50.413389       1 worker.go:76] Failed to process key test-mongo/mongodb. Reason: error in wiping out database.: error in getting db secret: secrets "mongodb-auth" not found
I1113 08:28:50.413395       1 worker.go:80] Error syncing key test-mongo/mongodb: error in wiping out database.: error in getting db secret: secrets "mongodb-auth" not found
E1113 08:28:50.431910       1 workqueue.go:36] error in wiping out database.: error in getting db secret: secrets "mongodb-auth" not found
E1113 08:28:50.431922       1 worker.go:76] Failed to process key test-mongo/mongodb. Reason: error in wiping out database.: error in getting db secret: secrets "mongodb-auth" not found
I1113 08:28:50.431929       1 worker.go:80] Error syncing key test-mongo/mongodb: error in wiping out database.: error in getting db secret: secrets "mongodb-auth" not found
E1113 08:28:50.455542       1 workqueue.go:36] error in wiping out database.: error in getting db secret: secrets "mongodb-auth" not found
E1113 08:28:50.455554       1 worker.go:76] Failed to process key test-mongo/mongodb. Reason: error in wiping out database.: error in getting db secret: secrets "mongodb-auth" not found
I1113 08:28:50.455560       1 worker.go:80] Error syncing key test-mongo/mongodb: error in wiping out database.: error in getting db secret: secrets "mongodb-auth" not found
E1113 08:28:50.489266       1 workqueue.go:36] error in wiping out database.: error in getting db secret: secrets "mongodb-auth" not found
E1113 08:28:50.489277       1 worker.go:76] Failed to process key test-mongo/mongodb. Reason: error in wiping out database.: error in getting db secret: secrets "mongodb-auth" not found
I1113 08:28:50.489283       1 worker.go:80] Error syncing key test-mongo/mongodb: error in wiping out database.: error in getting db secret: secrets "mongodb-auth" not found

I noticed that when I delete mongodb resource, not the whole namespace, kubedb-operator is patching mongodb-auth for some Reason. There's a log entry I see if I do kubectl delete mongodb mongodb:
I1113 08:27:32.765332       1 unstructured.go:84] Patching /v1, Resource=secrets test-mongo/mongodb-auth with {"metadata":{"ownerReferences":[{"apiVersion":"kubedb.com/v1alpha1","blockOwnerDeletion":false,"kind":"MongoDB","name":"mongodb","uid":"de691522-05ee-11ea-89f7-06970e366122"}]}}.

For workaround, edit the mongodb object and remove the Finalizer.

For workaround, edit the mongodb object and remove the Finalizer.

Thanks a lot! Removing finalizer helped, but as you said it is a workaround. I believe kubedb-operator should not block database resources deletion even if the auth secret is gone.

I am getting this as well

I got the same problem with mysql.
This is my workaround:
kubectl patch crd/mysqls.kubedb.com    -p '{"metadata":{"finalizers":[]}}' --type=merge
Question: What's the difference between removing finalizers from Custom Resource (see workaround from antonu17) and Custom Resource Definition (my workaround)?

This issue has been resolved in recent releases in v2021.. . Please reopen if you still see this issue.


Refactor getting containers from docker in logs agent

What does this PR do?
Refactor Refactor getting containers from docker in logs agent
follow up after #3367
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?

Are we getting this in for 6.12? Otherwise, please change the milestone to 6.13 🙂


Wording and grammar changes to match docs on client side integration

What changed:

Hyphenated client-side integration where necesary
Changed certain words to lower case if they are not in the title
Capitalized ID in Subscription ID
Changed title to match title in the docs for link to Client Side Integration


Add OpsGenie Connector and Converters

We would like to build a connecter and converters for OpsGenie. To start, this should be a similar connector to that of PagerDuty as we are interested in incident data.
Data to retrieve:

Incidents
Users

API Docs
Note: Be aware of rate-limiting when using node.js API client as it does not appear to handle 429 responses

@willmarks because node.js API client does not support incident query, so I just use axios.


Ionide/VSCode consuming all of my inotify instances

Describe the bug
When starting watchers like dotnet watch or vite I get errors on my linux system because something is consuming all of my 128 inotify instances.
Further analysis shows that Ionide seems to be consuming most of them:
find /proc/*/fd/* -type l -lname 'anon_inode:inotify' -exec sh -c 'cat $(dirname {})/../cmdline; echo ""' \; 2>/dev/null

/usr/bin/dotnet/home/user/.vscode/extensions/ionide.ionide-fsharp-7.18.0/bin/net7.0/fsautocomplete.dll--state-directory/home/user/.config/Code/User/workspaceStorage/700616795669794e7b1ffe09d82c0eb9/Ionide.Ionide-fsharp
/usr/bin/dotnet/home/user/.vscode/extensions/ionide.ionide-fsharp-7.18.0/bin/net7.0/fsautocomplete.dll--state-directory/home/user/.config/Code/User/workspaceStorage/700616795669794e7b1ffe09d82c0eb9/Ionide.Ionide-fsharp
/usr/bin/dotnet/home/user/.vscode/extensions/ionide.ionide-fsharp-7.18.0/bin/net7.0/fsautocomplete.dll--state-directory/home/user/.config/Code/User/workspaceStorage/700616795669794e7b1ffe09d82c0eb9/Ionide.Ionide-fsharp
/usr/bin/dotnet/home/user/.vscode/extensions/ionide.ionide-fsharp-7.18.0/bin/net7.0/fsautocomplete.dll--state-directory/home/user/.config/Code/User/workspaceStorage/700616795669794e7b1ffe09d82c0eb9/Ionide.Ionide-fsharp
/usr/bin/dotnet/home/user/.vscode/extensions/ionide.ionide-fsharp-7.18.0/bin/net7.0/fsautocomplete.dll--state-directory/home/user/.config/Code/User/workspaceStorage/700616795669794e7b1ffe09d82c0eb9/Ionide.Ionide-fsharp
/usr/bin/dotnet/home/user/.vscode/extensions/ionide.ionide-fsharp-7.18.0/bin/net7.0/fsautocomplete.dll--state-directory/home/user/.config/Code/User/workspaceStorage/700616795669794e7b1ffe09d82c0eb9/Ionide.Ionide-fsharp
/usr/bin/dotnet/home/user/.vscode/extensions/ionide.ionide-fsharp-7.18.0/bin/net7.0/fsautocomplete.dll--state-directory/home/user/.config/Code/User/workspaceStorage/700616795669794e7b1ffe09d82c0eb9/Ionide.Ionide-fsharp
/usr/bin/dotnet/home/user/.vscode/extensions/ionide.ionide-fsharp-7.18.0/bin/net7.0/fsautocomplete.dll--state-directory/home/user/.config/Code/User/workspaceStorage/700616795669794e7b1ffe09d82c0eb9/Ionide.Ionide-fsharp
/usr/bin/dotnet/home/user/.vscode/extensions/ionide.ionide-fsharp-7.18.0/bin/net7.0/fsautocomplete.dll--state-directory/home/user/.config/Code/User/workspaceStorage/700616795669794e7b1ffe09d82c0eb9/Ionide.Ionide-fsharp
/usr/bin/dotnet/home/user/.vscode/extensions/ionide.ionide-fsharp-7.18.0/bin/net7.0/fsautocomplete.dll--state-directory/home/user/.config/Code/User/workspaceStorage/700616795669794e7b1ffe09d82c0eb9/Ionide.Ionide-fsharp
/usr/bin/dotnet/home/user/.vscode/extensions/ionide.ionide-fsharp-7.18.0/bin/net7.0/fsautocomplete.dll--state-directory/home/user/.config/Code/User/workspaceStorage/700616795669794e7b1ffe09d82c0eb9/Ionide.Ionide-fsharp
/usr/bin/dotnet/home/user/.vscode/extensions/ionide.ionide-fsharp-7.18.0/bin/net7.0/fsautocomplete.dll--state-directory/home/user/.config/Code/User/workspaceStorage/700616795669794e7b1ffe09d82c0eb9/Ionide.Ionide-fsharp
...
Machine info

OS: Fedora 39
.NET SDK version: 8.0.0
Ionide version: 7.18.0

Additional context
I've had this instance of vscode open for a while. I'm not sure what triggers this situation to happen, but something appears to be spinning up lots and lots of instances of this fsautocomplete.dll thing and is consuming all of my inotify instances.

Hello 128 inotify instance doesn't seems like a loot.
If possible you can increase that limit: https://dev.to/rubiin/ubuntu-increase-inotify-watcher-file-watch-limit-kf4
I am not sure if this will helps, but in general on Unix system I set .NET to use Polling for watching files. You can do that by this setting export DOTNET_USE_POLLING_FILE_WATCHER=true in your .bashrc or .zshrc file.

I understand your perspective here, and I'm aware I'd be able to adjust that limit or force it to use a different polling mechanism, but this is the first time I've ever been confronted with this as a problem, and Ionide isn't the only program I run that relies on inotify.
From my perspective this is a clear bug somewhere (whether its a bug in vscode itself or Ionide I can't say), and it shouldn't be consuming 120-some inotify instances just to work on one project in one instance of vscode.

Also 128 is just the upper bound it ran into where it couldn't spawn any more inotify instances. If something is going haywire and continuing to try and create them even setting it to 600 wouldn't solve the problem - it would just cause Ionide to eventually be consuming 600 inotify instances.

I don't know from my experience VSCode/Ionide is not the only program that has this issues on my machines that's why I proposed to increase the limit.
For now this is a workaround until someone has an idea how to debug this issue or fix it.

Since we use FileSystemWatcher for changes to fsproj and related files it's a dotnet runtime issue. https://github.com/dotnet/runtime/issues/62869

Yeah, but if I understand the API correctly that implies one FileSystemWatcher is one inotify instance? If so, shouldn't Ionide only ever be creating one FileSystemWatcher at a time? Meaning, is something not disposing of FileSystemWatcher's when it should be?

If so, shouldn't Ionide only ever be creating one FileSystemWatcher at a time?

No, we create FileSystemWatcher to watch F# Projects and related files to know when to schedule msbuild project reloading. This could be many depending on your projects.

Well, in this case I only had one vscode instance open with a slightly modified solution based on https://github.com/elmish/templates/tree/master. Not a large project. I'm testing out Fable for the first time, and then boom I find that Ionide has hogging all of my system's inotify instances.


can't log in as admin

After build, and run docker image, can't login as admin
Version : 3.0.2b
Branch : dev

Hello @msalka ,
I just made a fresh attempt with this and it worked. Some considerations:
Did you proceed with the step to create the admin user with docker exec
Section: Creating a super user
if you executed it like this
docker exec -it my_container python omnidb-server.py --createsuperuser=admin pass
Your access would be user admin password pass
Best regards

If you still have problems, please confirm and I will label this as bug to be better assessed

Thank you, your answer, solved my problem.


Feature/list support

Addresses #2
Lists of models are displayed as lists of addable/editable/removable items.
For example:

Clicking the edit button opens a subdialog:

A similar approach could be used for lists of native types (str, int, float).

Thank you for your contribution! This looks really great. I thought about your issue today. I would have just opened another "NiceCRUD" dialogue for the list of models, but this solutions looks much better.

If you find the time: An example (or an extension of an existing example) and a maybe a hint in the README would be nice.


(enhancement) Minor - wr.redshift.copy - pass through commit_transaction

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: 4f377710bf34c56bcfbe5a325d1a908a08923861
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: 50f217f28b0c326a82f30dc6f201400149200b93
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Definitions lack categories

The definitions frequently come up without listing the categories/tags they belong to.
Example
Actual Google definition:

This project's definition:

The API in this project is from Google Docs, and it doesn't have any categories or tags, which is slightly different from the result you see in Google Search. Google Search wrappers its API calls, so it's almost impossible to get the original API call.


pgpool not starting with docker-compose latest.yml

Hi folks,
I have followed the README and used docker-compose to quickly start everything. But pgpool does not start, complaining that the port is already used...
docker-compose -f ./docker-compose/latest.yml logs --tail 20 -f pgpool
Attaching to docker-compose_pgpool_1
pgpool_1         | >>>>>> Waiting for backend 1 to start pgpool (WAIT_BACKEND_TIMEOUT=60)
pgpool_1         | 2019/09/10 16:15:18 Waiting for host: tcp://pgslave1:5432
pgpool_1         | 2019/09/10 16:15:18 Connected to tcp://pgslave1:5432
pgpool_1         | >>>>>> Adding backend 1
pgpool_1         | >>>>>> Waiting for backend 3 to start pgpool (WAIT_BACKEND_TIMEOUT=60)
pgpool_1         | 2019/09/10 16:15:18 Waiting for host: tcp://pgslave3:5432
pgpool_1         | 2019/09/10 16:15:18 Connected to tcp://pgslave3:5432
pgpool_1         | >>>>>> Adding backend 3
pgpool_1         | >>>>>> Waiting for backend 2 to start pgpool (WAIT_BACKEND_TIMEOUT=60)
pgpool_1         | 2019/09/10 16:15:18 Waiting for host: tcp://pgslave2:5432
pgpool_1         | 2019/09/10 16:15:18 Connected to tcp://pgslave2:5432
pgpool_1         | >>>>>> Adding backend 2
pgpool_1         | >>> Checking if we have enough backends to start
pgpool_1         | >>>>>> Will start pgpool REQUIRE_MIN_BACKENDS=3, BACKENDS_COUNT=4
pgpool_1         | >>> Configuring /usr/local/etc/pgpool.conf
pgpool_1         | >>>>>> Adding config 'num_init_children' with value '250'
pgpool_1         | >>>>>> Adding config 'max_pool' with value '4'
pgpool_1         | >>> STARTING PGPOOL...
pgpool_1         | 2019-09-10 16:15:18: pid 64: FATAL:  failed to bind a socket: "/var/run/postgresql/.s.PGSQL.5432"
pgpool_1         | 2019-09-10 16:15:18: pid 64: DETAIL:  bind socket failed with error: "Address already in use"
docker-compose_pgpool_1 exited with code 3

which is not the case as shown by running psql...
$ psql
psql: could not connect to server: No such file or directory
	Is the server running locally and accepting
	connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

That is very weird to me... any ideas ?

Just adding more information:

working on Mac
results from netstat confirm that nothing is using the unix socket (neither the inet socket actually)$ netstat | grep 5432

$

Well... I have docker-compose down and docker-compose up -d again the containers and it works now...
...
pgpool_1         | >>> STARTING PGPOOL...
pgpool_1         | 2019-09-11 08:16:57: pid 85: LOG:  Backend status file /var/log/postgresql/pgpool_status does not exist
pgpool_1         | 2019-09-11 08:16:57: pid 85: LOG:  Setting up socket for <IP_ADDRESS>:5432
pgpool_1         | 2019-09-11 08:16:57: pid 85: LOG:  Setting up socket for :::5432
pgpool_1         | 2019-09-11 08:16:57: pid 85: LOG:  find_primary_node_repeatedly: waiting for finding a primary node
pgpool_1         | 2019-09-11 08:16:57: pid 85: LOG:  find_primary_node: checking backend no 0
pgpool_1         | 2019-09-11 08:16:57: pid 85: LOG:  find_primary_node: primary node id is 0
pgpool_1         | 2019-09-11 08:16:57: pid 340: ERROR:  failed to authenticate
pgpool_1         | 2019-09-11 08:16:57: pid 340: DETAIL:  the database system is starting up
pgpool_1         | 2019-09-11 08:16:57: pid 340: LOG:  health check retrying on DB node: 2 (round:1)
pgpool_1         | 2019-09-11 08:16:57: pid 85: LOG:  pgpool-II successfully started. version 3.7.5 (amefuriboshi)
pgpool_1         | 2019-09-11 08:16:57: pid 337: ERROR:  failed to authenticate
pgpool_1         | 2019-09-11 08:16:57: pid 337: DETAIL:  the database system is starting up
pgpool_1         | 2019-09-11 08:17:02: pid 340: LOG:  health check retrying on DB node: 2 succeeded
pgpool_1         | 2019-09-11 08:17:27: pid 337: ERROR:  Failed to check replication time lag
pgpool_1         | 2019-09-11 08:17:27: pid 337: DETAIL:  No persistent db connection for the node 2
pgpool_1         | 2019-09-11 08:17:27: pid 337: HINT:  check sr_check_user and sr_check_password
pgpool_1         | 2019-09-11 08:17:27: pid 337: CONTEXT:  while checking replication time lag

closing the issue


Playing lots of sounds generates exceptions

While playing with around 1000 xenos running around making step sounds the game can drop to low fps and output exceptions.
[ERRO] clyde.oal: [SetPosition:492] AL error: OutOfMemory
[ERRO] clyde.oal: [SetPitch:510] AL error: InvalidName
[ERRO] clyde.oal: [SetVolume:429] AL error: InvalidName
[ERRO] clyde.oal: [SetPlaybackPosition:466] AL error: InvalidName
[ERRO] clyde.oal: [IsLooping:407] AL error: InvalidName
[ERRO] clyde.oal: [StartPlaying:374] AL error: InvalidName
https://pastebin.com/2fprfvag

Engine issue space-wizards/RobustToolbox/issues/2388


[BUG]: Behavior mismatch when using scale command between pipeline and regular powershell terminal

Task name
Kubernetes
Task version
1
Environment type (Please select at least one enviroment where you face this issue)

[X] Self-Hosted
[ ] Microsoft Hosted
[ ] VMSS Pool
[ ] Container

Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows 10
Task log
Starting: Resume XYZ Service
==============================================================================
Task         : Kubectl
Description  : Deploy, configure, update a Kubernetes cluster in Azure Container Service by running kubectl commands
Version      : 1.227.0
Author       : Microsoft Corporation
Help         : https://aka.ms/azpipes-kubectl-tsg
==============================================================================
==============================================================================
			Kubectl Client Version: v1.27.2
			Kubectl Server Version: v1.24.15
==============================================================================
"F:\AzureAgents\Agent 2\_work\_tool\kubectl\1.27.2\x64\kubectl.exe" scale -n mynamespace --replicas='1' deployment/mydeployment -o json
error: invalid argument "'1'" for "--replicas" flag: strconv.ParseInt: parsing "'1'": invalid syntax
See 'kubectl scale --help' for usage.
commandOutput
##[error]The process 'F:\AzureAgents\Agent 2\_work\_tool\kubectl\1.27.2\x64\kubectl.exe' failed with exit code 1
Finishing: Resume XYZ Service

Relevant log output
error: invalid argument "'1'" for "--replicas" flag: strconv.ParseInt: parsing "'1'": invalid syntax

Aditional info
When executing locally, same kubectl version against the same aks cluster it works as expected with either '1' (single quotes), "1" (double quotes) or 1 (no quotes):

PS C:\Users\RM> kubectl version --short
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Client Version: v1.27.2
Kustomize Version: v5.0.1
Server Version: v1.24.15
PS C:\Users\RM> kubectl scale -n mynamespace --replicas="1" deployment/mydeployment
deployment.apps/mydeployment scaled
PS C:\Users\RM> kubectl scale -n mynamespace --replicas='1' deployment/mydeployment
deployment.apps/mydeployment scaled

Local environment:
Windows 11
PSVersion 5.1.22621.1778

bump


Add Linux support and systems without STK

I had some delta-V question and remembered your OSCW2020 talk. Tried and could quickly answer it.
Cool software with a clean GUI, thank you for sharing it!

LGTM! Thank you for fixing the com-types issue and making it easier for non-Windows users =)


Add create image

Just run npm run lint:js:fix you missed one indentation. :smiley:

Codecov Report

Merging #54 (f64db2c) into master (7cc1de7) will decrease coverage by 3.88%.
The diff coverage is 2.19%.

:exclamation: Current head f64db2c differs from pull request most recent head 06d34bd. Consider uploading reports for the commit 06d34bd to get more accurate results

@@            Coverage Diff             @@
##           master      #54      +/-   ##
==========================================
- Coverage   38.76%   34.88%   -3.89%
==========================================
  Files          48       52       +4
  Lines         712      797      +85
  Branches      188      206      +18
==========================================
+ Hits          276      278       +2
- Misses        406      486      +80
- Partials       30       33       +3

Impacted Files
Coverage Δ

src/Routes/Devices/Devices.js
0.00% <0.00%> (ø)

src/Routes/Groups/NewGroup.js
0.00% <ø> (ø)

src/Routes/ImageManager/CreateImageWizard.js
0.00% <0.00%> (ø)

src/components/AvailableImagesTile.js
0.00% <0.00%> (ø)

src/components/ImageCreator.js
0.00% <0.00%> (ø)

src/components/InventoryForm.js
0.00% <ø> (ø)

src/components/Tiles.js
0.00% <0.00%> (ø)

src/components/form/Packages.js
0.00% <0.00%> (ø)

src/components/form/ReviewStep.js
0.00% <0.00%> (ø)

src/api/index.js
73.52% <50.00%> (-1.48%)
:arrow_down:

... and 4 more

Continue to review full report at Codecov.

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


[BUG] - No se esta importando "@nextui-org/react": "latest"

NextUI Version
2.1.13
Describe the bug
Al guiarme por los pasos de la instalación de las dependencias hace falta "@nextui-org/react": "latest"
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
https://codesandbox.io/p/sandbox/s6cnwl?file=%2Fpackage.json%3A11%2C5-11%2C34&utm_medium=sandpack
Allí es donde pude encontrar la dependencia que me hacia falta
Expected behavior
no funciona, ni toma el tailwind
Screenshots or Videos
No response
Operating System Version
Windows
Browser
Chrome

Hi, can you give me an english description? So i can help you

Sorry for not having written the issue in English, it happens that when you want to use nextui from the installations of individual packages you need to add to npm the installation of "@nextui-org/react": "latest" which gave me headaches head to start making use of the components.

Hey @mendozalz the purpose of "Individual" installation is to install only the components that you need, so you have to refactor the imports accordingly
For instance these imports:
import {Card, CardHeader, CardBody, CardFooter, Avatar, Button} from "@nextui-org/react";
Need to be changed to:
import {Card, CardHeader, CardBody, CardFooter} from "@nextui-org/card";  import {Avatar} from "@nextui-org/avatar";  import {Button} from "@nextui-org/button";
You can find the individual imports in the documentation at the top.


README.md references gelf (and gelf ports) in many places

Looks like there are a few references to gelf and the ports that are appropriate in that context in this document, rather than syslog.

Thanks, James! Fixed now 👍


Zooming stops at L19

There is data all the way to level 23 in some locations.

@lucianpls @robert-waterman
It seems this issue was caused by missing LODs in MapView's constraints. I added LODs to MapView and the app can zoom beyond zoom level 19 now. You can test it on DEV:
https://livingatlasdev.arcgis.com/wayback/#active=46399&mapCenter=18.375%2C-33.941%2C20&localChangesOnly=true


[WIP] Migrating to single cloudevents crate

The cloudevents crate depends on the latest beta release of actix-web, so we're killing that bird with this stone, too.

This was a mistake. There are too many differences between actix 4-b5 and 4-b8. We'll make the cloudevents crate compatible with b5 first and migrate to it before we bump actix.


Rename to septentrion

It's a PR for renaming west into septentrion.
TODO:

[x] Rename all the code parts;
[x] fix tests and linters;
[ ] rename repo;
[ ] change CI conf (codecov and travis);

Just for the records, I'm not a huge fan of the name septentrion. This is a long and non-english word which will be very hard to remember & type for non (old) french speakers.
But I don't have any better name, and I agree that this is a cool word out of this context :) . So LGTM.

@k4nar I agree with you, really you've described my situation :D However, I believe that this name will be hardcoded in the scripts (Docker build/deploy to integration etc) so I don't think we should memorize it.

Yeah I'm not worried for its usage at PeopleDoc, more for the day when we'll want to share it to the world.

Septentrion is an english word https://en.wiktionary.org/wiki/septentrion (probably not used in English more that it's used in French, though)

obsolete, obs.
No longer in use, and (of a term) no longer likely to be understood. Obsolete is a stronger term than archaic, and a much stronger term than dated. See Wiktionary:Obsolete and archaic terms.

:smile:

That's good ! Nobody will steal the name :smile:


Create blog post for week 27, 2022

since we skipped the moving of the branches last week, we should probably include the updates for the previous week here, right?

Right. Updated.


Migrate to Hyrax 2.0.0

Hyrax 2.0.0 was released recently. We should migrate to that version when we get a chance. We are currently on 1.0.4.

Created branch for this: https://github.com/dibbs-vdc/ccql/tree/feature/59/hyrax-2-migration


When I use projects to edit yaml items, the yaml area format is broken

What happened?
I add a tag to my note, then tae yaml area format of the note will be broken.

here is my note:

then I add a tag to my note:

then I go back to my note:
, you will find there are something wrong in my note.

last I go back to project, projects is broken too😂:

What did you expect to happen?
projects should be a uniformly modify the interface of yaml items.
How can we reproduce it (as minimally and precisely as possible)?
Just try to edit items in projects.
Anything else we need to know?
No response
Plugin version
1.1.1
Obsidian version
1.0.3
OS
Windows

Thank you for reporting this (and for the helpful examples)! 🙏 I'll get right on this.

I couldn't reproduce the exact error, but it seems to be related to breaking long strings. I've disabled it for now, which should hopefully fix the issue.
Could you try the newly released 1.1.2? If it doesn't fix it, could you share the exact front matter as text so that I can copy-paste it into the test suite?

thank you so much! the problem has been resolved


Cypress test final

Cypress e2e tests added. A bit tricky to test, since it needs the application to run, and it can't because the DB is down. Would be a shame not to have as a part of the project, but also a little risky to push to main without you guys being able to check it. On the other hand, it can't do any harm, as it's not added to the CI/CD in this PR and the tests potentially accessing the db is commented out, so even if it doesn't work, it won't break anything.

I'm up for merging it, just so it's included in the project


Transferring UserSessionNotes from AuthSession to UserSession while Login failing

I try to set a custom UserSessionNote in a custom Authentication-Execution-Step with
AuthenticationSessionModel.getUserSessionNotes().setNote("key","value");
This UserSessionNote I would like to pick up again in a TokenMapper and write it accordingly into the JWT with follow code
 UserSessionModel.getNote("key")
Unfortunately, the value in the TokenManager is always empty.
Note I did a debug session where I found out that the Notes in UserSessionRepository.insertOrUpdate seem to be always overwritten. If after the call of the TokenManager still further calls come thus the Notes set by me are overwritten.

First analysis shows that AuthenticatedClientSessionModels sometimes have a stale reference to their corresponding user session. Since the user session is the aggregate root and is saved whenever the auth client session is updated, this leads to overriding the user session with old data.


Can't rename a dependency package in pubspec.yaml

This is a feature request
I managed to add a relative path dependency in my app
  name: myapp
  description: A sample app
  dependencies:
    mylib:
      path: ../mylib
and then import it in my source code
  import 'package:mylib/mylib.dart';
However, the name 'mylib' is taken from the library package pubspec and if I want to change it (for example 'mynewlib'), I have to change the name everywhere (pubspec AND dart source code)
It also prevent having 2 packages with the same name (yes I know, weird, but I don't control what people put in pub.dartlang.org). What I'd like to do is something like
  name: myapp
  description: A sample app
  dependencies:
    mylib:
      path: ../mylib
      name: mynewlib
and have in source code
  import 'package:mynewlib/mylib.dart';
However I cannot find the proper syntax and whether that's possible or not. (Sample code ready for testing is here: https://github.com/alextekartik/dart-test/tree/master/lib_test). To note that here I'm not talking about library name but package name (and naming the package mylib can be confusing)
See here: http://stackoverflow.com/questions/16791441/is-it-possible-to-give-a-different-name-to-a-package-dependency-in-pubspec

This issue has been moved to dart-lang/pub#563.


[Improve][Connector-V2][JDBC] Add exactly-once for JDBC source connector

Purpose of this pull request
Add exactly-once for JDBC source connector
Check list

[ ] Code changed are covered with tests, or it does not need tests for reason:
[ ] If any new Jar binary package adding in your PR, please add License Notice according
New License Guide
[ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs
[ ] If you are contributing the connector code, please check that the following files are updated:

Update change log that in connector document. For more details you can refer to connector-v2
Update plugin-mapping.properties and add new connector information in it
Update the pom file of seatunnel-dist

Please do integration test and veirfy the pull request is work.

A test case can be provided after #3637 .

A test case can be provided after #3637 .

Thanks.


Port over MessageBatch interface from .NET

The MessageBatch interface allows you to send messages in a batch envelope. and then have each of those inner messages being unpacked onto the actor mailbox one by one.
https://github.com/asynkron/protoactor-dotnet/blob/dev/src/Proto.Actor/Messages/IMessageBatch.cs
This allows actor developers to build actors that still handle single messages, while the infrastructure might actually be passing things in batches. e.g. if you read a lot of data out of kafka in one go.

done


Release v0.1.0

There is an issue with deploying to Pypi. The poetry build is not using the right package name as expected. Even though I'm using the https://github.com/tiangolo/poetry-version-plugin plugin :(

Due to multiple tests with Pypi, it's difficult to get back some version numbers. Also, I couldn't get the dynamic version to work for some reason. I'll find time to check some other time, but I think for now, it's ready for public release and feedback.
@SammyGIS


Rough implementation of channel filters 'Channel' object.

Wrote this on a plane after drinking gin, so needs scrutiny.

@Kalmalyzer @astruyk feel free to pull this apart. :)
Also, I'm thinking:

Do Filters really need to be IFilter? Why not a simple delegate? Would cut down on boiler plate code.
The inconsistent namespaces are beginning to annoy me. Would it be awful if I refactored everything into an UberLogger namespace, and simplified some of the class names? Would break existing code, which could be annoying for people...

Thanks for making an example implementation! I was swamped with other things at work so it took some time until I was ready to turn to this again.
This setup makes sense to me by and large. I have one primary concern and that has to do with naming:
WigWamChannel = new UberLoggerChannel("WigWam", new List<UberLogger.IFilter>() { new UberLogger.FilterWarnings() });

A "Filter" is something that filters things - some things are let through, other things are stopped. Some filters are particular in that they let certain things through - other filters are particular in that they stop certain things. So what does "UberLogger.FilterWarnings" mean? Does it mean, "stop warnings" or does it mean "pass through warnings and stop everything else"? I prefer naming which makes that explicit. Example would be naming these as "StopWarnings" or "MuteWarnings", or "SuppressWarnings" (my personal preference). I'm not 100% happy with those either but I prefer any of those over "FilterWarnings".
The config line is pretty long too. I think it would be good to provide a couple of static lists with names like "SuppressMessages", "SuppressMessagesAndWarnings", "SuppressAll" which then contain appropriate filtering operations. Muting a channel entirely can then be done via:
WigWamChannel = new UberLoggerChannel("WigWam", UberLogger.SuppressAll);

so this would make the common muting options as easy to use as enums.
With regards to IFilter interface vs delegate, I think it would be preferable to have it be a delegate instead of an interface. I set it up as an interface primarily because I wasn't familiar enough with delegates at that time.
Finally, namespaces. Yes, I think this is a good time to move it all into a namespace, existing users be damned :)


How too ESP8266 (as Arduino)

I'm using an ESP8266 to control my home, and would like to be able to send notification to Google home, like this instead to have "bip" when the door is closed, I will have Google home says "Door Closed".
but I don't really understand how to build the same thing on an ESP8266
Should i send a Get request http://192.168.0.XXX:8091/google-home-notifier?text=Hello+Google+Home ?
I don't really understand what Google-home-notifier really does / send to Google Home ?
thanks for your help

I'm developing google-home-notifier for ESP8266/32.
https://github.com/horihiro/esp8266-google-home-notifier
And it works well as far as I know.
Could you please try it?
It can be installed from Arduino Library manager.


How do you deal with recession in tech field?

Hello, I'm Miso, frontend level 0 who one day might get a career path in Germany. I found your repo on tweeter. Your motivation to create this achievement is quite inspiring for me, since I'm just a newbie in this field and thought GitHub is mainly for cool-tech-product-to-keep-newbies-away-from-them.
Anyway, I wonder

Do you feel 'Tech hiring freezing' in Germany as well?

If there's any, how do you/your surroundings (like colleagues etc) deal with it?

Thanks!
Miso

Hello Miso, to answer your question

Yes, Germany cannot be exempted from this economic reality, thus there are many companies who're hiring slower or have done layoffs. But these I feel are mostly driven by the US companies. Yet still, you'll be able to find a job if you have at least 2-3 years of Job experience. Germany is chronically short of tech workers, and even changing the legislation quite a lot to adjust to that reality. People in reddit also claim that "Germany is short of people who're willing to work for cheap money" I also kinda feel that, but anyways it's a fact that there are many companies who still hire.

I haven't lost my job, so I can't speak for myself, but even though people has lost their job, if you have experience, you'll be able to find something. People who got laid off might occasionally lower their salary expectations if they were already in a very high salary band but I don't know anyone who lost their job and was not able to find a new one.

Thanks for your prompt and fulfilled comment, H-joo!
Have a beautiful weekend and I will return and open another issues if there's any.
Miso


Add Chatbooks React Exporter

This is really a specific use case for how we use Supernova at Chatbooks. We have our typography TypeScript Types setup to only expect string values, not measures, and due to the weird way Circular Pro font works, we have to remap the Figma font family to the actual web font name (which is admittedly janky).
The reusability of this specific exporter for other people outside of Chatbooks will be minimal, other than potentially being a reference for forking and creating your own React transformations.

You know, it helps if you read the documentation properly. Closing this PR as it has no need to be merged. Sorry... ;(


How to log a message without raising an error

I would like to write to some information the elmah log but NOT have to raise or throw an error.
How do I do that.

I don't think Elmah is that kind of logger, is it? Seems to me it's expressly for reporting details on exceptions, stack traces, request contexts, etc.
Whereas we use a logger like log4net for its Info, Warning, and Error methods. If there's more to Elmah I'd be thrilled to learn more about it


Error on write after stop requested

2016/01/30 10:27:08 ERR [proto] error on write, io: read/write on closed pipe
2016/01/30 10:27:08 ERR [net-table] error on sending packet to "<IP_ADDRESS>", error on write transfer message, io: read/write on closed pipe
2016/01/30 10:27:09 ERR [proto] error on write, io: read/write on closed pipe
2016/01/30 10:27:09 ERR [net-table] error on sending packet to "<IP_ADDRESS>", error on write transfer message, io: read/write on closed pipe

The ping was running and during this process I stopped  the app, then I saw that errors.

Fixed.


[Search experience] Update notebooks and docs with ELSER v2

This PR updates :

ELSER notebook to  use ELSER v2 .elser_model_2 and use sparse_vector
Updates all the usage of ELSER model .elser_model_1 to use .elser_model_2
Updates relevance-workbench/README.md with latest UI
Creates a new notebook under the new folder : /notebooks/model-upgrades/ with steps on how to upgrade your index to an ELSER model
Updated Readme with new models upgrading file path

🔔  Merge this PR when 8.11 is released

reviewed last changes, look great! Just one suggestion, rather than deleting the elser model, could we check to see if it exists and skip download?
# delete model if already downloaded and deployed
try:
  client.ml.delete_trained_model(model_id=".elser_model_2",force=True)
  print("Model deleted successfully, We will proceed with creating one")
except exceptions.NotFoundError:
  print("Model doesn't exist, but We will proceed with creating one")

# Creates the ELSER model configuration. Automatically downloads the model if it doesn't exist.
client.ml.put_trained_model(
    model_id=".elser_model_2",
    input={
      "field_names": ["text_field"]
    }
  )

reviewed last changes, look great! Just one suggestion, rather than deleting the elser model, could we check to see if it exists and skip download?

We could do that but GET trained model API returns 404 if the model doesn't exist.
Start trained model deployment API will also fail if model already deployed or doesn't exist. To handle this, we would have to save status of this GET and check this flag in download model and start deployment cell.
When the model is recreated, if there are any indices that use this model, text_expansion query works. Tested in cloud.

@saarikabhasi You can also add this notebook to notebooks/search/Makefile so that it runs when you run make from the top.

@saarikabhasi You can also add this notebook to notebooks/search/Makefile so that it runs when you run make from the top.

updated in a3a7cc6c0d2b5bc0b0b9305c826b4471be69c0f2


Bug in $this->authorize('store', App\Item::class, $foo);

Hi, have this method in ItemPolicy:
public function store(User $user, $item_class, Foo $foo)
{

When called $this->authorize('store', App\Item::class, $foo); the last, third parameter Foo $foo is not passed:
Argument 3 passed to App\Policies\ItemPolicy::store() must be an instance of App\Foo, none given
...
at ItemPolicy->store(object(User), 'App\Item')
...

When called in this form, it works: $this->authorize('store', [App\Item::class, $foo]);
I was writing related issue at laravel/internals and found this bug.

AFAIK that's how it works, you may pass 1 argument or an array of arguments that'll be passed to the method.
From the docs:

If your ability needs multiple arguments, simply pass an array of arguments to the Gate methods:

https://laravel.com/docs/5.2/authorization#checking-abilities


Adding support for describing a stack

I also upgraded to the latest aws java version 1.9.24

Hey Jesse, thanks for the contribution.  Can you confirm that you're releasing this code under the Apache  2.0 license?

Sounds good. Can we please get a release with this?

Working on a release now.

boomshakalaka


Slim3: XML _METHOD override throws InvalidArgumentException

Given the test XML:
<test><person><name>Josh</name></person><_METHOD>HEAD</_METHOD></test>

I would expect Slim's method override (in Slim\Http\Request) to change the request type from the original to "HEAD". However, passing that string in as the request body (with an application/xml;charset=utf8 content-type) results in an error:
InvalidArgumentException: Unsupported HTTP method; must be a string, received SimpleXMLElement

/vagrant/..../vendor/slim/slim/Slim/Http/Request.php:308
/vagrant/..../vendor/slim/slim/Slim/Http/Request.php:243

A "quick fix" for this seems to be changing \Slim\Http\Request::getMethod
$this->method = $this->filterMethod($body->_METHOD);

to
$this->method = $this->filterMethod((string)$body->_METHOD);

I have not provided a PR as I'm not 100% confident that is how you are expecting people to override the request method in XML and I'm not confident the fix is the best solution (I dislike typecasting unless really really necessary) [If I get time at the weekend, I'll see if I can do something though]
[PHP7, composer installed]

I think the above solution is fine. This was just an oversight on our part. I don't think I have seen anyone use the XML portion yet. This could also be somewhat related to the XXE vuln that Akrabat patched,
If you could please PR this and add a Unit Test for this as well that would be wonderful.
The unit tests obviously did not cover this test case or we would see the build failing.
Good catch! Thank you!

:+1:

I would just make sure that we agree on where the method override element and/or attribute exists in the request body XML. Should be a child element named "method" beneath the root element? Should it be in an attribute on the root element? Or both?

Or should we just say it's better to rely on a request header for this?

Both imo... I actually created a middleware to handle it, it felt better than having it in the slim source.

I actually got half way througg writing my own middleware too: but keyed
off slightly different fields: then found out if _METHOD was set in the
body it would always override my call to setMethod.
I would personally prefer this sort of "magic" to be non-core
On 1 Dec 2015 16:39, "Glenn Eggleton"<EMAIL_ADDRESS>wrote:

Both imo... I actually created a middleware to handle it, it felt better
than having it in the slim source.
—
Reply to this email directly or view it on GitHub
https://github.com/slimphp/Slim/issues/1637#issuecomment-161025334.

In an ideal world though, we wouldn't support _METHOD at all!

I am okay with removing support for _METHOD, in favour of a slim middleware

If we remove this to middleware, it should be a first-class middleware and available as soon as 3.0 launches.

@codeguy wanna review this? https://github.com/geggleto/method-override

@geggleto Should also support the X-Http-Method-Override header.

Will update that tonight if I get a chance.

@akrabat @codeguy https://github.com/geggleto/method-override/releases/tag/0.1.0 updated to include the header override

So we're going to remove _METHOD support in Slim 3 and document using the middleware? If so, are we going to adopt the middleware to the slimphp organisation?

I leave it up to you guys ;) matters not to me :D

Moving this to optional middleware is fine, imo. It'll have a marginal speed increase, and not everyone needs this functionality. But it should be moved to the @slimphp organization if it's going to be extracted. @geggleto I'll add you to the @slimphp/maintainers team if this sounds good to you.

Personally, I would leave this until a 3.1.0 level release. Release Candidates are complete functionality, that only expect last minute bug fixes. The proposed change here goes against this as Slim 3 is in an RC stage.
Please reconsider this for a minor version update to keep with semantic versioning.

Tricky isn't it? If we don't remove it now, then we're keeping it until 4.0.

All I can say is sorry guys for starting this tricky conversation... My primary preference is to rip out the "magic" and replace it with middleware, my second preference is to remove the "Force method override recalculation" setting in Request::withMethod (so Slim always uses what is "forceabiliy set/set by other code") - the second option allows "patching" of the existing code, but a way for devs to "bypass" it on preference (which isn't possible atm).

my second preference is to remove the "Force method override recalculation" setting in Request::withMethod (so Slim always uses what is "forceabiliy set/set by other code")

I am leaning towards this change on the grounds that if you call withMethod('POST'), it's reasonable to assume that getMethod() will return 'POST'!

PR #1655 to fix the string issue with XML _METHOD and also to ensure that withMethod() does what you expect.

I also don't mind removing the _METHOD detection code altogether, but I don't have enough strong feelings either way as long as there's a way to turn it off and $request = $request->withMethod($request->getOriginalMethod()); will do so.

@codeguy sounds fine to me.
@akrabat I would think that 3.1 might be a more proper place to put this. Is there a way to can mark it as going to be deprecated in 3.1 ?

The way to put it into 3.1 is if we add the middleware automatically and have a setting to disable it. i.e. an application that uses _METHOD parameters must continue to work with no code changes in 3.1 regardless of whether it is marked deprecated.

I don't know ... that seems like replacing magic with more magic ?

shrugs
This is how SemVer works.

Closing as can't remove until 4.0.


kustomization.yaml: Use patchesStrategicMerge.

Change "patches" to "patchesStrategicMerge".  The use of "patches" has
been deprecated since v1.0.9:
https://github.com/kubernetes-sigs/kustomize/blob/v1.0.9/pkg/types/kustomization.go#L129
With kustomize v3, this fails with a message similar to the one seen
in this issue:
https://github.com/kubernetes-sigs/kustomize/issues/1373
This change should not result in any change in behavior, but makes
this kustomization.yaml no longer use a deprecated field.

I did a big vendor updated to get the same fix in our vendored copy of cluster-api.  To get the vendor update to work properly, i ended up having to just update everything.

Looks reasonable to me. Just need to solve that dependency problem.

Looks reasonable to me. Just need to solve that dependency problem.

forgot to git add new files in vendor/.  CI passes now


Receiving Json Parsing error when receiving 304 status when ETag in response header is null.

Describe the bug
Each time FetchToggles is called when no feature flags have changed we see a logging that the Json serializer can not parse the empty response.
To Reproduce
Steps to reproduce the behavior:

Configure unleash with appName, projectId, apiKey, url, we use the System.Text.Json.JsonSerializer
Create an Unleashclient with FetchToggleInterval set to i.e. 20 seconds.
Call the client.IsEnabled("any flag", context)
Wait for next fetch interval
See error

Expected behavior
We should see no errors.
Actual behavior
In the logs you see that the error appears:
The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.",
Desktop (please complete the following information):

OS: Windows
Browser chrome
Version 4.1.5 (latest at the moment of writing)

Additional context
After some debugging I see that when the status 304 is received (= NOTMODIFIED) we enter the HandleSuccessResponse() function in the UnleashApiClient.cs file.
There first a check is made if the eTag has changed. If not the response.Content is Deserialized but since it is empty an error is thrown.
This can easily be fixed by extending the condition "if(newEtag == etag)" to:
        if (newEtag == etag || response.StatusCode == HttpStatusCode.NotModified)
        {
            return new FetchTogglesResult
            {
                HasChanged = false,
                Etag = newEtag,
                ToggleCollection = null,
            };
        }

So in the case the status = NOTMODIFIED we directly return that there were no changes.
Can this bugfix taken up a.s.a.p.?

Thanks for applying this change.


Hi, thanks very much for sharing these codes. Could you please release training and testing codes, along with pre-trained models?

Hi, I will gradually open most of the codes, including training and testing pipelines. Though I am not quite sure whether I can release the pre-trained models at this point as it is related to commercialization.

would also really appreciate testing and training pipelines to build up my own models and report back to contribute better


chore(main): release 0.0.3

:robot: I have created a release beep boop
0.0.3 (2024-09-18)
Features

inheritance support / added more tests (#1) (13f626c)

Bug Fixes

export injectAsync and AsyncFactoryProvider (02d5fb0)

Miscellaneous Chores

release 0.0.3 (1f8768f)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v0.0.3
:sunflower:


Native curl mode

Closes #7
This will now use the native curl compression option and native curl user agent for the command generation, as discussed in the linked issue. Hope you agree with my naming choices, but feel free to make changes!
I've also upgraded Req to the latest version.

This is looking great!
I am still kind of torn on mode vs style. Can you tell me why you like mode better?

My though was that style could be confused with the flags (style). But I agree, mode doesn't fit perfectly either. What about flavour?

I do like flavour. Let's let it marinade for a day or two.

Let's do flavour, but also support flavor, the American English spelling.
What do you think?

I like it! I will implement the changes soon!

I've updated the PR with the changes to flavor/flavor and i snuck in a small change to support the --compressed flag as well in the parser

Looks great, thanks for this :)


Dreambooth script fails due to incorrect argument type

Describe the bug
When running the dreambooth script, I encounter the following:
Expected tensor for argument #1 'indices' to have one of the following scalar types: Long, Int; but got torch.cuda.HalfTensor instead (while checking arguments for embedding)
Reproduction
accelerate config
In which compute environment are you running? ([0] This machine, [1] AWS (Amazon SageMaker)): 0
Which type of machine are you using? ([0] No distributed training, [1] multi-CPU, [2] multi-GPU, [3] TPU [4] MPS): 0
Do you want to run your training on CPU only (even if a GPU is available)? [yes/NO]: NO
Do you want to use DeepSpeed? [yes/NO]: yes
Do you want to specify a json file to a DeepSpeed config? [yes/NO]: NO
What should be your DeepSpeed's ZeRO optimization stage (0, 1, 2, 3)? [2]: 2
Where to offload optimizer states? [none/cpu/nvme]: cpu
Where to offload parameters? [none/cpu/nvme]: cpu
How many gradient accumulation steps you're passing in your script? [1]:
Do you want to use gradient clipping? [yes/NO]: NO
Do you want to enable deepspeed.zero.Init when using ZeRO Stage-3 for constructing massive models? [yes/NO]: NO
How many GPU(s) should be used for distributed training? [1]:1
Do you wish to use FP16 or BF16 (mixed precision)? [NO/fp16/bf16]: fp16
Logs
Traceback (most recent call last):
  File "/home/public/ml/github/diffusers/examples/dreambooth/train_dreambooth.py", line 824, in <module>
    main(args)
  File "/home/public/ml/github/diffusers/examples/dreambooth/train_dreambooth.py", line 763, in main
    encoder_hidden_states = text_encoder(batch[0][1])[0]
  File "/home/public/anaconda3/envs/dreambooth/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/public/anaconda3/envs/dreambooth/lib/python3.9/site-packages/deepspeed/utils/nvtx.py", line 11, in wrapped_fn
    return func(*args, **kwargs)
  File "/home/public/anaconda3/envs/dreambooth/lib/python3.9/site-packages/deepspeed/runtime/engine.py", line 1666, in forward
    loss = self.module(*inputs, **kwargs)
  File "/home/public/anaconda3/envs/dreambooth/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/public/anaconda3/envs/dreambooth/lib/python3.9/site-packages/transformers/models/clip/modeling_clip.py", line 733, in forward
    return self.text_model(
  File "/home/public/anaconda3/envs/dreambooth/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/public/anaconda3/envs/dreambooth/lib/python3.9/site-packages/transformers/models/clip/modeling_clip.py", line 636, in forward
    hidden_states = self.embeddings(input_ids=input_ids, position_ids=position_ids)
  File "/home/public/anaconda3/envs/dreambooth/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/public/anaconda3/envs/dreambooth/lib/python3.9/site-packages/transformers/models/clip/modeling_clip.py", line 165, in forward
    inputs_embeds = self.token_embedding(input_ids)
  File "/home/public/anaconda3/envs/dreambooth/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/public/anaconda3/envs/dreambooth/lib/python3.9/site-packages/torch/nn/modules/sparse.py", line 160, in forward
    return F.embedding(
  File "/home/public/anaconda3/envs/dreambooth/lib/python3.9/site-packages/torch/nn/functional.py", line 2210, in embedding
    return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
RuntimeError: Expected tensor for argument #1 'indices' to have one of the following scalar types: Long, Int; but got torch.cuda.HalfTensor instead (while checking arguments for embedding)

System Info
python: 3.9
diffusers: 0.8.0-dev
transformers: 4.24.0

I met the same problem, have you solved it yet? @nosajthenitram


Develop historical content requirements and testable approach

Evaluate from ACT work how far to go back and test some initial diffs from current UMLS distribution to priors. Build test case of adding removed content.

It is decided in HuBMAP versioning approach of APIs to simply allow API to point to prior version(s) of graph rather than to deploy a master graph with all now obsolete, but prior valid, items in the graph. This de-prioritizes this effort to some degree as it ONLY applies to ACT. Issue left open but not actively working on it.


Coverage remained the same at 33.139% when pulling 4493eba5c9b757d8f094a5b182776fb1d68f127e on fucking-coveralls into e07df15f6e63a156f2f1af74ae117ca85f8f5d08 on dev.


view count not incrementing for new valorant posts??

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
view count not incrementing for new valorant posts??

nvm just needed to update server -_-


fix: pipeline job failed

PR Checklist
Please check if your PR fulfills the following requirements:

[X] The commit message follows our guidelines: https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md#commit
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?
Some pipline job failed due to a mismatch version of Angular dependencies
Issue Number: N/A
What is the new behavior?
All Angular dependencies are now correct
Does this PR introduce a breaking change?
[ ] Yes
[X] No

Other information

@HyperLife1119 @OriginRing this PR is needed to fix the pipeline job. We need to merge it before continuing to merge other.
This PR just fixed the version of dependencies correctly


com.google.api.gax.rpc.UnavailableException: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception

Hi I am getting weird error when pushing message to pubsub.
com.google.api.gax.rpc.UnavailableException: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0]

what is root cause of this error.

Hi, I am getting exactly same error.
Can you please update with the fix?

I am getting this too.
I wasn't experiencing the issue til I moved my build to AWS.

I have the same error.  Anyone find a resolution for this?

Please find the answer here. https://stackoverflow.com/questions/60495124/gcp-pubsub-sun-security-provider-certpath-suncertpathbuilderexception-unable-t

I do have the same issue , it appears after 2 hours of pull , and my subscriber stops listening to until I do a restart.

@sivasankar244k Please file an issue on the Pub/Sub repo: https://github.com/googleapis/java-pubsub/issues.


[BUG]: agent and llama3

How are you running AnythingLLM?
Docker (local)
What happened?
i want use sql agent and llama3 8b instruct q8 and the llm model don't send back a good JSON.
POST /api/chat HTTP/1.1
host: <IP_ADDRESS>:11434
connection: keep-alive
Content-Type: application/json
Accept: application/json
User-Agent: ollama-js/0.5.0 (x64 linux Node.js/v18.19.1)
accept-language: *
sec-fetch-mode: cors
accept-encoding: gzip, deflate
content-length: 10878

{"model":"llama3:8b-instruct-q8_0","messages":[{"content":"You are a program which picks the most optimal function and parameters to call.\n      DO NOT HAVE TO PICK A FUNCTION IF IT WILL NOT HELP ANSWER OR FULFILL THE USER'S QUERY.\n      When a function is selection, respond in JSON with no additional text.\n      When there is no relevant function to call - return with a regular chat text response.\n      Your task is to pick a **single** function that we will use to call, if any seem useful or relevant for the user query.\n\n      All JSON responses should have two keys.\n      'name': this is the name of the function name to call. eg: 'web-scraper', 'rag-memory', etc..\n      'arguments': this is an object with the function properties to invoke the function.\n      DO NOT INCLUDE ANY OTHER KEYS IN JSON RESPONSES.\n\n      Here are the available tools you can use an examples of a query and response so you can understand how each one works.\n      -----------\nFunction name: rag-memory\nFunction Description: Search against local documents for context that is relevant to the query or store a snippet of text into memory for retrieval later. Storing information should only be done when the user specifically requests for information to be remembered or saved to long-term memory. You should use this tool before search the internet for information. Do not use this tool unless you are explicity told to 'remember' or 'store' information.\nFunction parameters in JSON format:\n{\n    \"action\": {\n        \"type\": \"string\",\n        \"enum\": [\n            \"search\",\n            \"store\"\n        ],\n        \"description\": \"The action we want to take to search for existing similar context or storage of new context.\"\n    },\n    \"content\": {\n        \"type\": \"string\",\n        \"description\": \"The plain text to search our local documents with or to store in our vector database.\"\n    }\n}\nQuery: \"What is AnythingLLM?\"\nJSON: {\"action\":\"search\",\"content\":\"What is AnythingLLM?\"}\nQuery: \"What do you know about Plato's motives?\"\nJSON: {\"action\":\"search\",\"content\":\"What are the facts about Plato's motives?\"}\nQuery: \"Remember that you are a robot\"\nJSON: {\"action\":\"store\",\"content\":\"I am a robot, the user told me that i am.\"}\nQuery: \"Save that to memory please.\"\nJSON: {\"action\":\"store\",\"content\":\"<insert summary of conversation until now>\"}\n-----------\n-----------\nFunction name: document-summarizer\nFunction Description: Can get the list of files available to search with descriptions and can select a single file to open and summarize.\nFunction parameters in JSON format:\n{\n    \"action\": {\n        \"type\": \"string\",\n        \"enum\": [\n            \"list\",\n            \"summarize\"\n        ],\n        \"description\": \"The action to take. 'list' will return all files available with their filename and descriptions. 'summarize' will open and summarize the file by the a document name.\"\n    },\n    \"document_filename\": {\n        \"type\": \"string\",\n        \"x-nullable\": true,\n        \"description\": \"The file name of the document you want to get the full content of.\"\n    }\n}\nQuery: \"Summarize example.txt\"\nJSON: {\"action\":\"summarize\",\"document_filename\":\"example.txt\"}\nQuery: \"What files can you see?\"\nJSON: {\"action\":\"list\",\"document_filename\":null}\nQuery: \"Tell me about readme.md\"\nJSON: {\"action\":\"summarize\",\"document_filename\":\"readme.md\"}\n-----------\n-----------\nFunction name: web-scraping\nFunction Description: Scrapes the content of a webpage or online resource from a provided URL.\nFunction parameters in JSON format:\n{\n    \"url\": {\n        \"type\": \"string\",\n        \"format\": \"uri\",\n        \"description\": \"A complete web address URL including protocol. Assumes https if not provided.\"\n    }\n}\nQuery: \"What is useanything.com about?\"\nJSON: {\"url\":\"https://useanything.com\"}\nQuery: \"Scrape https://example.com\"\nJSON: {\"url\":\"https://example.com\"}\n-----------\n-----------\nFunction name: web-browsing\nFunction Description: Searches for a given query using a search engine to get better results for the user query.\nFunction parameters in JSON format:\n{\n    \"query\": {\n        \"type\": \"string\",\n        \"description\": \"A search query.\"\n    }\n}\nQuery: \"Who won the world series today?\"\nJSON: {\"query\":\"Winner of today's world series\"}\nQuery: \"What is AnythingLLM?\"\nJSON: {\"query\":\"AnythingLLM\"}\nQuery: \"Current AAPL stock price\"\nJSON: {\"query\":\"AAPL stock price today\"}\n-----------\n-----------\nFunction name: sql-list-databases\nFunction Description: List all available databases via `list_databases` you currently have access to. Returns a unique string identifier `database_id` that can be used for future calls.\nFunction parameters in JSON format:\n{}\nQuery: \"What databases can you access?\"\nJSON: {}\nQuery: \"What databases can you tell me about?\"\nJSON: {}\nQuery: \"Is there a database named erp-logs you can access?\"\nJSON: {}\n-----------\n-----------\nFunction name: sql-list-tables\nFunction Description: List all available tables in a database via its `database_id`.\nFunction parameters in JSON format:\n{\n    \"database_id\": {\n        \"type\": \"string\",\n        \"description\": \"The database identifier for which we will list all tables for. This is a required parameter\"\n    }\n}\nQuery: \"What tables are there in the `access-logs` database?\"\nJSON: {\"database_id\":\"access-logs\"}\nQuery: \"What information can you access in the customer_accts postgres db?\"\nJSON: {\"database_id\":\"customer_accts\"}\nQuery: \"Can you tell me what is in the primary-logs db?\"\nJSON: {\"database_id\":\"primary-logs\"}\n-----------\n-----------\nFunction name: sql-get-table-schema\nFunction Description: Gets the table schema in SQL for a given `table` and `database_id`\nFunction parameters in JSON format:\n{\n    \"database_id\": {\n        \"type\": \"string\",\n        \"description\": \"The database identifier for which we will connect to to query the table schema. This is a required field.\"\n    },\n    \"table_name\": {\n        \"type\": \"string\",\n        \"description\": \"The database identifier for the table name we want the schema for. This is a required field.\"\n    }\n}\nQuery: \"What does the customers table in access-logs look like?\"\nJSON: {\"database_id\":\"access-logs\",\"table_name\":\"customers\"}\nQuery: \"Get me the full name of a company in records-main, the table should be call comps\"\nJSON: {\"database_id\":\"records-main\",\"table_name\":\"comps\"}\n-----------\n-----------\nFunction name: sql-query\nFunction Description: Run a read-only SQL query on a `database_id` which will return up rows of data related to the query. The query must only be SELECT statements which do not modify the table data. There should be a reasonable LIMIT on the return quantity to prevent long-running or queries which crash the db.\nFunction parameters in JSON format:\n{\n    \"database_id\": {\n        \"type\": \"string\",\n        \"description\": \"The database identifier for which we will connect to to query the table schema. This is required to run the SQL query.\"\n    },\n    \"sql_query\": {\n        \"type\": \"string\",\n        \"description\": \"The raw SQL query to run. Should be a query which does not modify the table and will return results.\"\n    }\n}\nQuery: \"How many customers are in dvd-rentals?\"\nJSON: {\"database_id\":\"dvd-rentals\",\"sql_query\":\"SELECT * FROM customers\"}\nQuery: \"Can you tell me the total volume of sales last month?\"\nJSON: {\"database_id\":\"sales-db\",\"sql_query\":\"SELECT SUM(sale_amount) AS total_sales FROM sales WHERE sale_date >= DATEADD(month, -1, DATEFROMPARTS(YEAR(GETDATE()), MONTH(GETDATE()), 1)) AND sale_date < DATEFROMPARTS(YEAR(GETDATE()), MONTH(GETDATE()), 1)\"}\nQuery: \"Do we have anyone in the staff table for our production db named 'sam'? \"\nJSON: {\"database_id\":\"production\",\"sql_query\":\"SElECT * FROM staff WHERE first_name='sam%' OR last_name='sam%'\"}\n-----------\n-----------\nFunction name: create-chart\nFunction Description: Generates the JSON data required to generate a RechartJS chart to the user based on their prompt and available data.\nFunction parameters in JSON format:\n{\n    \"type\": {\n        \"type\": \"string\",\n        \"enum\": [\n            \"area\",\n            \"bar\",\n            \"line\",\n            \"composed\",\n            \"scatter\",\n            \"pie\",\n            \"radar\",\n            \"radialBar\",\n            \"treemap\",\n            \"funnel\"\n        ],\n        \"description\": \"The type of chart to be generated.\"\n    },\n    \"title\": {\n        \"type\": \"string\",\n        \"description\": \"Title of the chart. There MUST always be a title. Do not leave it blank.\"\n    },\n    \"dataset\": {\n        \"type\": \"string\",\n        \"description\": \"Valid JSON in which each element is an object for Recharts API for the 'type' of chart defined WITHOUT new line characters. Strictly using this FORMAT and naming:\\n{ \\\"name\\\": \\\"a\\\", \\\"value\\\": 12 }].\\nMake sure field \\\"name\\\" always stays named \\\"name\\\". Instead of naming value field value in JSON, name it based on user metric and make it the same across every item.\\nMake sure the format use double quotes and property names are string literals. Provide JSON data only.\"\n    }\n}\n-----------\n-----------\nFunction name: save-file-to-browser\nFunction Description: Save content to a file when the user explicity asks for a download of the file.\nFunction parameters in JSON format:\n{\n    \"file_content\": {\n        \"type\": \"string\",\n        \"description\": \"The content of the file that will be saved.\"\n    },\n    \"filename\": {\n        \"type\": \"string\",\n        \"description\": \"filename to save the file as with extension. Extension should be plaintext file extension.\"\n    }\n}\nQuery: \"Save me that to a file named 'output'\"\nJSON: {\"file_content\":\"<content of the file we will write previous conversation>\",\"filename\":\"output.txt\"}\nQuery: \"Save me that to my desktop\"\nJSON: {\"file_content\":\"<content of the file we will write previous conversation>\",\"filename\":\"<relevant filename>.txt\"}\nQuery: \"Save me that to a file\"\nJSON: {\"file_content\":\"<content of the file we will write from previous conversation>\",\"filename\":\"<descriptive filename>.txt\"}\n-----------\n\n\n      Now pick a function if there is an appropriate one to use given the last user message and the given conversation so far.","role":"system"},{"content":"@agent donnes moi la liste des tables de la base odbc","role":"user"}],"options":{"temperature":0},"stream":false}HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Date: Thu, 06 Jun 2024 08:53:31 GMT
Content-Length: 726

{"model":"llama3:8b-instruct-q8_0","created_at":"2024-06-06T08:53:31.170548254Z","message":{"role":"assistant","content":"I can help you with that!\n\nBased on your request, I will call the `sql-list-tables` function with the database ID set to \"odbc\".\n\nHere is the JSON payload:\n```\n{\n  \"database_id\": \"odbc\"\n}\n```\nPlease note that this function assumes that the ODBC database is accessible and configured correctly.\n\nIf the function is successful, it will return a list of tables available in the \"odbc\" database."},"done_reason":"stop","done":true,"total_duration":10229377151,"load_duration":6760490788,"prompt_eval_count":1275,"prompt_eval_duration":808422000,"eval_count":94,"eval_duration":2609574000}

the answer content only one key and not the key "name"
{  "database_id": "odbc"}

In the system prompt, there is never a complete example.
Can we have an access to modify the system prompt ?
Are there known steps to reproduce?
No response

docker log:
[AgentHandler] Start c52c6ce7-cb59-4c44-8caf-4e3566ce20f3::ollama:llama3:8b-instruct-q8_0
[TELEMETRY SENT] {
  event: 'agent_chat_started',
  distinctId: '98297666-e886-4011-9303-5720b1f81b92',
  properties: { runtime: 'docker' }
}
[AgentHandler] Attached websocket plugin to Agent cluster
[AgentHandler] Attached chat-history plugin to Agent cluster
[AgentHandler] Attaching user and default agent to Agent cluster.
[AgentHandler] Attached rag-memory plugin to Agent cluster
[AgentHandler] Attached document-summarizer plugin to Agent cluster
[AgentHandler] Attached web-scraping plugin to Agent cluster
[AgentHandler] Attached web-browsing plugin to Agent cluster
[AgentHandler] Attached sql-agent:sql-list-databases plugin to Agent cluster
[AgentHandler] Attached sql-agent:sql-list-tables plugin to Agent cluster
[AgentHandler] Attached sql-agent:sql-get-table-schema plugin to Agent cluster
[AgentHandler] Attached sql-agent:sql-query plugin to Agent cluster
[AgentHandler] Attached create-chart plugin to Agent cluster
[AgentHandler] Attached save-file-to-browser plugin to Agent cluster
[AgentLLM - llama3:8b-instruct-q8_0] Invalid function tool call: Missing name or arguments in function call..
[AgentLLM - llama3:8b-instruct-q8_0] Will assume chat completion without tool call inputs.
[TELEMETRY SENT] {
  event: 'agent_chat_sent',
  distinctId: '98297666-e886-4011-9303-5720b1f81b92',
  properties: { runtime: 'docker' }
}
[AgentHandler] End c52c6ce7-cb59-4c44-8caf-4e3566ce20f3::ollama:llama3:8b-instruct-q8_0

Also sometimes (with a differents user prompt) , i can have something as this:
{"model":"llama3:8b-instruct-q8_0","created_at":"2024-06-06T11:22:33.802299259Z","message":{"role":"assistant","content":"{\n    "name": "sql-list-tables",\n    "database_id": "odbc"\n}"},"done_reason":"stop","done":true,"total_duration":8570483975,"load_duration":7048436750,"prompt_eval_count":1310,"prompt_eval_duration":836772000,"eval_count":22,"eval_duration":585033000}
or this:
{"model":"llama3:8b-instruct-q8_0","created_at":"2024-06-06T09:37:00.558348692Z","message":{"role":"assistant","content":"I can help you with that!\n\nHere is the JSON response:\n\n{\n  \"name\": \"sql-list-tables\",\n  \"database_id\": \"odbc\"\n}\n\nThis function will list all available tables in the ODBC database. Let me know if you'd like to proceed with this query!"},"done_reason":"stop","done":true,"total_duration":12991065971,"load_duration":10319062185,"prompt_eval_count":1302,"prompt_eval_duration":837425000,"eval_count":65,"eval_duration":1785383000}
is it possible to parse the message to extract the json if the json is not alone in the message ?

is it possible to parse the message to extract the json if the json is not alone in the message ?

We do this actually already because the JSON output from OSS LLMs is so unreliable.
function safeJsonParse(jsonString, fallback = null) {
Output of that text from Replit using that function.

Oddly this line in the logs:

[AgentLLM - llama3:8b-instruct-q8_0] Invalid function tool call: Missing name or arguments in function call..

Is what is going awry. So it seems like even when we do the parse, no tool call is found.  The reason is that the real format from the response needs to be:
{ "name": "sql-list-tables", "arguments":{ "database_id": "odbc"}}
// You are getting this, which fails to parse.
{ "name": "sql-list-tables",  "database_id": "odbc"}}

arguments is missing from output. Closing for the moment, but we can continue to discuss on this thread.

Just experienced this after watching your youtube link and using this too :) Going to experiment with other models.


Unable to run an action implemented by bin/tcsh (default bash in machine is tcsh)

SUMMARY
Unable to run an action implemented by bin/tcsh (default bash in machine is tcsh),
Feature request to specify default shell env as a parameter
ISSUE TYPE

Bug Report

STACKSTORM VERSION

st2 2.8.1, on Python 2.7.6

OS / ENVIRONMENT / INSTALL METHOD

Docker

STEPS TO REPRODUCE
st2 run core.remote cmd=whoami hosts=machinename username=user password=password
EXPECTED RESULTS
Should have shown the result for whoami, as works with root where deafult bash env is /bin/bash
ACTUAL RESULTS
id: 5b73712822156301b4c37a24
status: failed
parameters:
cmd: whoami
hosts: mahinename
password: '********'
username: user
result:
machinename:
failed: true
return_code: 1
stderr: 'export: Command not found.'
stdout: ''
succeeded: false
Not able to run the bash command, because the shell env is bin/tcsh
Could a feature be added to specify the shell env??? would be great help.
Thank you

Right now we only officially support bash.
We have no ETA for tcsh / other shell support at the moment, so a possible workaround for you would be to install bash on your end host / container (if possible).

Just to make it explicit: StackStorm does not currently support the csh, tcsh, ksh, or fish shells.
It might work for zsh shells, but only because zsh is largely backwards compatible with bash. There is absolutely no guarantee that StackStorm will work with zsh. We do not know if it will work with zsh, and we do not run our tests with zsh. If you use zsh you are on your own.


Utilize hardware acceleration for a cleaner transition on hover

@mx3m Things were getting kind of choppy with using padding to shift the post date and title.  :smile:

Ha! Nice update.
Now I need to have a look at how the animation was done on the side panel... Hopefully, it's using CSS transform too.

Hu, no it's not.
I'll change that too! Thanks ;)

no problem! yeah i just noticed that its not :)


[Feature Request]: Include token counts on AWS Bedrock integration

Feature Description
Some model integrations include token count info on the CompletionResponse object emitted along with LLMCompletionEvents, such as the Anthropic integration.
The AWS Bedrock integration does not include any additional_kwargs. Many LLMs supported by AWS Bedrock include token count info in the x-amzn-bedrock-input-token-count and x-amzn-bedrock-output-token-count headers. If possible, it'd be useful to include token count information wherever possible in CompeltionResponse objects.
Reason
I help maintain LlamaIndex instrumentation in ArizeAI's OpenInference library. Many users of LlamaIndex instrumentation rely on tracing to understand the token usage of their applications, especially complex ones managed with LlamaIndex. Our users are needing to combine LlamaIndex autoinstrumentation along with a second instrumentation package in order to see token counts, leading to duplicated spans and additional complexity.
Value of Feature
We can improve the experience of using LlamaIndex tracing, as many users rely on instrumentation to help them both understand application behavior and evaluate costs.

I think returning raw response here -> https://github.com/run-llama/llama_index/blob/e2396a7c6951973527339df62ce0f4a8ad17723b/llama-index-core/llama_index/core/base/llms/types.py#L90 would allow us to get -> 'usage': {'input_tokens': 32, 'output_tokens': 383} from the Bedrock response correct?

Right now It doesn't work still.

reopen the issue as I'm experiencing the same thing


[Electron rebuild] Removed node-pty and drivelist from rebuilded test

Related to #3573
I think it's better to keep new library node-libgpiod for testing (library to manage RPI gpio for pir sensor management) and delete others
Only one test is better

It's strange because 4 days ago we didn't have this problem.
See there

It's strange because 4 days ago we didn't have this problem.

yes, and there were no new releases ...


ip: Introduce BaseInterface.wait_ip property

This patch is introducing BaseInterface.wait_ip property with these
possible values:

"any": System will consider interface activated when any IP stack is
configured(neither static or automatic).
"ipv4": System will wait IPv4 been configured.
"ipv6": System will wait IPv6 been configured.
"ipv4+ipv6": System will wait both IPv4 and IPv6 been configured.

Integration test case included.

@jcaamano Can you check whether this covered the use case for configure-ovs.sh of https://github.com/openshift/machine-config-operator

Looks good to me but is there no doc change associated with this?

Hi, the docs will be updated on https://github.com/nmstate/nmstate.github.io, thanks for confirming this! We are going to add the docs :-)


Does not work on MacOS

Versions
fzf-help: 2.1.0
MacOS: 14.2.1
Errors
grep: invalid option -- P

usage: grep [-abcdDEFGHhIiJLlMmnOopqRSsUVvwXxZz] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--color=when]
        [--context[=num]] [--directories=action] [--label] [--line-buffered]
        [--null] [pattern] [file ...]

mktemp: option requires an argument -- t

usage: mktemp [-d] [-p tmpdir] [-q] [-t prefix] [-u] template ...
       mktemp [-d] [-p tmpdir] [-q] [-u] -t prefix

Thanks. Only tested in on Linux. Maybe I'll test on MacOs in the future as wel.

If I find time I will try to convert it to make it use features that are compatible with both Linux and MacOS. For now I just opened the ticket to have it tracked.

@BartSte
For now I locally fixed it for myself by doing the following:

Install GNU versions of mktemp and grep. These get installed prefixed with letter g: gmktemp and ggrep:

brew install coreutils
brew install grep

Replace grep with ggrep, and mktemp with gmktemp in local installation of fzf-help.

@BartSte I created a PR: https://github.com/BartSte/fzf-help/pull/25


chore(infra): move mypy config from mypy.ini to pyproject.toml

Pull Request Checklist

[x] New code has 100% test coverage
[ ] (If applicable) The prose documentation has been updated to reflect the changes introduced by this PR
[ ] (If applicable) The reference documentation has been updated to reflect the changes introduced by this PR

Description
It works locally (but with some pydantic manipulations, I guess the root problem is in v1 / v2 upgrade).
Close Issue(s)
Closes #1974

Sorry, looks like this PR caused a regression:
 mypy.....................................................................Failed
- hook id: mypy
- exit code: 1

tests/unit/test_cli/test_cli.py:48: error: Untyped decorator makes function "custom_command" untyped  [misc]
tests/unit/test_cli/test_cli.py:48: note: Error code "misc" not covered by "type: ignore" comment
tests/unit/test_kwargs/test_reserved_kwargs_injection.py:98: error: Untyped decorator makes function "test_method" untyped  [misc]
tests/unit/test_kwargs/test_reserved_kwargs_injection.py:124: error: Untyped decorator makes function "test_method" untyped  [misc]
tests/unit/test_kwargs/test_reserved_kwargs_injection.py:160: error: Untyped decorator makes function "test_method" untyped  [misc]
tests/unit/test_kwargs/test_reserved_kwargs_injection.py:187: error: Untyped decorator makes function "test_method" untyped  [misc]
tests/unit/test_kwargs/test_reserved_kwargs_injection.py:221: error: Untyped decorator makes function "test_method" untyped  [misc]
tests/unit/test_kwargs/test_reserved_kwargs_injection.py:247: error: Untyped decorator makes function "test_method" untyped  [misc]
tests/unit/test_kwargs/test_reserved_kwargs_injection.py:272: error: Untyped decorator makes function "test_method" untyped  [misc]
tests/unit/test_kwargs/test_reserved_kwargs_injection.py:297: error: Untyped decorator makes function "test_method" untyped  [misc]
tests/unit/test_handlers/test_http_handlers/test_signature_namespace.py:19: error: Untyped decorator makes function "simple_handler" untyped  [misc]
tests/unit/test_controller.py:54: error: Untyped decorator makes function "test_method" untyped  [misc]
Found 11 errors in 4 files (checked 555 source files)

I will fix it soon


Describe howto access the shoot kubernetes apiserver via tailscale vpn

What this PR does / why we need it:
If shoot cluster users want to completely close the kubernetes apiserver to access from the public internet, but allow access from a tailscale vpn, this document describe the required steps howto achieve this goal.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

Thank you @majst01 for your contribution. Before I can start building your PR, a member of the organization must set the required label(s) {'reviewed/ok-to-test'}. Once started, you can check the build status in the PR checks section below.

@n-boshnakov implemented your valuable suggestions except the last paragraph regarding headscale. Will improve this section today.

@n-boshnakov updated the last paragraph and fixed a glitch in the diagram


Remove workaround for timeout props in PulsarAdministration

Remove this workaround once the PulsarAdminBuilderImpl::loadConf handles timeout props consistently in 2.12.

Removed the 1.0.0 milestone as it looks like the Pulsar fix will not be available until Pulsar 3.x

Fixed in Pulsar https://github.com/apache/pulsar/pull/17375 and available in Pulsar 3.0.0 now.

This has been fixed in the auto-configuration (which has been moved to Boot). This was the original commit though. c043d8c12652094b4be621867c32da2ede1f3a2f


merge package template from arlac77/npm-package-template

package.json

chore(scripts): update prepare@rollup -c from template

.gitignore

chore(git): update .gitignore from template

Coverage increased (+0.6%) to 96.364% when pulling 32ddf55db71caa0227b9f7a0d940763e8ced4ffe on template-sync-1 into a4b5a45da6b24809b6a0ac39bea7c9fe8c4602b1 on master.

Coverage increased (+0.6%) to 96.364% when pulling 32ddf55db71caa0227b9f7a0d940763e8ced4ffe on template-sync-1 into a4b5a45da6b24809b6a0ac39bea7c9fe8c4602b1 on master.


能否把child嵌套在Stack里面?

我要在滑动组件的上面始终覆盖一个组件不跟随滑动
比如回到顶部

我在SmartRefresher外面嵌套了一个Container然后抛出了断言
The following assertion was thrown building Container:
Don't use one refreshController to multiple SmartRefresher,It will cause some unexpected bugs mostly in TabBarView
'package:pull_to_refresh/src/smart_refresher.dart':
Failed assertion: line 608 pos 12: '_refresherState == null'

我在SmartRefresher外面嵌套了一个Container然后抛出了断言
The following assertion was thrown building Container:
Don't use one refreshController to multiple SmartRefresher,It will cause some unexpected bugs mostly in TabBarView
'package:pull_to_refresh/src/smart_refresher.dart':
Failed assertion: line 608 pos 12: '_refresherState == null'

我发现了不能把 SmartRefresher 嵌套在Container 之类的 StatelessWidget里 我写了一个StatefulWidget就可以了。
但是notice.md又是这样说的


Unable to parse server list

$ speedtest --list
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Failed to parse list of speedtest.net servers
$ speedtest --version
0.3.0
$ python --version
Python 2.7.8

fwiw, server list parsing broke for me today.
was using the head branch for the past month or so with no problem.
using the devel branch, things work again.

This is fixed in devel. Release coming soon

The block on the speedtest server side is (currently?) based on UserAgent header sent in by client - devel branch still sends speedtest as useragent ( https://github.com/sivel/speedtest-cli/blob/devel/speedtest_cli.py#L30 ) and thus it won't get the server list.  So, quick fix for those who just need to get the cli working, modify that line 30 to what ever user agent that is allowed, for example:
user_agent = 'Mozilla/5.0 (Android; Mobile; rv:30.0) Gecko/30.0 Firefox/30.0'

I just got the same error message today. I was able to fix it by changing
uh = urlopen('http://www.speedtest.net/speedtest-servers-static.php')
to
uh = urlopen('https://www.speedtest.net/speedtest-servers-static.php')
I'm not sure why this worked, but it did for me. This was on Raspbian, speedtest-cli version 0.3.1, python version 2.7.9, kernel version 4.4.13+

@jdsmit60 I'm not sure why that works either. I referenced your fix in the issue linked above, which suggests another fix for the bug.

thanks for the hint @jdsmit60 - with this info in hand, I simply changed the value for the global variable 'scheme' from:
scheme = 'http'
to:
scheme = 'https'
and all is working beautifully now.

of course simply running:
speedtest-cli --secure
accomplishes the exact same thing (and works like a charm).


Fix keyword argument errors raised in Ruby 2.8

https://bugs.ruby-lang.org/issues/14183
The keyword argument has to be explicitly used in Ruby 2.8.
closes #212

This change is

:lgtm:

:+1:


Added forestry sapling support to farm station

Added support for planting forestry saplings to farming station. Harvesting was already working using the existing code so i didn't touch that.

Don't want to nag, but any chance to get this merged?
I could release it as a small addon-mod if it's not going to be accepted.

Sorry, forgot about this because I'm not used to look at the PRs.
I'll test this tonight.