Is there a way to disable IPVS message display from console prompt? - kubespray

We installed k8s by kubespray and keep all settings by default parameter. Thus, the networking mode is ipvs. I noticed that there are some messages display on console prompt as below, sometimes it displays fast and annoying. The message is saved under kern.log already, so how can I stop it display on console prompt?
Message on console terminal

Related

Google Cloud Shell and VM SSH command lines blank

In the Google Cloud Platform Console, upon clicking "Activate Cloud Shell," the bar for the command line shows up and displays "Provisioning your Google Cloud Shell Machine" and "Establishing your connection to Google Cloud Shell," but after that the entire box for the command line goes blank. It still has the option bar that displays the project name, option to open the text editor, etc. I tried going to the text editor hoping that the command line would show itself there, but the whole box remained blank.
Even worse, I started one of my virtual machines and used the SSH option from the console to connect to it, and the SSH window similarly went totally blank. Any ideas what's going wrong here? I'm using Firefox on Windows 10 and haven't had any issues using the Cloud Shell for months.
This was a browser compatibility problem between FF64 and the Google Cloud Shell terminal emulator library. The SSH-in-the browser feature inside Cloud Console is using the same terminal emulator, so it was affected as well. Both have now been fixed.
I had a similar issue. Google cloud shell doesn't work with Firefox.
I waited for a whole thirty minutes and nothing happened. Thirty! I switched to Chrome and the issue was sorted out immediately.

Open Console app to show Unified Logging logs

My application uses os_log. When it's done with a task, I display a UserNotification. When the user clicks the notification, I want to display the logs created via through the Apple Unified System Logging.
If I were simply logging to a file, I would execute a Process(NSTask) with something like open /path/to/mylogs.log and this would open Console to show the logs. However, I'm using Unified System Logging through the os_log command. What Terminal command can I issue to open Console and have Console display my logs?

Debugging install4j works on linux but not on windows?

Why doesn't -Dinstall4j.debug=true -Dinstall4j.logToStderr=true on windows result in messages in the console while it does on linux?
My cross platform installer runs as a normal user on linux and elevates on windows so it can install a service.
Linux
myinstaller.sh -Dinstall4j.debug=true -Dinstall4j.logToStderr=true
Console window fills with useful information
Windows
myinstaller.exe -Dinstall4j.debug=true -Dinstall4j.logToStderr=true
console window empty - I suspect the elevation, which seems to require a relaunch, is the cause.
If I run my installer from an Admin window I don't get my error case and don't see the console logging either.
GUI applications cannot write to the console under Windows, because they have no associated console.
If you select the "Windows console executable" property for the installer node on the Installer->Screens & Actions tab, you will see console output.

Trigger "application quit unexpectedly" popup when OS X deamon crashes

I'm working on a new OS-X Daemon process (run from launchd) and would like to get popup window every time it crashes with all relevant information (pid, path to crash file, etc...). This will sure help my debugging effort in this early stage of the development.
Basically, i want to have the same behavior as a UI application. For example :
I've made some research and found out about the CrashReporter, but i don't know how to register my app to this service. But it seem like there's no way to trigger popup windows from this service, since crashes are system level events and apps have zero interaction with those.
Maybe there's a way to do so by setting up some parameters in app bundle or via Info.plist ?
EDIT: looking at the crash report manual, it looks like the unexpected dialog works only on GUI user mode, and not on daemon that runs from launchd. perhaps i'm missing something ?
In addition, if the program that crashed is running as a logged in GUI user, CrashReporter will present the user with a dialog asking them whether they want to submit a bug report to Apple (see Figure 1). If the user clicks the Report button, CrashReporter displays another dialog that shows the details of the report (see Figure 2) and allows them to comment it before submission.
I've read that Developer option enable in addition to application crashes, crashes are also displayed for background and system processes. but unfortunately i doesn't work for me.
thanks
Seems like the problem occurs since my background process runs under root privilege, and root privilage process (not just daemons) cannot initiate any UI widget on the screen.
I guess that the only way to deal with it, is by catching the signal that trigger the crash, and send details for a proxy process that run on non-root mode and can initiate the UI dialog box with crash details.
I would be happy to hear for better proposals.
Since CrashReporterPrefs, which allowed you to enable this behavior for daemons, no longer comes with developer tools, you can change the behavior to show the dialog for daemons by running this command in the Terminal:
defaults write com.apple.CrashReporter DialogType Developer

can't see the cmd error when program shutdown

I'm running the VLC player from desktop shortcut, and it immediately shuts down. I can't figure out what is the error written there.
Is there a way of forcing windows into showing the error diplayed in cmd after the program shutdown, either from windows or by setting preferences of the cmd?
Run it directly from cmd.exe instead, and you may see error messages displayed. If not, you might check the "Event Viewer" application to see if anything goes to the system logs.

Resources