text:
Failed: 'consul_z1/0 (xxxxxxxx)' is not running after update. Review logs for failed jobs: consul_agent, metron_agent (00:10:32)

Hi evryone
I have a issue in bosh deploy.
I can  deploy all the instances but i have this problem.
Started preparing deployment > Preparing deployment. Done (00:00:01)
Started preparing package compilation > Finding packages to compile. Done (00:00:01)
Started updating instance consul_z1 > consul_z1/6b67631f-0beb-4143-bfed-16b97910041b (0) (canary). Failed: 'consul_z1/0 (6b67631f-0beb-4143-bfed-16b97910041b)' is not running after update. Review logs for failed jobs: consul_agent, metron_agent (00:10:32)
Error 400007: 'consul_z1/0 (6b67631f-0beb-4143-bfed-16b97910041b)' is not running after update. Review logs for failed jobs: consul_agent, metron_agent
Task 41 error
consul_z1/0 (6b67631f-0beb-4143-bfed-16b97910041b)*           failing
consul_agent                                                                                failing
metron_agent                                                                                failing
consul_z1/6b67631f-0beb-4143-bfed-16b97910041b:/var/vcap/data/sys/log# tail -f metron_agent/metron.log
2017/08/04 23:47:35 Could not use GRPC creds for client: failed to load keypair: tls: failed to find any PEM data in certificate input
2017/08/04 23:54:23 Could not use GRPC creds for client: failed to load keypair: tls: failed to find any PEM data in certificate input
2017/08/04 23:56:03 Could not use GRPC creds for client: failed to load keypair: tls: failed to find any PEM data in certificate input
2017/08/04 23:57:51 Could not use GRPC creds for client: failed to load keypair: tls: failed to find any PEM data in certificate input
2017/08/04 23:59:21 Could not use GRPC creds for client: failed to load keypair: tls: failed to find any PEM data in certificate input
2017/08/05 00:01:01 Could not use GRPC creds for client: failed to load keypair: tls: failed to find any PEM data in certificate input
2017/08/05 00:02:41 Could not use GRPC creds for client: failed to load keypair: tls: failed to find any PEM data in certificate input
2017/08/05 00:04:21 Could not use GRPC creds for client: failed to load keypair: tls: failed to find any PEM data in certificate input
consul_z1/65d2eb14-b072-49e9-9b31-46daac3cb863:/var/vcap/sys/log# tail -f consul_agent/consul_agent.stderr.log
error during start: timeout exceeded: "Get http://127.0.0.1:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused"
error during start: timeout exceeded: "Get http://127.0.0.1:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused"
error during start: timeout exceeded: "Get http://127.0.0.1:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused"
error during start: timeout exceeded: "Get http://127.0.0.1:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused"
error during start: timeout exceeded: "Get http://127.0.0.1:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused"
Can anyone can help me?

@asmonter i would recommend asking for help in cloudfoundry-incubator/consul-release

authors: asmonter cppforlife

repo: cloudfoundry/bosh


text:
ha_proxy_z  Error 400007: ha_proxy_z1/0' is not running after update

Hi Expert,
The issue happen during "bosh deploy".
1, bosh cck did not fix it.
2, repalce  haproxy ssl_pem and  router ssl_cert with the same  self signed key pair.
3, ssh to  haproxy VM, find  consul_agent.stdout.log below infor:
4, set ha_proxy:disable_http to false, it works.
2015/07/24 03:18:24 [ERR] http: Request /v1/health/service/ssh-proxy?wait=60000ms, error: No known Consul servers
2015/07/24 03:18:29 [ERR] http: Request /v1/health/service/ssh-proxy?wait=60000ms, error: No known Consul servers
2015/07/24 03:18:34 [ERR] http: Request /v1/health/service/ssh-proxy?wait=60000ms, error: No known Consul servers
2015/07/24 03:18:38 [ERR] agent: failed to sync remote state: No known Consul servers
2015/07/24 03:18:39 [ERR] http: Request /v1/health/service/ssh-proxy?wait=60000ms, error: No known Consul servers
2015/07/24 03:18:44 [ERR] http: Request /v1/health/service/ssh-proxy?wait=60000ms, error: No known Consul servers
2015/07/24 03:18:49 [ERR] http: Request /v1/health/service/ssh-proxy?wait=60000ms, error: No known Consul servers
2015/07/24 03:18:54 [ERR] http: Request /v1/health/service/ssh-proxy?wait=60000ms, error: No known Consul servers
Could you help to check it?
thanks,
David

It is caused by cert.pem issue. Solved.

source: gharchive/issue

license_type: permissive

license_source: github-api


text:
Overlapping ips

What is this change about?
This PR allows overlapping IPs in one BOSH director by removing the global uniqueness constraint on IPs. It addresses the issues described in #2030. I think uniqueness of IPs should only be enforced in context of a single network.
As far as I could find out, BOSH did not enforce global uniqueness of IPs until some time ago, it was introduced with this story: https://www.pivotaltracker.com/n/projects/956238/stories/109680324
I do not fully understand why it was introduced - I guess it was to ease some kind of migration. Maybe this constraint is not needed anymore and we can scope the uniqueness to networks, therefore enabling networks with overlapping IPs. But it nevertheless needs a thorough look by an experienced maintainer whether it breaks something.
Two tests are broken by my changes:
https://github.com/MatthiasWinzeler/bosh/blob/overlapping-ips/src/bosh-director/spec/unit/deployment_plan/ip_provider/database_ip_repo_spec.rb#L145
https://github.com/MatthiasWinzeler/bosh/blob/overlapping-ips/src/bosh-director/spec/unit/deployment_plan/ip_provider/database_ip_repo_ipv6_spec.rb#L145
I'm not sure the use cases tested are still needed...
Please provide contextual information.
In our service provider setup, our customers can choose their own network ranges for their services (similar to AWS). They can overlap (i.e. Coca Cola likes to use 10.0.0.0/24 for their services and Pepsie uses 10.0.0.0/24 for their services). We like to serve all customers with one BOSH director, so BOSH director should allow overlapping IPs. We will make sure that BOSH agents can communicate with the director (i.e. by using SNAT as described in #2030 or by adding a second mgmt network interface that's routed to the director).
What tests have you run against this PR?
Local unit tests.
How should this change be described in bosh release notes?
Allows overlapping IPs in one BOSH director.
Does this PR introduce a breaking change?
Should not.

I have some concerns on how this PR will play with the current state of our networking solution. For instance, we need to support keeping the same manual and vip IP addresses when an instance group decides to switch networks and the move is considered "valid". As part of this move, we aren't always updating the network name saved in the database. Specifically we save the IP/Network combo as part of these calls to add but may switch network in the reconciler
Another issues is that the database_ip_repo ignores network name on deletion and would clobber potentially the wrong ip. I'm not sure that respecting network name here would be completely get around the issue as to support manual and vip networks renames we may be exacerbating the issues of not having the correct network name attached to the ip.

Thanks for taking a look! I'm sorry for not letting you know earlier, but we're not needing this functionality anymore. We solved our specific use case with NAT to overcome the overlap limitation.

That's great to hear. I'm sorry it took us so long to look at this PR.

source: gharchive/pull-request

authors: MatthiasWinzeler mrosecrance


text:
Metron high cpu load

Hi, I'm testing release 259 - The metron agent is consuming a lot of cpu - it is slowing down all. For deploying I am using: https://github.com/cloudfoundry/bosh-deployment with the default configuration.
Someone else with these problems?
Maybe I am adding this to the wrong repo?? ...
Thanks a lot
Alex

@deltatree Are you on a bosh-lite? Do you have v2 API enabled for metron? The property is  loggregator.use_v2_api https://github.com/cloudfoundry/diego-release/blob/fe795cfa4b9daa2bbd7b6b68df8dccb187338314/jobs/rep/spec#L77.
You can likely set this to false to mitigate the issue. Before you do that however would you mind providing us with a cpu profile? Here are the steps to get a profile:

ssh on to the offending instance.
sudo -1
Find the pprof port: lsof -c metron | grep TCP | grep LISTEN | grep -v 3457 | grep -v 3458 | grep -v 9090 | grep -v 8080 That should list the port pprof is listening on.
Get a cpu profile: curl http://localhost:41117/debug/pprof/profile?debug=1 > profile.out
Once you have that file you can send it to us on slack #loggregator

Yes I am on bosh-lite. Loggregator was on default - I changed it but there is no improvement.
I've attached the cpu profile from one instance:
profile.zip
All instances have the same behaviour.
Thanks a lot
Alex

@deltatree - I am surprised switching off the v2 flag didn't resolve this. There is a known CPU issue with v2 that we are working to correct. That said we don't see anything obvious in the profile. When you see this again can you please contact us in #loggregator so we can help troubleshoot.

@ahevenor - Hi, how can I login to slack? The only channel I currently have is this here...
What do you mean with again? It is all the time - have a look:

We introduced an improvement which batches messages inbound to metron that should help with CPU Utilization. This was released in Loggregator 89 and is expected to be included in CF 263 (currently in release election process). I am not sure this address the scenario @deltatree is seeing but it improves CPU utilization in our tests.

Hi all. Any updates on this? @deltatree, let us know if the loggregator updates have helped with this.

I'm going to close this issue due to inactivity, but feel free to re-open the issue if you need more help.

Hi, sorry for commenting so late: I was on holiday.
I tried with current versions, but with the default setup I'm getting a very high load ... if I look into the vms: metron is consuming all of the cpu...

bosh2 -e vbox releases
Using environment '192.168.50.6' as client 'admin'
Name                     Version   Commit Hash
binary-buildpack         1.0.13*   0bde2c77+
capi                     1.30.0*   f930be1a
cf-mysql                 35        4947ee5
cf-networking            1.0.0     560e00f
cf-smoke-tests           26*       a2b4d73
cflinuxfs2               1.130.0*  4f8bf79d+
consul                   170*      06fd84c
datadog-firehose-nozzle  59        5bd8b794+
diego                    1.18.1*   58757374
dotnet-core-buildpack    1.0.19*   cd3bbb05+
etcd                     112*      c97b2c3
garden-runc              1.8.0*    16f64c91
garden-windows           0.4.0     942bd2a6
go-buildpack             1.8.4*    c29b5300+
grootfs                  0.19.0    53831be
hwc-buildpack            2.3.4     cdb29cf7+
java-buildpack           3.17*     298f4bd5+
loggregator              89*       e5611f8
nats                     17*       faf1d99e+
nodejs-buildpack         1.5.36*   ecd44abe+
php-buildpack            4.3.34*   c834c1cc+
postgres                 17        b21260ee+
~                        16*       e3cfa2b2+
python-buildpack         1.5.19*   6e5bc32a+
routing                  0.157.0*  114fe5e9
ruby-buildpack           1.6.40*   060529d1+
staticfile-buildpack     1.4.6*    e5ea4334+
statsd-injector          1.0.28*   4c0ffe4
uaa                      41*       83b20714
(*) Currently deployed
(+) Uncommitted changes
29 releases

Ok, if you're still seeing this issue, then maybe @ahevenor (cc @jasonkeene) can help out.
Like Adam said, you can also ask for help in the #loggregator channel of the Cloud Foundry slack.
Cloud Foundry slack: https://cloudfoundry.slack.com/
#loggregator channel: https://cloudfoundry.slack.com/messages/C02HCCXV5/

We've observed this issue recently on our end as well, and hypothesized that the high CPU usage across VMs was being exacerbated by the ordering of the deployment. By moving doppler to deploy immediately after etcd, each job with a metron component should be able to successfully establish a connection to it that much sooner, and consume fewer resources by repeatedly failing. We tested this and found improvement, so we've opened PR 165 on cloudfoundry/cf-deployment.

@markikollasch @apoydence If this were the case wouldn't htop @deltatree posted eventually go down after a deploy?

Just a holler that we just saw this too.

authors: ahevenor baguasquirrel deltatree dsabeti jasonkeene markikollasch

repo: cloudfoundry/cf-release


text:
command delete-service-broker should accept 'yes' as the user input

when we tried the 'yes', it shows that the command is revoked, but input 'y', the command executed without errors.
we shall both accept 'yes' and 'y' for user input.
The same issue happened on command 'delete-service'
might be a issue related to locale, I'm using zh.CN for LANG and input 'yes'

It seems like this is because we attempt to translate the word for "yes" into whatever language the user is on: https://github.com/cloudfoundry/cli/blob/master/cf/terminal/ui.go#L119
Is this acceptable behavior? I'm not sure. @goehmen what do you think? maybe we could do y, yes, and translated(yes)?

Looks like this was fixed by https://github.com/cloudfoundry/cli/commit/9d4c3b9a4c13a0d5dca40f6e21cefdf8e3f34b31

authors: camelpunch jberkhahn xingzhou

repo: cloudfoundry/cli


text:
Bundle install before running check_docs_links

This command otherwise fails if you don't already have the docs gem dependencies installed.

[X] I have reviewed the contributing guide

[X] I have viewed, signed, and submitted the Contributor License Agreement

[X] I have made this pull request to the master branch

[X] I have run all the unit tests using bundle exec rake

[X] I have run CF Acceptance Tests

Thanks, I've been meaning to do that, but keep forgetting

authors: charleshansen georgi-lozev


text:
Question: Can the Appication name be changed to include GB18030 characters?

Stratos Version

Frontend Deployment type

[ ] Cloud Foundry Application (cf push)
[ ] Kubernetes, using a helm chart
[ ] Docker, single container deploying all components
[ ] npm run start
[ ] Other (please specify below)

Backend (Jet Stream) Deployment type

[ ] Cloud Foundry Application (cf push)
[ ] Kubernetes, using a helm chart
[ ] Docker, single container deploying all components
[ ] Other (please specify below)

Expected behaviour
We are not sure if the Appication name can be changed to include GB18030 characters or not. Please help to confirm  if it is a correct behavior.  Thanks!
Actual behaviour
The name can be changed with GB18030 characters successfully without any warning or limited prompt.
Steps to reproduce the behavior

Change an exist Application name from traffic-simulation2 to traffic-simulation2桐我嗀狦郂通童.  (

)
Click 'Finish' button

Log output covering before error and any error statements
Insert log hereCopy

Note:
In CLI command, if the app name included GB18030 characters in manifest.yml， it will fail to push app to cloud. It prompts 'Failed to create default route from app name: Host must be either "*" or contain only alphanumeric characters,"_",or "-"' sentence.

Detailed Description

Context

Possible Implementation

@xudaniel@ca.ibm.com , @doloresl@us.ibm.com Could you help to assign it to the related developer for confirmnation？ Thanks！

Internal ticket opened: https://github.ibm.com/CFMigrationRuntime/todo_issues/issues/217

Close it as it is a cf cli issue. We use v7 cf cli as part of cfmr and special characters are no longer supported as per this ticket:
https://github.com/cloudfoundry/cli/issues/1792#issuecomment-651429588

authors: XiaojuanChen xudaniel

repo: cloudfoundry/stratos

license: MIT


text:
Create defaults list component

components

app-list-view - takes new config provider and uses it to display a basic list
app-entity-list-view - takes entity config + pag key and uses them to display a basic list

config providers currently have two types

given an action, provide a list config
given entity config, provide a list config

config providers allow for the default list/data source config's to be updated via partial list/data source configs
applied app-list-view to cf org lists, removed old cf org list config service and data source
blocked on https://github.com/cloudfoundry/stratos/pull/3981

Codecov Report

Merging #3987 into master will decrease coverage by 3.55%.
The diff coverage is 70.81%.

@@            Coverage Diff             @@
##           master    #3987      +/-   ##
==========================================
- Coverage   61.39%   57.83%   -3.56%
==========================================
  Files         874      901      +27
  Lines       29472    28863     -609
  Branches     4342     4088     -254
==========================================
- Hits        18094    16694    -1400
- Misses      11378    12169     +791

authors: codecov-io richard-cox


text:
feat: Add dart image upload sample

Description
Added Dart server-side examples to upload images
Related Issue
Fixes #69

@colbyfayock the PR is ready to review

hey @adityaoberai the script worked perfectly!!
what do you think about adding the ability (at least in the form of docs) to install dependencies with dart pub get? in my mind its kinda like an npm install
also any thoughts on adding .env support instead of the exports?
this other dart example someone provided has those things, curious about if you think its worth adding: https://github.com/cloudinary-community/cloudinary-examples/tree/main/examples/dart-transformation-effects

That's a great idea @colbyfayock! I'll make these changes :)

@colbyfayock made the update

worked perfectly @adityaoberai!!
thanks for your help 🚀

authors: adityaoberai colbyfayock


text:
[Bug] Analytics URL not applying correctly

Bug Report
Describe the bug
Code Example:
<CldImage
	width="600"
	height="600"
	src="images/turtle"
	alt="turtle"
	overlays={[{
		publicId: `images/earth`,
		position: {
			x: 10,
			y: 10,
			gravity: 'north_west',
		},
		effects: [
			{
				crop: 'fill',
				gravity: 'auto',
				width: 200,
				height: 200
			}
		]
	}]}
/>

Resulting URL:
https://res.cloudinary.com/colbycloud-next-cloudinary/image/upload/e_background_removal/c_limit,w_600/e_tint:equalize:80:blue:blueviolet/u_images:earth,c_fill,w_1.0,h_1.0,fl_relative/fl_layer_apply,fl_no_overflow/f_auto/q_auto/v1/images/turtle?_a=E
The analytics parameter is not applying correctly:
_a=E

~I suspect the issue is that you didn't update the url loader package when applying the updated paramters:~
		"@cloudinary-util/url-loader": "3.5.1",

Thinking updating taht to latest will fix it
seems like thast not the only issue

im pretty confused as to why this isn't working, ive been trying to debug... it seems like everything is right

okay i figured it out there aer 2 issues
passing in a non "numerical" semver value 1.0.0-beta.9 breaks it
passing in a 2-digit value like 3.58.0 breaks it
the first one doesnt matter in dev most, but the 2nd one is definitely a bug with the URL Gen library if im not mistaken
flagging it there

okay - for the techVersion apparently only accepts a minor range of 1-10
so im thinking maybe what we need to do is just limit the techVersion to major
can just use something like this:
`${SVELTE_VERSION.split('.')[0]}.0.0`

repo: cloudinary-community/svelte-cloudinary


text:
Bootstrapping with Recent PyPy

I've tried the procedures recommended here to build the bootstrap module with PyPy, but failed to get it working with the 1.8 and 1.9 versions.  I noticed the documentation says 1.5 and above, but that doesn't seem to be the case anymore.
Which is the last known version of PyPy to compile the bootstrap module successfully?  Would there be any down-sides to using an older PyPy or is it best to port the bootstrap code so it compiles with more recent versions of PyPy?
Thanks!

Thanks for reaching out.  Unfortunately this project is no longer actively maintained, so I'm going to move it into archive mode:
https://rfk.id.au/blog/entry/archiving-open-source-projects/

authors: alexjc rfk

repo: cloudmatrix/esky


text:
Data is backed up, but backup enters failed phase due to "can't extract backup id"

As the title suggests, I am able to backup my data using a Backup or ScheduledBackup.   However, the backup is unable to extract a backup id which puts the backup in the failed phase.
Here's the backup schedule:
apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
  name: cnpg-backup
spec:
  schedule: "50 * * * *"
  backupOwnerReference: self
  cluster:
    name: my-cluster

The logs:
my-cluster-2 postgres {
  "level": "info",
  "ts": "2023-07-26T09:12:07Z",
  "msg": "WAL archiving is working",
  "logging_pod": "my-cluster-2"
}
my-cluster-2 postgres {
  "level": "info",
  "ts": "2023-07-26T09:12:07Z",
  "msg": "Backup started",
  "backupName": "cnpg-backup",
  "backupNamespace": "cnpg-backup",
  "logging_pod": "my-cluster-2",
  "options": [
    "--user",
    "postgres",
    "--name",
    "backup-1690362727",
    "--endpoint-url",
    "<my s3 compatible storage>",
    "--cloud-provider",
    "aws-s3",
    "<my s3 destination>",
    "my-cluster"
  ]
}
my-cluster-2 postgres {
  "level": "info",
  "ts": "2023-07-26T09:12:29Z",
  "msg": "Backup completed",
  "backupName": "cnpg-backup",
  "backupNamespace": "cnpg-backup",
  "logging_pod": "my-cluster-2"
}
my-cluster-2 postgres {
  "level": "error",
  "ts": "2023-07-26T09:12:30Z",
  "logger": "barman",
  "msg": "Can't extract backup id",
  "logging_pod": "my-cluster-2",
  "command": "barman-cloud-backup-show",
  "options": [
    "--format",
    "json",
    "--endpoint-url",
    "<my s3 compatible storage>",
    "--cloud-provider",
    "aws-s3",
    "<my s3 destination>",
    "my-cluster",
    "backup-1690362727"
  ],
  "stdout": "",
  "stderr": "2023-07-26 09:12:30,354 [273] ERROR: Barman cloud backup show exception: Unknown backup 'backup-1690362727' for server 'my-cluster'\n",
  "error": "exit status 4",
  "stacktrace": "github.com/cloudnative-pg/cloudnative-pg/pkg/management/log.(*logger).Error\n\tpkg/management/log/log.go:128\ngithub.com/cloudnative-pg/cloudnative-pg/pkg/management/barman.executeQueryCommand\n\tpkg/management/barman/backuplist.go:87\ngithub.com/cloudnative-pg/cloudnative-pg/pkg/management/barman.GetBackupByName\n\tpkg/management/barman/backuplist.go:140\ngithub.com/cloudnative-pg/cloudnative-pg/pkg/management/postgres.(*BackupCommand).getExecutedBackupInfo\n\tpkg/management/postgres/backup.go:383\ngithub.com/cloudnative-pg/cloudnative-pg/pkg/management/postgres.(*BackupCommand).takeBackup\n\tpkg/management/postgres/backup.go:352\ngithub.com/cloudnative-pg/cloudnative-pg/pkg/management/postgres.(*BackupCommand).run\n\tpkg/management/postgres/backup.go:267"
}
my-cluster-2 postgres {
  "level": "error",
  "ts": "2023-07-26T09:12:30Z",
  "msg": "Backup failed",
  "backupName": "cnpg-backup",
  "backupNamespace": "cnpg-backup",
  "logging_pod": "my-cluster-2",
  "error": "exit status 4",
  "stacktrace": "github.com/cloudnative-pg/cloudnative-pg/pkg/management/log.(*logger).Error\n\tpkg/management/log/log.go:128\ngithub.com/cloudnative-pg/cloudnative-pg/pkg/management/postgres.(*BackupCommand).run\n\tpkg/management/postgres/backup.go:271"
}

Happy to provide more config if it is helpful.
As an aside, when this problem is encountered using ScheduledBackup, it seems to cause the ScheduledBackup to run repeatedly rather than adhering to its schedule.

I'm running into this issue as well, I'm on linode s3 storage, perhaps that might cause the issue somehow

Fixed it with help from https://github.com/EnterpriseDB/barman/issues/835. Moving the bucket name from the endpoint url into the destinationpath fixes it (see https://github.com/cloudnative-pg/cloudnative-pg/pull/2630/files)

Thank you so much. I spent several hours on the problem. In my case it was the following combination:
Failing chart config:
backups:
  data:
    encryption: "" # Contabo does not support encryption
  wal:
    encryption: "" # Contabo does not support encryption
  endpointURL: "https://eu2.contabostorage.com/cnpg-cluster-backups-prod"
  s3:
    bucket: "cnpg-cluster-backups-prod"

Successful config:
backups:
  enabled: true
  data:
    encryption: "" # Contabo does not support encryption
  wal:
    encryption: "" # Contabo does not support encryption
  endpointURL: "https://eu2.contabostorage.com"
  destinationPath: "s3://cnpg-cluster-backups-prod/"
  s3:
    bucket: "cnpg-cluster-backups-prod"

authors: btxbtx mrclrchtr mwienk

repo: cloudnative-pg/cloudnative-pg


text:
Backup on S3 not working

Hi everyone, been trying to deploy cloudnativepg for a while now and suddenly when i was almost ready, my backups started failing... and i haven't been able to fix them yet, i believe there is an issue with the fork/exec command when calling the archiver from barman, here are the logs from the pod when trying to backup.
{   "level": "error",   "ts": 1663093503.9465349,   "logger": "wal-archive",   "msg": "Error invoking barman-cloud-check-wal-archive",   "logging_pod": "cnpg-cluster-1",   "walName": "000000010000000000000001",   "currentPrimary": "cnpg-cluster-1",   "targetPrimary": "cnpg-cluster-1",   "options": [     "--cloud-provider",     "aws-s3",     "s3://cnpg-backups/",     "cnpg-cluster"   ],   "exitCode": -1,   "error": "fork/exec /usr/local/bin/barman-cloud-check-wal-archive: invalid argument",   "stacktrace": "github.com/cloudnative-pg/cloudnative-pg/pkg/management/barman/archiver.(*WALArchiver).CheckWalArchive\n\tpkg/management/barman/archiver/archiver.go:227\ngithub.com/cloudnative-pg/cloudnative-pg/internal/cmd/manager/walarchive.run\n\tinternal/cmd/manager/walarchive/cmd.go:176\ngithub.com/cloudnative-pg/cloudnative-pg/internal/cmd/manager/walarchive.NewCmd.func1\n\tinternal/cmd/manager/walarchive/cmd.go:79\ngithub.com/spf13/cobra.(*Command).execute\n\tpkg/mod/github.com/spf13/cobra@v1.4.0/command.go:856\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tpkg/mod/github.com/spf13/cobra@v1.4.0/command.go:974\ngithub.com/spf13/cobra.(*Command).Execute\n\tpkg/mod/github.com/spf13/cobra@v1.4.0/command.go:902\nmain.main\n\tcmd/manager/main.go:61\nruntime.main\n\t/opt/hostedtoolcache/go/1.17.8/x64/src/runtime/proc.go:255" }
If i enter this command manually inside the pod when the same ENV variables set, the command executes fine and returns 0
postgres@cnpg-cluster-1:/$ barman-cloud-check-wal-archive --cloud-provider aws-s3 s3://cnpg-backups/ cnpg-cluster postgres@cnpg-cluster-1:/$ echo $? 0
the "invalid argument" i believe it comes from the fork/exec part of it, our environment is pretty standard setup.
credentials and bucket config were tested manually, they just fail when are executed by the pod.
these are the following logs that fail...
{   "level": "error",   "ts": 1663094877.9874961,   "msg": "while barman-cloud-check-wal-archive",   "logging_pod": "cnpg-cluster-1",   "error": "unexpected failure invoking barman-cloud-wal-archive: fork/exec /usr/local/bin/barman-cloud-check-wal-archive: invalid argument",   "stacktrace": "github.com/cloudnative-pg/cloudnative-pg/pkg/management/log.Error\n\tpkg/management/log/log.go:165\ngithub.com/cloudnative-pg/cloudnative-pg/internal/cmd/manager/walarchive.run\n\tinternal/cmd/manager/walarchive/cmd.go:177\ngithub.com/cloudnative-pg/cloudnative-pg/internal/cmd/manager/walarchive.NewCmd.func1\n\tinternal/cmd/manager/walarchive/cmd.go:79\ngithub.com/spf13/cobra.(*Command).execute\n\tpkg/mod/github.com/spf13/cobra@v1.4.0/command.go:856\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tpkg/mod/github.com/spf13/cobra@v1.4.0/command.go:974\ngithub.com/spf13/cobra.(*Command).Execute\n\tpkg/mod/github.com/spf13/cobra@v1.4.0/command.go:902\nmain.main\n\tcmd/manager/main.go:61\nruntime.main\n\t/opt/hostedtoolcache/go/1.17.8/x64/src/runtime/proc.go:255" } {   "level": "error",   "ts": 1663094877.9876142,   "logger": "wal-archive",   "msg": "failed to run wal-archive command",   "logging_pod": "cnpg-cluster-1",   "error": "unexpected failure invoking barman-cloud-wal-archive: fork/exec /usr/local/bin/barman-cloud-check-wal-archive: invalid argument",   "stacktrace": "github.com/cloudnative-pg/cloudnative-pg/internal/cmd/manager/walarchive.NewCmd.func1\n\tinternal/cmd/manager/walarchive/cmd.go:81\ngithub.com/spf13/cobra.(*Command).execute\n\tpkg/mod/github.com/spf13/cobra@v1.4.0/command.go:856\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tpkg/mod/github.com/spf13/cobra@v1.4.0/command.go:974\ngithub.com/spf13/cobra.(*Command).Execute\n\tpkg/mod/github.com/spf13/cobra@v1.4.0/command.go:902\nmain.main\n\tcmd/manager/main.go:61\nruntime.main\n\t/opt/hostedtoolcache/go/1.17.8/x64/src/runtime/proc.go:255" } {   "level": "info",   "ts": 1663094877.9926615,   "logger": "postgres",   "msg": "record",   "logging_pod": "cnpg-cluster-1",   "record": {     "log_time": "2022-09-13 18:47:57.992 UTC",     "process_id": "51",     "session_id": "6320cad7.33",     "session_line_num": "107",     "session_start_time": "2022-09-13 18:24:23 UTC",     "transaction_id": "0",     "error_severity": "LOG",     "sql_state_code": "00000",     "message": "archive command failed with exit code 1",     "detail": "The failed archive command was: /controller/manager wal-archive --log-destination /controller/log/postgres.json pg_wal/000000010000000000000001",     "backend_type": "archiver",     "query_id": "0"   } } {   "level": "info",   "ts": 1663094877.9927022,   "logger": "postgres",   "msg": "record",   "logging_pod": "cnpg-cluster-1",   "record": {     "log_time": "2022-09-13 18:47:57.992 UTC",     "process_id": "51",     "session_id": "6320cad7.33",     "session_line_num": "108",     "session_start_time": "2022-09-13 18:24:23 UTC",     "transaction_id": "0",     "error_severity": "WARNING",     "sql_state_code": "01000",     "message": "archiving write-ahead log file \"000000010000000000000001\" failed too many times, will try again later",     "backend_type": "archiver",     "query_id": "0"   } }
could this possibly be related to something else?
Thanks!

Having the same issue on the latest versions.
{"level":"error","ts":1663178224.2349117,"logger":"wal-archive","msg":"Error invoking barman-cloud-check-wal-archive","logging_pod":"cloudnative-pg-01-1","currentPrimary":"cloudnative-pg-01-1","targetPrimary":"cloudnative-pg-01-1","options":["--cloud-provider","aws-s3","s3://cnpg/cnpg/","cloudnative-pg-01"],"exitCode":-1,"error":"exit status 1","stacktrace":"github.com/cloudnative-pg/cloudnative-pg/pkg/management/barman/archiver.(*WALArchiver).CheckWalArchiveDestination\n\tpkg/management/barman/archiver/archiver.go:234\ngithub.com/cloudnative-pg/cloudnative-pg/internal/cmd/manager/walarchive.checkWalArchive\n\tinternal/cmd/manager/walarchive/cmd.go:379\ngithub.com/cloudnative-pg/cloudnative-pg/internal/cmd/manager/walarchive.run\n\tinternal/cmd/manager/walarchive/cmd.go:166\ngithub.com/cloudnative-pg/cloudnative-pg/internal/cmd/manager/walarchive.NewCmd.func1\n\tinternal/cmd/manager/walarchive/cmd.go:80\ngithub.com/spf13/cobra.(*Command).execute\n\tpkg/mod/github.com/spf13/cobra@v1.5.0/command.go:872\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tpkg/mod/github.com/spf13/cobra@v1.5.0/command.go:990\ngithub.com/spf13/cobra.(*Command).Execute\n\tpkg/mod/github.com/spf13/cobra@v1.5.0/command.go:918\nmain.main\n\tcmd/manager/main.go:64\nruntime.main\n\t/opt/hostedtoolcache/go/1.18.5/x64/src/runtime/proc.go:250"}

{"level":"error","ts":1663178224.235176,"msg":"while barman-cloud-check-wal-archive","logging_pod":"cloudnative-pg-01-1","error":"unexpected failure invoking barman-cloud-wal-archive: exit status 1","stacktrace":"github.com/cloudnative-pg/cloudnative-pg/pkg/management/log.Error\n\tpkg/management/log/log.go:165\ngithub.com/cloudnative-pg/cloudnative-pg/internal/cmd/manager/walarchive.checkWalArchive\n\tinternal/cmd/manager/walarchive/cmd.go:380\ngithub.com/cloudnative-pg/cloudnative-pg/internal/cmd/manager/walarchive.run\n\tinternal/cmd/manager/walarchive/cmd.go:166\ngithub.com/cloudnative-pg/cloudnative-pg/internal/cmd/manager/walarchive.NewCmd.func1\n\tinternal/cmd/manager/walarchive/cmd.go:80\ngithub.com/spf13/cobra.(*Command).execute\n\tpkg/mod/github.com/spf13/cobra@v1.5.0/command.go:872\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tpkg/mod/github.com/spf13/cobra@v1.5.0/command.go:990\ngithub.com/spf13/cobra.(*Command).Execute\n\tpkg/mod/github.com/spf13/cobra@v1.5.0/command.go:918\nmain.main\n\tcmd/manager/main.go:64\nruntime.main\n\t/opt/hostedtoolcache/go/1.18.5/x64/src/runtime/proc.go:250"}

{"level":"error","ts":1663178224.2354255,"logger":"wal-archive","msg":"failed to run wal-archive command","logging_pod":"cloudnative-pg-01-1","error":"unexpected failure invoking barman-cloud-wal-archive: exit status 1","stacktrace":"github.com/cloudnative-pg/cloudnative-pg/internal/cmd/manager/walarchive.NewCmd.func1\n\tinternal/cmd/manager/walarchive/cmd.go:82\ngithub.com/spf13/cobra.(*Command).execute\n\tpkg/mod/github.com/spf13/cobra@v1.5.0/command.go:872\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tpkg/mod/github.com/spf13/cobra@v1.5.0/command.go:990\ngithub.com/spf13/cobra.(*Command).Execute\n\tpkg/mod/github.com/spf13/cobra@v1.5.0/command.go:918\nmain.main\n\tcmd/manager/main.go:64\nruntime.main\n\t/opt/hostedtoolcache/go/1.18.5/x64/src/runtime/proc.go:250"}

so sorry its happening to you too... i been trying to deal with this for while, still not root cause from my part.
been trying different versions of helm chart, different images, building custom images but nothing seems to work.
(Kubernetes version v1.23.7)

Hi, could one of you please provide some more surrounding logs, grepping for barman-cloud-wal-archive, as if the subcommand is starting and logging something either to stdout/stderr it should be logged by the operator. Thanks!

thanks @phisco. i been looking at every logs i can get from the pod and the cluster, could you guide me where else to search? i have my cluster in debug mode.

Had a similar issue, where commands were working from within the pod. If you have a error in the pod logs mentioning invalid headers, i.e;
{"level":"info""logger":"barman-cloud-check-wal-archive","msg":"2022-11-09 07:52:22,423 [85] ERROR: Barman cloud WAL archive check exception: An HTTP Client raised an unhandled exception: Invalid header value b'AWS4-HMAC-SHA256 Credential..."}
You might have a hidden newline in you credentials secret.

This looks more like an issue on the object storage side not supporting encryption, it is this solved already @cbarria @HanssenKai ?
Turning into a discussion

authors: HanssenKai TheNakedZealot cbarria phisco sxd


text:
fix: Switching the source of viewer-count to dk-weaver

Description

ダッシュボードに表示する視聴者数の取得元を変更しました
Type of change

[ ] Document update or simple typo fix
[ ] Maintenance/update components
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?

[x] I have checked backward/forward compatibility that may cause regarding this change.

STGで確認しましたが、良さそうでした

どなたかレビューお願いします！

@ystkfujii
マージしたら、本番のGrafanaのコミットハッシュも変更してもらえると！
https://github.com/cloudnativedaysjp/dreamkast-infra/blob/b692a7ad8f49c29f342f23fa62e229067c2e4dd7/manifests/infra/argocd-apps/production/grafana.yaml#L96

repo: cloudnativedaysjp/dreamkast-infra


text:
事前アンケート修正・追加

事前アンケート_rev.txt

こちら完了しました

repo: cloudopsdays/dreamkast


text:
🛑 Games is down

In 9b370bf, Games (https://games.cloudpanda5.repl.co/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Games is back up in 20d715c.


text:
Trying to redirect terraform output when using atmos doesn't seem possible.

Describe the Feature
It is not possible to write the output of a particular terraform command (e.g. terraform output) to a file. Doing something like:
atmos terraform output aws-users -s identity --json > test.json

Will output the entire atmos command output instead of just the terraform output output.
Trying atmos terraform output aws-users -s identity "--json > test.json" also does not work with the following error:
Executing command:
/usr/bin/terraform output --json > test.json
╷
│ Error: Failed to parse command-line flags
│
│ flag provided but not defined: -json > test.json
╵

For more help on using this command, run:
  terraform output -help
exit status 1

I would like to talk through this issue on what can be done. My first suggestion is that we add a new global CLI option --output that will output the last (usually the most important command) to the a provided filename.
Expected Behavior
The below command (with new --output option) would run the atmos commands as normal, but write the output of the terraform output command to test.json.
atmos terraform output aws-users -s identity --json --output test.json

Use Case
When you need to collect output information from a particular atmos subcommand.
Alternatives Considered
I don't have any, but would be interested to discuss if there are any that might make sense.
Additional Context
N/A

As a workaround, have you tried appending 2>&1 ?
atmos terraform output aws-users -s identity --json > test.json 2>&1

@nitrocode just tried. It resulted in the full atmos output + terraform output.
I can only imagine redirecting stderr to /dev/null via 2>/dev/null would possibly work if atmos was writing all of its logs to stderr... but even then the terraform init output would still be sent to stdout unless that was redirected as well.

@aknysh yeah, I think it would require an additional command-line flag that would then result in the last terraform command being executed with stdout redirection to the command-line flag's value. e.g. --output test.json would result in terraform output --json > test.json.
Definitely agreed on not outputting messages to stderr 👍
atmos terraform shell would work in the case of doing this interactively, but I don't think it would work in my use-case here which is executing atmos terraform output from a script. Because shell starts a subshell, I imagine that would not work out... but I'll test to confirm.

@aknysh I don't see how I would execute atmos terraform shell in a scripted sense, so can't test it. If you have any linux-fu ideas that would pass a command down to a subshell then let me know.
As for a new flag to silence so only the underlying tools that are executed, that would likely only get us part of the way there because terraform init and terraform workspace select outputs would still end up in the resulting stdout redirection, which means we can't just collect the output of the last command (terraform output in my case).

I think a flag option that @Gowiem suggests makes the most sense. Maybe it should be qualified to --output-file to be clear it's not the type of output, but a destination.

Ah @Nuru brought up a similar issue in #140 that I'm just now seeing.

Hey there, working on Refarch-Scaffold , and we (Igor and I) are noticing that it's tricky to get atmos to write vpn configs.
Lines like this one should likely go to a log handling library, so that end users can specify things like LOG_LEVEL=INFO and we could filter out the other details of the command as being on LOG_LEVEL=DEBUG
Note the quick way is just to add a flag to let the user specify a file, or to support the -c flag when running atmos terraform shell

Thanks for the heads up @aknysh!
Cc @kevcube

Woo thanks @aknysh!

authors: Gowiem dudymas kevcube nitrocode osterman

repo: cloudposse/atmos


text:
Pass environment argument to label module

According to terraform-null-label, a label follows the following naming convention:  {namespace}-{environment}-{stage}-{name}-{attributes}. However, using the environment argument in this module produces an error:
An argument named "environment" is not expected here.

This pull request fixes this error by passing environment as an argument to the label module.

+1 on this. We would like to use the environment param and tag for consistency with the rest of our modules.

@guigo2k please, update PR and address the comments

obsolete due to https://github.com/cloudposse/terraform-aws-vpc/pull/48

Closing out as environment was supported as part of #48. Regardless, thanks for the effort @guigo2k!

authors: Gowiem ckoning etwillbefine guigo2k maximmi

repo: cloudposse/terraform-aws-vpc


text:
Remove unused local value

what

Removing unused local value 'regex_pattern_set_reference_statement_ruless'
why

'regex_pattern_set_reference_statement_rules' already exists
references

/terratest

authors: JayongHur goruha

repo: cloudposse/terraform-aws-waf


text:
chore: Upgrade workflows to NodeJS 18+

Description
Changes workflow to use NodeJS 18 for building. We're also upgrading the checkout action to v4 because it uses NodeJS 20 instead of 16: https://github.com/actions/checkout/releases/tag/v4.0.0. There is no version that uses NodeJS 18.
Related links, issue #, if available: n/a
How has this been tested?

Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness

Changes include appropriate documentation updates.
Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
Changes do not include unsupported browser features, see CONTRIBUTING.md.
Changes were manually tested for accessibility, see accessibility guidelines.

Security

If the code handles URLs: all URLs are validated through the checkSafeUrl function.

Testing

Changes are covered with new/existing unit tests?
Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Closing in favor of https://github.com/cloudscape-design/board-components/pull/281

repo: cloudscape-design/board-components


text:
GSD Request

--- GSD JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v5.3 to before v5.15.6",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=53010f991a9f5e4ed2db705ddde6ff32709192a2",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=39509d76a9a3d02f379d52cb4b1449469c56c0e0"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "53010f991a9f5e4ed2db705ddde6ff32709192a2",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "39509d76a9a3d02f379d52cb4b1449469c56c0e0",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "net: nexthop: fix null pointer dereference when IPv6 is not enabled\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.15.6 by commit 39509d76a9a3d02f379d52cb4b1449469c56c0e0, it was introduced in version v5.3 by commit 53010f991a9f5e4ed2db705ddde6ff32709192a2. For more details please see the references link."
}
--- GSD JSON ---

This issue has been assigned GSD-2021-1002523

repo: cloudsecurityalliance/gsd-database


text:
init.sh script cannot be loaded from S3

Nodes in the ECSClusterStack-ServiceAutoScalingGroup don't seem being able to fech the init.sh file from S3. Here's the content of my cloud-init-output.log:
Loaded plugins: priorities, update-motd, upgrade-helper
Package aws-cfn-bootstrap-1.4-26.17.amzn1.noarch already installed and latest version
Nothing to do
+ version=0.9
+ aws s3 cp s3://cloudstax/firecamp/releases/0.9/scripts/init.sh /tmp/init.sh
fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden
Nov 21 03:36:52 cloud-init[2813]: util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [1]
Nov 21 03:36:52 cloud-init[2813]: cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
Nov 21 03:36:52 cloud-init[2813]: util.py[WARNING]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_scripts_user.pyc'>) failed
Cloud-init v. 0.7.6 finished at Tue, 21 Nov 2017 03:36:52 +0000. Datasource DataSourceEc2.  Up 53.08 seconds

When I tried running the S3 command manually, I got the same exception:
[root@ip-10-0-35-248 tmp]# aws s3 cp s3://cloudstax/firecamp/releases/0.9/scripts/init.sh /tmp/init.sh
fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden

Thanks rebyn! It looks a regression issue. The code changed from wget to s3 cp from 0.8.1 to 0.9. Not sure why we didn't hit it in our test. Changed back to use wget. I tested one deploy and it worked. Could you please try it again? Thanks.

Close this issue. If you hit it again, please let us know. Thanks!

authors: JuniusLuo cloudstax rebyn

repo: cloudstax/firecamp

license_source: bigquery


text:
Update serverless.py

Update based on current docs:
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-api.html
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-function-requestmodel.html

Thank you for the serverless update.

authors: gsoyka markpeek

repo: cloudtools/troposphere


text:
Bug: the service account cloudshell-xxxx-controller-manager is not deleted when CR deleted

should add ownerReferences
  ownerReferences:
  - apiVersion: cloudshell.cloudtty.io/v1alpha1
    blockOwnerDeletion: true
    controller: true
    kind: CloudShell
    name: cxxxx

invalid, close it

repo: cloudtty/cloudtty


text:
FSL baseline

could you please release the code of fsl,  thank you

Thanks for your interest in our work!
Currently we are working on it and will open-source the code soon.

repo: clovaai/wsolevaluation


text:
Update lint location in Travis

Signed-off-by: Gábor Lipták gliptak@gmail.com

@cloverstd please (re)enable Travis

repo: cloverstd/tcping

license: mit


text:
abnormal manifests deletion when agent runs in parent cluster

What happened:
kind/bug
When clusternet-agent runs in parent cluster, if we delete a Subscription, then corresponding manifest feeds are deleted as well.
This only happens when clusternet-agent runs in parent cluster.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:

Clusternet version:

Clusternet-agent version (user clusternet-agent --version=json):
Clusternet-hub version (user clusternet-hub --version=json):

Kubernetes version (use kubectl version):
Cloud provider or hardware configuration:
OS (e.g: cat /etc/os-release):
Kernel (e.g. uname -a):
Others:

What is the reason for this?

What is the reason for this?

We're still investigating this. It is a weird bug. Feel free to work on this if you've got any clues.

This issue has been fixed.

authors: dixudx lmxia silenceper

repo: clusternet/clusternet


text:
Allow non-windows platforms (Mac and Linux)

Include shared libraries for other platforms
Detect 32-bit vs 64-bit python
Dynamically define function pointer callback type

I did some dewindowsificiation in revision 5b9279d18ee83caebef22ad77d6d7e46432bff52, but I have not tested on Mac nor Linux.

Hi! I am using on Ubuntu 14.04 and Python 2.7 and I've installed pyopenvr as instructed, but when I want to use it (import openvr), I get the following error:
Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "/usr/local/lib/python2.7/dist-packages/openvr/__init__.py", line 26, in <module>     _openvr = cdll.LoadLibrary(_openvr_lib_name)   File "/usr/lib/python2.7/ctypes/__init__.py", line 443, in LoadLibrary     return self._dlltype(name)   File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__     self._handle = _dlopen(self._name, mode) OSError: openvr_api_64: cannot open shared object file: No such file or directory
I tried adding appropriate paths where the libraries are to the PYTHONPATH and even changing the .so name so it matches openvr_api_64.so, but it still doesn't work.

Correct me if I'm wrong, but I think regular OpenVR might not be working on linux at the moment https://github.com/ValveSoftware/openvr/issues/213
If OpenVR is not working on linux, pyopenvr won't work either.
Are you able to run SteamVR on linux?

Yeah, it was pretty much a hassle to make it work, but this guide explains it well: http://www.vronlinux.com/articles/adventures-with-openvr-and-the-vive-on-linux.8
The Steam and SteamVR are installed and even though SteamVR GUI doesn't run, OpenVR works, I manage to run the test examples as in the link.
So what are the shared object libraries that come with pyopenvr (libopenvr_api_64.so)? Also, could you please tell me what is this https://pypi.python.org/pypi/openvr exactly and how is it different from Valve's OpenVR

Could you maybe tell me where can I find this "openvr_api_64" shared object file?

Hello,
I managed to solve the problem.
Namely, the directory where the "libopenvr_api_64.so" shared libraries are located has to be added to the $LD_LIBRARY_PATH. This can be done by typing
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib/python2.7/dist-packages/openvr"
or adding it to the bottom of the ~/.bashrc file, if you're using bash.
Secondly, in order to be able to load the library using ctypes it has to be done as cdll.LoadLibrary("libopenvr_api_64.so"), i.e. using the .so extension.
I'll try to make a pull request on github.
Cheers!

Thank you @nemanja-rakicevic for submitting pull request #22, which fixes the loading of the openvr shared library on linux, in revision cbf17c296c66b49240abd8e8bab16d07a79fefe8
Now that you got the shared library to load, I wonder whether you also succeeded in using the OpenVR API from pyopenvr? These python bindings for the OpenVR API are still a work in progress, so there are probably function calls that I have not tested and debugged that might not function correctly, even on Windows, where I have focused all my testing. I appreciate your effort to get pyopenvr working on linux, and I hope you will continue to contribute to this project and to this issue thread.

No problem :)
I am looking into some basics to understand the API, starting with the test code from README.md
I had problems at first with the openvr.init(openvr.VRApplication_Scene) as it didn't recognise the HMD (HmdPresent error), but at one point it just started working, so I'm trying to figure it out now and test stuff.
If I find any problems I'll try to fix them and send updates on to the repository.

Unless I'm missing something, openvr seems to generate only a 32-bit .dylib library so as a result I'm getting the error below when I try to run the sample code in the README.md
Traceback (most recent call last):
File "test.py", line 3, in
import openvr
File "/usr/local/lib/python2.7/site-packages/openvr/init.py", line 35, in
raise ValueError("Libraries not available for this platform: " + platform.system())
ValueError: Libraries not available for this platform: Darwin

Bringing this up since I'm not able to navigate past related errors on x64 Ubuntu Linux 16.04 LTS.
I've sorted out getting pip3, setuptools to install the pyopenvr module successfully without error
in my case it's get installed with python 3.5 to /usr/local/lib/python3.5/dist-packages/openvr-1.0.602a0-py3.5.egg/openvr
I've added the LD_LIBRARY_PATH as mentioned in the above comment
${LD_LIBRARY_PATH}:/usr/local/lib/python3.5/dist-packages/openvr-1.0.602a0-py3.5.egg/openvr
another view confirming that the /usr/local/lib/python3.5/dist-packages/openvr-1.0.602a0- py3.5.egg/openvr/libopenvr_api_64.so file exists

and the following error when trying to use pyopenvr from within the triad wrapper module

Something obvious that i'm missing?

@eric-schleicher Here are some things you could try to help investigate this problem on your linux machine:

On the linux command line, type "ldd libopenvr_api_64.so", to reveal what libraries libopenvr depends on. Perhaps some secondary library is missing?
Try manually loading the library in python, perhaps using various setting for LD_LIBRARY_PATH

  python -i
  >>> import ctypes
  >>> lib1 = ctypes.CDLL('/usr/local/lib/python3.5/dist-packages/openvr-1.0.602a0- py3.5.egg/openvr/libopenvr_api_64.so')
  >>> lib2 = ctypes.CDLL('libopenvr_api_64.so')
  >>> ctypes.cdll.LoadLibrary('libopenvr_api_64.so')

Hi @cmbruns-hhmi, I'm using Ubuntu 16.04-LTS and have a trouble to use pyopenvr. When I ran openvr.init(openvr.VRApplication_Scene), I always get Segmentation fault (core dumped) like this.
$ python hello.py
OpenVR test program
Runtime is installed
Segmentation fault (core dumped)

Then, I followed the comment at https://github.com/cmbruns/pyopenvr/issues/5#issuecomment-293251146. The followings are the output I got.
$ ldd ~/venv/lib/python3.5/site-packages/openvr/libopenvr_api_64.so
    linux-vdso.so.1 =>  (0x00007ffdf225a000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4a16d0a000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f4a16b06000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f4a16783000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f4a16566000)
    /lib64/ld-linux-x86-64.so.2 (0x000055815cae1000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4a1619c000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f4a15f85000)

$ python
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
>>> lib1 = ctypes.CDLL('~/venv/lib/python3.5/site-packages/openvr/libopenvr_api_64.so')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.5/ctypes/__init__.py", line 347, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: ~/venv/lib/python3.5/site-packages/openvr/libopenvr_api_64.so: cannot open shared object file: No such file or directory

I'm not sure what is the next step to move forward. Does the above output mean I have all the
libraries but have some problems with the PATH?

I also ran export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/home/user-name/venv/lib/python3.5/site-packages/openvr/libopenvr_api_64.so", but the result was same: Segmentation fault (core dumped) when running openvr.init.

@kazoo-kmt Are other non-python openvr apps working for you on your linux
computer?
On Wed, Jun 21, 2017 at 8:47 PM, kazoo-kmt notifications@github.com wrote:

I also ran export LD_LIBRARY_PATH="${LD_LIBRARY_
PATH}:/home/user-name/venv/lib/python3.5/site-packages/
openvr/libopenvr_api_64.so", but the result was same: Segmentation fault
(core dumped) when running openvr.init.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cmbruns/pyopenvr/issues/5#issuecomment-310244255, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AChuaYVyF9LXjya-aCII6BeEhiTYR2p1ks5sGbmggaJpZM4IdC5W
.

I'm running StreamVR in my Linux as well.

"Segmentation fault" does not sound like a link error to me. Can you identify the exact line in hello.py that triggers the segmentation fault? Unfortunately I have not yet got steamvr working on linux here. So I can provide advice, but not actual debugging on linux at the moment.

It happened on the line15 vr_system = openvr.init(openvr.VRApplication_Scene). I got openvr.isRuntimeInstalled() working.

You should definitely use SteamVR. I was just checking to make sure that you got SteamVR itself working correctly.
As I said, I'm not able to debug linux at the moment. Are you able to write and run a C or C++ program that would make these same calls?

I have some progress. I made a mistake to set the path. I set export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/home/user-name/venv/lib/python3.5/site-packages/openvr/libopenvr_api_64.so" but this should be export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/home/user-name/venv/lib/python3.5/site-packages/openvr".
After modifying above, I got the following error.
>>> openvr.init(openvr.VRApplication_Scene)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user-name/venv/lib/python3.5/site-packages/openvr/__init__.py", line 5042, in init
    initInternal(applicationType)
  File "/home/user-name/venv/lib/python3.5/site-packages/openvr/__init__.py", line 5146, in initInternal
    _checkInitError(error.value)
  File "/home/user-name/venv/lib/python3.5/site-packages/openvr/__init__.py", line 5028, in _checkInitError
    raise OpenVRError("%s (error number %d)" %(getVRInitErrorAsSymbol(error), error))
openvr.OpenVRError: b'VRInitError_Init_VRClientDLLNotFound' (error number 102)

At this point it's painful to use Linux, but it is working. Mac is no longer supported by Valve so Mac is probably off the list.

authors: abencomo cmbruns cmbruns-hhmi eric-schleicher kazoo-kmt nemanja-rakicevic

repo: cmbruns/pyopenvr


text:
Support F# unions as GraphQL unions

I'm imagining being able to define a union with only single-field cases. The union itself will be the union in the schema, and the type of each field is another type in the schema.
I won't immediately work on this, but it would be nice to have this feature.

Implemented in e344fa7457a099be689ea339dd8ed464aa424951.


text:
Update - Works on Sense 2!

I was recently looking into developing an app for Fitbit until the sudden realisation there's no official way to develop one for a Sense 2.
I came across this repo and decided to try it and wanted to say that this works on a Sense 2. Noticed it says 'possibly works on Sense 2' so hopefully you can rename/change repo accordingly.
Created a simple cookie clicker, screenshots below:

App List
App

Awesome work! I'll update the repo description -- Thanks for confirming this @eraychumak 👍

authors: cmengler eraychumak


text:
Call to undefined method Illuminate\Database\Query\Builder::newThreadsCount()

Hello,
I have this error when I'm trying to display the count of messenger.
The difference is that I use the count variable in my navbar.blade.php.
Can someone help me please ? :)

Did you include the Trait on your model?

Oh my... I haven't save my User model since this morning... Thank you toscani !

authors: PortgasDKiba toscani

repo: cmgmyr/laravel-messenger


text:
update the coffea to root tool with configurations

updated based on PR#23.
now the script convertToRoot  can be run by editing the config files in the cfg directory:
python VHccPoCo/scripts/convertToRoot.py -c VHccPoCo/cfg/shapemaker_vhcc_run3/Zll_Shape.yaml

@De-Cristo I merged my development, now there are conflicts here, sorry.
Could you please resolve the conflits.

authors: De-Cristo andreypz

repo: cms-rwth/VHccPoCo


text:
Fix incorrect join by adding ID

We were accidentally doing a cross-product of all signals with dates, so add the missing ID condition.
Improves #438.
@sgratzl as FYI, but don't worry about pulling this into Flask yet.

Ignore this one -- it is superseded by https://github.com/cmu-delphi/delphi-epidata/pull/463

repo: cmu-delphi/delphi-epidata


text:
Mobile Indicator Table

Prerequisites:

[x] Unless it is a hotfix it should be merged against the dev branch
[x] Branch is up-to-date with the branch to be merged with, i.e. dev
[x] Build is successful
[x] Code is cleaned up and formatted

Summary
desktop:

mobile:

@sgratzl This looks like a big improvement to mobile, thank you!
I would still, in addition to this improvement, like to decrease the font for the source name (and also apply something like small caps font to the source name easily visually differentiate).
Currently I think it's hard to pick out the indicator name because it's a lot of text, and decreasing/changing the font for the source name will help highlight the indicator name as the most important.

authors: ryantibs sgratzl

repo: cmu-delphi/www-covidcast


text:
Added some unit tests for Astar and DP

Updates

Added test cases for Astar and DP
Added simulated data and ground truth for the test cases
Removed previous test cases for Astar and DP

Test Plan
python -m unittest TestAstar.py # should pass
python -m unittest TestDP.py # should pass

In your screenshot, I saw 0,1,2,3 are printed. Do we need to print them? Maybe we can remove it?

Yeah, please change the dag2cpdag. We don't the need the extra print in test, which is confusing.
And in any industry level code, there shouldn't be print statement haha

Yeah, please change the dag2cpdag. We don't the need the extra print in test, which is confusing.
And in any industry level code, there shouldn't be print statement haha

I notice that the reason is not the dag2cpdag function. The issue was that the tests I wrote were importing causallearn from my pip installed packages instead of the local code, which was not desired. I have fixed it. Thanks!

authors: ignavierng tofuwen

repo: cmu-phil/causal-learn


text:
Neo4j's new logo

Neo4j has changed their logo.
Source: https://neo4j.com/blog/check-out-neo4js-new-logo/
New Logo

Old Logo

Pre-submission checklist:
Please check each of these after submitting your pull request:

[ ] Are you only including a repo_url if your project is 100% open source? If so, you need to pick the single best GitHub repository for your project, not a GitHub organization.
[ ] Is your project closed source or, if it is open source, does your project have at least 300 GitHub stars?
[ ] Have you picked the single best (existing) category for your project?
[ ] Does it follow the other guidelines from the new entries section?
[X] Have you added your SVG to hosted_logos and referenced it there?
[ ] Does your logo clearly state the name of the project/product and follow the other logo guidelines?
[ ] Does your project/product name match the text on the logo?
[ ] Have you verified that the Crunchbase data for your organization is correct (including headquarters and LinkedIn)?
[ ] ~15 minutes after opening the pull request, the CNCF-Bot will post the URL for your staging server. Have you confirmed that it looks good to you and then added a comment to the PR saying "LGTM"?

LGTM

repo: cncf/landscape


text:
re-add rkt as "archived" project

rkt should still be listed on landscape as an archived project, similar to OpenTracing.  Somehow rkt was removed along the way.

Build failed because of:
Empty twitter for StorageOS (member): https://twitter.com/Storage_OS
Empty twitter for StorageOS: https://twitter.com/Storage_OS
Empty twitter for Spotinst Functions: https://twitter.com/spot_hq
Empty twitter for Karmada: https://twitter.com/karmada_io
rkt either has no crunchbase entry or it is invalid

authors: CNCF-Bot cjyabraham


text:
wg-platforms community blog: PEMM Leveling Workshop Case Study

This MR is a follow-up to my presentation at wg-platforms on 2024-08-27, where I introduced the PEMM Leveling Workshop I led at Red Hat.
This blog post summarizes the concept, key objectives, strategies, outcomes, and what's coming (PEMM User Personas Workshop).
Please let me know your feedback. I'm happy to take any and all suggestions for improvement.
Side question: will the meeting recording make it to youtube? (wg-platforms 2024-08-27)

I think I need to fix my DCO to be consistent with my Github profile email, not my corporate one.

I've ended up quite busy, and my publishing timeline has slipped by a few days! I'm shooting for a final revision tomorrow or Friday

repo: cncf/tag-app-delivery


text:
ADC_CTLR1 Register bits do not match CH32V003 TRM

The bits DUALMOD[3:0] do not exist in the register ADC_CTLR1 on the CH32V003.
https://github.com/cnlohr/ch32v003fun/blob/e5a7958d27cb21cf7920f3790f7161b8d78a3a5b/ch32v003fun/ch32v003fun.h#L2526

Just because it's not in the TRM doesn't mean it's not useful - this came from the original EVT, so my expectation is that it may have just not functioned correctly.  No need to go back and retroactively remove it though.


text:
Basic audit command

huak audit
Run huak audit to scan for packages in your project's virtual environment with known vulnerabilities.

What should be used for the auditing? I guess there should be a offline DB if the tool should run offline, and if it can connect to the internet, it could update the internal DB.

Could either work on something ourselves or rely on another project for security vuln db searches. I've got some non-huak work for a bit then I can get back to this to provide more info.
Definitely open to ideas as well!

If you're looking for something less vague to just get your feet wet https://github.com/users/cnpryer/projects/5 is a good one. I'm thinking we can lean on an existing project and then evaluate Rust rewrites if there are any. Would be cool to have huak doc generate documentation from the project's docstrings.

authors: ObiWanRohan cnpryer

repo: cnpryer/huak


text:
Option to prevent ignore pinned tab

Please add an option to prevent Better-Onetab to store pinned tabs.

@StephaneArguin Thank you for your suggestion. This is really a necessary option. This option has been added in v1.0.4.

I just installed version 1.2.1 on Firefox and Windows 7 but I can't find this option. Where is it available?
PD. Nice add-on!

authors: IlyaOrson StephaneArguin cnwangjie

repo: cnwangjie/better-onetab


text:
Suggestion: Publish as nuget package

It would be great if we can install the package directly from nuget.

I have tried this and been rejected 🙁 Maybe we could try again.

Interesting..
If nuget.org won't accept, maybe you can publish into GitHub packages ?

Possibly, haven't seen any details on GitHub packages, have a link/details?

Here you can find.

authors: cobbr fasetto

repo: cobbr/SharpSploit


text:
something wrong when I try to propose a value from client

Tom,
Hi!
I have configed multi-paxos-example in my computer windows7 64bit.
# (IP,UDP Port Number)
peers = dict( A=('127.0.0.1',1234),
              B=('127.0.0.1',1235),
              C=('127.0.0.1',1236) )

# State files for crash recovery. Windows users will need to modify
# these.
state_files = dict( A='E:\\multi-paxos-example\\tmp\\A.json',
                    B='E:\\multi-paxos-example\\tmp\\B.json',
                    C='E:\\multi-paxos-example\\tmp\\C.json' )

And try to run it. But when I run a client
python client.py B eee
It comes up a Error.
Error processing packet:  accept {"instance_number": 0, "proposal_id": [1, "B"],
 "proposal_value": "eee"}
Traceback (most recent call last):
  File "E:\multi-paxos-example\messenger.py", line 55, in datagramReceived
    handler(from_uid, **kwargs)
  File "E:\multi-paxos-example\resolution_strategy.py", line 82, in receive_acce
pt
    super(ExponentialBackoffResolutionStrategyMixin,self).receive_accept(from_ui
d, instance_number, proposal_id, proposal_value)
  File "E:\multi-paxos-example\replicated_value.py", line 176, in receive_accept

    proposal_id, proposal_value)
  File "E:\multi-paxos-example\replicated_value.py", line 72, in save_state
    os.rename(tmp, self.state_file)
WindowsError: [Error 183]

I google it and it means file existed, but I don't know how to solve it. Can you  help me about that?
Thanks!
Jin

Whats more, I try it on linux, ubuntu. It doesn't come out Error any more, and a.json/b.json/c.json has a log
{"current_value": "test111", "instance_number": 5, "promised_id": null, "accepted_id": null, "accepted_value": null}

Interesting. Apparently it's an error on windows to rename a file to one
that already exists. On Posix file systems this is a standard mechanism for
doing atomic file updates as the filesystem itself explicitly supports this
operation and guarantees that the rename will occur atomically. The quick
fix on windows would be to just delete the file before the rename operation
if it already exists. That opens up a window during which a crash could
lose data but it's just a toy application anyway ;-)
On Wed, Nov 2, 2016 at 12:26 AM, 肖金 notifications@github.com wrote:

Whats more, I try it on linux, ubuntu. It doesn't come out Error any more,
and a.json/b.json/c.json has a log
{"current_value": "test111", "instance_number": 5, "promised_id": null,
"accepted_id": null, "accepted_value": null}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/cocagne/multi-paxos-example/issues/2#issuecomment-257775869,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABrLfLXGxGoeLbFkPYCoI75eFj0b1H7jks5q6B78gaJpZM4Km3Nc
.

authors: cocagne qidaneix

repo: cocagne/multi-paxos-example


text:
Finish secure "build an app" examples

Most "Build an app" pages were updated to show how to connect to secure clusters in #2943.
Scope of work for this ticket is to update the "Build an app" pages for the remaining languages:

[x] C#
[ ] C++
[ ] Clojure
[ ] Rust

CC: @tim-o in case this shows up (hasn't yet)
FYI: C# requires SSL keys and certificates to be bundled together in PKCS#12 format.
openssl pkcs12 -export -password "pass:" -in client.root.crt -inkey client.root.key -out client.root.pk12

You can find sample secure code for C# at: https://github.com/cockroachdb/cockroach/blob/master/pkg/acceptance/testdata/csharp/Program.cs

Note for when we pick this up: For C# with npgsql, it's not obvious how to properly validate a server certificate against a CA certificate, as we typically advise. According to npgsql's documentation, if you're not using the system certificate store, you need to write your own callback to validate the server certificate against the CA certificate. I did a little searching but didn't find a code sample anywhere that does this specifically - most of the examples I found instead just checked the server certificate's fingerprint against a hard-coded value.
So, when we update the C# example, we should be sure to provide a UserCertificateValidationCallback on the NpgsqlConnection to perform the same validation that we do in our other secure examples.

Based on Bram's updated examples I got the secure C# examples working; they're in this commit. The text of the documentation page will need to be updated to split the page into secure and insecure examples like we do in other languages. Also, we will need to provide instructions on how to generate a combined client certificate and private key in PKCS#12 format as required by the .Net commands (instructions are in a comment in both of the secure examples).

@rmloveland, customers are asking for docs on using C# with a secure cluster. With @BramGruneir's long-open PR and @rolandcrosby's code (see commit link from comment above), we probably have what we need to get this published. Do you think you can spend a few hours on this before the end of the year?

Quoth @jseldess

Do you think you can spend a few hours on this before the end of the year?

Yes definitely - thanks Roland and Bram!

This isn't going to get done for 19.1. Moving to 19.2 for re-prioritization.

@ericharmeling, this is your next starter project.

authors: jseldess mberhault rmloveland rolandcrosby

repo: cockroachdb/docs


text:
Document that "index" can not be used unquoted as a column name

For details, see discussion in https://github.com/cockroachdb/cockroach/issues/26993.

@rmloveland, we kind of cover this already here. But perhaps it's too subtle?

we kind of cover this already here. But perhaps it's too subtle?

I think so, yes.  I'm not sure if I would be able to understand it from that doc, at least not easily.  The crux of the issue seems to be that our behavior differs from Postgres, so I think the work item here is to document it explicitly with a mention of Postgres.

authors: jseldess rmloveland


text:
Cockroachcloud: updating hardware per node copy

We should update the node selection copy to :

remove where we say contact us if you want to change node size. since its just two compute options, i dont expect many people to want to change.
add that if they want different hardware configs than whats here, contact us
we can still link to perf docs but unsure how you want to frame that - maybe as is?

I think they still might need to change node size if their storage requirements change or they select the wrong option while creating the cluster. So I'd want to retain that line.
here's the new copy suggestion:
"The choice of hardware per node depends on the amount of unreplicated data you need to store. To change the hardware configuration after the cluster is created, you will have to contact us. To learn more about selecting the right hardware configuration, see [link]."

authors: Amruta-Ranade kannanlakshmi


text:
Document statement column in SHOW JOBS response

Fixes #4521.

This change is

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/a7ebe9ca303df99bf27cc566a2faa0d7877a833f/

@RaduBerinde, please review the first commit. @dt, please review the second.

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/ec6670b79051d91fd1e17b94235ebba425daf2c0/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/4fb063537414cc1ec950863c3d6064efd8c963cb/

authors: cockroach-teamcity jseldess


text:
Release notes for 20.1.8

Closes #8719

This change is

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/9f4cff3ef5116b603d02c7a6e3961e74b84fc5c3/
Edited pages:

releases/v20.1.8.md

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/dbd0a27d0d5358734c79faefaeddc9054ae5025a/
Edited pages:

releases/v20.1.8.md

authors: Amruta-Ranade cockroach-teamcity


text:
Update CC Go SDK to v0.4.0

Update the CC Go SDK to latest v0.4.0.

TFTR!


text:
Hi, i need help with adb_client ,thanks

let connexion = AdbTcpConnexion::new();
        let callback = |device:adb_client::Device| {
            println!("{}", device);
            Ok(())
        };
        println!("Live list of devices attached");
        connexion.track_devices(callback)?;

system Env:
System: Macos 12.3.1
rust version: 1.59.0
Android Debug Bridge version 1.0.41

impl TryFrom<Vec<u8>> for Device {
    type Error = RustADBError;

    // TODO: Prevent regex compilation every call to try_from()
    fn try_from(value: Vec<u8>) -> Result<Self, Self::Error> {
        // Optional final '\n' is used to match TrackDevices inputs
        let parse_regex = Regex::new("^(\\w+)\t(\\w+)\n?$")?;

        let groups = match parse_regex.captures(&value).unwrap() // <----------- device.rs:29:51
        Ok(Device {
            identifier: String::from_utf8(
                groups
                    .get(1)
                    .ok_or(RustADBError::RegexParsingError)?
                    .as_bytes()
                    .to_vec(),
            )?,
            state: DeviceState::from_str(&String::from_utf8(
                groups
                    .get(2)
                    .ok_or(RustADBError::RegexParsingError)?
                    .as_bytes()
                    .to_vec(),
            )?)?,
        })
    }
}

error output:
Live list of devices attached
thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', /Users/x/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/adb_client-0.2.0/src/models/device.rs:29:51
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

regex change to
        // match space or \t
        let parse_regex = Regex::new("^(\\w+)[ \t]+(\\w+)\n?$")?;

Can you provide me the output of your adb devices command ?

I met same problem, my output is something like this: 12345678 device product:123 model:123 device:123 transport_id:1

I met same problem, my output is something like this: 12345678 device product:123 model:123 device:123 transport_id:1

replace:
            usb: String::from_utf8(
                groups
                    .name("usb1")
                    .or_else(|| groups.name("usb2"))
                    .ok_or(RustADBError::RegexParsingError)?
                    .as_bytes()
                    .to_vec(),
            )?,

with
            usb: match groups.name("usb1") {
                None => match groups.name("usb2") {
                    None => "Unk".to_string(),
                    Some(usb) => String::from_utf8(usb.as_bytes().to_vec())?,
                },
                Some(usb) => String::from_utf8(usb.as_bytes().to_vec())?,
            },

Ok thanks for the report, I re-open. Feel free to open a PR for submitting this fix 😉

Fix in #37 !


text:
add a new feature to remove the special tags when plugin rendering html

增添了一个新的后缀指令 --removeTags tag1,tag2
指令会自动的去除构建文档时不需要的 tag 标记
这个指令用于指定的语言文本生成

修改指令为 choiceLanguage 传入 zh / en : string 选定两种语言之一

commit2: 增添规避方案

调整 json 生成方式，变为相对完整路径，解决同名文件属性覆盖问题
调整 render-component，规避同名函数不同注释相互覆盖问题

调整了最终的数据样式
避开了 enum 同名数据覆盖问题
后续还有待调整目前基本可用了

dist 目录干嘛要提交上来？？

authors: ColinCollins jareguo


text:
Add CODE_OF_CONDUCT.md

Is your feature request related to a problem? Please describe.
No CODE_OF_CONDUCT.md file is present.
Describe the solution you'd like
@yashlamba   As a GSSOC participant I would like to add a CODE_OF_CONDUCT.md file in this project. Using this as a reference.
Additional context
Screenshots

This is administrative doc and I don't think we need it now in simulate.

Ok sir

authors: Aman-Codes yashlamba

repo: cod-ed/simulate


text:
whitelist emails leaking handled

@ mention of reviewers
@Didayolo
A brief description of the purpose of the changes contained in this PR.

Whitelist emails were leaked in API. Now it is handled in a way that only loggedin users and API calls from inside codabench can access it.
fixed a console error
removed console prints

Issues this PR resolves

#1366

A checklist for hand testing

[ ] before deploying this change access http://localhost/api/competitions/1/ and check that whitelist_emails is there
[ ] after deploying, you should not see whitelist_emails

Checklist

[x] Code review by me
[x] Hand tested by me
[x] I'm proud of my work
[ ] Code review by reviewer
[ ] Hand tested by reviewer
[ ] CircleCi tests are passing
[ ] Ready to merge

Several new problems with the change

Test failing because we are not getting whitelist emails in a test and then updating the competition fials
Accessing the competition via API does not show whitelist emails but there is an update view that shows the emails

The main problem is the way this API is designed. there is one endpoint /competitions/ and then everything is handled in it. To simplify things, we should have small readable and straightforward apis.

Problems

Accessing the competition via API does not show whitelist emails but there is an update view that shows the emails

Comments

The main problem is the way this API is designed. there is one endpoint /competitions/ and then everything is handled in it.
To simplify things, we should have small readable and straightforward apis.
We should also disable the django view of the apis so that we can control things (not sure if that is possible because the default views come with the django rest-framework)

Benjamin ideas:

only admin should be able to get white-lists

Isabell ideas:

just create participants from whitelist emails and remove
rename whitelist to approved list
a problem when whitelist person is not a participants.

Solved in #1560

repo: codalab/codabench


text:
command_name not set / update for 2.5

On task version 2.5.1
Traceback (most recent call last):
  File "/home/x/.local/bin/tw", line 11, in <module>
    sys.exit(main())
  File "/home/x/.local/lib/python2.7/site-packages/taskwarrior_capsules/cmdline.py", line 94, in main
    terminal=term,
  File "/home/x/.local/lib/python2.7/site-packages/taskwarrior_capsules/capsule.py", line 159, in execute
    self.validate(**kwargs)
  File "/home/x/.local/lib/python2.7/site-packages/taskwarrior_capsules/capsule.py", line 76, in validate
    self.command_name,
AttributeError: 'Blocks' object has no attribute 'command_name'

Probably related to:
/home/x/.local/lib/python2.7/site-packages/taskwarrior_capsules/capsule.py:79: UserWarning: Capsule 'add' is not compatible with version 2.5.1 of taskwarrior; minimum version: 2.2; maximum version 2.4.9999.

after I at least got it back to work with:
    def execute(
        self, variant, command_name, filter_args, extra_args, **kwargs
    ):
        self.command_name = command_name

Btw: is this project still alive ?

Btw: is this project still alive ?

No, I do not think it is. I would suggest checking out taskpirate.

authors: NGenetzky tobixx

repo: coddingtonbear/taskwarrior-capsules


text:
Buttons and List Buttons

Buttons and List Buttons not working :(

@saintclair this is unfortunately a restriction from WhatsApp itself – it has been 2 weeks already.
Only businesses can use this feature for the time being.

authors: chrishubert saintclair

repo: code-chat-br/whatsapp-api


text:
Yt link button in pdf

PR Fixes:

1 Converts the static Youtube Video thumbnails in pdfs to a Button hyperlinked to the youtube video.
2 Changes are implemented exactly as shown in screenshots in Issue #894

Resolves #894
Checklist before requesting a review

[x] I have performed a self-review of my code
[x] I assure there is no similar/duplicate pull request regarding same issue

@devsargam After the recent UI update, is this PR even valid ?

Don't think so but I will definitely review

authors: devsargam zenithexe


text:
Finds the occurrence of the number in array.

no details of Issue and PR. Spam PR

@aayushi-droid what is the problem with the PR???


text:
Added DP problems

Thank you for your contribution. Please provide the details requested below.
ISSUE NUMBER
#117
SHORT DESCRIPTION
I added 4 DP problems

[x]    Rod Cutting Problem

[x]    Min Cost Path between vertices

[x]    Subset Sum

[x]    Ugly Numbers

I also added detailed explanation for the problem at hand and their algorithmic solutions.
TESTING
I added test case examples in the Readme files. Input prompts are added to avoid ambiguity.

added comments

repo: codeIIEST/Algorithms


text:
Coverage for branches/prs

I couldn't find a feature request section for codeclimate.com, please let me know if there is a better place for this.
As part of my CI toolset, I enforce incremental test coverage of existing files in my repository.  If a file's coverage decreases I fail a build.  Currently the fastest way for contributors to get feedback on what is uncovered is for them to download Istanbul's coverage report (6mb) as an archive.  I'd love to be able to link them directly to a codeclimate coverage page for their branch/pr.
Is this something that's being thought about or on the road map?

Thanks for the feedback @gdborton. Right now, our test coverage integration is limited to a repository's main branch. We're planning improvements to our test coverage integration overall right now, so while I can't give a concrete answer on when this is a use case we might be able to support, this is definitely a good idea we'll take into account while we plan that work.

Hey @gdborton,
Some good news: We now accept and process test coverage reports for non-default branches.
We don't yet have an interface to view test coverage for non-default branches on codeclimate.com but you can view annotations inline on GitHub when viewing files or PRs using our new super cool Chrome extension.
If you're already using our test reporters, this should JustWork™. Let us know if you run into any issues.

authors: dblandin gdborton wfleming

repo: codeclimate/javascript-test-reporter


text:
link to specific image in gallery

I would like to be able to link to a specific image in a photoswipe gallery, as opposed to a link to just the gallery.

If you have a thumbnail list and gallery running side-by-side simultaneously, is it possible to have thumbnails link to their specified gallery images?

authors: birchsworn foliomob

repo: codecomputerlove/PhotoSwipe


text:
Refactor out isBlacklisted

Closes #155
Closes #276

Can you double-check the tests? I cant remember if we have a test to make sure a file does not appear in the listing.

Superseded by #278

authors: drazisil-codecov mitchell-codecov

repo: codecov/uploader


text:
Support for Creating, Listing, Finding, and Using FaultSets.

Add support for Creating, Listing, Finding FaultSets.
Also slight modification to CreateSds function to allowing the addition of more than 2 sdsIPs and to also set which FaultSet this SDS belongs in.
Was tested using this PR https://github.com/dvonthenen/goprojects/pull/29

Tabling this for later. Will revisit.

repo: codedellemc/goscaleio


text:
Update 12_cat_years.cpp to fix cat min age typo in welcome string

Fix typo in welcome message. Original specified cats "older than 3 years old." Changed to "3+ years old." to fit exercise instructions.

LOL well played well played.

authors: NoahSheppard sonnynomnom


text:
Update README.md for native instructions

A first pass at react native instructions so people can get started

made changes as requested.

Looks great!

authors: mxie sonya


text:
Government Assistance Field

This field value of "Government Assistance" needs to be changed to "TANF/Gov. Assistance"

Me

authors: bigyehooda evonfriedland

repo: codefordc/districthousing


text:
Make activated filters and filter clearing more usable

In user testing, all the users got confused about which filters were activated and how to clear existing filters without clicking through each one individually. We need to design a different UI for showing activated filters and clearing all filters.
Ideas for what we could do (some or all of the below):

[x] Maybe move the filter pillboxes to appear in between the "2) Data Choices" label and the first data item?
. Clicking the pillbox itself could activate that data set in the menu below and scroll the user to it, while clicking the 'x' could clear the filter.
[x] Either instead or in addition, have a 'view active filters' link (in that same area) that expands the div (pushing the data source list downward) and renders the text-readable version of the active filters that is described in #389 .
[x] Move the 'clear all' pillbox to be next to the individual clear filter pillboxes.
[x] Add an "x" on the right side of each activated filter title that serves as a second clear filter pillbox? This way users don't need to open/close if they want to clear.

Completed in #414 - closing!

repo: codefordc/housing-insights


text:
Loading State - Searching for Trolleys Message Addition

[Note: This is non-functional currently and should not be merged]
@austin9350 Would love your thoughts, especially in the Message Controller.

Awesome! Thanks @austin9350!

authors: invisionjeremy jeremywight


text:
汎用（モーダル）ダイアログ componentを作成

close #118
ActionButton.vue を一部書き換えているのでコンフリクトの可能性あり
使用方法の例
<template>
  ...
  <v-btn @click.stop="showDuplicateModalWindow = true">
    click
  </v-btn>
  <base-modal-dialog
    v-model="showDuplicateModalWindow"
    icon-name="mdi-email"
    :actions="actions"
  >
    <template v-slot:title>
      タイトル
    </template>
    <template v-slot:default>
      asdasdasad
    </template>
  </base-modal-dialog>
  ...
</template>

<script lang="ts">
import Vue from 'vue'
import BaseModalDialog, { DialogAction } from '@/components/BaseModalDialog.vue'

type DataType = {
  showDuplicateModalWindow: boolean
  actions: DialogAction[]
}

export default Vue.extend({
  components: { BaseModalDialog },
  data(): DataType {
    return {
      showDuplicateModalWindow: false,
      actions: [
        { buttonLabel: 'a', action: () => true },
        { buttonLabel: 'bsdb', action: () => {} }
      ]
    }
  },
  ...
})
</script>

スクリーンショット

ちょっと名称についてコメントします。モーダル/モードレスというのは基本的にUIをそこに制限するかどうかだと思うので、ダイアログ外をクリックする操作がダイアログを閉じるもので、ダイアログが表示されている間はダイアログ外のUIに対する操作が(原則)出来ないのであれば、それはモーダルで合っていると思います。単なるコメントでした。

名称についてはModalDialogに戻そうかとも思っていましたが、マージされてしまったので、開発側で名称が紛らわしいという声が今後出てきたら直そうと思います

repo: codeforjapan/StudyAtHome


text:
Uncommented tests, mistake in my previous PR :(

Description
Uncommented data provider in tests. Made a mistake in my last PR
@samsonasik Here is the fix. Again thank you for pointing this
Checklist:

[x] Securely signed commits
[ ] Component(s) with PHPdocs
[x] Unit testing, with >80% coverage
[ ] User guide updated
[ ] Conforms to style guide

//cc @lonnieezell  for merging this as it from #2765 that you merged

authors: musmanikram samsonasik


text:
Landing UI - Updated

I have also modified the changes which were required.

remove top stories or you can make flex-direction column in media query with max-width: 688px

Great Work @Nayaker, I will merge your PR after resolving conflicts

authors: Nayaker codemaniac-sahil

repo: codemaniac-sahil/weather-app-api


text:
[fortran mode] Generate regular expression using wordRegexp

The regular expression used to highlight operators has issues with certain functions such as "len" and "new_line", especially if there is an opening bracket right before these functions.
This issue was originally reported in https://github.com/carbon-app/carbon/issues/1308 and https://github.com/highlightjs/highlight.js/issues/3450. The original issue is at https://github.com/Beliavsky/FortranTip/issues/24.

Hi @marijnh, thanks for the review! Unfortunately it seems like I went in the wrong direction when trying to come up with a fix for the issue mentioned. I'll see if I can come up with a proper fix for this.

Unfortunately I am not able to come up with a proper fix. I have filed #6869 for someone else to work on it.

repo: codemirror/CodeMirror


text:
Access application being executed

Description
When running the command npm start I want to access the application it port 3000. How would you do this using the coder-server?

related #291

repo: codercom/code-server


text:
is .gitignore presented somewhere in the new lesson configuration?

One of the more important things, we got a question about it.

I guess "git status" is also needed here.

.gitignore: https://coderefinery.github.io/git-intro/what-to-avoid/
git status: #451

At some point I thought it would be fun to add it to the starting repo. But GitHub allows you to add files via web interface even when they are gitignored. So I decided to not go into that and rather leave it to the end of day 2.

authors: bast rkdarst

repo: coderefinery/git-intro


text:
no need to override the UIWindow methods if you're in release mode

very minor change.
moving the prerocessor macro to encapsulate the method overrides.
it might prevent a collision with other shake gesture recognizer in release mode.

thank you

authors: coderyi kareem-hewady

repo: coderyi/NetworkEye


text:
added public holidays as admin yesterday to Mauritus office, today was not displayed

I logged in as a Admin of Mauritius office yesterday and added all Public Holidays
Today when I logged in and clicked on dashboard it looked like I never did it.
Screenshot

I added again the details and "set balance"

Alters bottom right says "Given token not valid for any token type"

I will observe if it's the same tomorrow :)

https://github.com/codescalers/CSHR/issues/431

indeed, my issue got resolved when I re-log in as admin.
The public holidays are displayed and set as balance.
I guess we can close that ticket as it is indeed related to #431 maybe #425

repo: codescalers/CSHR


text:
Add gists collection feature

in addition to tagging outlined in #7 for grouping gists in gistpad tree view.
see Observable collections for an example of how data viz devs group their prototypes.
Here is mine :)
https://observablehq.com/@randomfractals?tab=collections

Closing in favor of CodeSwing

authors: RandomFractals lostintangent

repo: codespaces-contrib/gistpad


text:
Bot unresponsive, doesn't appear in spotify devices after starting well

Hi Everyone,
First and foremost, thank you for building this app !
I'm trying to use the Docker Compose Method to launch the bot, but I'm having trouble starting reading the config, and i get this message :
Error: Error { tag: Tag(Default, 2), profile: Some(Profile(Uncased { string: "default" })), metadata: Some(Metadata { name: "environment variable(s)", source: None, provide_location: Some(Location { file: "src/lib/config.rs", line: 25, col: 14 }), interpolater:  }), path: ["discord_user_id"], kind: InvalidType(Str("'my-username'"), "u64"), prev: None }
Do you have any idea on how to fix this ? I've tried writing my username with simple quotes, double quotes, and without any quote, but it doesn't seem to work.
Thank you very much and have a nice day !

i changed my username to a u64 and it worked, the bot is connected to the server, but doesn't follow me in any channel ...

Sorry, is the issue that it doesn't appear in Spotify or that you can cast to it and it doesn't join a voice channel? It should appear as a cast target once you've joined a voice channel.

authors: codetheweb louidupwar

repo: codetheweb/aoede


text:
Upgrade Skylight gem to 5.0beta4

Description
Upgrade Skylight gem to 5.0.0.beta4
Related Issue
https://github.com/codetriage/CodeTriage/issues/1406
Motivation and Context
With 5.0beta4, we can enable the Skylight for Source Locations feature for your account. This feature will allow your contributors to more easily find out exactly where an expensive operation originated without having to scour your code.
How Has This Been Tested?
Existing tests pass locally.

Thanks for merging! I've enabled the feature flag on our end. Because the feature is still in alpha, it is not yet available on your public Skylight for OSS dashboard. While logged in, however, the app owner and any collaborators should be able to see the feature (once you deploy the new agent).
You might also consider enabling the deploy tracking feature if it's not already enabled. Source Locations works best if you have enabled deploy tracking, because it allows you find an event’s source location for a particular moment in time and track changes across deploys.

repo: codetriage/CodeTriage


text:
Add character:  to font:

Character : e
Font : drpepper

Hey @codewithnick, I would like to work on this next.

repo: codewithnick/ascii-art


text:
Remove nimbus build system

It seems like nimble >= 0.14.2 is working just fine for now, we can remove the nimbus build system dependencies and flow for now, to avoid duplication.

Finished in https://github.com/codex-storage/nim-codex-dht/pull/73

authors: dryajov elcritch

repo: codex-storage/nim-codex-dht


text:
Design

[ ] @loopdigga98
[ ] @ivanszhuravlev
[ ] @demyashev
[ ] @illiiiillllilii
[ ] @n0str

тестить дизайн можно на http://332.difual.com/


text:
solution_for_each_qid.json

I was running through the live code bench tasks and I found that "with open(
"workspace/notebooks__013_get_ground_truth_solutions_for_lcb/solution_for_each_qid.json",
"r",
) as f:" caused an error. I cannot find the source file for the solution, should we download it somewhere?
https://vscode.dev/github/codezakh/dataenvgym/blob/master/src/dataenvgym/gym/tasks/code/livecodebench_task.py#L64

I just added a HF download for the solutions file, it should run automatically now. Let me know if it still doesn't work.

repo: codezakh/DataEnvGym


text:
Fix/Feat send contact

Que tipo de Pull Request es?

[ X] Mejoras
[ X] Bug
[ ] Docs / tests

Para las funciones sendContact, sendPresenceUpdate, sendSticker se remueve this.client por this.vendor.
Adicionalmente se complemtenta la vCard con mayores opciones:

Nombre
Organizacion
Telefono1
Telefono2
Direccion (fisica)
Email
URL1
URL2
Birthday

Vcard:

Sticker:

Forma parte de este proyecto.

Discord
𝕏 (Twitter)
Youtube
Telegram

Puede servir para complementar.

authors: Rpeche-pk jorgechavarriaga

repo: codigoencasa/bot-whatsapp


text:
[Program]: Write a Rust program to find lcm of two numbers by recursion

Description
Write a Rust program to find lcm of two numbers by recursion
LCM (Least Common Multiple) of two numbers is the smallest number that can be divided by both numbers. For example, the LCM of 15 and 20 is 60 and LCM of 10 and 15 is 30.
Input  : 12 18
Output : 36

How to contribute

Save the solution in program/program/find-lcm-of-two-numbers-by-recursion/find_lcm_of_two_numbers_by_recursion.rs file

!assign

!assign

repo: codinasion/codinasion


text:
Added Java to convert String to Lowercase with 2 approaches

Why:
Closes #2691
Please review

@binayshaw7777
The issue is assigned to someone else. Please look for other issues to contribute. Make sure you type !assign to grab the issue
Thank you!

repo: codinasion/program


text:
Transaction amount input uses account commodity

There was a bug where the amount input view was not having the commodity set. This led to bugs where, if the user creates or edits a transaction in a USD account, but the default is set to JPY, it will
truncate input after the decimal point.
I emailed you about this bug, but I decided that since it's available on Github, I would see if I could fix it myself :smiley_cat:

Thanks. I'll fetch it and merge.
We have a Trello board full of issues to be fixed. I could add you to it if you'd like to take a swing at some of them ;)
P.S. Send patches to hotfix/patches in the future.

We have a Trello board full of issues to be fixed. I could add you to it if you'd like to take a swing at some of them ;)

Sure, why not. I'm an iOS dev by day, but I've done a small bit of Android in the past. Plus I use this app like everyday, so I can take a look at some.

P.S. Send patches to hotfix/patches in the future.

Sure no problem. Might put that in the contributing section of the readme?

Great. I've added you to the board.
We do indeed have to improve our contribution information.
I've merged this patch into hotfix/patches. It will go out with the next patch release.

authors: cjwirth codinguser

repo: codinguser/gnucash-android