Can't login to PHPMyAdmin

A few days ago I didn't have this problem, but I cloned laradock yesterday and built new images. Since then I can't login to PHPMyAdmin.
Previously, I could enter either the short version of the container ID hash or the container name (laradock_mysql_1) as Server and it worked. Now if I do this I get this error:

#2005 - Unknown MySQL server host 'laradock_mysql_1' (-2)

I also tried with localhost and <IP_ADDRESS>, but then I get this error on the PHPMyAdmin login page:

#2002 - Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 "No such file or directory") — The server is not responding (or the local server's socket is not correctly configured).

Interestingly, I can connect with HeidiSQL without problems using localhost, so my guess is this is related to PHPMyAdmin.

I have the same issue since laradock v. 5.1.0

Could you try this:
docker-compose build && docker-compose up -d nginx mysql phpmyadmin
Perhaps it will help

This is what i did:
docker-compose build --no-cache nginx mysql phpmyadmin workspace php-fpm applications
docker-compose up -d nginx mysql phpmyadmin

@maurosbu
@zeroc0d3
I tried these, but I get the same error.

@kp77 Sorry, my previous message was an answer for @zeroc0d3. The error persists.

the hostname you should use is mysql or mariadb depending on which flavour you use.

@thorerik I tried mysql but I got the same error.

#2005 - Unknown MySQL server host 'mysql' (-2)

@kp77. could you send the log process?

@zeroc0d3 Same feedback when using mysql as host.
#2005 - Unknown MySQL server host 'mysql' (-3)

@zeroc0d3 Could you tell me which log process do you mean, and how I can get it?
I looked at the container logs in Kitematic, but I couldn't see any related records.

@kp77 are you using the latest laradock update? If so, you need to open docker-compose.yml file go to your phpmyadmin section, then the network section and there check if both frontend and backend networks are added.

@a-h-abid thank you.

Try putting what you have in DB HOST in the server section and use password & username as root.

@neuthral how come the user and password were root? it works tho! I thought it was secret as specified in the .env file of laradock.

@neutt22 i have no idea, i found that out by chance, it works good after changing .env password

I cant connec as well , please , ome one can help ?

change mysql from latest to 5.7
and rebuild
then login with
mysql + root + root

Had the same issue:
downgrade mysql from 8 to 5.7
by setting   MYSQL_VERSION=5.7  in laradock/.env
after that in your .env file see the var called DATA_PATH_HOST and go to that folder, after that delete the mysql folder there and then do the docker-compose build --no-cache mysql and then docker-compose up -d mysql
https://github.com/laradock/laradock/issues/1855#issuecomment-433393678

Solved by changing the authentication method of user default to mysql native password.
go to mysql bash docker-compose exec mysql bash
login using root mysql -u root -p  password is root.
then issue following mysql command ALTER USER 'default' IDENTIFIED WITH mysql_native_password BY 'secret';
Now in phpmyadmin login page input server as mysql user default and password secret.

Solved by changing the authentication method of user default to mysql native password.
go to mysql bash docker-compose exec mysql bash
login using root mysql -u root -p password is root.
then issue following mysql command ALTER USER 'default' IDENTIFIED WITH mysql_native_password BY 'secret';
Now in phpmyadmin login page input server as mysql user default and password secret.

thank you for your kind of help. It's really useful.

Solved by changing the authentication method of user default to mysql native password.
go to mysql bash docker-compose exec mysql bash
login using root mysql -u root -p password is root.
then issue following mysql command ALTER USER 'default' IDENTIFIED WITH mysql_native_password BY 'secret';
Now in phpmyadmin login page input server as mysql user default and password secret.

thanks for your kind of help. It's work for me. I'm used default setting on .env file just change the DOCKER_HOST_IP and version of node. Everything just default.

Solved this by using mariadb instead of mysql. Next time, Oracle.
# Accepted values: mariadb - mysql
PMA_DB_ENGINE=mariadb`

go to mysql bash  docker-compose exec mysql bash
run this to login  mysql -u root -p
run below command to update the root user password
ALTER USER 'root' IDENTIFIED WITH mysql_native_password BY '123';


display "unknown option" error

is there a way to display that an option is unknown?

Yes, please! It is super annoying with spelling mistakes and [options]


Create Container distribution ?

This repo is a bit hard to introduce due to requirement libraries  (qpid-proton), so we could provide container image (including command and requirement libraries).

Following commits are taken care of:

1873cd21fe4892f4700d6ed09fee8c3ce15aec4b
b9f48008590958dc35273459fe420b6c73a0d8d2


Some codes are not highlighted in Gamepad API pages

Request type

[ ] Please close this issue, I accidentally submitted it without adding any details
[ ] New documentation
[x] Correction or update

Details
In "Using the Gamepad API" page on MDN docs,Both the complete code example and the code example above it aren't highlighted
Same also goes for "Implementing controls using the Gamepad API" page on MDN docs
Please check all the page and fix it
Links
https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API
https://developer.mozilla.org/en-US/docs/Games/Techniques/Controls_Gamepad_API
That's all,Thanks for reading!!!

Fixed; the code blocks were not markup up correctly, and some of them had weird styles all over them.
Thanks for reporting.

Welcome.


Restructurization - Division into files

The project division into files based on the usage and project structure

so, apparently, the imports don't work during the build, so i'm reopening it

Yes, the build does not work as we are not at the deployment stage. Just as I have commented on your PR, there will be a python file for setting up the compiled version (which is optional for the user).


when  use css! in html error:Uncaught Error: Script error for: css

this is in html error
<script type="text/javascript">
  require(['/javascript/app/order/controller.js','css!/style/app/order/build.css'])
</script>

this is in  js ok
define(['app', 'datetimeconfig', 'css!/style/app/order/build'], function() {
  'use strict';
  return $(function() {
    return App.Controller.OrderController = {
      newAdr: function() {}
    };
  });
});

Hi there! I am having a kind of a similar issue!
My paths are OK.
The CSS files are being loaded but nevertheless a javascript error is being thrown out - a Syntax error for each CSS file being loaded.
The thing is - it does not happen at all times! Sometimes it shows it sometimes it does not.
I assume i do not need to have domReady before that? (tried it both ways - same stuff).
Attaching a few screenshots of what i see / is happening.
Also attaching the moment where i am currently loading the css (after dom ready but as i mentioned - tried to load the css with the rest of the files async - same error).
Any ideas?

Here is the CSS file: https://core.payin7.com/js/payin7/css/production/payin7.css
Here is the javascript bootstrap file (currently in non-uglified state): https://core.payin7.com/js/payin7/js/sdk/payin7.js

I tried loading your style from chrome and didn't got any error. However, I noticed you are using \9 in the first line of your minified stylesheet. For example:
.sweet-alert .sa-icon.sa-success{border-color:transparent \9}

In IE9 you could use \9 to mean "treat this as a semicolon if you're IE9, or ignore this whole line in any other case". Which, depending on your browser, might be breaking stuff.
You might wanna try replacing \9 for proper semicolons to see if anything changes?


tests/videoCapture.phpt dosn't work in docker

tests/videoCapture.phpt dosn't work in docker
It breaks continuous-integration/travis-ci
All commits are tagged as "All checks have failed"

I also found this problem, can you judge whether it is docker in php?


Switching to Broadcast FM while RX active will lock the keyboard

Hello !
I wanted to listen to Broadcast FM (keys F+0) while the radio was receiving a (continously transmitting) channel and it didn't switch to it. Actually the keyboard was locked while the display showed FM in the top left corner.
If the channel stops receiving then after a few seconds of silence, the radio switches to Broadcast FM and then you can handle the keys as normal. Otherwise the only solution is to power off/on (or to remove antenna to drop down the signal).
This happens when receiving on the TX channel only, whatever VFO-A or B.
Tested in bands 440 and 1200 MHz. Version 2.5. Reproductible anytime.

Hello,
I think this is normal and I'm not sure what to do about it. The K5 uses 2 ICs for the radio. The BK1080 for FM Broadcast and the BK4819 for all the rest. The BK4819 obviously has priority. If a signal is received on the BK4819, the BK1080 is no longer active. It becomes active again after a delay, in the absence of a signal on the BK4819, which is normal again.
Armel F4HWN.


Feature request: cd back to original directory

It would be nicer if the install.sh script ran cd back to the original directory where I was originally, instead of leaving the shell at ~/.luaver. Perhaps it could also print in the end something like

Installation successful!
You can now run 'luaver' to see available commands.

The latest version of install script does show an installation successful message and cd back to the present directory. Can you try it once with the new script(in master) and if you face the same issue can you specify the steps that reproduced the error?
Thanks!

Closing this now. Let me know if you still face this issue.


Have request / response structs derive Eq

A pattern I'd like to express is:

Get current state from AWS
Generate desired state
If states are not equal, issue update

In the EC2 API, the request and response structs often have common elements, so if these derived Eq, step 3 would be much easier to implement.
Potentially this could help with testing too.
My guess (though I haven't confirmed it) is that Eq could be derived for all the generated structs. PartialEq would be required too, of course. Hash and Clone could be useful too.

What I meant to say is new behavior could be opt-in, existing behavior would stay the same. 😄
I agree it's ideal to have CI test those opt-in flags, but since it's a compiler built-in I'm pretty confident it'll be okay.
How about we add PartialEq and Hash for the types mentioned and if we run into compilation time issues, we can revisit the feature flag option?

I think we can add PartialEq and Hash as derives to applicable fields. The PR should give us an idea on compile times. 👍
If we bump into compilation time issues we can look at putting them behind features.

I'm considering deriving PartialEq but not Hash, as HashSet and HashMap require the full Eq bound, and I'm not sure what else Hash is useful for. What do you think?

I think this can be closed now.

Closing as we have PartialEq now and I can't think of a use case for Hash without Eq.


Merge StreamStats.jl into OnlineStats.jl?

It's my understanding that this repo has been inactive for a while and that the functionality could be merged into OnlineStats.jl, which has lots of awesome online algorithms thanks to Josh Day's PhD work (and it should probably be included in JuliaStats).
John (or anyone else willing to help): assuming this makes sense to you, what are the steps required for a merge?  What exists here that doesn't exist in OnlineStats?  Do you need/want help with any part of it?

Hi Tom,
Nice meeting you at JuliaCon. I think the main things we'd need to merge are the HyperLogLog implementation, the online bootstrap and the AdaGrad-based SGD OLS/logit code. I'd love help porting all of that.
I'd also like to move OnlineStats.jl into JuliaStats so that we can all collaborate more effectively.

Nice meeting you too! (and I'm impressed by the immediate response).  When I have a few minutes to dive into your code again, I can try to make a first pass merge.  @joshday may be able to help as well, since he'll probably have better knowledge about the implementation details.
I'd love for the package to get more visibility in the hope that others can help add online variations to lots of algorithms.  Also, as a side note, Josh and I discussed your desire to allow various user-defined weightings, and that should be pretty straightforward given the design... equal, exponential, and stochastic weightings are already supported.

I think the really awesome thing here would be showing how to use this stuff with the aggregation UDF's in SQLite that Jacob Quinn's been working on.

Agreed, and on that note, I was brainstorming yesterday (thanks to comments from @quinnj) on how to make an interface to this stuff that made it easier to compose/chain various online stats and data flows without explicitly updating each object.  This is very similar to Reactive, which might be the right package to use.  It would be nice to write something like:
demeaned = x - Mean(x)

Here x is some stream in a Reactive pipeline, and Mean(x) implicitly produces an OnlineStat which lifts from the stream.  Now every time there's a new data point, Mean(x) is updated, which is then lifted to update demeaned, all without calling update!.  This may be trickier than expected considering all the different ways data can come in, but it could drive some really nice data analytics.

I'm happy to help to get things rolling.  Sounds like I'll need to look a bit more into SQLite and Reactive as well.  I like where this is headed.
OnlineStats issue for adding StreamStats functionality

@johnmyleswhite After seeing some of the comments on the PRs here, would you be receptive to a PR that adds a note in the README which directs people to OnlineStats.jl?

Yes, I definitely would be open to that.

Excellent.  Thanks!

I am trying to move my code from StreamStats to OnlineStats. StreamStats does overload Base.merge to merge two StreamStats, which becomes very useful for parrallel applications. Is there a similar functionality in OnlineStats?

There used to be merge methods for most OnlineStat types.  They've been temporarily lost in some rewrites.  I'll make it a priority to get them back in.

Great, thanks for your work.


RFC, NFC: refactor ranges to be nested templates

This way, we don't have to specify a Parent when we're just interested in
Pipe-ing things together.
We could have called these inner classes Apply and left the Pipe implementation
alone, but it's probably better to call them Type and adjust the Pipe code.
This commit is absolutely best reviewed ignoring whitespace changes!
This commit also conflicts, for trivial reasons, with #530.  I would be tempted to wait until that has landed and then commute this back across that if we want this.

So the nested type was my initial plan for how to do this. I discussed with @davidchisnall and he suggested the default and inner using.
I implemented both and went with the using due to the smaller diff.
I do find the occasional <> annoying, and I think the nested type is slightly clearer code. But I'm not sure if it is worth changing.


UX changes

Changes

Simplified search autocomplete. Tried to make it easier to notifiy users if they are going to a claim/channel/search page
#1598
#1636
Removed auto search, we may add it back but it did not need to be on the FileList component, that was when we had the search modal.
Other minor fixes accross the app

Images

@tzarebczan a quick test on this would be great

@seanyesmunt there's also a growing number of instances where components are being passed flags that effectively require them to know about what's outside of them rather than operate independently. E.g. onModal, onComponent. We ought to avoid this pattern whenever possible.

And here's my UX/UI feedback:

Autoplay has got to change it's place in the layout. It probably shouldn't be it's own row.
Spacing is weird. Here are the relative spaces I measured:

36px between "published on..." and the channel indicator
32px between the card action /button row and the channel indicator
24px between autoplay and action row
24px between "About" and autoplay

Some of the above may stem from the usage of form-row in an inappropriate manner.
Would still like to consider other icons than a paper plane for send
I dislike that the first action in the row is "Unsubscribe" once I've subscribed, but I suppose that might be unavoidable.
Why is download faded?
View on web did not work for this URL (lbry://joe-haldeman-from-the-vietnam-war-to#33ad70ec22e757c828d934f571880b42f6cedb77), the first and only one I tried it on. Not sure where to file this. I did not debug this enough to figure it out.


Detect webroot antivirus running

Webroot antivirus currently causes a CTD when it detects the .netcrashlogging trying to inject itself into Skyrimse.exe.
Webroot has no exception list for this behaviour and contact by Meh321 for a option - only have been met with his words "rude" refusals.
Thereforee the only want to currently run this is to Shut webroot down from the system tray.
Ideally, on launch the launcher should check if webroot is running and tell the user that they need to shut it down first as it is incompatible with modded skyrim.

What is the name of the process we need to detect?
@RingComics Do you know this? I think you said you have a laptop with it running.

Process names:

WRCoreService.x64.exe
WRSA.exe
WRSkyClient.x64.exe
WRSvcHost.x64.exe
These all run with webroot


feat: added java plugin runner download block

Fixes: #406
Changes:
added download card for apish java plugin runner
Screenshots of the change:

cc @juzhiyuan @Yiyiyimu @guoqqqi

unexpected ci error

🤔

see 770, CI runs git checkout -f WRONG_BRANCH

see 770, CI runs git checkout -f WRONG_BRANCH

but I haven't changed that code

@LiteSun can you have a peek on this

What will happen when you run sync-docs.js on your local machine?

@juzhiyuan

Need to take a look at what's this [object Object] is 🤣

@iamayushdas look which one?

@iamayushdas look which one?

This error,

I still couldn't see what's the content of that [object Object], please print it. You may need JSON.stringify to handle it.

Hi @iamayushdas Do you know how are we building multi-versoin docs for now? It seems we should not build on all branches but the selected ones

Ohhhhh! Thats where the problem arises, but we are just using main/master branches, let me reconfirm with @juzhiyuan

Just fixed this issue here https://github.com/apache/apisix-website/pull/412/files#diff-2c12df13ad0ff398ec46834d8336f3d6e5089a89a1d2b7c39f5f209abcec0217R163
And yes, we only build branches like release/xxx, because @Yiyiyimu's branch in apisix-docker contains release keyword, then this build failed. I just updated it to release/.

After #412 gets merged, please sync codes from the master branch.

Just fixed this issue here https://github.com/apache/apisix-website/pull/412/files#diff-2c12df13ad0ff398ec46834d8336f3d6e5089a89a1d2b7c39f5f209abcec0217R163
And yes, we only build branches like release/xxx, because @Yiyiyimu's branch in apisix-docker contains release keyword, then this build failed. I just updated it to release/.

Nice, thankyou

@iamayushdas You need more patience and focus on why this error occurred, just go through the codes and think why.

@iamayushdas You need more patience and focus on why this error occurred, just go through the codes and think why.

I acknowledge this, thanks

just merged, please sync master branch.


Rendering seem to fail on external GLB files (works at first load, but not second)

When loading new materials onto externally loaded GLB-files, the object seem to disappear after a second loading procedure.
At first load (going from one 'visually enabled' to another) it works all right, but the next time around.
Video example (have focus/emphasis on the mouse clicking 1 and 2 piece of jewelry): https://www.youtube.com/watch?v=YYGBCwv4el8
This puzzles me as quite a few debugging routes have been taken already as well (with or without refraction and with or without runtime opacity change).
Code-snip:
if(self.meshesModeHolders[m] === "4001" /* Cobalt */) {                                         self.meshes[m].material = self.app.assets.get(67084159).resource;                                          self.setRfr=0; // set to 1===refraction at debugging                                         self.meshes[m].material.opacity =0.68; // commented out at debugging
My best own guess is; that it is related to the material.update()-procedure, that has issues with the layers.
self.meshes[m].material.update();
If so one could start thinking that there should be a limit to the 'Layers handled runtime', but there should not be according to: https://forum.playcanvas.com/t/solved-performance-and-layers/12657
I am afraid I will not let the code become free to examine, as I preserve it to be non-disclosure worthy (due to a lot of other functionality I need to hide).
My question is rather: If you know something about such material-issues relating to layers and/or GLB-files please elaborate.
Still have a hunch that this is a real bug though.
I am using Chrome browser

Again, difficult to tell without a build to look at and repro steps on how to get the issue.
From the video, it looks like it is flickering in and out?
Does this open with the GLB outside of your project? For example, if you load the GLB in https://playcanvas.com/model-viewer does the issue still happen?
I also recommend using https://spector.babylonjs.com/ to debug rendering issues as it shows each draw call.


admin login

well you say At this point, you should be able to access the project by pointing your browser to IP address of the server, which in this case is <IP_ADDRESS>. Login using adminin the  credentials & create new accouts, subscriptions, routers and all other features of Access Manager. but not admin is create in the database and I cant login
any ideas

just I use before your old install setup solve now


The easiest and fastest way to deploy an OKD 4.5 cluster in a Libvirt/KVM host

I like this project.
Thanks a lot for your times and job.

Thank you for reading about it @linuxliste !!! If you need anything, feel free to create an issue and explain there whatever you need.

hi Mate, I am bout to try build this for a production env (non for profit). Is there any way this can be adapted (by me) to allow our existing NFS and DNS be available through lot the running containers without too much more firewall / route trickery? I suspect I will still need a load balancer on the service node still? Love to chat if you had the spare time. Thx, C

Hi @christopherwelsh it should not be hard to do it.
1- The network change and a brief explaining about how the DNS works is quite simple and explained here https://www.anstack.com/blog/2020/08/25/KubeInit-External-access-for-OpenShift-OKD-deployments-with-Libvirt.html
In this case, as long as you have the external view available somewhere (in the authoritative DNS for the cluster domain) and pointing correctly to the services machine, all the external requests for applications should be resolved and routed correctly. Try deploying it following the previous post and see how the external zone is configured, replicate that in your DNS and you should be good to go.
2- The NFS is the same, as long as you have it available and reachable within the cluster network it should not be a problem and it should not require any change as it depends on how your applications are configured. Maybe you can use this as a reference https://www.anstack.com/blog/2020/09/28/Persistent-volumes-and-claims-in-KubeInit.html
3- The HAProxy is required to reach all the nodes correctly.
Please feel free to ask any questions you have, and if you find any issue also feel free to raise issues in the project's repo (github.com/kubeinit/kubeinit). Also, it would be awesome if you can star the project to catch up with updates and new features.

Hi ccamacho,
Thanks for the insights. Honestly looking at the instructions on the OKD site were overwhelming and I was not confident I could pull it off. I am still trying to decide the kind of deployment architecture to deploy as from what I can see there  is the bare metal or virtual layer. This service will be used in a production Env to assist with cancer research (non for profit). It would be great to speak with you and discuss the options and variations that can be applied via your project to the solutions.
So what do I have 2x40 thread servers with 396gb ram and GPFS partition, 3 x16 thread servers with 32gb. So I am wondering how best to apply OKD.
As I understand it, the easiest approach is to apply your project to one of my 40 thread hosts and be done with it. But I would like to scale up to more worker nodes using other available hardware. So the question it which way to go. 👍
O feel a quick zoom may help me out and the keep track of the outcome via this site for the broader audience?

@christopherwelsh hi, this doesn't look like an only DND+NFS change? Feel free to ping me on IRC (freenode) in #kubeinit I'm ccamacho, also on the kubernetes slack channel as ccamacho.

Thx Mate. I will reach our in the next 48 hours or so.

 Appreciate  your tool and support! I wanted to deploy multiple such clusters on the same bare metal. Please advice how to make that happen.

Hi @git4liluo, deploying multiple clusters is fairly easy with some adjustments I already implemented, please read this guide: https://www.anstack.com/blog/2020/10/04/Multiple-KubeInit-clusters-in-the-same-hypervisor.html
Please feel free to ask any questions you have, and if you find any issue also feel free to raise issues in the project's repo (https://www.github.com/kubeinit/kubeinit). Also, it would be awesome if you can star the project to catch up with updates and new features.

while running playbook getting below error in validations.
TASK [../../roles/kubeinit_validations : Make sure there is enough free space] *******************************************************************************
fatal: [<IP_ADDRESS>]: FAILED! => {
"assertion": "kubeinit_validations_libvirt_free_space.stdout[:-1]|int > kubeinit_validations_libvirt_disk_usage|float * 1.1",
"changed": false,
"evaluated_to": false,
"msg": "It seems there is not enough disk space (Required: 302.5 Total: 1)"
}
how much space it required for /var ?

Hi @shan557, you will be required to have the sum of the space used by the guests in the inventory file, otherwise, the deployment will fail.
Please feel free to ask any questions you have, and if you find any issue also feel free to raise issues in the project's repo (https://www.github.com/kubeinit/kubeinit). Also, it would be awesome if you can star the project to catch up with updates and new features.

Hi Camacho,
I faced the issued below while running the ansible playbook
TASK [../../roles/kubeinit_libvirt : Inject toor virt-customize assets] *******************************************************
failed: [hypervisor-01] (item=okd-service-01) => {"ansible_loop_var": "item", "changed": false, "cmd": "virt-customize -a /var/lib/libvirt/images/okd-service-01.qcow2  --run-command "sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config"  --run-command 'id -u toor &>/dev/null || /usr/sbin/useradd -u 1000 toor'  --run-command "sed -i s/^SELINUX=.*$/SELINUX=disabled/g /etc/selinux/config"  --ssh-inject toor:file:/home/toor/.ssh/id_rsa.pub  --ssh-inject root:file:/root/.ssh/id_rsa.pub  --ssh-inject root:file:/root/.ssh/authorized_keys  --hostname okd-service-01.kubeinit.local  --copy-in /tmp/okd-service-01/ifcfg-eth0:/etc/sysconfig/network-scripts    --copy-in /tmp/okd-service-01/hosts.redhat.tmpl:/etc/cloud/templates  --copy-in /tmp/okd-service-01/cloud.cfg:/etc/cloud  --selinux-relabel --root-password password:asdfasdf\n", "delta": "0:00:06.833605", "end": "2020-10-22 01:58:50.102280", "item": "okd-service-01", "msg": "non-zero return code", "rc": 1, "start": "2020-10-22 01:58:43.268675", "stderr": "virt-customize: error: libguestfs error: is_dir: is_dir_stub: you must call \n'mount' first to mount the root filesystem\n\nIf reporting bugs, run virt-customize with debugging enabled and include \nthe complete output:\n\n  virt-customize -v -x [...]", "stderr_lines": ["virt-customize: error: libguestfs error: is_dir: is_dir_stub: you must call ", "'mount' first to mount the root filesystem", "", "If reporting bugs, run virt-customize with debugging enabled and include ", "the complete output:", "", "  virt-customize -v -x [...]"], "stdout": "[   0.0] Examining the guest ...\nvirt-customize: warning: mount: mount exited with status 32: mount: wrong \nfs type, bad option, bad superblock on /dev/sda1,\n       missing codepage or helper program, or other error\n\n       In some cases useful info is found in syslog - try\n       dmesg | tail or so. (ignored)", "stdout_lines": ["[   0.0] Examining the guest ...", "virt-customize: warning: mount: mount exited with status 32: mount: wrong ", "fs type, bad option, bad superblock on /dev/sda1,", "       missing codepage or helper program, or other error", "", "       In some cases useful info is found in syslog - try", "       dmesg | tail or so. (ignored)"]}
PLAY RECAP ********************************************************************************************************************
hypervisor-01              : ok=62   changed=19   unreachable=0    failed=1    skipped=9    rescued=0    ignored=4
[root@cloud-host kubeinit]#
[root@cloud-host kubeinit]#
Could you kindly advise?

TASK [../../roles/kubeinit_libvirt : Create the network cloudinit templates for networking details] ***************************
changed: [hypervisor-01] => (item=okd-service-01) => {"ansible_loop_var": "item", "changed": true, "checksum": "c2ef4477560216926e975878098ef22a6768d88d", "dest": "/tmp/okd-service-01/cloud.cfg", "gid": 0, "group": "root", "item": "okd-service-01", "md5sum": "b530ed95266f1928f76c574aed78d9fb", "mode": "0644", "owner": "root", "size": 4024, "src": "/root/.ansible/tmp/ansible-tmp-1603317449.35-32145-202334453834506/source", "state": "file", "uid": 0}
TASK [../../roles/kubeinit_libvirt : Create vm backing store from base vm image] **********************************************
changed: [hypervisor-01] => (item=okd-service-01) => {"ansible_loop_var": "item", "changed": true, "checksum": "7063c519ea2456371cb1cc7c1a92c79a17d7fa67", "dest": "/var/lib/libvirt/images/okd-service-01.qcow2", "gid": 0, "group": "root", "item": "okd-service-01", "md5sum": "ec2bb3267e18fe074622b84eec72b5bb", "mode": "0644", "owner": "root", "size":<PHONE_NUMBER>, "src": "/var/lib/libvirt/images/CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.qcow2", "state": "file", "uid": 0}
TASK [../../roles/kubeinit_libvirt : Ensure the backing store is large enough] ************************************************
changed: [hypervisor-01] => (item=okd-service-01) => {"ansible_loop_var": "item", "changed": true, "cmd": ["qemu-img", "resize", "/var/lib/libvirt/images/okd-service-01.qcow2", "+150G"], "delta": "0:00:13.495093", "end": "2020-10-22 01:57:54.055230", "item": "okd-service-01", "rc": 0, "start": "2020-10-22 01:57:40.560137", "stderr": "", "stderr_lines": [], "stdout": "Image resized.", "stdout_lines": ["Image resized."]}
TASK [../../roles/kubeinit_libvirt : Grow the partition] **********************************************************************
changed: [hypervisor-01] => (item=okd-service-01) => {"ansible_loop_var": "item", "changed": true, "cmd": ["virt-resize", "--expand", "/dev/sda1", "/var/lib/libvirt/images/CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.qcow2", "/var/lib/libvirt/images/okd-service-01.qcow2"], "delta": "0:00:46.406522", "end": "2020-10-22 01:58:41.855081", "item": "okd-service-01", "rc": 0, "start": "2020-10-22 01:57:55.448559", "stderr": "", "stderr_lines": [], "stdout": "[   0.0] Examining /var/lib/libvirt/images/CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.qcow2\n**********\n\nSummary of changes:\n\nvirt-resize: warning: unknown/unavailable method for expanding the xfs \nfilesystem on /dev/sda1\n/dev/sda1: This partition will be resized from 7.8G to 160.0G.\n\n**********\n[   3.4] Setting up initial partition table on /var/lib/libvirt/images/okd-service-01.qcow2\n[   3.7] Copying /dev/sda1\n\nResize operation completed with no errors.  Before deleting the old disk, \ncarefully check that the resized disk boots and works correctly.", "stdout_lines": ["[   0.0] Examining /var/lib/libvirt/images/CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.qcow2", "", "", "Summary of changes:", "", "virt-resize: warning: unknown/unavailable method for expanding the xfs ", "filesystem on /dev/sda1", "/dev/sda1: This partition will be resized from 7.8G to 160.0G.", "", "", "[   3.4] Setting up initial partition table on /var/lib/libvirt/images/okd-service-01.qcow2", "[   3.7] Copying /dev/sda1", "", "Resize operation completed with no errors.  Before deleting the old disk, ", "carefully check that the resized disk boots and works correctly."]}

hi @stevoltgutsy thanks a lot for raising this issue.
That should be a regression in libguestfs, the actual error is this one:
the virt-resize: warning: unknown/unavailable method for expanding the xfs ", "filesystem on /dev/sda1", "/dev/sda1: This partition will be resized from 7.8G to 160.0G."
Can you confirm you have: 1.40.2 (the one with the issue)
This one should work: 1.38.4 (this should work)
A quick workaround is to downgrade libguestfs until there is a fix for this in libguestfs or I fix it in KubeInit.
Feel free to raise an issue in https://github.com/kubeinit/kubeinit for tracking the fix for this. Also, it would be awesome that if you are using the project to star it to be up to date with the latest features

Thanks for the prompt response.
I got the setup up and running on a fresh install of centos 8. The failed attempt was on centos 7 with many other kvm instances running.
A quick one, how do i upgrade the OKD cluster to 1.19.3 . It came installed with 1.18.3

@stevoltgutsy you should be able to run the OKD upgrade guides1 remember that the OKD version and the k8s version deployed must match.

Thanks a lot . This post save me several months effort of trying to install openshift. What a great relief.

One last question: How do I access OKD web interface for this setup?

Np, the deployment is in a NAT network so you can not access the management network from outside, what you can do is to use an additional IP to point to the service machine and have access to the cluster. Here you have all the steps documented: https://www.anstack.com/blog/2020/08/25/KubeInit-External-access-for-OpenShift-OKD-deployments-with-Libvirt.html

Thanks. got everything working so far.
What's the username/password to use for ssh/virsh console to control/compute nodes?
I plan to do some testing that may require CLi access to the vm.

@stevoltgutsy hi, from the hypervisor you should be able to ssh as root to the service node and ssh as core to the other fcos nodes. It's nice to see you made progress. If you manage to find issues, things to improve feel free to raise them in the GitHub's project. Also any contribution is welcomed ;)

Hi ccamacho,
How do I login to the grafana and prometheus instances that cam pre-installed with this installation? In case I want to deploy similar application, how do I proceed? Sorry to bother you with this at this time.

Hi @stevoltgutsy :) sure thing man, why don't you try with the password stored in the service node @ /root/install_dir/auth/kubeadmin-password ??

Also oc get secret kubeadmin -n kube-system -o yaml might help, but IIRC its base64 so you must decode it.

Hello  @ccamacho ,
How to set number of CPU in inventory file for control plane, worker and service vms?
I've only seen ram and disk:
disk=25G
ram=25165824
Thanks.

Hi @cgoguyer, indeed that looks like a low hanging fruit for pushing a PR, are you interested in contributing? If you will like to do it, these are the steps to make it dynamic.
In the following files you need to update/add the vcpu and maxvcpu variables:
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/roles/kubeinit_libvirt/tasks/10_k8s_deploy_nodes.yml#L123
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/roles/kubeinit_libvirt/tasks/10_okd_deploy_service_nodes.yml#L118
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/roles/kubeinit_libvirt/tasks/10_rke_deploy_nodes.yml#L121
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/roles/kubeinit_libvirt/tasks/20_okd_deploy_cluster_nodes.yml#L28
To something similar to this:
--vcpus={{ hostvars[item].vcpus }},maxvcpus={{ hostvars[item].maxvcpus }} \
Then add in the following inventory files:
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/hosts/cdk/inventory#L28
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/hosts/cdk/inventory#L39
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/hosts/cdk/inventory#L50
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/hosts/k8s/inventory#L28
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/hosts/k8s/inventory#L39
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/hosts/k8s/inventory#L50
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/hosts/okd/inventory#L28
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/hosts/okd/inventory#L39
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/hosts/okd/inventory#L50
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/hosts/okd/inventory#L61
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/hosts/rke/inventory#L28
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/hosts/rke/inventory#L39
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/hosts/rke/inventory#L50
A reference to the following variables with a sane default value (what we had before):
vcpus=8
maxvcpus=16
So, it's now configurable :)
One thing though, is that the commit names are linted so, you should push a commit like.
feat: make vcpus configurable
The following patch adds the ability
to make vcpus and maxvcpus variables dynamic.
Also, it would be awesome if you can star the project to catch up with updates and new features.

Hi @ccamacho
I'm working on it.
but when testing I'm getting this error:
failed: [hypervisor-01] (item={u'key': u'coreos', u'value': {u'kernel': u'fedora-coreos-32.20200715.3.0-live-x86_64', u'initrd': u'fedora-coreos-32.20200715.3.0-live-initramfs.x86_64.img', u'sig': u'fedora-coreos-32.20200715.3.0-metal.x86_64.raw.xz.sig', u'raw': u'fedora-coreos-32.20200715.3.0-metal.x86_64.raw.xz', u'iso': u'', u'image': u'', u'uri': u'https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/32.20200715.3.0/x86_64/'}}) => {"ansible_loop_var": "item", "changed": false, "dest": "/var/lib/libvirt/images/fedora-coreos-32.20200715.3.0-live-x86_64", "elapsed": 150, "item": {"key": "coreos", "value": {"image": "", "initrd": "fedora-coreos-32.20200715.3.0-live-initramfs.x86_64.img", "iso": "", "kernel": "fedora-coreos-32.20200715.3.0-live-x86_64", "raw": "fedora-coreos-32.20200715.3.0-metal.x86_64.raw.xz", "sig": "fedora-coreos-32.20200715.3.0-metal.x86_64.raw.xz.sig", "uri": "https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/32.20200715.3.0/x86_64/"}}, "msg": "Request failed: <urlopen error [Errno -2] Name or service not known>", "url": "https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/32.20200715.3.0/x86_64/fedora-coreos-32.20200715.3.0-live-x86_64"}

@cgoguyer first, thanks for the contributions :) that looks like an unrelated issue when fetching the FCOS images, the URL looks correct are that's for fetching the kernel image. If you push the PR Ill gladly review it and we can run the CI job for testing it without issues.
Thanks again!

Hi ccamacho,
I s there a way to input the pull-secret in the playbook or a fix for the always degrading config-samples operator? It is consistently degraded. I tried "oc delete configs.sample cluster", but it returns to degraded after some time. I am just looking for a permanent fix

It seems "{"auths":{"fake":{"auth": "bar"}}}" was used in your playbook. I need to way to avoid the degraded alert.

Hi @stevoltgutsy,
The current content of the install-config.yaml should look like http://paste.openstack.org/show/800046/
By default, we now deploy with a local registry in the service machine.
Here you can enable it or disable it:
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/roles/kubeinit_registry/defaults/main.yml#L24
And the pullsecret defaults to the following value in case you don't use the local registry:
https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/roles/kubeinit_okd/defaults/main.yml#L31
I hope this helps, feel free to raise an issue if you find there might be a bug.
Thanks!!

Thanks for the response. I will check further. What could be the reason for the consistent degradation of the config-samples operator?

From the logs, all image streams related to the config-samples could not be imported. As a result, config-samples operator was degraded.

Hi ccamacho, I think i fixed the issued with my setup. sorry to bother you.
Thanks you for this platform.

Hi @stevoltgutsy, how did you solve your issue ?
I have the same problem with the config-samples operator.

Hi @stevoltgutsy @cgoguyer I started to check it yesterday, I think you need to use/request a valid auth token at registry.redhat.io

Hi @cgoguyer , I did as follows:

U need to have subscription or developer account with redhat.
see if you can login (podman login registry.redhat.io). U can try docker login too.
visit (https://cloud.redhat.com/openshift/install/pull-secret) to download or copy your pull-secret. save it on the okd-service node or hypervisor node. Any PC that can reach openshift API would do. I saved mine in file "pull-secret".
oc set data secret/pull-secret -n openshift-config --from-file=.dockerconfigjson=pull-secret
You should be able to pull/import an imagestrean from registry.redhat.io now. ( oc import-image rhel7-minimal --from registry.redhat.io/rhel7-minimal --reference-policy local --confirm) You should see "image imported". No more unauthorized, pls login message.
oc delete configs.sample cluster
The command above will delete and re-install  kube-api and config-sample operator.
oc get co
That's it. My openshift sample operator has been running for 14 hours without the "degraded" flag.

Thank you @stevoltgutsy. It works fine now.

@cgoguyer , u're welcome.

how do i rerun the installer without installing or downloading everything?

Hi @GerritAO you can't right now (running the ansible deployment command) there are some steps that are idempotent, like downloading the OS images, but other steps will re-run, which means that all the VMs will be redeployed. You can log in to the service machine and do a manual install from the point you stopped. @gmarcy has a refactor that will allows to do exactly that, but there is no ETA at this moment.

okay, thank you. I used this same guide and when it comes to checking master nodes and get the error that it failed to verify and  i get a link with OEF behind it when I open the master node. If I check the cockpit service and the HAProxy i see that they are all dead. Should I start them at this point? Is there anything else I should have done until that point.

Hi @ccamacho,
Thanks for the great article.
Can you please help me with this error?
TASK [../../roles/kubeinit_libvirt : Enable kernel modules and IP forward] ************************************************************************
ok: [localhost -> <IP_ADDRESS>] => {"changed": false, "cmd": "modprobe br_netfilter\necho br_netfilter > /etc/modules-load.d/br_netfilter.conf\nmodprobe overlay\necho overlay > /etc/modules-load.d/overlay.conf\necho '1' > /proc/sys/net/ipv4/ip_forward\nmkdir -p /proc/sys/net/bridge/\necho '1' > /proc/sys/net/bridge/bridge-nf-call-iptables\nsysctl -p\n", "delta": "0:00:00.019761", "end": "2021-07-22 07:46:32.121321", "rc": 0, "start": "2021-07-22 07:46:32.101560", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
TASK [../../roles/kubeinit_libvirt : Remove repo before adding it] ********************************************************************************
ok: [localhost -> <IP_ADDRESS>] => {"changed": false, "path": "/etc/yum.repos.d/crio.repo", "state": "absent"}
TASK [../../roles/kubeinit_libvirt : Creating a repository file for cri-o] ************************************************************************
changed: [localhost -> <IP_ADDRESS>] => {"changed": true, "dest": "/etc/yum.repos.d/crio.repo", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "size": 0, "state": "file", "uid": 0}
TASK [../../roles/kubeinit_libvirt : Adding repository details in the cri-o repo file.] ***********************************************************
changed: [localhost -> <IP_ADDRESS>] => {"changed": true, "msg": "Block inserted"}
TASK [../../roles/kubeinit_libvirt : Remove repo before adding it] ********************************************************************************
ok: [localhost -> <IP_ADDRESS>] => {"changed": false, "path": "/etc/yum.repos.d/kubernetes.repo", "state": "absent"}
TASK [../../roles/kubeinit_libvirt : Creating a repository file for Kubernetes] *******************************************************************
changed: [localhost -> <IP_ADDRESS>] => {"changed": true, "dest": "/etc/yum.repos.d/kubernetes.repo", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "size": 0, "state": "file", "uid": 0}
TASK [../../roles/kubeinit_libvirt : Adding repository details in Kubernetes repo file.] **********************************************************
changed: [localhost -> <IP_ADDRESS>] => {"changed": true, "msg": "Block inserted"}
TASK [../../roles/kubeinit_libvirt : Update packages] *********************************************************************************************
fatal: [localhost -> <IP_ADDRESS>]: FAILED! => {"changed": false, "msg": "Failed to download metadata for repo 'devel_kubic_libcontainers_stable': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried", "rc": 1, "results": []}
PLAY RECAP ****************************************************************************************************************************************
hypervisor-01              : ok=15   changed=3    unreachable=0    failed=0    skipped=6    rescued=0    ignored=1
localhost                  : ok=146  changed=42   unreachable=0    failed=1    skipped=36   rescued=0    ignored=0

@njayakrishna thanks a lot for testing kubeinit, there might a NAT issue fixed by https://github.com/Kubeinit/kubeinit/pull/406 which is set to auto-merge in a few minutes would you mind testing it again?

Thanks a lot for your reply. Sure, I will pickup the latest.

I tried the latest code, looks like I get a new error when firewalld is reloaded. This was not the case before the new change:
TASK [../../roles/kubeinit_libvirt : Refresh firewalld services list to pick up ovn services] **************************************************************************************
fatal: [localhost -> nyctea]: FAILED! => {"changed": true, "cmd": "firewall-cmd --reload\n", "delta": "0:00:00.190514", "end": "2021-07-22 08:49:54.069106", "msg": "non-zero return code", "rc": 13, "start": "2021-07-22 08:49:53.878592", "stderr": "Error: COMMAND_FAILED: 'python-nftables' failed: internal:0:0-0: Error: Could not process rule: Operation not supported\n\ninternal:0:0-0: Error: Could not process rule: No such file or directory\n\ninternal:0:0-0: Error: Could not process rule: No such file or directory\n\ninternal:0:0-0: Error: Could not process rule: Operation not supported\n\ninternal:0:0-0: Error: Could not process rule: No such file or directory\n\ninternal:0:0-0: Error: Could not process rule: No such file or directory\n\ninternal:0:0-0: Error: Could not process rule: Operation not supported\n\ninternal:0:0-0: Error: Could not process rule: No such file or directory\n\ninternal:0:0-0: Error: Could not process rule: No such file or directory\n\n\nJSON blob:\n{"nftables": [{"metainfo": {"json_schema_version": 1}}, {"add": {"table": {"family": "inet", "name": "firewalld_policy_drop"}}}, {"add": {"chain": {"family": "inet", "table": "firewalld_policy_drop", "name": "filter_input", "type": "filter", "hook": "input", "prio": 9, "policy": "drop"}}}, {"add": {"chain": {"family": "inet", "table": "firewalld_policy_drop", "name": "filter_forward", "type": "filter", "hook": "forward", "prio": 9, "policy": "drop"}}}, {"add": {"chain": {"family": "inet", "table": "firewalld_policy_drop", "name": "filter_output", "type": "filter", "hook": "output", "prio": 9, "policy": "drop"}}}, {"add": {"rule": {"family": "inet", "table": "firewalld_policy_drop", "chain": "filter_input", "expr": [{"match": {"left": {"ct": {"key": "state"}}, "op": "in", "right": {"set": ["established", "related"]}}}, {"accept": null}]}}}, {"add": {"rule": {"family": "inet", "table": "firewalld_policy_drop", "chain": "filter_forward", "expr": [{"match": {"left": {"ct": {"key": "state"}}, "op": "in", "right": {"set": ["established", "related"]}}}, {"accept": null}]}}}, {"add": {"rule": {"family": "inet", "table": "firewalld_policy_drop", "chain": "filter_output", "expr": [{"match": {"left": {"ct": {"key": "state"}}, "op": "in", "right": {"set": ["established", "related"]}}}, {"accept": null}]}}}]}", "stderr_lines": ["Error: COMMAND_FAILED: 'python-nftables' failed: internal:0:0-0: Error: Could not process rule: Operation not supported", "", "internal:0:0-0: Error: Could not process rule: No such file or directory", "", "internal:0:0-0: Error: Could not process rule: No such file or directory", "", "internal:0:0-0: Error: Could not process rule: Operation not supported", "", "internal:0:0-0: Error: Could not process rule: No such file or directory", "", "internal:0:0-0: Error: Could not process rule: No such file or directory", "", "internal:0:0-0: Error: Could not process rule: Operation not supported", "", "internal:0:0-0: Error: Could not process rule: No such file or directory", "", "internal:0:0-0: Error: Could not process rule: No such file or directory", "", "", "JSON blob:", "{"nftables": [{"metainfo": {"json_schema_version": 1}}, {"add": {"table": {"family": "inet", "name": "firewalld_policy_drop"}}}, {"add": {"chain": {"family": "inet", "table": "firewalld_policy_drop", "name": "filter_input", "type": "filter", "hook": "input", "prio": 9, "policy": "drop"}}}, {"add": {"chain": {"family": "inet", "table": "firewalld_policy_drop", "name": "filter_forward", "type": "filter", "hook": "forward", "prio": 9, "policy": "drop"}}}, {"add": {"chain": {"family": "inet", "table": "firewalld_policy_drop", "name": "filter_output", "type": "filter", "hook": "output", "prio": 9, "policy": "drop"}}}, {"add": {"rule": {"family": "inet", "table": "firewalld_policy_drop", "chain": "filter_input", "expr": [{"match": {"left": {"ct": {"key": "state"}}, "op": "in", "right": {"set": ["established", "related"]}}}, {"accept": null}]}}}, {"add": {"rule": {"family": "inet", "table": "firewalld_policy_drop", "chain": "filter_forward", "expr": [{"match": {"left": {"ct": {"key": "state"}}, "op": "in", "right": {"set": ["established", "related"]}}}, {"accept": null}]}}}, {"add": {"rule": {"family": "inet", "table": "firewalld_policy_drop", "chain": "filter_output", "expr": [{"match": {"left": {"ct": {"key": "state"}}, "op": "in", "right": {"set": ["established", "related"]}}}, {"accept": null}]}}}]}"], "stdout": "", "stdout_lines": []}

@njayakrishna would you mind to fill a bug in github.com/kubeinit/kubeinit adding the information about the error you are hitting?

Done:  Error during task "Refresh firewalld services list to pick up ovn services" #412
Thanks for your help.


Ping pong demo

Once the interpolation functionality has been transferred over from Goalie in #94, we should add a demo.
For a 'ping pong' demo, we define a sensor field and interpolate it back and forth between two meshes, observing how it changes under different approaches.

Would be nice to consider projection with lumping (#95) as well as standard projection and interpolation.

Closed by #115.


Add .exp extension for tcl icon

[x] I'm sure this issue is not a duplicate?

Can we add the exp extension to the to the tcl icon set? This is to account for expect, an extension to the tcl language. This would require changing the supportedExtensions.js file's line as follows:
{ icon: 'tcl', extensions: ['tcl'] },

becomes
{ icon: 'tcl', extensions: ['tcl','exp'] },

And this would probably better suited to me just issuing a pull request, but I don't have any experiencing with building via npm, so I'm pretty sure I'd get it wrong.

You don't need to build, it's optional 😃

Oh, well if it's that easy I'll just fork and do a PR!


[AutoPR network/resource-manager] Merge Network-2018-05-01 to master

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

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


TASK-1478 - Add options to debouncedCallback and fix naming

Task linked: TASK-1478 Data-flos are not auto-saving


[Bug]: Linting error when using crypto browser API

Is there an existing issue for this?

[X] I have searched the existing issues

Description

Crypto API MDN link - https://developer.mozilla.org/en-US/docs/Web/API/Crypto
Steps To Reproduce

In any JS field type crypto
Notice linting error

Public Sample App
No response
Version
1.7.9

Closing this as duplicate of https://github.com/appsmithorg/appsmith/issues/15469


⚠ PassThePopcorn has degraded performance

In 8f96f68, PassThePopcorn ($PTP) experienced degraded performance:

HTTP code: 200
Response time: 5621 ms

Resolved: PassThePopcorn performance has improved in 4a893ca after 24 minutes.


Add additional information to report

Is your feature request related to a problem? Please describe.
The Testerra legacy report provided the ReportInfo class to add some information to the dashboard or to method details page.
ReportNG does not have such a feature to personalize the report.
Describe the solution you'd like
The ExecutionContext could hold some meta data as a map. The content of this map can be placed on the dashboard in an extra box.

We need to introduce a new Info model. My proposal would be to have the following information.

Info Key (like xray.sync.status)
Message
LogLevel (like WARN, INFO, ERROR)

This Info model could be added to the MethodContext or ExecutionContext like:
Info info = new Info("Synchronisation successful", LogLevel.INFO);
context.setInfo("xray.sync.status", info);

If we add the Info object to MethodContext and to ExecutionContext we will have the possibility to add information to the whole test run and to single methods.

Proposal 2: Add a prompt property to LogMessage class
A message with prompt=true is not a regular message based on a Log4J LogEvent, but it's user generated.
Advantages:

We can reuse the LogMessage model
LogMessages are context sensitive and can be placed in MethodContext or ExecutionContext
They are visible in the reports log view
They can be shown within the Reports' method details view by filtering:const promptMessage = methodContext.logMessages.filter(value => value.prompt);

To create such a message programatically, do:
LogMessage logMessage = new LogMessage("Synchronisation successful", Level.INFO);
methodContext.addLogMessage(logMessage);

Assert.assertTrue(logMessage.isPrompt());

Extend the Loggable interface.
// Regular context sensitive log message
log().info("My log message");

// Prompt context sensitive log message
prompt().warn("XRay synchronisation failed");


improve create target --seed

It should also accept .zip files as it's more widely supported than tar.gz

It should validate that the file given is in valid format (.tar.gz or .zip) before uploading it

Also validate the directory structure inside is correct.
Can I just archive top-level files (say, foo.html, bar.html) or do they have to be in a directory (like corpus/foo.html and corpus/bar.html)?
Is the directory name significant?

Actually it must be top-level files without a directory inside. Agree that some sort of validation is needed. Also agree on the .zip though it will need some tweaks on the backend so let's leave this Issue open for now.


Make Use of aliases in dhcp

Hello,
I would like to use aliases in dhcp reservations for example.
I have a lot of mac-adress aliases so it would be nice to use them for dhcp-reservations.
Regards Alex
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

[ ] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
[ ] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is including your motivation for the request,
i.e. "For the purpose of [...] I am missing a solution that will [...]."
Describe the solution you like
A clear and concise description of what you want to happen.
(e.g. I would like an input field in the /ui/firewall/alias which would add .... to ....)
Describe alternatives you considered
A clear and concise description of any alternative solutions or features you considered.
Additional context
Add any other context or screenshots about the feature request here or links to relevant forum thread or similar

Hello it‘s me, again. I have aliases with system mac adresses. It would be nice to use this aliases in the dhcp configuration  fixed address


Automated cherry pick of #1853: Move pullsecret creation right after the namespace is created

Cherry pick of #1853 on release-v1.26.
#1853: Move pullsecret creation right after the namespace is created

/merge-when-ready

OK, I will merge the pull request when it's ready, leave the commits as is when I merge it, and leave the branch after I've merged it.


Setting NumberOfReplicas to 0 does not have any effect

Setting NumberOfReplicas to 0 in the ElasticsearchSinkOptions does not work. Only if the value is higher.
0 should still be a valid value, and the value is also a nullable integer currently, so I think this is a bug.

it woks for me with this settings:
{                     "Name": "Elasticsearch",                     "Args": {                         "nodeUris": "http://localhost:9200",                         "indexFormat": "auditlog-{0:yyyy.MM}",                         "numberOfShards": 1,                         "numberOfReplicas": 0,                          "overwriteTemplate": true,                           "autoRegisterTemplate": true,                           "autoRegisterTemplateVersion": "ESv6",                           "numberOfShards": 1,                           "numberOfReplicas": 0                     }                 }

Not via the ElasticsearchSinkOptions object. I'm not talking about JSON configuration.

Example:
loggerConfiguration.WriteTo.Elasticsearch(new ElasticsearchSinkOptions(elasticsearchBaseUrl)
                {
                    Period = TimeSpan.FromSeconds(10),
                    NumberOfReplicas = 0,
                    NumberOfShards = 5,
                    BatchPostingLimit = 100,
                    AutoRegisterTemplate = true,
                    MinimumLogEventLevel = LogEventLevel.Verbose,
                    AutoRegisterTemplateVersion = AutoRegisterTemplateVersion.ESv6,
                    CustomFormatter = new ExceptionAsObjectJsonFormatter(
                        renderMessage: true,
                        serializer: new JsonNetSerializer(
                            new LowLevelRequestResponseSerializer(),
                            new ConnectionSettings(elasticsearchBaseUrl),
                            modifyContractResolver: x =>
                                x.NamingStrategy = new CamelCaseNamingStrategy(),
                            jsonSerializerSettingsFactory: () =>
                                new JsonSerializerSettings
                                {
                                    TypeNameHandling = TypeNameHandling.None
                                }))
                })

The above will set number of replicas to 1.

Strange, 0 should be valid, but looks like it marks it as null and as such outputs the default value of 1. Care for a PR?

I don't have time unfortunately :(

See #301
Old issue, cleaning up. Still facing this issue, feel free to reopen.


DRY up the ToastContainer so that there is only one method to close the toast.

Previously the closeToast() method was being called only when the button was pressed. In the case of a duration timeout, a custom bit of code was being run. However, the code was the same code (in terms of hiding the toast) but lacking the onClose callback that was added in #1191. Having one place where the toast is hidden will unify the experience here.

Your DRY is superfluous, because it's done in my PR #1304
and there is one more thing:
onClose callback will called as a result of calling the method cloaseToast by timer
showToast({ config }) {
		this.setState({
                  ...
		});
		if (config.duration > 0) {
			setTimeout(() => { this.closeToast(); }, config.duration);
		}
...
closeToast() {
		const { onClose } = this.state;

		if(onClose && typeof onClose === "function") {
			onClose();
		}

		Animated.timing(this.state.fadeAnim, {
			toValue: 0,
			duration: 200,
		}).start();
		setTimeout(() => {
			this.setState({
				modalVisible: false,
			});
		}, 500);
	}

this was not before, it can break back compatibility, because it changes the behavior of onClose callback

It changes the behaviour on purpose - currently the "onClose" callback is not being called when the toast naturally closes with a timeout. This seems to me to be incorrect behaviour, so this PR is actually fixing that by DRYing the code up.
As for conflicts, yes this is true, but I guess whichever of these is merged first will define the baseline code for the other to rebase their PR on.


ci: add 'changes will be lost' comment to generated files

Fixes #109
sed command found here: https://stackoverflow.com/a/9533736/13953427

lgtm and see!


iCub Basic Image Processing question

From @accateo on February 25, 2017 10:37
Hi,
I'm trying to follow the "Basic Image Processing" tutorial of iCub:
http://wiki.icub.org/brain/icub_basic_image_processing.html
I have connected the image source, but I don't understand where I should see these messages:
We got an image of size 320x240
We got an image of size 320x240
We got an image of size 320x240
...
in what terminal?
Second question: why in the iCub_Sim terminal I have always this warning?
[WARNING]the simulation is too slow to run in real-time, you should increase the timestep in ode_params.ini (current value: xx, suggested value: xx)
I have also changed the timestep value in ode_params.ini file, but the warning remains and change its value.
Thanks
Copied from original issue: robotology/icub-support#410

Hi @accateo, first of all, please use the Q&A for any questions you have and not the icub-support which is a repository used to signal failures/repairs or ask for hardware/software questions regarding the physical robots. I will close this and reopen it in the proper repo.

@accateo

tutorial basically generate two different programs. One called findLocation and one lookAtLocation. The first one, findLocation  basically generates the prints you are looking for:

We got an image of size 320x240

If you have copied the code from the online tutorial, then these prints happen in the terminal where you run the findLocation module.
If on the other hand you are using the icub-tutorial repository, just uncomment this line from the findLocation.cpp and recompile. This will now display the printouts at every frame.
The second one, lookAtLocation program basically moves the head towards the bluish object located on the table.

The warning you see in the iCub_Sim is just telling you that your system is not able to make it run in real time.
This is not tragical at your stage, but I am guessing that you are using all the parts of the iCub_Sim. Try removing some parts in the iCub_parts_activation.ini file.

In order to easily locate this file run the following command in a terminal: yarp resource --context simConfig --from iCub_parts_activation.ini
This will provide the full path to the file that is loaded by the simulator at runtime, therefore just edit that one. Since you are editing the file, make sure that objects are set to on to load the table and blue ball that are needed for the tutorial.
Please find some further documentation on the simulator here

Thanks for the second question.
For the first question instead, what do you mean with "these prints happen in the terminal where you run the findLocation module.". I have different terminal: yarp server, icub sim, icub view.
I connect the image using the command:
yarp connect /icubSim/cam/left /tutorial/image/in
Should I open other terminals?

@accateo where do you run the executable findLocation? How does the /tutorial/image/in even get created? is that the port name you are giving to the yarpview? Then you are seeing images from the simulator's camera on the yarpview correct?

@accateo what to run in terminals (I am assuming you are following the tutorial and compiled code)
- yarpserver
- iCub_SIM
- findLocation
- yarp connect /icubSim/cam/left /tutorial/image/in

Sorry but "findLocation" terminal how can I open it?
I have already generate yarpy executable file...

Hi @accateo
What @vtikha pointed out is simply that those printout messages are showing up in the terminal from which you run the findLocation executable.
Can you launch the tutorial again to verify that?

Hi @accateo ok now I get it, so, you created a findLocation.cpp file, copied the example code from the tutorial and did
yarp cmake

Then you compiled and this  generated a yarpy executable. What you did not do is rename the file as mentioned by replacing the project name yarpy in following line of the CMakeLists.txt with findLocation or whatever you would like to.
set(KEYWORD "yarpy")

So, no worries, now just run the yarpy executable (or whatever you chose if you changed the project name as mentioned above) in a terminal instead of findLocation as previously mentioned:
- yarpserver
- iCub_SIM
- yarpy
- yarp connect /icubSim/cam/left /tutorial/image/in

You should now be ok

The problem is that I have exactly done the things that you have described, but these messages don't appear. Anyway is not important, the rest of the simulation works.
Thank you

@accateo can you post the code here please? I am referring to the code that is used to generate the yarpy executable. If you followed the tutorial it should be called find_location.cpp

 #include <stdio.h>
 #include <yarp/os/all.h>
 #include <yarp/sig/all.h>
 using namespace yarp::os;
 using namespace yarp::sig;
 int main() {
  Network yarp; // set up yarp
  BufferedPort<ImageOf<PixelRgb> > imagePort;  // make a port for reading images
   imagePort.open("/tutorial/image/in");  // give the port a name
   while (1) {
       ImageOf<PixelRgb> *image = imagePort.read();  // read an image
       if (image!=NULL) { // check we actually got something
           printf("We got an image of size %dx%d\n", image->width(), image->height());
       }
   }
 return 0;
 }

@accateo you are probably not running the code or not connecting as everything is in order.
If there is an image coming in it will print the message.
After running the yarpserver and the iCub_SIM, could you launch the following commands in a terminal?
yarpview --name /viewLeft

and in another one do
yarp connect /icubSim/cam/left /view/Left

Can you confirm that you see an image displayed in the yarpviewer?

@accateo then it is impossible that you do not see the printouts unless the connections you are doing and executable that you are launching are not correct.
I am referring to the excerpt of the above snippet:
ImageOf<PixelRgb> *image = imagePort.read();  // read an image
if (image!=NULL) { // check we actually got something
    printf("We got an image of size %dx%d\n", image->width(), image->height());
}

I know that is really strange, i don't know. But I repeat, it is not important.
Thanks for the patience

Ok then, I think we can close this issue.


Cannot GET /

I went through the installation guide and did 'npm run dev' while still using the default firebase config,
On localhost:8080 I got:
Cannot GET /

ERROR in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./client/App.vue
Module not found: Error: Can't resolve 'components/UI/Notifications' in '/home/timtech4u/Desktop/Projectz/restmeal/client'
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./client/App.vue 15:0-56
@ ./client/App.vue
@ ./client/app.js
@ ./client/index.js
@ multi ./build/dev-client ./client/index.js
Child html-webpack-plugin for "index.html":
Asset     Size  Chunks  Chunk Names
index.html  1.48 MB       0

Same issue here. Webpack is not building.
ERROR in ./~/css-loader!./~/vue-loader/lib/style-compiler?{"id":"data-v-2393bda2","scoped":false,"hasInlineConfig":true}!./~/sass-loader/lib/loader.js!./~/vue-loader/lib/selector.js?type=styles&index=0!./client/components/layout/FooterBar.vue
Module build failed:
  @media screen and (max-width: $tablet - 1px)
                               ^
      Undefined variable: "$tablet".
      in /Users/Vivek/Development/vuexfire-admin/node_modules/bulma/sass/utilities/mixins.sass (line 191, column 33)
 @ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-compiler?{"id":"data-v-2393bda2","scoped":false,"hasInlineConfig":true}!./~/sass-loader/lib/loader.js!./~/vue-loader/lib/selector.js?type=styles&index=0!./client/components/layout/FooterBar.vue 4:14-333 13:3-17:5 14:22-341
 @ ./client/components/layout/FooterBar.vue
 @ ./client/components/layout/index.js
 @ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./client/App.vue
 @ ./client/App.vue
 @ ./client/app.js
 @ ./client/index.js
 @ multi ./build/dev-client ./client/index.js

ERROR in ./~/css-loader!./~/vue-loader/lib/style-compiler?{"id":"data-v-6d7f2ac1","scoped":true,"hasInlineConfig":true}!./~/sass-loader/lib/loader.js!./~/vue-loader/lib/selector.js?type=styles&index=0!./client/views/ui/Form.vue
Module build failed:
  @media screen and (max-width: $tablet - 1px)
                               ^
      Undefined variable: "$tablet".
      in /Users/Vivek/Development/vuexfire-admin/node_modules/bulma/sass/utilities/mixins.sass (line 191, column 33)
 @ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-compiler?{"id":"data-v-6d7f2ac1","scoped":true,"hasInlineConfig":true}!./~/sass-loader/lib/loader.js!./~/vue-loader/lib/selector.js?type=styles&index=0!./client/views/ui/Form.vue 4:14-327 13:3-17:5 14:22-335
 @ ./client/views/ui/Form.vue
 @ ./client/views lazy ^\.\/.*\.vue$
 @ ./client/store/modules/menu/lazyLoading.js
 @ ./client/store/modules/menu/index.js
 @ ./client/store/index.js
 @ ./client/app.js
 @ ./client/index.js
 @ multi ./build/dev-client ./client/index.js
Child html-webpack-plugin for "index.html":
         Asset     Size  Chunks  Chunk Names
    index.html  1.48 MB       0
webpack: Failed to compile.
> Listening at http://localhost:8080

@nkrvivek this is an issue with Bulma, after npm install go into node_modules/bulma/sass/utilities/mixins.sass and add @import './variables' to the top.

It works now, You also need to change line 15 on ../client/App.vue to:
import Notifications from 'components/ui/Notifications'
@pi-ron  can I be added to the contributors list so I can push my working repo with changes?

@fundon Can we add Timtech4u please?


refactor: try catch mutations

🛠 Changelog

Refactor: use try catch instead of hooks for mutations (style consistency and some weird issues with callbacks).

🧪 Test plan

Manual testing: Reservation approval / deny buttons should work as before (including refunding payment) admin-ui

🎫 Tickets

TILA-####

Using as a base for PRs: https://github.com/City-of-Helsinki/tilavarauspalvelu-ui/pull/1449, https://github.com/City-of-Helsinki/tilavarauspalvelu-ui/pull/1450, https://github.com/City-of-Helsinki/tilavarauspalvelu-ui/pull/1415, https://github.com/City-of-Helsinki/tilavarauspalvelu-ui/pull/1453, https://github.com/City-of-Helsinki/tilavarauspalvelu-ui/pull/1455


login problem

I get all the times login problem
13.02.2017 07:40:12: Something went wrong. Please, sign in to Google via your browser and restart ICE. Don't worry, your Ingress account will not be affected.
Try it but no luck.
Also try using with coockie, also nothing
Im able to login to account in google and in ingress
System: Fedora 25
Browser: Chrome/Firefox
FIXED add --ignore-ssl-errors=true
Can be closed

I'm having a similar problem. Trying to log in with cookies results in "ICE crashed. Reason: Cookies are obsolete. Update your config file :("
Trying to sign in with credentials results in the same problem above. "something went wrong..."
System: Linux Mint 17
Browsers tried: chrome and firefox.
I tried adding --ignore-ssl-errors=true, and it reported that '--' is not a valid option.

@htomasz thanks for that fix, I'll probably add it as a setting.
@NanoExplorer I think you should add that as a PhantomJS option. You can do that by replacing each $PHANTOMJS "$SCRIPT_HOME/ice/ice.js" $ARGS with $PHANTOMJS --ignore-ssl-errors=true "$SCRIPT_HOME/ice/ice.js" $ARGS in ingress-ice.sh.

I've tried that fix but I'm still having the same issue, still getting the message "Something went wrong. Please, sign in to Google via your browser and restart ICE. Don't worry, your Ingress account will not be affected."
I've tried with google credentianls and with cookies, no luck. Any advice?

@alesanmed, sorry, have no idea.


New version: NormalizeQuantiles v1.0.1

Registering package: NormalizeQuantiles
Repository: https://github.com/oheil/NormalizeQuantiles.jl
Created by: @oheil
Version: v1.0.1
Commit: e159bbd55e2f1a31b2e293ebede3be3575d1bb7f
Reviewed by: @oheil
Reference: https://github.com/oheil/NormalizeQuantiles.jl/commit/e159bbd55e2f1a31b2e293ebede3be3575d1bb7f#commitcomment-35995241

Can be closed with no action


Do not enable tokio-serde/json by default

By having tokio-serde/json forces users that want to use bincode only, to have extra dependencies.
After this commit, users need to specify the format they are interested in their Cargo.toml.

@googlebot I signed it!

Thanks for the pr! I agree it should be opt in.


PIVX Shares

Hi
I've noticed that I haven't been accumulating PIXV shares for the last few days - is there an issue? (Or just getting on with real life?)

Hi,
PIVX shares now you get only from jackpot.
The main objective is to achieve the lowest fees with a clear structure.
This is why the jackpot is no longer funded from user profits. Also PIVX shares  bonus.
But for those who are interested get passive income iota through pivx shares, I'm working on withdrawal option your hashes to pivx shares. And it comes also with possibility exchange pivx shares to iota. I hope this will be ready soon.

Hi
thanks for coming back to me.
I'm not sure this is a very equitable way of rewarding miners. Seems like those with small amounts of power switched on 24/7 will disproportionately be rewarded compared to people with more power switched on for shorter periods.
I really liked how it worked before rewarding both mining and with a jackpot.
Hey, it's your thing though.
Keep up the good work - thanks!

First of all, thank you for your thoughts and support.
Jackpot is just for fun rewarding everyone with minimal speed 10 hashes per second. Jackpot is build by reward from mining with my hardware. I thinking take some % from jackpot and split it to every online miners equal to their speed.
Pivx share bonus reward was taken from your total reward. So you was geting 99% iota and 1% of pivx shares. Now you get 100% in iota. But in future you will have option to choice how much % get in iota and how much % in pivx shares. So i think this is much better for user choice based on their wishis.


I am getting a second level navigation when I try to add HTML code to my comments

I am trying to get styledocco to work with the project I am working on. I am using the less version of Bootstrap and the Aurelia framework. I am able to Generate documentation for my project using the following command: styledocco -n "heimdall-uiapp" -o src/styleguide --preprocessor "less src/less/*" styles. I have added the following comment to one of my custom less files and I have prefixed my HTML with 4 spaces (I also also tried to "```" notation as well):
/*
Base
===============

Standard Bootstrap button

    <button class="btn btn-primary">Button</button>

*/

But when I view my documentation I get the following view. How would I resolve this issue? I can provide any additional information.
Some additional information. I have a main LESS file where I am importing all the Bootstrap LESS files, and then importing the customize LESS files.

Appears to be a Chrome issue. I just tested in Firefox, and it is working correctly..


Add support trino://

Our company upgraded Trino to version 358, and I found that pyhive began to support Trino dialect. However, I found that hue does not support Trino URLs.
I modify the sql_alchemy.py file and add  support for trino:// URL. And I modify the Presto and Trino connector document. When I building the Docker image, I found that git+https://github.com/gethue/PyHive was not updated to the latest version, so I modified it.
I used various types of SQL to test and actually used it for a week without finding any related errors.

Thanks, will have a look by end of week!


Re-export ErrorInfo type

This type is useful when creating an ErrorBoundary. See #3452

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 98.255%

Totals

Change from base Build<PHONE_NUMBER>3:
0.0%

Covered Lines:
777

Relevant Lines:
781

💛  - Coveralls


[4.x] Element query executed before Craft is fully initialized

A warning can be logged when the ScoutIndex::criteria calls $query->site().
config/scout.php
<?php

use craft\elements\Entry;
use craft\elements\db\EntryQuery;
use craft\helpers\App;
use rias\scout\ScoutIndex;

return [
    "indices" => [
        ScoutIndex::create(App::env("ALGOLIA_INDEX_NAME"))
            ->criteria(function (EntryQuery $query) {
                return $query->site("*");
            })
            ->elementType(Entry::class)
            ->transformer(function (Entry $entry) {
                return [
                    //
                ];
            }),
    ],
];

storage/logs/web.log
2022-10-17 18:25:34 [web.WARNING] Element query executed before Craft is fully initialized. in /vendor/craftcms/cms/src/elements/db/ElementQuery.php:1259
Stack trace:
#0 /vendor/yiisoft/yii2/db/QueryBuilder.php(227): craft\elements\db\ElementQuery->prepare(Object(craft\db\pgsql\QueryBuilder))
#1 /vendor/yiisoft/yii2/db/Query.php(157): yii\db\QueryBuilder->build(Object(craft\elements\db\UserQuery))
#2 /vendor/yiisoft/yii2/db/Query.php(287): yii\db\Query->createCommand(Object(craft\db\Connection))
#3 /vendor/craftcms/cms/src/db/Query.php(274): yii\db\Query->one(NULL)
#4 /vendor/craftcms/cms/src/elements/db/ElementQuery.php(1558): craft\db\Query->one(NULL)
#5 /vendor/craftcms/cms/src/elements/User.php(532): craft\elements\db\ElementQuery->one()
#6 /vendor/yiisoft/yii2/web/User.php(601): craft\elements\User::findIdentity(1)
#7 /vendor/yiisoft/yii2/web/User.php(320): yii\web\User->getIdentityAndDurationFromCookie()
#8 /vendor/yiisoft/yii2/web/User.php(726): yii\web\User->loginByCookie()
#9 /vendor/craftcms/cms/src/web/User.php(500): yii\web\User->renewAuthStatus()
#10 /vendor/yiisoft/yii2/web/User.php(198): craft\web\User->renewAuthStatus()
#11 /vendor/yiisoft/yii2/web/User.php(366): yii\web\User->getIdentity()
#12 /vendor/craftcms/cms/src/web/User.php(204): yii\web\User->getIsGuest()
#13 /vendor/craftcms/cms/src/services/Sites.php(1237): craft\web\User->getIsGuest()
#14 /vendor/craftcms/cms/src/services/Sites.php(417): craft\services\Sites->_allSites(NULL)
#15 /vendor/craftcms/cms/src/elements/db/ElementQuery.php(882): craft\services\Sites->getAllSiteIds()
#16 /config/scout.php(81): craft\elements\db\ElementQuery->site('*')
#17 /vendor/studioespresso/craft-scout/src/ScoutIndex.php(56): craft\services\Config->{closure}(Object(craft\elements\db\EntryQuery))
#18 /config/scout.php(83): rias\scout\ScoutIndex->criteria(Object(Closure))
#19 /vendor/craftcms/cms/src/services/Config.php(289): include('...')
#20 /vendor/craftcms/cms/src/services/Config.php(281): craft\services\Config->_configFromFileInternal('...')
#21 /vendor/craftcms/cms/src/services/Plugins.php(934): craft\services\Config->getConfigFromFile('scout')
#22 /vendor/craftcms/cms/src/services/Plugins.php(228): craft\services\Plugins->createPlugin('scout', Array)
#23 /vendor/craftcms/cms/src/base/ApplicationTrait.php(1477): craft\services\Plugins->loadPlugins()
#24 /vendor/craftcms/cms/src/web/Application.php(105): craft\web\Application->_postInit()
#25 /vendor/yiisoft/yii2/base/BaseObject.php(109): craft\web\Application->init()
#26 /vendor/yiisoft/yii2/base/Application.php(204): yii\base\BaseObject->__construct(Array)
#27 [internal function]: yii\base\Application->__construct(Array)
#28 /vendor/yiisoft/yii2/di/Container.php(419): ReflectionClass->newInstanceArgs(Array)
#29 /vendor/yiisoft/yii2/di/Container.php(170): yii\di\Container->build('craft\\web\\Appli...', Array, Array)
#30 /vendor/yiisoft/yii2/BaseYii.php(365): yii\di\Container->get('craft\\web\\Appli...', Array, Array)
#31 /vendor/craftcms/cms/src/Craft.php(53): yii\BaseYii::createObject(Array, Array)
#32 /vendor/craftcms/cms/bootstrap/bootstrap.php(239): Craft::createObject(Array)
#33 /vendor/craftcms/cms/bootstrap/web.php(40): require('...')
#34 /web/index.php(11): require('...')
#35 {main} {"memory":27958128,"exception":"[object] (ErrorException(code: 0): Element query executed before Craft is fully initialized. at /vendor/craftcms/cms/src/elements/db/ElementQuery.php:1259)"}

Refs

https://github.com/craftcms/cms/issues/11033#issuecomment-1112750997

What sort of request of action are you doing when seeing this error @ccchapman?

Hello I think we are experiencing this issue as well, is there any chance for a fix for this anytime soon?
We've just upgraded to Craft 4. Can provide any info necessary, I've just reached the conclusion that Scout is causing the errors.
Technically we get a pretty long log entry in our web.log file in almost every second.
Here is stack trace of one request:
[{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/src/elements/db/ElementQuery.php","line":1242,"function":"warning","class":"yii\BaseYii","type":"::"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/src/db/Query.php","line":275,"function":"one","class":"yii\db\Query","type":"->"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/src/elements/db/ElementQuery.php","line":1506,"function":"one","class":"craft\db\Query","type":"->"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/src/elements/User.php","line":527,"function":"one","class":"craft\elements\db\ElementQuery","type":"->"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/src/web/User.php","line":489,"function":"renewAuthStatus","class":"yii\web\User","type":"->"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/src/web/User.php","line":204,"function":"getIsGuest","class":"yii\web\User","type":"->"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/src/services/Sites.php","line":1237,"function":"getIsGuest","class":"craft\web\User","type":"->"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/src/services/Sites.php","line":417,"function":"_allSites","class":"craft\services\Sites","type":"->"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/src/elements/db/ElementQuery.php","line":880,"function":"getAllSiteIds","class":"craft\services\Sites","type":"->"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/config/scout.php","line":26,"function":"site","class":"craft\elements\db\ElementQuery","type":"->"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/studioespresso/craft-scout/src/ScoutIndex.php","line":56,"function":"{closure}","class":"craft\services\Config","type":"->"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/config/scout.php","line":29,"function":"criteria","class":"rias\scout\ScoutIndex","type":"->"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/src/services/Config.php","line":289,"function":"include"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/src/services/Config.php","line":281,"function":"_configFromFileInternal","class":"craft\services\Config","type":"->"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/src/services/Plugins.php","line":934,"function":"getConfigFromFile","class":"craft\services\Config","type":"->"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/src/services/Plugins.php","line":228,"function":"createPlugin","class":"craft\services\Plugins","type":"->"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/src/base/ApplicationTrait.php","line":1494,"function":"loadPlugins","class":"craft\services\Plugins","type":"->"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/src/web/Application.php","line":105,"function":"_postInit","class":"craft\web\Application","type":"->"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/src/Craft.php","line":53,"function":"createObject","class":"yii\BaseYii","type":"::"},{"file":"/home/748786.cloudwaysapps.com/xnpnrkejxu/public_html/vendor/craftcms/cms/bootstrap/bootstrap.php","line":252,"function":"createObject","class":"Craft","type":"::"}],"memory":8090352}

You should be able to get the fix for now by using the develop branch, as:
"studioespresso/craft-scout": "develop as 2.7.2",
It would be nice to have this change tagged as a beta version as the logs are quite noisy. Also the develop branch has the requirement as Craft 4.3, which I'm not sure is actually required. I'm working on upgrading to Craft 4 now as well, to get some of the deadlock fixes.

Hey everyone, sorry about the delay, I had the fix ready on develop but totally forgot to make a release for it. I just tagged 3.1.0 which includes this fix.
The fix referenced here was added in Craft 4.3.5 so I'm bumping the minimum version for this release to that.


Allows to export cards to the CSV. closes #289

Deploy preview for landscape ready!
Built with commit ed64c8e68b62afd44a0346023fbeb727d3e9d8f1
https://deploy-preview-478--landscape.netlify.com


Some character sheet attributes (wounds, experience, characteristics) cannot be changed

Sometimes, it might be related to importing (?) characters wounds and or experience cannot be modified anymore. Characteristics can be unblocked when you trigger update to one of them by adding or removing a talent that modifies them. I can provide a character export json if you think it helps you.
Foundry 0.79
WFRP 3.4.1

If you could provide that export I'd appreciate, thanks!

fvtt-Actor-Kostuch.json.zip
here it goes.
If you cannot reproduce it - I will clone my Foundry server on GCP and give you access over some private channel (if you think that can be useful to you).
Thanks for looking into this, I love this module!

Did you manage to reproduce it? Can I help in some way?

Hi, sorry just getting around to this now, is this still an issue?
The file you've included seems to be corrupt or at least, not json and can't be imported.

It is still an issue but pertains to experience only. Try this reproduction path: create a character and assign it some exp, spend it on anything then export the char, inport it and then see if the imported version still can have jts exp changed.

is it possible that exporting a character on an older version and importing it on a newer one causes it?

This works just fine for me on my current version, so it may have gotten fixed in the process. I'll mark it as non repro, but let me know if it's still an issue in 3.5.0.


adding compatibility with V8 release greater than v7.6 (node and electron engines)

As described in the object, this set of patches enable the build compatibility against most recent releases of node.js/electron and the updated NAN APIs

I have tested this PR to build on npm v12 and it works as expected!!

Nice! Does it also work with previous Node versions?

@theturtle32 any chance to check this? It's becoming a real need...

@ibc @belcherj I run a prebuild compiling test with :
$ npm install -g prebuild
$  prebuild --all

and it seems to build all the binary packages at least on Linux based systems. You might encounter some clashes on the most recent versions of OSX with the outdated releases of node/electron.

I just tested with Node 10, and it builds fine + all the tests pass.
Please accept the PR ASAP and release a new version.
Thanks!

@orgads thanks for your feedback !

Thanks for this PR and for confirming that it works in previous and new Node versions.
I'll merge this PR. However publishing a new NPM package depends on @theturtle32.

Thank you very much for merging my PR @ibc. I'm really glad for giving this contribution to the project !

I'll see if I can get to publishing this later today. Tomorrow at the latest.

Thanks @theturtle32

Thanks @theturtle32

Released v1.0.31 on npm.

Thank you!


gui add wasm support

can u add platform wasm support?

sure

v1.12 has published.

v1.12 has published.

Thank you

v1.12 has published.

I have another question about the wasm platform. It is the Intellisense find the headers from windows sdk by default,but the wasm use the emcc(or wasi) toolchain,so is it possible that change the headers search dirs to emcc sdk path?

The generation of compile_commands.json is provided by xmake, you can submit an issue to xmake.

The generation of compile_commands.json is provided by xmake, you can submit an issue to xmake.

OK seems bug from clangd


Error message running example

Hi Im trying to calculate sterimol parameters for the example and keep getting the following error:
Traceback (most recent call last):
File "C:\Users\greg\AppData\Local\Schrodinger\PyMOL2\lib\site-packages\pmg_tk\startup\wSterimol.py", line 25, in wSterimol
if generate(dihedrals, directory, setup_path, verbose):
NameError: name 'generate' is not defined
Any chance some can help with this?

Hi,
I am experiencing this same issue. I noticed that you closed this and was wondering if you had found a solution to this issue?
Thanks.

How are you loading the wSterimol scripts into PyMol?
One of the underlying scripts is called generate.py, and this error would suggest that it has not yet been initialized in PyMol (with the run command).
If you have added the 11 run commands into the .condarc file, then when you open PyMol it will try to execute those commands. If that works without error, then generate should be defined.
If you install via the Plugin manager, make sure to separately install all 11 python files. A copy will be made in the plugins directory. In the example above, it looks like generate.py has not been copied across. You could check by viewing the plugins folder (e.g., something like C:\Users\greg\AppData\Local\Schrodinger\PyMOL2\lib\site-packages\pmg_tk\startup) and confirming whether or not the 11 python files associated with wStermol have bene copied there.

Thank you for your reply. Once I made sure that each of the Python scripts had successfully been executed in Pymol, this seemed to fix the issue, thus allowing me to perform the wSterimol analysis. Thank you again for your help.

Awesome. I'm about to update the code on here so that you can take externally generated conformers and obtain the parameters in pymol. This might be preferable if you run e.g. Gaussian on a different machine or cluster.


input-field: add option to center text

that was added tho lol

Ho i didnt shaw the commit whe  i got to do it sry


Pre/PostKubeadmCommands are not properly escaped

/kind bug
What steps did you take and what happened:
I applied the following KubeadmConfig configuration:
---
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha2
kind: KubeadmConfig
metadata:
  name: controlplane-0
spec:
  joinConfiguration:
    controlPlane: {}
    nodeRegistration:
      name: 'test1-controlplane-0'
  postKubeadmCommands:
    - "sed 's/{{ .PodSubnet }}/<IP_ADDRESS>\\/16/' /kind/manifests/default-cni.yaml > /tmp/default-cni.yaml"
    - "kubectl --kubeconfig /etc/kubernetes/admin.conf apply -f /tmp/default-cni.yaml"

Which resulted in the following runcmd being rendered and stored in the .Status.BootstrapData:
runcmd:
  - 'kubeadm join --config /tmp/kubeadm-controlplane-join-config.yaml'
  - 'sed 's/{{ .PodSubnet }}/<IP_ADDRESS>\/16/' /kind/manifests/default-cni.yaml > /tmp/default-cni.yaml'
  - 'kubectl --kubeconfig /etc/kubernetes/admin.conf apply -f /tmp/default-cni.yaml'

When this BootstrapData was executed by CAPD (that's the only provider I've tried with this so far), it resulted in the following error:
I0830 03:31:04.600521       1 machine.go:142] DockerMachine-controller "level"=0 "msg"="Running machine bootstrap scripts" "cluster"="test1" "docker-cluster"="test1" "docker-machine"={"Namespace":"test1","Name":"controlplane-0"} "machine"="controlplane-0"
E0830 03:31:04.605028       1 machine.go:145] DockerMachine-controller "msg"="" "error"="cloud-config is not valid yaml: error converting YAML to JSON: yaml: line 74: did not find expected '-' indicator" "cluster"="test1" "docker-cluster"="test1" "docker-machine"={"Namespace":"test1","Name":"controlplane-0"} "machine"="controlplane-0"
E0830 03:31:04.605541       1 controller.go:218] controller-runtime/controller "msg"="Reconciler error" "error"="failed to exec DockerMachine bootstrap: failed to join a control plane node with kubeadm: cloud-config is not valid yaml: error converting YAML to JSON: yaml: line 74: did not find expected '-' indicator"  "controller"="dockermachine" "request"={"Namespace":"test1","Name":"controlplane-0"}

This in turn made the CAPD unable to provision the node.
What did you expect to happen:
I expected the runcmd: section to be appropriately escaped, so that the quotes used in the KubeadmConfig spec didn't matter.
Anything else you would like to add:
Switching from:
...
  postKubeadmCommands:
    - "sed 's/{{ .PodSubnet }}/<IP_ADDRESS>\\/16/' /kind/manifests/default-cni.yaml > /tmp/default-cni.yaml"
    - "kubectl --kubeconfig /etc/kubernetes/admin.conf apply -f /tmp/default-cni.yaml"

to:
  postKubeadmCommands:
    - 'sed "s/{{ .PodSubnet }}/<IP_ADDRESS>\\/16/" /kind/manifests/default-cni.yaml > /tmp/default-cni.yaml'
    - 'kubectl --kubeconfig /etc/kubernetes/admin.conf apply -f /tmp/default-cni.yaml'

Worked just fine though.
Environment:

Cluster API version:

gcr.io/k8s-staging-cluster-api/cluster-api-controller    latest    f387a1543134    6 hours ago
  42.4MB

Cluster API Bootstrap Provider Kubeadm version:

gcr.io/k8s-staging-capi-kubeadm/cluster-api-kubeadm-controller    latest    001af5a9b57b    6 hours ago    43.3MB

Cluster API Infrastructure Provider version:

jbergius/capd-manager    2f4a918    da5158aae882    23 hours ago    157MB

Kubernetes version: (use kubectl version): 1.15.3
OS (e.g. from /etc/os-release): Ubuntu 19.04

/priority important-soon

https://cloudinit.readthedocs.io/en/latest/topics/examples.html#run-commands-on-first-boot
Indicates anything that yaml would consume/get confused by requires quoting.

It's too much to expect people to quote things correctly IMO. This shouldn't be on the user. I think not single-quoting it and then formatting it with %q should be fine.

/assign
@noamran is going to work on this but she's not in the org yet
/lifecycle active