Getting error while starting the Cygwin - shell

I am new to Cygwin.. Could you please help me, what is wrong here..
Administrator#demosrv /cygdrive/C/Program Files (x86)/GCTI/lfm/utilities
$ "C:/cygwin/cygrun.bat" bash "C:/cygwin/cygwin_setup.sh" administrator "superadmin"
cygwin warning:
MS-DOS style path detected: C:\cygwin\home\Administrator/.bashrc
Preferred POSIX equivalent is: /home/Administrator/.bashrc
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
*** Query: Overwrite existing /etc/ssh_config file? (yes/no) yes
*** Info: Creating default /etc/ssh_config file
*** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes
*** Info: Creating default /etc/sshd_config file
*** Info: Privilege separation is set to yes by default since OpenSSH 3.3.
*** Info: However, this requires a non-privileged account called 'sshd'.
*** Info: For more info on privilege separation read /usr/share/doc/openssh/README.privsep.
*** Query: Should privilege separation be used? (yes/no) yes
*** Info: Updating /etc/sshd_config file
*** Info: Sshd service is already installed.
*** Warning: Couldn't change owner of /etc/ssh_config!
*** Warning: Couldn't change owner of /etc/sshd_config!
*** Warning: Couldn't change owner of /etc/ssh_host_dsa_key!
*** Warning: Couldn't change owner of /etc/ssh_host_ecdsa_key!
*** Warning: Couldn't change owner of /etc/ssh_host_ed25519_key!
*** Warning: Couldn't change owner of /etc/ssh_host_key!
*** Warning: Couldn't change owner of /etc/ssh_host_rsa_key!
*** Warning: Couldn't change owner of /etc/ssh_host_dsa_key.pub!
*** Warning: Couldn't change owner of /etc/ssh_host_ecdsa_key.pub!
*** Warning: Couldn't change owner of /etc/ssh_host_ed25519_key.pub!
*** Warning: Couldn't change owner of /etc/ssh_host_key.pub!
*** Warning: Couldn't change owner of /etc/ssh_host_rsa_key.pub!
*** Warning: Couldn't change owner of /var/empty!
*** Warning: Couldn't change owner of /var/log/lastlog!
*** Warning: Couldn't change owner of important files to Administrator
Administrator!
*** Warning: This may cause the sshd service to fail! Please make sure that
*** Warning: you have suufficient permissions to change the ownership of files
*** Warning: and try to run the ssh-host-config script again.
*** Warning: Host configuration exited with 14 errors or warnings!
*** Warning: Make sure that all problems reported are fixed,
*** Warning: then re-run ssh-host-config.
System error 1069 has occurred.
The service did not start due to a logon failure.
For your information i used my windows username and password here..
Please let me know if you need any further details from me..

Click Start, click Run, type gpedit.msc, and then click OK.
Expand Local Computer Policy, expand Computer Configuration, expand Windows
Settings, expand Security Settings, expand Local policies, and then click User Rights Assignment.
Double-click Log on as a batch job, click Add user or group, type the name of the service account, and then click OK two times.
Double-click Log on as a service, click Add user or group, type the name of the service account, and then click OK two times.
Source : https://social.msdn.microsoft.com/Forums/sqlserver/en-US/cb9cbc5c-b2f9-4656-97e9-f69542c0b10f/an-error-1069-the-service-did-not-start-due-to-logon-failure-occurred-while-performing-this?forum=sqldatabaseengine

Related

How to resolve permission denied # rb_sysopen

I am writing a simple recipe to create file like:
file '/myfile' do
content 'Welcome to Technical Guftgu'
action :create
end
but on chef-client -zr "recipe[test::recipe1]"
i am getting the following error:
[2022-03-08T10:54:16+00:00] ERROR: Running exception handlers
Running handlers complete
[2022-03-08T10:54:16+00:00] ERROR: Exception handlers complete
Chef Infra Client failed. 0 resources updated in 02 seconds
[2022-03-08T10:54:16+00:00] FATAL: Stacktrace dumped to /home/vagrant/.chef/local-mode-cache/cache/chef-stacktrace.out
[2022-03-08T10:54:16+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2022-03-08T10:54:16+00:00] FATAL: Errno::EACCES: file[/myfile] (test::recipe1 line 7) had an error: Errno::EACCES: Permission denied # rb_sysopen - /myfile
It seems that your app does not have access to the file /myfile.
Try this, to allow access to all: sudo chmod a+rw /myfile
Errno::EACCES Means "Permission Denied"
The Errno class is mapped to your system call errors at runtime. You can find this (confusingly) documented in:
SystemCallError#errno
Errno
In particular:
Errno.constants.include? :EACCES
#=> true
on most *nix sytems Errno::EACCES maps to the libc error code for "permission denied". Specifically:
Macro: int EACCES
"Permission denied." The file permissions do not allow the attempted operation.
That generally means your #create action doesn't have permissions to read, write, or traverse the path to the file you are trying to manage, so you need to change your implementation (which you don't show in your original post) to ensure that your Ruby process has the needed file or filesystem permissions to perform the requested operations.
See Also
Understanding Ruby's strange "Errno" exceptions
errno Lookup
errno.h from The Open Group Base Specifications Issue 7, 2018 edition

How to solve this error "Error: INSTALLATION FAILED:" for helm installations?

I have a helm deployment file and upon a make install command, it returns errors.
Does anyone know what could cause these errors:
walk.go:74: found symbolic link in path: /Users/samuelarogbonlo/Desktop/mina/helm/generic-node/Makefile resolves to /Users/samuelarogbonlo/Desktop/mina/helm/common/Makefile
Error: INSTALLATION FAILED: Deployment.apps "generic-node" is invalid: [spec.template.spec.volumes[1].secret.secretName: Required value, spec.template.spec.containers[0].env[15].valueFrom.secretKeyRef.key: Required value, spec.template.spec.containers[0].resources.requests[rayonThreads]: Invalid value: "rayonThreads": must be a standard resource type or fully qualified, spec.template.spec.containers[0].resources.requests[rayonThreads]: Invalid value: "rayonThreads": must be a standard resource for containers, spec.template.spec.initContainers[1].volumeMounts[0].name: Not found: "private-keys"]
make: *** [install] Error 1

Pentaho log File not showing relevant information

So I'm trying to write to a file a log from a pentaho transformation like this :
pan.bat /file:C:\Users\username\Desktop\test.ktr /level:Error > C:\Users\username\Desktop\logs.log
But the log file only shows irrelevant information even tough I am asking for the level "Error".. It only shows me this:
WARNING: Using java from path
DEBUG: _PENTAHO_JAVA_HOME=
DEBUG: _PENTAHO_JAVA=java.exe
C:\data-integration
C:\data-integration>"java.exe" "-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m" "-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2" "-Djava.library.path=libswt\win64" "-DKETTLE_HOME=" "-DKETTLE_REPOSITORY=" "-DKETTLE_USER=" "-DKETTLE_PASSWORD=" "-DKETTLE_PLUGIN_PACKAGES=" "-DKETTLE_LOG_SIZE_LIMIT=" "-DKETTLE_JNDI_ROOT=" -jar launcher\launcher.jar -lib ..\libswt\win64 -main org.pentaho.di.pan.Pan -initialDir "C:\data-integration"\ /file:C:\Users\username\Desktop\test.ktr /level:Error
17:47:59,655 INFO [KarafBoot] Checking to see if org.pentaho.clean.karaf.cache is enabled
17:48:08,019 INFO [KarafInstance]
*******************************************************************************
*** Karaf Instance Number: 2 at C:\data-integration\.\system\karaf\caches\p ***
*** an\data-1 ***
*** FastBin Provider Port:52902 ***
*** Karaf Port:8803 ***
*** OSGI Service Port:9052 ***
*******************************************************************************
Any help?

cant start session of Appium server version 1.15.1

This error message is displaying:
An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command 'F:\\gautam\\android\\platform-tools\\adb.exe -P 5037 -s 192.168.0.115\:5555 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255'; Stderr: 'Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:1815)
at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1023)
at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1006)
at com.android.providers.settings.SettingsProvider.delete(SettingsProvider.java:592)
at android.content.ContentProvider$Transport.delete(ContentProvider.java:343)
at com.android.providers.settings.SettingsService$MyShellCommand.deleteForUser(SettingsService.java:406)
at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:289)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:51)
at android.os.Binder.shellCommand(Binder.java:634)
at android.os.Binder.onTransact(Binder.java:532)
at android.os.Binder.execTransact(Binder.java:735)'; Code: '255'`enter code here
An error tells you: Stderr: 'Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
Try following steps:
In your phone developer options (Security settings), enable USB Debugging or (or and) Disable permission monitoring. All of these settings are in your dev options.

failed to install greenplum command center when running gpccinstall

I downloaded greenplum-cc-web-4.6.1-LINUX-x86_64.zip for my greenplum db with 5.18, and followed this link (https://gpcc.docs.pivotal.io/460/topics/setup-collection-agents.html) to install command center. Everything is OK while there is a failure about gpccinstall. It showed following errors:
RunCommandOnEachHost fail on host: client-gp03.bj
Error when unzip remote binary on sdw3 bin/gpccws
bin/ccagent
bin/gpcc
conf/app.conf
gpcc_path.sh
bin/start_agent.sh
bin/queryinfocat.sh
bin/gpcc_md5
ccdata/
alert-email/alertTemplate.html
alert-email/send_alert.sh.sample
languages/
languages/zh.json
languages/en.json
Error when unzip remote binary on client-gp00.bj bin/gpccws
bin/ccagent
bin/gpcc
conf/app.conf
gpcc_path.sh
bin/start_agent.sh
bin/queryinfocat.sh
bin/gpcc_md5
ccdata/
alert-email/alertTemplate.html
alert-email/send_alert.sh.sample
languages/
languages/zh.json
languages/en.json
Error when unzip remote binary on client-gp01.bj bin/gpccws
bin/ccagent
bin/gpcc
conf/app.conf
gpcc_path.sh
bin/start_agent.sh
bin/queryinfocat.sh
bin/gpcc_md5
ccdata/
alert-email/alertTemplate.html
alert-email/send_alert.sh.sample
languages/
languages/zh.json
languages/en.json
Error when unzip remote binary on client-gp02.bj bin/gpccws
bin/ccagent
bin/gpcc
conf/app.conf
gpcc_path.sh
bin/start_agent.sh
bin/queryinfocat.sh
bin/gpcc_md5
ccdata/
alert-email/alertTemplate.html
alert-email/send_alert.sh.sample
languages/
languages/zh.json
languages/en.json
Error when unzip remote binary on client-gp03.bj Warning: the ECDSA host key for 'client-gp03.bj' differs from the key for the IP address '10.136.173.8'
Offending key for IP in /home/gpadmin/.ssh/known_hosts:10
Matching host key in /home/gpadmin/.ssh/known_hosts:17
tar: bin/gpccws: Cannot open: File exists
tar: Exiting with failure status due to previous errors
RunCommandOnEachHost failure happened
Can anyone encounter this issue before? I did some search in google and pivotal community, but failed to find some solution. Any help is appreciated.
BTW, when I ignored above errors, and continued, I found the gpcc web server can be started successfully. And when I logged in, only "Query Monitor" UI section show one warning: "GPCC is no longer receiving updates. Check your network status or gpcc status and refresh this page.", other part of UI seems OK.
From here:
Error when unzip remote binary on client-gp03.bj Warning: the ECDSA host key for 'client-gp03.bj' differs from the key for the IP address '10.136.173.8'
Offending key for IP in /home/gpadmin/.ssh/known_hosts:10
Matching host key in /home/gpadmin/.ssh/known_hosts:17
tar: bin/gpccws: Cannot open: File exists
tar: Exiting with failure status due to previous errors
You have duplicate ssh fingerprint keys in your /home/gpadmin/.ssh/known_hosts file. I recommend removing both lines 10 and 17 from that file, then running ssh-keyscan client-gp03.bj >> /home/gpadmin/.ssh/known_hosts
After this is complete, try ssh-ing to the host, to see that the fingerprint error is cleared up, and if so, try the gpcc installation again.

Resources