[SOLVED] Some commands failed or not executed in rc.local
Hi Archers
I've installed initscripts to use rc.local in Arch,
but at least below commands not successfully executed.
export VISUAL="/usr/bin/vim -p -X"
alias ll='ls -l'
complete -cf sudo
chmod 777 /dev/vmnet*
Want to know why and how to fix it ?
======================================
package check:
pacman -Q | grep initscripts
initscripts 2012.10.1-1
======================================
rc.local
#!/bin/bash
# /etc/rc.local: Local multi-user start-up script.
# set visudo to use vim as editor
export VISUAL="/usr/bin/vim -p -X"
# enable tab-completion with sudo
complete -cf sudo
# set alias
alias ll='ls -l'
# enable promiscuous mode for vmware interfaces
chmod 777 /dev/vmnet*
# show login screen on external monitor
xrandr -q | grep "VGA1 connected" > /dev/null
if [ $? -eq 0 ]; then
# xrandr --output VGA1 --mode 1440x900 --rate 60 --right-of LVDS1
xrandr --output VGA1 --mode 1440x900 --rate 60 --output LVDS1 --off
fi
# up wlan0
ip link show wlan0 | grep -i up > /dev/null
if [ $? -ne 0 ]; then
ip link set wlan0 up
fi
# connect to n13u wireless router
iw dev wlan0 scan | grep -i n13u > /dev/null
if [ $? -eq 0 ]; then
kill $(pgrep wpa_supplicant)
wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B
#dhclient wlan0 # for Fedora
kill $(pgrep dhcpcd)
dhcpcd wlan0
fi
======================================
Snippet from dmesg
[ 8.061119] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 8.171764] ppdev: user-space parallel port driver
[ 8.828551] /dev/vmnet: open called by PID 422 (vmnet-netifup)
[ 8.828558] /dev/vmnet: hub 0 does not exist, allocating memory.
[ 8.828568] /dev/vmnet: port on hub 0 successfully opened
[ 8.830003] /dev/vmnet: open called by PID 424 (vmnet-netifup)
[ 8.830008] /dev/vmnet: hub 1 does not exist, allocating memory.
[ 8.830020] /dev/vmnet: port on hub 1 successfully opened
[ 8.831297] /dev/vmnet: open called by PID 426 (vmnet-netifup)
[ 8.831301] /dev/vmnet: hub 2 does not exist, allocating memory.
[ 8.831311] /dev/vmnet: port on hub 2 successfully opened
[ 8.892082] /dev/vmnet: open called by PID 433 (vmnet-natd)
[ 8.892090] /dev/vmnet: hub 8 does not exist, allocating memory.
[ 8.892101] /dev/vmnet: port on hub 8 successfully opened
[ 8.902981] netlink: 12 bytes leftover after parsing attributes.
[ 8.902984] netlink: 12 bytes leftover after parsing attributes.
[ 8.903006] netlink: 12 bytes leftover after parsing attributes.
[ 8.903091] netlink: 12 bytes leftover after parsing attributes.
[ 8.904797] /dev/vmnet: open called by PID 434 (vmnet-netifup)
[ 8.904804] /dev/vmnet: port on hub 8 successfully opened
[ 9.087903] /dev/vmnet: open called by PID 437 (vmnet-dhcpd)
[ 9.087912] /dev/vmnet: port on hub 8 successfully opened
[ 10.607320] wlan0: authenticate with bc:ae:c5:7e:ba:fc
[ 10.627420] wlan0: send auth to bc:ae:c5:7e:ba:fc (try 1/3)
[ 10.628841] wlan0: authenticated
[ 10.640245] wlan0: associate with bc:ae:c5:7e:ba:fc (try 1/3)
[ 10.643649] wlan0: RX AssocResp from bc:ae:c5:7e:ba:fc (capab=0x431 status=0 aid=2)
[ 10.643794] wlan0: associated
[ 10.643806] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 11.135609] userif-3: sent link down event.
[ 11.135611] userif-3: sent link up event.
Any points would be highly appreciated.
Liao
Last edited by liao (2013-01-05 09:17:59)
export VISUAL="/usr/bin/vim -p -X"
alias ll='ls -l'
complete -cf sudo
chmod 777 /dev/vmnet*
Ignoring that still using initscripts is discouraged, those commands should be executed by each session; that is, put them on your .bashrc (or .zshrc, if you use zsh)
You are doing it there because you want those commands for every single user? Fine, put them on /etc/profile instead.
oh! and learn to create unit files... really, is simple, and is the correct way
Last edited by chris_l (2012-12-14 16:02:49)
Similar Messages
-
[solved] funcsave command fails in fish shell
When I define a function in fish like this:
function heythere
echo hey there from fish!
end
and issue the funcsave command, I get this error:
troff: fatal error: can't open `/usr/share/fish/man/save_function.1': No such file or directory
This definitely worked before, as I have custom functions already. I suspect that some upgrades broke something, not fish itself, it hasnt been updated for a while.
I tried this in two current Arch installations, both fail.
Any help appreciated.
(I'll try to compile fish in ABS when I get home.)
Last edited by SanskritFritz (2010-04-30 12:08:25)I feel like an idiot now, I don't think this worked before ever, as the syntax is
funcsave <function_name>
and this still works...
Nevertheless the problem is still exists, but has now far less importance -
Command On Source -Not Executing
Hi
In a CKM, I am creating a bind variable by ruuning the SQL on 'Command on Source' tab and using it as a bind variable in 'Command on Target' tab, but when I execute the interface I see only 'Command on Target' is getting executed and 'Command on Source' is not.
I am getting a value in Command on Source tab and using it as a Table Name in the 'from' clause on the 'Command on Target'
regardsAny clue why Command on Source is not executing?
-
Purge command in cronjob not executed?
Hello dear friends,
I need to purge my RAM on my OS X Mavericks Late 2012 iMac every 5 minutes.
I used to run this command in cronjob on Mountain Lion and it was working great:
*/5 * * * * purge
It would seem that the cron job is indeed executed every 5 minutes, but the memory DOES NOT get purged at all, yet if I run the purge command manually it works.
In fact, to ensure that the command is actually performed, I have tempèorarily modified it as follows:
*/5 * * * * purge >/Users/lab/Desktop/cronpurge.txt
The .txt file is modified every 5 minutes but, as I said, no memory purge occurs.
How can I ensure that the command is run successfully by cronjob as it used to be the case with Mountain Lion?
Thanks!Hi,
Thanks to both.
I forgot to mention that the cronjob is indeed edited as root, with su command first to get an elevated prompt.
I run 6 Parallels Desktop Windows 7 sessions while I am working with Mavericks, that's why I need frequent purging, for them to run smoothly as Parallels Desktop is pretty much memory hungry.
Although I have 32 GB RAM, I prefer to be able to multitask as best as possible by running a frequent memory purge.
@TonyT1: I am indeed aware that memory management in Mavericks is different, however I can't help wondering why the same command "purge" works perfectly when run manually in an elevated prompt.... hence my curiosity about why the cron job, which is supposed to run the same instruction, is not working. Thanks! -
[SOLVED]Midnight commander, Color theme not able to load with root
Hi all ,
I have moved another step to this whole Arch Linux society, therefore am a newbie.
I have installed MC(midgnight commander) I got the ini file configured for the color theming
to deafault supposed everthing should be transparent except for the text offcourse .
Everything work fine but ...... when I do super user to run MC "sudo mc" It's doesn't
seems to take afect with the setting within the INI. Another word the ini only configured for user not root.
I have tried chmod +x ini and chown for root. Doesn't help.
Please advise
Your help would be greatly appreciated.
Thank You
Last edited by alpha.arch (2011-08-19 01:14:14)You're welcome :-)
Config files are usually placed in the user's home directory, e.g. /home/karol for me and /root for root. The global configuration (affecting both regular users and root) is in /etc.
Please remember to mark the thread as solved. -
OS Command in NFS not executing
Dear All
I am trying to execute a script before message processing in sender file communication channel with transport protocol NFS.
Although in my cc message display logs says:
Information Execute OS command "sh displayDate.sh"
but none of the commands inside the script is running.
I am using PI NFS directory as the location to place the script and executing it.
As the script is running fine when executed in command prompt there is no problem with the content script
Please help
Regards
Sourabh> #!/bin/displayDate.sh
Wrong! Use
#!/bin/sh
or
#!/bin/ksh
depending on what shell you use.
Then execute
chmod 755 displayDate.sh
Then logon as <sid>adm and execute
$ /interface/displayDate.sh
without a prepending "sh".
Markus -
[SOLVED]Some unicode symbols is not showing
Im trying to use special unicode characters like the equivalence sign and other logical signs. Some of them are missing.
How may I get more characters than those displayed when giving the command in vim:
:digraph
And i may use ctrl + K, and the digraph code.
I miss, (0x2261 8801 IDENTICAL TO) and some other logical operators.
Thanks in advance
Last edited by thund3rpantz (2014-10-09 18:14:56)Figured it out.
use command
:digraph {char1}{char2} number
and you may access it with ctrl+k like the other characters.
this quide is hard to read but helpful:
http://vimdoc.sourceforge.net/htmldoc/digraph.html
Last edited by thund3rpantz (2014-10-09 18:16:19) -
Could not execute auto check for display colors using command /usr/bin/X11/
Hello,
In a work trying to install ORACLE 11gR2 software in AIX 5.3,
export DISPLAY=local_IPXXX:0.0
xclock
it works, can see the clock.
then go to dowloaded oracle, run
/xxx/11g203_AIX64_5L/database-> ./runInstaller
Your platform requires the root user to perform certain pre-installation
OS preparation. The root user should run the shell script 'rootpre.sh' before
you proceed with Oracle installation. rootpre.sh can be found at the top level
of the CD or the stage area.
Answer 'y' if root has run 'rootpre.sh' so you can proceed with Oracle
installation.
Answer 'n' to abort installation and then ask root to run 'rootpre.sh'.
Has 'rootpre.sh' been run by root? [y/n] (n)
y
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 190 MB. Actual 7470 MB Passed
Checking swap space: must be greater than 150 MB. Actual 6144 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/bin/X11/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<
Some requirement checks failed. You must fulfill these requirements before
continuing with the installation,
Continue? (y/n) [n] n
User Selected: No
any idea to fix?
thanks a lot in advancethank you for response
in log, it shows
Using paramFile: /xxx/11g203_AIX64_5L/database/install/oraparam.ini
Checking Temp space: must be greater than 190 MB. Actual 7194 MB Passed
Checking swap space: must be greater than 150 MB. Actual 6144 MB Passed
Checking monitor: must be configured to display at least 256 colors Failed <<<<
>>> Could not execute auto check for display colors using command /usr/bin/X11/xdpyinfo. Check if the DISPLAY variable is set.
Some requirement checks failed. You must fulfill these requirements before
continuing with the installation,Continue? (y/n) [n]
User Selected: No
Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2012-09-17_04-08-40PM/installActions2012-09-17_04-08-40PM.log
~
--so nothing new as screen shows.
--ok, anonther way, say yes, shows..
continuing with the installation,
Continue? (y/n) [n] y
Ignoring required pre-requisite failures. Continuing...Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-09-17_04-00-30PM. Please wait ...xxxx:/xxx/11g203_AIX64_5L/database-> Exception in thread "main" java.lang.NoClassDefFoundError: sun.awt.motif.MToolkit (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:130)
at java.awt.Toolkit$2.run(Toolkit.java:864)
at java.security.AccessController.doPrivileged(AccessController.java:192)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:847)
at com.jgoodies.looks.LookUtils.isLowResolution(LookUtils.java:484)
at com.jgoodies.looks.LookUtils.<clinit>(LookUtils.java:249)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:135)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:163)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1812)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:510)
at oracle.install.commons.util.Application.startup(Application.java:780)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:165)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:182)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:348)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:124)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:155)
Edited by: 951932 on Sep 17, 2012 2:12 PM -
Sudo can't execute some commands[SOLVED]
Hi Archers,
I am using sudo and disable root account. There is some problems with sudo such as the following commands:
#sudo echo "1234" >/etc/rc.local
# sudo cd /root
I can't execute these commands with sudo, instead i have to login as root and execute the commands. So the question is how can I solve these problems?
The Second issue is how can I give certain user the commands that they can execute. For example, user A is only allowed to use "ls" commands and not any other commands?
Cheers
Last edited by hungsonbk (2008-11-17 02:02:29)You can't use those commands because it aren't real commands, it are shell builtins and they are ran by your shell which is ran by your regular user.
sudo echo foo > bar
This runs the "echo" binary as root but the ">" part is handled by the shell, appropriate way to handle this:
echo foo|sudo tee bar
cd wont work neither, if it did you could cd to a directory you don't have permissions to and then you would be in their as regular user, unable to do anything... You should just work from outside /root or use sudo -s.
For the user thing: man sudoers.
Last edited by Ramses de Norre (2008-11-15 16:52:55) -
"error: command failed to execute correctly" on several packages
Last night, when I updated before shutting down, I got a few errors, as in the subject. As it was very late, I thought I'd pick it up today.
Unfortunately, the pacman log only lists one of the ones that failed as libgpg-error. The other one that I remember erroring was gawk. There were a few others, maybe four or five, but I couln't reliably recall them all, so won't guess.
Here's a new attempt to reinstall gawk with --debug. I did the same with libgpg-error and the error occurred at the same place, with very similar output, so I think the issue is the same for all failures.
debug: pacman v4.2.1 - libalpm v9.0.1
debug: parseconfig: options pass
debug: config: attempting to read file /etc/pacman.conf
debug: config: finish section '(null)'
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: usedelta (default 0.7)
debug: config: arch: x86_64
debug: config: verbosepkglists
debug: config: chomp
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: SigLevel: TrustedOnly
debug: config: LocalFileSigLevel: Optional
debug: config: finish section 'options'
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 78: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'core'
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 81: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'extra'
debug: config: new section 'xyne-x86_64'
debug: config: finish section 'xyne-x86_64'
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 91: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'community'
debug: config: new section 'multilib'
debug: config file /etc/pacman.conf, line 100: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'multilib'
debug: config: new section 'infinality-bundle'
debug: config: finish section 'infinality-bundle'
debug: config: new section 'infinality-bundle-multilib'
debug: config: finish section 'infinality-bundle-multilib'
debug: config: new section 'infinality-bundle-fonts'
debug: config: finish section 'infinality-bundle-fonts'
debug: config: new section '(null)'
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: parseconfig: repo pass
debug: config: attempting to read file /etc/pacman.conf
debug: config: finish section '(null)'
debug: config: new section 'options'
debug: config: finish section 'options'
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 78: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'core'
debug: registering sync database 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core.db
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for core repoistory
debug: adding new server URL to database 'core': http://arch.tamcore.eu/core/os/x86_64
debug: adding new server URL to database 'core': http://mirror.one.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirror.gnomus.de/core/os/x86_64
debug: adding new server URL to database 'core': http://mirror.js-webcoding.de/pub/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://archlinux.polymorf.fr/core/os/x86_64
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 81: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'extra'
debug: registering sync database 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for extra repoistory
debug: adding new server URL to database 'extra': http://arch.tamcore.eu/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirror.one.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirror.gnomus.de/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirror.js-webcoding.de/pub/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://archlinux.polymorf.fr/extra/os/x86_64
debug: config: new section 'xyne-x86_64'
debug: config: SigLevel: Required
debug: config: finish section 'xyne-x86_64'
debug: registering sync database 'xyne-x86_64'
debug: database path for tree xyne-x86_64 set to /var/lib/pacman/sync/xyne-x86_64.db
debug: GPGME version: 1.5.4
debug: GPGME engine info: file=/usr/bin/gpg2, home=/etc/pacman.d/gnupg/
debug: checking signature for /var/lib/pacman/sync/xyne-x86_64.db
debug: 1 signatures returned
debug: fingerprint: EC3CBE7F607D11E663149E811D1F0DC78F173680
debug: summary: valid
debug: summary: green
debug: status: Success
debug: timestamp: 1430676813
debug: exp_timestamp: 0
debug: validity: full; reason: Success
debug: key: EC3CBE7F607D11E663149E811D1F0DC78F173680, Xyne. (key #3) <[email protected]>, owner_trust unknown, disabled 0
debug: signature is valid
debug: signature is fully trusted
debug: setting usage of 15 for xyne-x86_64 repoistory
debug: adding new server URL to database 'xyne-x86_64': http://xyne.archlinux.ca/repos/xyne
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 91: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'community'
debug: registering sync database 'community'
debug: database path for tree community set to /var/lib/pacman/sync/community.db
debug: "/var/lib/pacman/sync/community.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/community.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for community repoistory
debug: adding new server URL to database 'community': http://arch.tamcore.eu/community/os/x86_64
debug: adding new server URL to database 'community': http://mirror.one.com/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirror.gnomus.de/community/os/x86_64
debug: adding new server URL to database 'community': http://mirror.js-webcoding.de/pub/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://archlinux.polymorf.fr/community/os/x86_64
debug: config: new section 'multilib'
debug: config file /etc/pacman.conf, line 100: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finish section 'multilib'
debug: registering sync database 'multilib'
debug: database path for tree multilib set to /var/lib/pacman/sync/multilib.db
debug: "/var/lib/pacman/sync/multilib.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/multilib.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for multilib repoistory
debug: adding new server URL to database 'multilib': http://arch.tamcore.eu/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://mirror.one.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://mirror.gnomus.de/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://mirror.js-webcoding.de/pub/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://archlinux.polymorf.fr/multilib/os/x86_64
debug: config: new section 'infinality-bundle'
debug: config: finish section 'infinality-bundle'
debug: registering sync database 'infinality-bundle'
debug: database path for tree infinality-bundle set to /var/lib/pacman/sync/infinality-bundle.db
debug: checking signature for /var/lib/pacman/sync/infinality-bundle.db
debug: 1 signatures returned
debug: fingerprint: A9244FB5E93F11F0E975337FAE6866C7962DDE58
debug: summary: valid
debug: summary: green
debug: status: Success
debug: timestamp: 1430276639
debug: exp_timestamp: 0
debug: validity: full; reason: Success
debug: key: A9244FB5E93F11F0E975337FAE6866C7962DDE58, bohoomil (dev key) <[email protected]>, owner_trust unknown, disabled 0
debug: signature is valid
debug: signature is fully trusted
debug: setting usage of 15 for infinality-bundle repoistory
debug: adding new server URL to database 'infinality-bundle': http://bohoomil.com/repo/x86_64
debug: config: new section 'infinality-bundle-multilib'
debug: config: finish section 'infinality-bundle-multilib'
debug: registering sync database 'infinality-bundle-multilib'
debug: database path for tree infinality-bundle-multilib set to /var/lib/pacman/sync/infinality-bundle-multilib.db
debug: checking signature for /var/lib/pacman/sync/infinality-bundle-multilib.db
debug: 1 signatures returned
debug: fingerprint: A9244FB5E93F11F0E975337FAE6866C7962DDE58
debug: summary: valid
debug: summary: green
debug: status: Success
debug: timestamp: 1430087321
debug: exp_timestamp: 0
debug: validity: full; reason: Success
debug: key: A9244FB5E93F11F0E975337FAE6866C7962DDE58, bohoomil (dev key) <[email protected]>, owner_trust unknown, disabled 0
debug: signature is valid
debug: signature is fully trusted
debug: setting usage of 15 for infinality-bundle-multilib repoistory
debug: adding new server URL to database 'infinality-bundle-multilib': http://bohoomil.com/repo/multilib/x86_64
debug: config: new section 'infinality-bundle-fonts'
debug: config: finish section 'infinality-bundle-fonts'
debug: registering sync database 'infinality-bundle-fonts'
debug: database path for tree infinality-bundle-fonts set to /var/lib/pacman/sync/infinality-bundle-fonts.db
debug: checking signature for /var/lib/pacman/sync/infinality-bundle-fonts.db
debug: 1 signatures returned
debug: fingerprint: A9244FB5E93F11F0E975337FAE6866C7962DDE58
debug: summary: valid
debug: summary: green
debug: status: Success
debug: timestamp: 1430276566
debug: exp_timestamp: 0
debug: validity: full; reason: Success
debug: key: A9244FB5E93F11F0E975337FAE6866C7962DDE58, bohoomil (dev key) <[email protected]>, owner_trust unknown, disabled 0
debug: signature is valid
debug: signature is fully trusted
debug: setting usage of 15 for infinality-bundle-fonts repoistory
debug: adding new server URL to database 'infinality-bundle-fonts': http://bohoomil.com/repo/fonts
debug: config: new section '(null)'
debug: config: finished parsing /etc/pacman.conf
debug: loading package cache for repository 'core'
debug: opening archive /var/lib/pacman/sync/core.db
debug: added 208 packages to package cache for db 'core'
debug: adding package 'gawk'
debug: loading package cache for repository 'local'
debug: added 1122 packages to package cache for db 'local'
warning: gawk-4.1.2-1 is up to date -- reinstalling
debug: adding package gawk-4.1.2-1 to the transaction add list
resolving dependencies...
debug: resolving target's dependencies
debug: started resolving dependencies
debug: checkdeps: package gawk-4.1.2-1
debug: finished resolving dependencies
looking for conflicting packages...
debug: looking for conflicts
debug: check targets vs targets
debug: check targets vs targets
debug: check targets vs db and db vs targets
debug: check targets vs db
debug: check db vs targets
debug: checking dependencies
debug: checkdeps: package gawk-4.1.2-1
debug: found cached pkg: /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
debug: setting download size 0 for pkg gawk
debug: sorting by dependencies
debug: started sorting dependencies
debug: sorting dependencies finished
Package (1) Old Version New Version Net Change
core/gawk 4.1.2-1 4.1.2-1 0.00 MiB
Total Installed Size: 2.19 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
debug: using cachedir: /var/cache/pacman/pkg/
debug: using cachedir: /var/cache/pacman/pkg/
checking keyring...
debug: looking up key 771DF6627EDF681F locally
debug: key lookup success, key exists
checking package integrity...
debug: found cached pkg: /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
debug: sig data: iQEcBAABCAAGBQJVQNc+AAoJEHcd9mJ+32gfQZgH/jkRiirmPTb4nE0xgcFGKc8wrxw3k9ooGyMFoeqAthTICB/5dBzNfEQ8b4X74gi8KiYQVYm4WE8kWIidUj5ekJhGwngO6Gk+lwyBq+Uh8rUHDJKw557fImM2bBah2lxNUxqZzxYTA1FByq2lptLB5EPJgAPemyUXACMXITDfqtWMpuHIEPLZi5WW9+cB0eMKz5IeEEfZi4lO2fyfRqxNkRDNSmC5NEDkfhm+XVXBEd4gugSOmYpKzlA67mjw2HP+oOyNheL8st4SjgFr/qVDdbfiBbaTTujC4mF1n73z5qp4K5/xgHqk42ftoo003XFQYVOAg3bDWMvUF5d63D4+HKg=
debug: checking signature for /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
debug: 1 signatures returned
debug: fingerprint: 5B7E3FB71B7F10329A1C03AB771DF6627EDF681F
debug: summary: valid
debug: summary: green
debug: status: Success
debug: timestamp: 1430312766
debug: exp_timestamp: 0
debug: validity: full; reason: Success
debug: key: 5B7E3FB71B7F10329A1C03AB771DF6627EDF681F, Tobias Powalowski <[email protected]>, owner_trust unknown, disabled 0
debug: signature is valid
debug: signature is fully trusted
loading package files...
debug: found cached pkg: /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
debug: replacing pkgcache entry with package file for target gawk
debug: opening archive /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
debug: starting package load for /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
debug: found mtree for package /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz, getting file list
debug: finished mtree reading for /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
debug: sorting package filelist for /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
checking for file conflicts...
debug: looking for file conflicts
debug: searching for file conflicts: gawk
debug: searching for filesystem conflicts: gawk
checking available disk space...
debug: checking available disk space
debug: discovered mountpoint: /tmp
debug: discovered mountpoint: /sys/kernel/security
debug: discovered mountpoint: /sys/kernel/debug
debug: discovered mountpoint: /sys/kernel/config
debug: discovered mountpoint: /sys/fs/pstore
debug: discovered mountpoint: /sys/fs/cgroup/systemd
debug: discovered mountpoint: /sys/fs/cgroup/net_cls
debug: discovered mountpoint: /sys/fs/cgroup/memory
debug: discovered mountpoint: /sys/fs/cgroup/freezer
debug: discovered mountpoint: /sys/fs/cgroup/devices
debug: discovered mountpoint: /sys/fs/cgroup/cpuset
debug: discovered mountpoint: /sys/fs/cgroup/cpu,cpuacct
debug: discovered mountpoint: /sys/fs/cgroup/blkio
debug: discovered mountpoint: /sys/fs/cgroup
debug: discovered mountpoint: /sys
debug: discovered mountpoint: /run/user/1000
debug: discovered mountpoint: /run
debug: discovered mountpoint: /proc/sys/fs/binfmt_misc
debug: discovered mountpoint: /proc
debug: discovered mountpoint: /home/skanky/personal
debug: discovered mountpoint: /home
debug: discovered mountpoint: /dev/shm
debug: discovered mountpoint: /dev/pts
debug: discovered mountpoint: /dev/mqueue
debug: discovered mountpoint: /dev/hugepages
debug: discovered mountpoint: /dev
debug: discovered mountpoint: /
debug: loading fsinfo for /
debug: partition /, needed 0, cushion 5121, free 1174711
debug: installing packages
reinstalling gawk...
debug: reinstalling package gawk-4.1.2-1
debug: opening archive /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
debug: extracting: .INSTALL
debug: removing old package first (gawk-4.1.2-1)
debug: removing 110 files
debug: unlinking /usr/share/man/man3/time.3am.gz
debug: unlinking /usr/share/man/man3/rwarray.3am.gz
debug: unlinking /usr/share/man/man3/revtwoway.3am.gz
debug: unlinking /usr/share/man/man3/revoutput.3am.gz
debug: unlinking /usr/share/man/man3/readfile.3am.gz
debug: unlinking /usr/share/man/man3/readdir.3am.gz
debug: unlinking /usr/share/man/man3/ordchr.3am.gz
debug: unlinking /usr/share/man/man3/inplace.3am.gz
debug: unlinking /usr/share/man/man3/fork.3am.gz
debug: unlinking /usr/share/man/man3/fnmatch.3am.gz
debug: unlinking /usr/share/man/man3/filefuncs.3am.gz
debug: keeping directory /usr/share/man/man3/ (contains files)
debug: unlinking /usr/share/man/man1/igawk.1.gz
debug: unlinking /usr/share/man/man1/gawk.1.gz
debug: keeping directory /usr/share/man/man1/ (contains files)
debug: keeping directory /usr/share/man/ (contains files)
debug: unlinking /usr/share/locale/vi/LC_MESSAGES/gawk.mo
debug: keeping directory /usr/share/locale/vi/LC_MESSAGES/ (contains files)
debug: keeping directory /usr/share/locale/vi/ (contains files)
debug: unlinking /usr/share/locale/sv/LC_MESSAGES/gawk.mo
debug: keeping directory /usr/share/locale/sv/LC_MESSAGES/ (contains files)
debug: keeping directory /usr/share/locale/sv/ (contains files)
debug: unlinking /usr/share/locale/pl/LC_MESSAGES/gawk.mo
debug: keeping directory /usr/share/locale/pl/LC_MESSAGES/ (contains files)
debug: keeping directory /usr/share/locale/pl/ (contains files)
debug: unlinking /usr/share/locale/nl/LC_MESSAGES/gawk.mo
debug: keeping directory /usr/share/locale/nl/LC_MESSAGES/ (contains files)
debug: keeping directory /usr/share/locale/nl/ (contains files)
debug: unlinking /usr/share/locale/ms/LC_MESSAGES/gawk.mo
debug: keeping directory /usr/share/locale/ms/LC_MESSAGES/ (contains files)
debug: keeping directory /usr/share/locale/ms/ (contains files)
debug: unlinking /usr/share/locale/ja/LC_MESSAGES/gawk.mo
debug: keeping directory /usr/share/locale/ja/LC_MESSAGES/ (contains files)
debug: keeping directory /usr/share/locale/ja/ (contains files)
debug: unlinking /usr/share/locale/it/LC_MESSAGES/gawk.mo
debug: keeping directory /usr/share/locale/it/LC_MESSAGES/ (contains files)
debug: keeping directory /usr/share/locale/it/ (contains files)
debug: unlinking /usr/share/locale/fr/LC_MESSAGES/gawk.mo
debug: keeping directory /usr/share/locale/fr/LC_MESSAGES/ (contains files)
debug: keeping directory /usr/share/locale/fr/ (contains files)
debug: unlinking /usr/share/locale/fi/LC_MESSAGES/gawk.mo
debug: keeping directory /usr/share/locale/fi/LC_MESSAGES/ (contains files)
debug: keeping directory /usr/share/locale/fi/ (contains files)
debug: unlinking /usr/share/locale/es/LC_MESSAGES/gawk.mo
debug: keeping directory /usr/share/locale/es/LC_MESSAGES/ (contains files)
debug: keeping directory /usr/share/locale/es/ (contains files)
debug: unlinking /usr/share/locale/de/LC_MESSAGES/gawk.mo
debug: keeping directory /usr/share/locale/de/LC_MESSAGES/ (contains files)
debug: keeping directory /usr/share/locale/de/ (contains files)
debug: unlinking /usr/share/locale/da/LC_MESSAGES/gawk.mo
debug: keeping directory /usr/share/locale/da/LC_MESSAGES/ (contains files)
debug: keeping directory /usr/share/locale/da/ (contains files)
debug: unlinking /usr/share/locale/ca/LC_MESSAGES/gawk.mo
debug: keeping directory /usr/share/locale/ca/LC_MESSAGES/ (contains files)
debug: keeping directory /usr/share/locale/ca/ (contains files)
debug: keeping directory /usr/share/locale/ (contains files)
debug: unlinking /usr/share/info/gawkinet.info.gz
debug: unlinking /usr/share/info/gawk.info.gz
debug: keeping directory /usr/share/info/ (contains files)
debug: unlinking /usr/share/awk/zerofile.awk
debug: unlinking /usr/share/awk/walkarray.awk
debug: unlinking /usr/share/awk/strtonum.awk
debug: unlinking /usr/share/awk/shellquote.awk
debug: unlinking /usr/share/awk/round.awk
debug: unlinking /usr/share/awk/rewind.awk
debug: unlinking /usr/share/awk/readfile.awk
debug: unlinking /usr/share/awk/readable.awk
debug: unlinking /usr/share/awk/quicksort.awk
debug: unlinking /usr/share/awk/processarray.awk
debug: unlinking /usr/share/awk/passwd.awk
debug: unlinking /usr/share/awk/ord.awk
debug: unlinking /usr/share/awk/noassign.awk
debug: unlinking /usr/share/awk/libintl.awk
debug: unlinking /usr/share/awk/join.awk
debug: unlinking /usr/share/awk/inplace.awk
debug: unlinking /usr/share/awk/group.awk
debug: unlinking /usr/share/awk/gettime.awk
debug: unlinking /usr/share/awk/getopt.awk
debug: unlinking /usr/share/awk/ftrans.awk
debug: unlinking /usr/share/awk/ctime.awk
debug: unlinking /usr/share/awk/cliff_rand.awk
debug: unlinking /usr/share/awk/bits2str.awk
debug: unlinking /usr/share/awk/assert.awk
debug: keeping directory /usr/share/awk/ (in new package)
debug: keeping directory /usr/share/ (contains files)
debug: unlinking /usr/lib/gawk/time.so
debug: unlinking /usr/lib/gawk/testext.so
debug: unlinking /usr/lib/gawk/rwarray.so
debug: unlinking /usr/lib/gawk/revtwoway.so
debug: unlinking /usr/lib/gawk/revoutput.so
debug: unlinking /usr/lib/gawk/readfile.so
debug: unlinking /usr/lib/gawk/readdir.so
debug: unlinking /usr/lib/gawk/ordchr.so
debug: unlinking /usr/lib/gawk/inplace.so
debug: unlinking /usr/lib/gawk/fork.so
debug: unlinking /usr/lib/gawk/fnmatch.so
debug: unlinking /usr/lib/gawk/filefuncs.so
debug: keeping directory /usr/lib/gawk/ (in new package)
debug: unlinking /usr/lib/awk/pwcat
debug: unlinking /usr/lib/awk/grcat
debug: keeping directory /usr/lib/awk/ (in new package)
debug: keeping directory /usr/lib/ (contains files)
debug: unlinking /usr/include/gawkapi.h
debug: keeping directory /usr/include/ (contains files)
debug: unlinking /usr/bin/igawk
debug: unlinking /usr/bin/gawk-4.1.2
debug: unlinking /usr/bin/gawk
debug: unlinking /usr/bin/awk
debug: keeping directory /usr/bin/ (contains files)
debug: keeping directory /usr/ (contains files)
debug: removing database entry 'gawk'
debug: removing entry 'gawk' from 'local' cache
debug: extracting files
debug: opening archive /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
debug: skipping extraction of '.PKGINFO'
debug: extracting /var/lib/pacman/local/gawk-4.1.2-1/install
debug: extracting /var/lib/pacman/local/gawk-4.1.2-1/mtree
debug: extract: skipping dir extraction of /usr/
debug: extract: skipping dir extraction of /usr/lib/
debug: extract: skipping dir extraction of /usr/share/
debug: extract: skipping dir extraction of /usr/include/
debug: extract: skipping dir extraction of /usr/bin/
debug: extracting /usr/bin/igawk
debug: extracting /usr/bin/awk
debug: extracting /usr/bin/gawk-4.1.2
debug: extracting /usr/bin/gawk
debug: extracting /usr/include/gawkapi.h
debug: extract: skipping dir extraction of /usr/share/locale/
debug: extract: skipping dir extraction of /usr/share/awk/
debug: extract: skipping dir extraction of /usr/share/info/
debug: extract: skipping dir extraction of /usr/share/man/
debug: extract: skipping dir extraction of /usr/share/man/man3/
debug: extract: skipping dir extraction of /usr/share/man/man1/
debug: extracting /usr/share/man/man1/gawk.1.gz
debug: extracting /usr/share/man/man1/igawk.1.gz
debug: extracting /usr/share/man/man3/filefuncs.3am.gz
debug: extracting /usr/share/man/man3/fnmatch.3am.gz
debug: extracting /usr/share/man/man3/fork.3am.gz
debug: extracting /usr/share/man/man3/inplace.3am.gz
debug: extracting /usr/share/man/man3/ordchr.3am.gz
debug: extracting /usr/share/man/man3/readdir.3am.gz
debug: extracting /usr/share/man/man3/readfile.3am.gz
debug: extracting /usr/share/man/man3/revoutput.3am.gz
debug: extracting /usr/share/man/man3/revtwoway.3am.gz
debug: extracting /usr/share/man/man3/rwarray.3am.gz
debug: extracting /usr/share/man/man3/time.3am.gz
debug: extracting /usr/share/info/gawk.info.gz
debug: extracting /usr/share/info/gawkinet.info.gz
debug: extracting /usr/share/awk/zerofile.awk
debug: extracting /usr/share/awk/walkarray.awk
debug: extracting /usr/share/awk/strtonum.awk
debug: extracting /usr/share/awk/shellquote.awk
debug: extracting /usr/share/awk/round.awk
debug: extracting /usr/share/awk/rewind.awk
debug: extracting /usr/share/awk/readfile.awk
debug: extracting /usr/share/awk/readable.awk
debug: extracting /usr/share/awk/quicksort.awk
debug: extracting /usr/share/awk/processarray.awk
debug: extracting /usr/share/awk/ord.awk
debug: extracting /usr/share/awk/noassign.awk
debug: extracting /usr/share/awk/libintl.awk
debug: extracting /usr/share/awk/join.awk
debug: extracting /usr/share/awk/inplace.awk
debug: extracting /usr/share/awk/gettime.awk
debug: extracting /usr/share/awk/getopt.awk
debug: extracting /usr/share/awk/ftrans.awk
debug: extracting /usr/share/awk/ctime.awk
debug: extracting /usr/share/awk/cliff_rand.awk
debug: extracting /usr/share/awk/bits2str.awk
debug: extracting /usr/share/awk/assert.awk
debug: extracting /usr/share/awk/group.awk
debug: extracting /usr/share/awk/passwd.awk
debug: extract: skipping dir extraction of /usr/share/locale/vi/
debug: extract: skipping dir extraction of /usr/share/locale/sv/
debug: extract: skipping dir extraction of /usr/share/locale/pl/
debug: extract: skipping dir extraction of /usr/share/locale/nl/
debug: extract: skipping dir extraction of /usr/share/locale/ms/
debug: extract: skipping dir extraction of /usr/share/locale/ja/
debug: extract: skipping dir extraction of /usr/share/locale/it/
debug: extract: skipping dir extraction of /usr/share/locale/fr/
debug: extract: skipping dir extraction of /usr/share/locale/fi/
debug: extract: skipping dir extraction of /usr/share/locale/es/
debug: extract: skipping dir extraction of /usr/share/locale/de/
debug: extract: skipping dir extraction of /usr/share/locale/da/
debug: extract: skipping dir extraction of /usr/share/locale/ca/
debug: extract: skipping dir extraction of /usr/share/locale/ca/LC_MESSAGES/
debug: extracting /usr/share/locale/ca/LC_MESSAGES/gawk.mo
debug: extract: skipping dir extraction of /usr/share/locale/da/LC_MESSAGES/
debug: extracting /usr/share/locale/da/LC_MESSAGES/gawk.mo
debug: extract: skipping dir extraction of /usr/share/locale/de/LC_MESSAGES/
debug: extracting /usr/share/locale/de/LC_MESSAGES/gawk.mo
debug: extract: skipping dir extraction of /usr/share/locale/es/LC_MESSAGES/
debug: extracting /usr/share/locale/es/LC_MESSAGES/gawk.mo
debug: extract: skipping dir extraction of /usr/share/locale/fi/LC_MESSAGES/
debug: extracting /usr/share/locale/fi/LC_MESSAGES/gawk.mo
debug: extract: skipping dir extraction of /usr/share/locale/fr/LC_MESSAGES/
debug: extracting /usr/share/locale/fr/LC_MESSAGES/gawk.mo
debug: extract: skipping dir extraction of /usr/share/locale/it/LC_MESSAGES/
debug: extracting /usr/share/locale/it/LC_MESSAGES/gawk.mo
debug: extract: skipping dir extraction of /usr/share/locale/ja/LC_MESSAGES/
debug: extracting /usr/share/locale/ja/LC_MESSAGES/gawk.mo
debug: extract: skipping dir extraction of /usr/share/locale/ms/LC_MESSAGES/
debug: extracting /usr/share/locale/ms/LC_MESSAGES/gawk.mo
debug: extract: skipping dir extraction of /usr/share/locale/nl/LC_MESSAGES/
debug: extracting /usr/share/locale/nl/LC_MESSAGES/gawk.mo
debug: extract: skipping dir extraction of /usr/share/locale/pl/LC_MESSAGES/
debug: extracting /usr/share/locale/pl/LC_MESSAGES/gawk.mo
debug: extract: skipping dir extraction of /usr/share/locale/sv/LC_MESSAGES/
debug: extracting /usr/share/locale/sv/LC_MESSAGES/gawk.mo
debug: extract: skipping dir extraction of /usr/share/locale/vi/LC_MESSAGES/
debug: extracting /usr/share/locale/vi/LC_MESSAGES/gawk.mo
debug: extract: skipping dir extraction of /usr/lib/gawk/
debug: extract: skipping dir extraction of /usr/lib/awk/
debug: extracting /usr/lib/awk/pwcat
debug: extracting /usr/lib/awk/grcat
debug: extracting /usr/lib/gawk/filefuncs.so
debug: extracting /usr/lib/gawk/fnmatch.so
debug: extracting /usr/lib/gawk/fork.so
debug: extracting /usr/lib/gawk/inplace.so
debug: extracting /usr/lib/gawk/ordchr.so
debug: extracting /usr/lib/gawk/readdir.so
debug: extracting /usr/lib/gawk/readfile.so
debug: extracting /usr/lib/gawk/revoutput.so
debug: extracting /usr/lib/gawk/revtwoway.so
debug: extracting /usr/lib/gawk/rwarray.so
debug: extracting /usr/lib/gawk/testext.so
debug: extracting /usr/lib/gawk/time.so
debug: updating database
debug: adding database entry 'gawk'
debug: writing gawk-4.1.2-1 DESC information back to db
debug: writing gawk-4.1.2-1 FILES information back to db
debug: adding entry 'gawk' in 'local' cache
debug: executing ". /tmp/alpm_r21DA5/.INSTALL; post_upgrade 4.1.2-1 4.1.2-1"
debug: executing "/usr/bin/bash" under chroot "/"
debug: call to waitpid succeeded
error: command failed to execute correctly
debug: running ldconfig
debug: executing "/usr/bin/ldconfig" under chroot "/"
debug: call to waitpid succeeded
debug: unregistering database 'local'
debug: freeing package cache for repository 'local'
debug: unregistering database 'core'
debug: freeing package cache for repository 'core'
debug: unregistering database 'extra'
debug: unregistering database 'xyne-x86_64'
debug: unregistering database 'community'
debug: unregistering database 'multilib'
debug: unregistering database 'infinality-bundle'
debug: unregistering database 'infinality-bundle-multilib'
debug: unregistering database 'infinality-bundle-fonts'
pacman thinks the upgrade/reinstall was successful in that the latest version is installed.
I did a search on the forums and the only other issue that I thought was connected might be microcode not up to date, but I had followed the update instructions some time back and as far as I can tell, the microcode is up to date.
I have two main questions:
1) How do I work out what's causing the error, from above?
2) Is there a way I can work out which packages gave the error, so I can make sure they're installed properly?
Thanks.The following packages also had problems
( 2/17) upgrading glibc
error: command failed to execute correctly
( 3/17) upgrading binutils
error: command failed to execute correctly
( 4/17) upgrading coreutils
error: command failed to execute correctly
( 8/17) upgrading gcc
error: command failed to execute correctly
( 9/17) upgrading gcc-fortran
error: command failed to execute correctly
(10/17) upgrading gcc-libs
error: command failed to execute correctly
Does anybody have a clue?
Thanks, -
Runtime.exec() fails sometime to execute a command
Hello,
I have a program thats using Runtime.exec to execute some external programs sequence with some redirection operators.
For e.g, I have some command as follows;
1 - C:\bin\IBRSD.exe IBRSD -s
2 - C:\bin\mcstat -n @punduk444:5000#mc -l c:\ | grep -i running | grep -v grep |wc -l
3 - ping punduk444 | grep "100%" | wc -l
...etc.
These command in sequence for a single run. The test program makes multiple such runs. So my problem is sometimes the runtime.exec() fails to execute some of the commands above (typically the 2nd one). The waitFor() returns error code (-1). That is if I loop these commands for say 30 runs then in some 1~4 runs the 2nd command fails to execute and return -1 error code.
Can some one help me out to as why this is happening? Any help is appreciated
Thanks,
~jaideep
Herer is the code snippet;
Runtime runtime = Runtime.getRuntime();
//create process object to handle result
Process process = null;
commandToRun = "cmd /c " + command;
process = runtime.exec( commandToRun );
CommandOutputReader cmdError = new CommandOutputReader(process.getErrorStream());
CommandOutputReader cmdOutput = new CommandOutputReader(process.getInputStream());
cmdError.start();
cmdOutput.start();
CheckProcess chkProcess = new CheckProcess(process);
chkProcess.start();
int retValue = process.waitFor();
if(retValue != 0)
return -1;
output = cmdOutput.getOutputData();
cmdError = null;
cmdOutput = null;
chkProcess = null;
/*******************************supporting CommandOutputReader class *********************************/
public class CommandOutputReader extends Thread
private transient InputStream inputStream; //to get output of any command
private transient String output; //output will store command output
protected boolean isDone;
public CommandOutputReader()
super();
output = "";
this.inputStream = null;
public CommandOutputReader(InputStream stream)
super();
output = "";
this.inputStream = stream;
public void setStream(InputStream stream)
this.inputStream = stream;
public String getOutputData()
return output;
public void run()
if(inputStream != null)
final BufferedReader bufferReader = new BufferedReader(new InputStreamReader(inputStream), 1024 * 128);
String line = null;
try
while ( (line = bufferReader.readLine()) != null)
if (ResourceString.getLocale() != null)
Utility.log(Level.DEBUG,line);
//output += line + System.getProperty(Constants.ALL_NEWLINE_GETPROPERTY_PARAM);
output += line + "\r\n";
System.out.println("<< "+ this.getId() + " >>" + output );
System.out.println("<< "+ this.getId() + " >>" + "closed the i/p stream...");
inputStream.close();
bufferReader.close();
catch (IOException objIOException)
if (ResourceString.getLocale() != null)
Utility.log(Level.ERROR, ResourceString.getString("io_exeception_reading_cmd_output")+
objIOException.getMessage());
output = ResourceString.getString("io_exeception_reading_cmd_output");
else
output = "io exeception reading cmd output";
finally {
isDone = true;
public boolean isDone() {
return isDone;
/*******************************supporting CommandOutputReader class *********************************/
/*******************************supporting process controller class *********************************/
public class CheckProcess extends Thread
private transient Process monitoredProcess;
private transient boolean continueLoop ;
private transient long maxWait = Constants.WAIT_PERIOD;
public CheckProcess(Process monitoredProcess)
super();
this.monitoredProcess = monitoredProcess;
continueLoop =true;
public void setMaxWait(final long max)
this.maxWait = max;
public void stopProcess()
continueLoop=false;
public void run()
//long start1 = java.util.Calendar.getInstance().getTimeInMillis();
final long start1 = System.currentTimeMillis();
while (true && continueLoop)
// after maxWait millis, stops monitoredProcess and return
if (System.currentTimeMillis() - start1 > maxWait)
if(monitoredProcess != null)
monitoredProcess.destroy();
//available for garbage collection
// @PMD:REVIEWED:NullAssignment: by jbarde on 9/28/06 7:29 PM
monitoredProcess = null;
return;
try
sleep(1000);
catch (InterruptedException e)
if (ResourceString.getLocale() != null)
Utility.log(Level.ERROR, ResourceString.getString("exception_in_sleep") + e.getLocalizedMessage());
System.out.println(ResourceString.getString("exception_in_sleep") + e.getLocalizedMessage());
else
System.out.println("Exception in sleep" + e.getLocalizedMessage());
if(monitoredProcess != null)
monitoredProcess.destroy();
//available for garbage collection
// @PMD:REVIEWED:NullAssignment: by jbarde on 9/28/06 7:29 PM
monitoredProcess = null;
/*******************************supporting process controller class *********************************/Hi,
Infact the command passed to the exec() is in the form of a batch file, which contains on of these commands. I can not put all commands in one batch file due to inherent nature of the program.
But my main concern was that, why would it behave like this. If I run the same command for 30 times 1~3 times the same command can not be executed (returns with error code 1, on wiun2k pro) and rest times it works perfectly fine.
Do you see any abnormality in the code.
I ahve used the same sequence of code as in the article suggested by
"masijade". i.e having threads to monitor the process and other threads to read and empty out the input and error streams so that the buffer does not get full.
But I see here the problem is not of process getting hanged, I sense this because my waitFor() returns with error code as 1, had the process hanged it would not have returned , am I making sense?
Regards,
~jaideep -
Could not execute auto check for display colors using command /usr/
I am trying to Install Oracle 10g R2 on Solaris X86 32 bit
I am connecting to system from my windows vista laptop through putty... I get the following error...
$ ./runInstaller
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be 5.10. Actual 5.10
Passed
Checking Temp space: must be greater than 250 MB. Actual 1214 MB Passed
Checking swap space: must be greater than 500 MB. Actual 1799 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/openw
Some requirement checks failed. You must fulfill these requirements before
continuing with the installation,at which time they will be rechecked.
Continue? (y/n) [n] n
User Selected: No
Exiting Oracle Universal Installer, log for this session can be found at /tmp/Or
I have done the following:-
# DISPLAY=192.168.1.133:0.0; export DISPLAY
# echo $DISPLAY
192.168.1.133:0.0
# xhost+
xhost+: not found
# xclock
xclock: not found
I know that I have to do the following:-
1. Install SUNWxwplt package ========> Is already Installed
2. Set DISPLAY variable
3. Execute xhost + on target (set in DISPLAY) computer
# pkginfo -i SUNWxwplt
system SUNWxwplt X Window System platform software
Some sites claim xming and some xwindows etc.... Plz give me a step by step instruction as how to overcome this..
bash-3.00# /usr/openwin/bin/xclock
Error: Can't open display:
bash-3.00# DISPLAY=192.168.1.133:0.0; export DISPLAY; echo DISPLAY
DISPLAY
bash-3.00# echo $DISPLAY
192.168.1.133:0.0
bash-3.00# /usr/openwin/bin/xclock
Error: Can't open display: 192.168.1.133:0.0
bash-3.00# pwd
bash-3.00# find . -name xhost
./usr/openwin/bin/xhost
^C
bash-3.00# /usr/openwin/bin/xhost +
/usr/openwin/bin/xhost: unable to open display "192.168.1.133:0.0"
bash-3.00#
# echo $PATH
/usr/sbin:/usr/bin
I have also gone through the below ... but was not of much help
Unable to execute runInstaller: Check if the DISPLAY variable is set
Plz help
Edited by: [email protected] on Feb 11, 2009 5:16 AMbash-3.00# echo $SHELL
/sbin/sh
bash-3.00# echo $DISPLAY
bash-3.00# DISPLAY=192.168.1.133:0.0;export DISPLAY
bash-3.00# echo $DISPLAY
192.168.1.133:0.0
bash-3.00# /usr/openwin/bin/xclock
Error: Can't open display: 192.168.1.133:0.0
bash-3.00# man xclock
No manual entry for xclock.
bash-3.00# /usr/openwin/bin/xhost +
/usr/openwin/bin/xhost: unable to open display "192.168.1.133:0.0"
bash-3.00# -
Hi, twice now when upgrading the kernel I have seen
"error: command failed to execute correctly"
in pacmans output, any ideas as to what it might be?
Bit of pacman output:
( 4/11) upgrading fontconfig [###################] 100%
updating font cache... done.
( 5/11) upgrading gpm [###################] 100%
( 6/11) upgrading linux [###################] 100%
>>> Updating module dependencies. Please wait ...
>>> Generating initial ramdisk, using mkinitcpio. Please wait...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 3.9.3-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> ERROR: file not found: `fsck.btrfs'
==> WARNING: No fsck helpers found. fsck will not be run on boot.
==> Generating module dependencies
==> Creating gzip initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 3.9.3-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: bfa
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
error: command failed to execute correctly
( 7/11) upgrading man-db [###################] 100%
( 8/11) upgrading mdadm
jason@jason-laptop ~ % sudo mkinitcpio -p linux
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 3.9.3-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> ERROR: file not found: `fsck.btrfs'
==> WARNING: No fsck helpers found. fsck will not be run on boot.
==> Generating module dependencies
==> Creating gzip initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 3.9.3-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: bfa
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successfulFirst search result: https://bbs.archlinux.org/viewtopic.php?id=139370
Please make some effort yourself... -
[solved] gconfpkg: command not found
From my pacman output:
(11/14) upgrading fusion-icon
==> Updating icon-cache.....
/tmp/alpm_Napi2c/.INSTALL: line 32: gconfpkg: command not found
error: command failed to execute correctly
I reinstalled gconf and re-updated fusion-icon, the installation completed succesfully.
This has happened before, should I be worried?
p.s. these errors are not logged in pacman.log!
Last edited by stefanwilkens (2009-12-03 13:35:44)problem solved, the location of gconfpkg wasn't in PATH
locate gconfpkg
/usr/sbin/gconfpkg
I added /usr/sbin to the PATH definition in /etc/profile. Rebooted and all was working as it should -
Remote procedure call failed and did not execute response after changing contents
Hey Hey!
I have reviewed the other posts related to this issue but have not found a solution.
I have done myself quite a mischief and hope someone here can help me out!
I'm running an old ACER laptop with Windows 7. This PC belonged to an old colleague and therefore all of the folders and user names were still under his name, so I decided to try to change them all to my name. The main issue was the USER folder which had
the locked symbol next to it but it wasn't locked at all. I googled how to delete this folder and one bright spark suggested I create a new folder with my name, copy all of the folders from the other 'locked' user's folder into my folder, and then delete the
old user's folder.
That was fine. All seemed well. When I tried to delete the old folder the computer sat around thinking saying it was 'moving' but not doing anything. So, I cancelled the operation in the Task Manager. When I attempted to open any folder from the start menu
or desktop or task bar I was presented with a bunch of numbers and letters and the message "REMOTE PROCEDURE CALL FAILED AND DID NOT EXECUTE."
I quickly googled the message realising I'd made a major error and the first response was to type in services.msc or something to that effect, so I typed that into the Start Menu search bar and hit enter and nothing came up. So, I tried again, but now I
couldn't type anything into the search bar, I could not even select any programs from the Start Menu.
So, I can't access the Start Menu, search bar, or any of the folders unless I open uTorrent, select open containing folder, and from there I can access what I need.
I'm too afraid to reboot the PC. I can't locate my copy of Windows 7 anywhere. I'm freaking out!!
Before I pour my lowly student wage into getting a professional to fix it, could someone please offer some suggestions??
Greatly appreciated in advance.
Paris, Texas.Hi,
Based on your description, for this question is more related to NetQueryDisplayInformation() API, in order to get better help, we may ask for suggestions in the following MSDN forum.
MSDN Forum
https://social.msdn.microsoft.com/Forums/en-US/home
Besides, we can try to use a script to get all domain users. Regarding this point, the following script can be referred to as reference.
How to list all active directory users in a particular domain using PowerShell
https://gallery.technet.microsoft.com/office/How-to-list-all-active-0d9be7ce
In addition, for scripts, we can also ask for help in the following forum.
The Official Scripting Guys Forum
https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
Best regards
Frank Shen
Maybe you are looking for
-
My phone is so slow won't download any apps and data is not working correctly
I have the moto e with straight talk
-
How to get the Purchase order Qty in the object dependency
Hi, We are using variant pricing in the purchase order. I have condition type say u201CZVBPu201D for Pallet cost. I defined Pallet cost as 5 USD per each (pallet). I have to calculate Number of pallets = Purchase order Qty/ 5. The number of pallets s
-
Iphone will not recognize hp laserjet 3055 HELP!
im trying to connect my iphone to my printer but it wont work! I tried to manually add it but i dont have an email adress for my printer, and it wont get detected on the local network. does anyone have a solution for this?
-
Hi, I want to implement OSS note 402917. When I download the note it is in grey color which means it cannot be implemented. It was released to customer recently. Please guide me to implement this note. (I am planning to implement this note due to the
-
Which is better? Code comparsion of performance and style
Recently I run into a discussion over a small piece of code. Could help me which is better, either in performance or coding style? The code is not complete, the question is the use of local cancellationNumber variable. public String cancelAction(/**/