[SOLVED] Parsing simple config files in pure bash

Hi everyone,
I'd like to implement a bash function to parse a simple config file for a script I've wrote. The conifg file contains different sections for different scenarios. Here's an example how it should look like:
# configuration file
# global settings
global {
DATE_PREFIX="-I"
SSHFS_OPTS="-C"
EXT_FULL="full"
EXT_DIFF="diff"
EXT_CATALOGUE="catalogue"
DAR_OPTS="-v -m 256 -y -s 600M -D"
DAR_NOCOMPR="-Z '*.gz' -Z '*.bz2' -Z '*.zip' -Z '*.png'"
# system settings
system {
DAR_OPTS="-v -m 256 -y -s 200M -D"
It contains some settings which are global for the whole script and special settings groups which can be used to overwrite global settings.
The function to parse this config file looks as follows:
#!/bin/sh
CONFIG="/home/chi/.daruprc"
function readconf() {
match=0
while read line; do
# skip comments
[[ ${line:0:1} == "#" ]] && continue
# still no match? lets check again
if [ $match == 0 ]; then
# do we have an open tag ?
if [[ ${line:$((${#line}-1))} == "{" ]]; then
# strip "{"
group=${line:0:$((${#line}-1))}
# do we have a match ?
if [[ ${group} -eq $1 ]]; then
match=1
continue
fi
continue
fi
# found close tag but still no match - continue
elif [[ ${line:0} == "}" && $match == 0 ]]; then
continue
# found close tag after config was read - exit loop
elif [[ ${line:0} == "}" && $match == 1 ]]; then
break
# got a config line return it
else
echo $line
fi
done < "$CONFIG"
for line in $(readconf "system"); do
echo $line
done
As you can see I try to just echo the lines at the moment. And here's the problem: It seems I have some " escape issues, if I run it I get the following output:
./parseconfig.sh
DATE_PREFIX="-I"
SSHFS_OPTS="-C"
EXT_FULL="full"
EXT_DIFF="diff"
EXT_CATALOGUE="catalogue"
DAR_OPTS="-v
-m
256
-y
-s
600M
-D"
DAR_NOCOMPR="-Z
'*.gz'
-Z
'*.bz2'
-Z
'*.zip'
-Z
'*.png'"
As you can see there are way to much newlines - which leads to problems when I try to use "eval" to initialize the variables.
I am sure I am missing something simple here, however I am looking for a solution for a few days now - maybe one of the bash gurus on this board can enlighten me ;-).
Thanks in advance
PS.: I am trying to do this in pure bash because the script also needs to run on embedded machines with very low memory like my router on which I don't have sed or awk or the like. I also know that I could for example just use different config files to circumvent the whole parsing - but I am just curious if this could work the way I like ;-).
Last edited by chimeric (2007-11-04 23:20:58)

chimeric wrote:
Hi MrWeatherbee,
well yes, but I want to assign (eval) these lines to get variables out of them. Since the while loop is trapped in its' own subshell I need to return the lines into the parent one to be able to make these variables "visible" in the script itself.
Right. But I was trying to show you that the way you were going about it wouldn't work at a very fundamental level.
Without changing too much code just for a quick and dirty demo,
change:
# got a config line return it
else
echo $line
fi
done < "$CONFIG"
# got a config line return it
else
line_array=( "${line_array[@]}" "$line" )
fi
done < "$CONFIG"
numarrayelements=${#line_array[@]}
and then in the main program code, do this:
readconf "system"
for index in $( seq $numarrayelements ); do
line=${line_array[(($index-1))]}
echo $line
done
Using an array to collect the good lines from the function allows you to reuse them later for whatever purpose. Although other ways exist, you certainly don't want to do what you originally did.
Edit:
I posted the code with an incorrectly referenced variable and had to fix it.
Last edited by MrWeatherbee (2007-11-04 22:46:34)

Similar Messages

  • [SOLVED] Only local config files for common shells?

    Just to understand matter a little better: As far is I've learned, common shells like fish or zsh only look in local directories for configuration files (like ~/.config/fish/config.fish or ~/.zshrc) but wouldn't this be extremly uncomfortable to lose all custumizations when running sudo su?  Or is it generally depreciated to use su and one should try to get everywhere using sudo only?  Vim, for example, also looks in /etc for a global vimrc.
    Thanks for some clarification!
    Last edited by ysetdng (2014-07-12 22:47:06)

    Thanks a lot for the inputs!  Now I've got some context.
    ConnorBehan wrote:Are you sure they only look in local config files?
    I'm unsure now, the man pages say that zsh indeed also parses /etc/zshrc, I only checked the Arch Wike page before and there it doesn't mention this.
    Last edited by ysetdng (2014-07-12 22:46:36)

  • [Solved] void privoxy config file

    Hi,
    is the new privoxy package provided with no config file?
    i'm currently using 3.0.12
    regards
    Answer: no
    Last edited by pepeapepepe (2010-01-15 18:17:41)

    I love it when people answer their own questions... In this case you probably would have been better off checking before posting though.

  • [SOLVED] Reinstallation: Blank config files?

    OK, so I managed to hose my first Arch install (forgot to rehash the passwords after switching to sha512. D'oh!) so I decided to reinstall - probably not the easiest way to do it, I know, but I'm trying to learn Arch, so I thought I'd give it a try.
    As far as I am aware, I am not doing anything different, but every time I get to the system configuration section, every single configuration file is blank.  I have tried nuking the partition I'm installing Arch to (at the moment, I'm dual booting with Ubuntu) and rebuilding the Grub2 configuration from Ubuntu, in case there's any residual information that the Arch installer is picking up on and I have burned a new CD and tried installing from that, in case there's a problem with the CD.  The only clue I have - if, indeed, it is a clue to this problem and not something entirely different - is an error message I have never seen before in the boot process, right below the IsoLinux copyright message and just before the Arch boot screen comes up
    "Unknown keyword in configuration file: IAPPEND"
    which, unsurprisingly as it's an unknown keyword, provides no useful hits on Google.
    Any ideas?  What am I doing wrong?
    Many thanks,
    David Shaw
    Last edited by dtmc (2011-05-06 22:44:20)

    I'd just like to thank everyone for not helping me with this.
    No.  Seriously.
    By *not* helping me, you've forced me to actually use my brain and, in the process, I've learned more than I would have done with your help, which is the whole point of this exercise for me.  So, yeah, thank you all  :-)
    The problem?  Oh, yeah.  Three files in /boot - System.map26, vmlinuz26 and grub/menu.lst which, if I'd actually been paying attention, the install process was actually *telling me* were causing problems with the install.  I renamed them and the install went fine.
    Now I've just got to sort out the sha512 hashes on the passwords (and do it right, this time) and get the wireless working.  And everything else  :-)
    So, once again, thank you,
    David Shaw

  • Simple xml config file

    I have created a simple config file using something like:
          XMLEncoder e = new XMLEncoder(
                                      new BufferedOutputStream(
                                          new FileOutputStream("Config.xml")));
          e.writeObject(base.toString());
          e.writeObject(numberFrom);
          e.writeObject(numberTo);
          e.writeObject(numberPad);
          e.writeObject(maxTasks);
          e.writeObject(maxSubTasks);
          e.writeObject(textFrom);
          e.writeObject(textTo);
          e.close();which produces a file like:
    <?xml version="1.0" encoding="UTF-8"?>
    <java version="1.4.2_05" class="java.beans.XMLDecoder">
    <string>C:\</string>
    <int>1</int>
    <int>20</int>
    <int>2</int>
    <int>0</int>
    <int>1</int>
    <string>a</string>
    <string>z</string>
    </java> I want to make it a bit more version proof so need to get something more like:
    <?xml version="1.0" encoding="UTF-8"?>
    <program name=myprog>
    <dir>C:\</dir>
    <version>1</version>
    <myval1>20</myval1>
    <myval2>2</myval2>
    </program>There's probably loads of errors in that bit;) but you get the idea. I'm a bit new to xml programming.
    Can anyone give me any urls of help or examples that might do this?
    Thanks,
    David.

    You could use a binding api such as JAXB or xmlbeans. In essence these apis abstract the xml as pure java objects. Alternatively you could use an xml parser such as dom4j and build the XML 'by hand'. This class will create an example config file and write it to the file system
    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileWriter;
    import java.io.IOException;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.apache.xml.serialize.OutputFormat;
    import org.apache.xml.serialize.XMLSerializer;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Text;
    * Class to create a simple xml config file using W3C api
    * @author wollnyj
    public class CreateConfig {
         * create the config file
         *?xml version="1.0" encoding="UTF-8"?>
         *<program name=myprog>
         *    <dir>C:\</dir>
         *    <version>1</version>
         *    <myval1>20</myval1>
         *    <myval2>2</myval2>
         *</program>
         * @param configFile
         * @throws ParserConfigurationException
         * @throws IOException
        public CreateConfig(String configFile) throws ParserConfigurationException, IOException {
            //Document doc = parseXml(configFile);
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            Document doc = factory.newDocumentBuilder().newDocument();
            Element program = doc.createElement("program");
            program.setAttribute("name","myprog");
            Element dir = createEle("dir","c:\\",doc);
            Element version = createEle("version","1",doc);
            Element val1 = createEle("myval1","20",doc);
            // etc...
            program.appendChild(dir);
            program.appendChild(version);
            program.appendChild(val1);
            doc.appendChild(program);
            write(doc,new File(configFile));
         * @param args
         * @throws Exception
        public static void main(String[]args) throws Exception {
            CreateConfig create = new CreateConfig("F:\\config.xml");
         * Write an xml document to the file system
         * @param document The document to be written
         * @param xmlFile The output file
         * @throws IOException The file does not exist or could not be created
        private void write(Document document, File xmlFile) throws IOException {
            OutputFormat format = new OutputFormat(document);
            format.setIndent(4);
            format.setLineSeparator(System.getProperty("line.separator"));
            format.setLineWidth(80);
            FileWriter writer = new FileWriter(xmlFile);
            XMLSerializer fileSerial = new XMLSerializer(new BufferedWriter(writer), format);
            fileSerial.asDOMSerializer();
            fileSerial.serialize(document);
        private Element createEle(String name, String value, Document doc) {
            Element ele = doc.createElement(name);
            Text textNode = doc.createTextNode(value);
            ele.appendChild(textNode);
            return ele;
    }

  • Nbd config file

    hi,
    I'm kind of stuck with the nbd config file, it just doesn't work correctly.  It currently looks like this:
    $ cat /etc/nbd-server/config
    [generic]
    [nbdexport]
    exportname = /nbdfile
    port = 1234
    starting nbd via /etc/rc.d/nbd works fine, however, the expected export is not running. Instead I get:
    $ netstat -tulpen
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
    tcp 0 0 0.0.0.0:10809 0.0.0.0:* LISTEN 0 8746628 29192/nbd-server
    As you can see, nbd is running on port 10809 instead of 1234 and connecting doesn't work either:
    $ nbd-client localhost 10809 /dev/nbd0
    Negotiation: .Error: Not enough cliserv_magic
    Exiting.
    If I start nbd-server manually, everything works as expected.
    nbd-server -C " " 1234 /nbdfile
    I add a non-existent config file (-C) because otherwise nbd parses the config file as well.
    What am I missing here? Is this a bug? I tried a lot of different options in the config but it simply never works as expected.

    Does anybody figure out how to specify the port?
    I have a weird behavior with `nbd-server` (3.10). If I specify the port, it still listens to a bunch of other ports. Only listening to the default port work for some reason.
    ~ sudo nbd-server localhost:9000 /dev/sdc
    ** (process:3121): WARNING **: Specifying an export on the command line is deprecated.
    ** (process:3121): WARNING **: Please use a configuration file instead.
    Below you can see that it listens to a bunch of other ports, including the default one.
    ~ sudo netstat -tlnp
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 0.0.0.0:55055 0.0.0.0:* LISTEN 3122/nbd-server
    tcp 0 0 0.0.0.0:10809 0.0.0.0:* LISTEN 3122/nbd-server
    tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 3122/nbd-server
    tcp6 0 0 :::51489 :::* LISTEN 3122/nbd-server
    tcp6 0 0 ::1:9000 :::* LISTEN 3122/nbd-server
    My config file is simple:
    [generic]
    user = nbd
    group = nbd
    [otherexport]
    exportname = /dev/sdc
    #port = 9000
    Of course, it prints a warning that specifying an export on the command line is deprecated. But without `/dev/sdc` argument it will ignore the port completely and listen to the default port.
    ~ sudo nbd-server localhost:9000
    ~ sudo netstat -tlnp
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 0.0.0.0:10809 0.0.0.0:* LISTEN 3171/nbd-server
    Running it without any arguments does work. It starts without warnings and it listens to only one port, as you can see below. Unfortunately that's not the port I want it to listen to:
    ~ sudo nbd-server
    ~ sudo netstat -tlnp
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 0.0.0.0:10809 0.0.0.0:* LISTEN 3222/nbd-server
    Switching to oldstyle protocol does not work:
    ~ sudo nbd-server
    ** Message: Since 3.10, the oldstyle protocol is no longer supported. Please migrate to the newstyle protocol.
    ** Message: Exiting.
    the config for the command above ^ was
    [generic]
    oldstyle=true
    user = nbd
    group = nbd
    [otherexport]
    exportname = /dev/sdc
    port = 9000

  • [SOLVED] How to create array in bash from some lines in config file

    I have config file for small script and it looks like this:
    local_directory="$HOME/etc"
    excluded_directory="$HOME/etc1"
    excluded_directory2="$HOME/etc2"
    excluded_directory3="$HOME/etc3"
    I would like to place all "excluded_directoryXX" config options into array that can be parsed to program. This way i have to hardcode it and it is not practical at all.
    Can somebody help me out?
    Last edited by kuraku (2013-09-24 20:45:42)

    @jasonwryan
    Thank you, i was not aware of that builtin. At first i wanted to use this in combination with "grep --after-context=XX" and then i realized that i can use it this way:
    mapfile -s XX -t configs </etc; echo "${configs[@]}"
    Thank you very much.

  • Using Bash script to edit config file

    This is a really simple question, but given that I'm just learning Bash scripting and having this solved now would be really illustrative for me, I would really thank some help here.
    I'm using uzbl, and running Tor+Polipo. So, as you will see below in the tail of the config file, there is a line to redirect the requests of uzbl through Polipo.
    # === Post-load misc commands ================================================
    sync_spawn_exec @scripts_dir/load_cookies.sh
    sync_spawn_exec @scripts_dir/load_cookies.sh @data_home/uzbl/session-cookies.txt
    # Set the "home" page.
    #set uri = https://duckduckgo.com
    # Local polipo proxy
    set proxy_url = http://127.0.0.1:8123
    # vim: set fdm=syntax:
    What I want to accomplish is to comment in/out that line with a key shortcut on Awesome. I've thought of doing 2 scripts to do so and using 2 differente key shortcuts, but I want to "toggle" the proxy redirection with only 1 shortcut. To do so, I suppose that the script should go something like:
    if
    tool 'set proxy_url = http://127.0.0.1:8123' config_file
    then
    tool '#set proxy_url = http://127.0.0.1:8123' config_file
    else
    if
    tool '#set proxy_url = http://127.0.0.1:8123' config_file
    then
    tool 'set proxy_url = http://127.0.0.1:8123' config_file
    fi
    fi
    I know little about sed, but I think is the tool for this job. The most intriging part to me is to ask sed to print the regular expression when it finds it in the config file, and use that as an input in the conditional statement.
    Well, this is a mess I have done here. Hope there is a simple answer to this.
    Thanks in advance.-

    You can do this with a single sed command:
    sed -i 's/^#set proxy_url/set proxy_url/;
    t end;
    s/^set proxy_url/#set proxy_url/;
    : end' config_file
    This edits the file in-place (-i) and first tries to replace the commented with the uncommented line. If that suceeds, sed jumps to the "end" label. If not, it tries to replace the uncommented with the commented line. Thus you don't have to include any logic about the current state: if the first substitution succeeds, the line was obviously commented, if not, it was uncommented, and the second substitution should succeed.
    Note that my knowledge of sed is very limited. There might be a simpler way to do this.
    EDIT: For the sake of example, here's how to do the same in bash using regular expressions. Note how this script needs to use a temporary file to simulate in-place editing, how it needs to process the file line by line manually, etc. All things that sed does out of the box...
    #!/bin/bash
    tmp=test.conf.tmp
    echo -n "" > "$tmp"
    while read line; do
    if [[ "$line" =~ ^#set\ proxy ]]; then
    echo "${line/\#/}" >> "$tmp"
    elif [[ "$line" =~ ^set\ proxy ]]; then
    echo "#$line" >> "$tmp"
    else
    echo "$line" >> "$tmp"
    fi
    done < test.conf
    mv test.conf.tmp test.conf
    To answer your original question, the line
    if [[ "$line" =~ ^#set\ proxy ]]; then
    reads: if the line begins with a "#", followed by "set proxy", then...
    Last edited by hbekel (2011-03-20 10:40:16)

  • [SOLVED] Resetting config files from a package

    Suppose I modify a file called /etc/examplefile.conf from a package example-package.
    What is the easiest / most elegant way to reset this file? Reset = restore the file to its original, removing my modifications.
    This[1] topic discusses this, but it is two years old. I would say the "best" solution there was the one suggested in #7:
    you could move the config file first then reinstall.
    But I'm not sure if this is safe. For a dummy example, removing /etc/pacman.conf then reinstalling pacman wouldn't probably be a good idea (I suspect this wouldn't work).
    OBS.: Getting the original file from the package from the cache is an obvious solution, but I'm searching for a simpler (more direct) way to do this (a bash/zsh one-liner would be sufficient, for example).
    [1]: https://bbs.archlinux.org/viewtopic.php?id=137526
    Last edited by thiagowfx (2014-04-26 21:49:20)

    FYI, pkg_scripts are available both in the AUR https://aur.archlinux.org/packages/pkg_scripts/ and in Xyne's repo: https://wiki.archlinux.org/index.php/Un … #xyne-i686 or https://wiki.archlinux.org/index.php/Un … #xyne-i686

  • Wireless: wpa_supplicant failed to open config file [SOLVED]

    Hi,
    I'm having trouble configuring my wireless network. At the moment I'm following the guide from the wiki, I can scan for networks but when i try to connect with wpa_supplicant I get following error:
    Successfully initialized wpa_supplicant
    Failed to open config file '/dev/fd/63', error: No such file or directory
    Failed to read or parse configuration '/dev/fd/63'.
    So far I've tried to google the problem, but haven't found a solution that works. I hope you can point me in the right direction.
    Additional info:
    'ip link' provide following output:
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: wwp0s29u1u4i6: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 02:80:37:ec:02:00 brd ff:ff:ff:ff:ff:ff
    3: wlp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:24:d7:af:98:dc brd ff:ff:ff:ff:ff:ff
    4: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether f0:de:f1:53:66:eb brd ff:ff:ff:ff:ff:ff
    And lspci:
    lspci -k | grep Network
    00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
    03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35)
    And dmesg:
    dmesg | grep firmware
    [ 2.379351] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-6000-6.ucode failed with error -2
    [ 2.379368] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-6000-5.ucode failed with error -2
    [ 2.382114] iwlwifi 0000:03:00.0: loaded firmware version 9.221.4.1 build 25532 op_mode iwldvm
    [ 8.560626] psmouse serio2: trackpoint: IBM TrackPoint firmware: 0x0e, buttons: 3/3
    I guess it have something to do with the firmware, but I'm not sure, as when I googled the problem I stumbled upon a site stating that the wireless card should be supported by the kernel.
    Last edited by cube2 (2015-01-07 14:00:34)

    Yes it is on the same line as this:
    sudo wpa_supplicant -D nl80211,wext -i wlp3s0 -c <(wpa_passphrase "SSID" "key")
    systemtcl list-units
    systemctl list-units
    UNIT LOAD ACTIVE SUB DESCRIPTION
    proc-sys-fs-binfmt_misc.automount loaded active waiting Arbitrary Executable File Formats File System Automount Point
    sys-devices-pci0000:00-0000:00:01.0-0000:01:00.0-backlight-acpi_video1.device loaded active plugged /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/backlight/acpi_video1
    sys-devices-pci0000:00-0000:00:01.0-0000:01:00.0-drm-card0-card0\x2dLVDS\x2d1-nv_backlight.device loaded active plugged /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0/card0-LVDS-1/nv_backlight
    sys-devices-pci0000:00-0000:00:02.0-backlight-acpi_video0.device loaded active plugged /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0
    sys-devices-pci0000:00-0000:00:02.0-drm-card1-card1\x2dLVDS\x2d2-intel_backlight.device loaded active plugged /sys/devices/pci0000:00/0000:00:02.0/drm/card1/card1-LVDS-2/intel_backlight
    sys-devices-pci0000:00-0000:00:16.3-tty-ttyS0.device loaded active plugged 6 Series/C200 Series Chipset Family KT Controller
    sys-devices-pci0000:00-0000:00:19.0-net-enp0s25.device loaded active plugged 82579LM Gigabit Network Connection
    sys-devices-pci0000:00-0000:00:1a.0-usb3-3\x2d1-3\x2d1.4-3\x2d1.4:1.0-bluetooth-hci0-rfkill2.device loaded active plugged /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.4/3-1.4:1.0/bluetooth/hci0/rfkill2
    sys-devices-pci0000:00-0000:00:1a.0-usb3-3\x2d1-3\x2d1.4-3\x2d1.4:1.0-bluetooth-hci0.device loaded active plugged /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.4/3-1.4:1.0/bluetooth/hci0
    sys-devices-pci0000:00-0000:00:1b.0-sound-card0.device loaded active plugged 6 Series/C200 Series Chipset Family High Definition Audio Controller
    sys-devices-pci0000:00-0000:00:1c.1-0000:03:00.0-ieee80211-phy0-rfkill3.device loaded active plugged /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill3
    sys-devices-pci0000:00-0000:00:1c.1-0000:03:00.0-net-wlp3s0.device loaded active plugged Centrino Ultimate-N 6300 (3x3 AGN)
    sys-devices-pci0000:00-0000:00:1d.0-usb4-4\x2d1-4\x2d1.4-4\x2d1.4:1.1-tty-ttyACM0.device loaded active plugged F5521gw
    sys-devices-pci0000:00-0000:00:1d.0-usb4-4\x2d1-4\x2d1.4-4\x2d1.4:1.3-tty-ttyACM1.device loaded active plugged F5521gw
    sys-devices-pci0000:00-0000:00:1d.0-usb4-4\x2d1-4\x2d1.4-4\x2d1.4:1.6-net-wwp0s29u1u4i6.device loaded active plugged F5521gw
    sys-devices-pci0000:00-0000:00:1d.0-usb4-4\x2d1-4\x2d1.4-4\x2d1.4:1.9-tty-ttyACM2.device loaded active plugged F5521gw
    sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda1.device loaded active plugged INTEL_SSDSA2M160G2LE 1
    sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda2.device loaded active plugged INTEL_SSDSA2M160G2LE 2
    sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda.device loaded active plugged INTEL_SSDSA2M160G2LE
    sys-devices-pci0000:00-0000:00:1f.2-ata2-host1-target1:0:0-1:0:0:0-block-sr0.device loaded active plugged MATSHITADVD-RAM_UJ8A2
    sys-devices-platform-serial8250-tty-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
    sys-devices-platform-serial8250-tty-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
    sys-devices-platform-serial8250-tty-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
    sys-devices-platform-thinkpad_acpi-rfkill-rfkill0.device loaded active plugged /sys/devices/platform/thinkpad_acpi/rfkill/rfkill0
    sys-devices-platform-thinkpad_acpi-rfkill-rfkill1.device loaded active plugged /sys/devices/platform/thinkpad_acpi/rfkill/rfkill1
    sys-devices-platform-thinkpad_acpi-sound-card29.device loaded active plugged /sys/devices/platform/thinkpad_acpi/sound/card29
    sys-module-configfs.device loaded active plugged /sys/module/configfs
    sys-subsystem-bluetooth-devices-hci0.device loaded active plugged /sys/subsystem/bluetooth/devices/hci0
    sys-subsystem-net-devices-enp0s25.device loaded active plugged 82579LM Gigabit Network Connection
    sys-subsystem-net-devices-wlp3s0.device loaded active plugged Centrino Ultimate-N 6300 (3x3 AGN)
    sys-subsystem-net-devices-wwp0s29u1u4i6.device loaded active plugged F5521gw
    -.mount loaded active mounted /
    dev-hugepages.mount loaded active mounted Huge Pages File System
    dev-mqueue.mount loaded active mounted POSIX Message Queue File System
    home.mount loaded active mounted /home
    run-user-1000.mount loaded active mounted /run/user/1000
    sys-kernel-config.mount loaded active mounted Configuration File System
    sys-kernel-debug.mount loaded active mounted Debug File System
    tmp.mount loaded active mounted Temporary Directory
    systemd-ask-password-console.path loaded active waiting Dispatch Password Requests to Console Directory Watch
    systemd-ask-password-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
    session-c1.scope loaded active running Session c1 of user jakob
    dbus.service loaded active running D-Bus System Message Bus
    [email protected] loaded active running dhcpcd on enp0s25
    [email protected] loaded active running Getty on tty1
    kmod-static-nodes.service loaded active exited Create list of required static device nodes for the current kernel
    systemd-backlight@backlight:acpi_video0.service loaded active exited Load/Save Screen Backlight Brightness of backlight:acpi_video0
    systemd-backlight@backlight:acpi_video1.service loaded active exited Load/Save Screen Backlight Brightness of backlight:acpi_video1
    systemd-backlight@backlight:intel_backlight.service loaded active exited Load/Save Screen Backlight Brightness of backlight:intel_backlight
    systemd-backlight@backlight:nv_backlight.service loaded active exited Load/Save Screen Backlight Brightness of backlight:nv_backlight
    systemd-fsck@dev-disk-by\x2duuid-69c2b129\x2dd95a\x2d48f7\x2d84de\x2d058ba5f97b42.service loaded active exited File System Check on /dev/disk/by-uuid/69c2b129-d95a-48f7-84de-058ba5f97b42
    systemd-journal-flush.service loaded active exited Trigger Flushing of Journal to Persistent Storage
    systemd-journald.service loaded active running Journal Service
    systemd-logind.service loaded active running Login Service
    systemd-random-seed.service loaded active exited Load/Save Random Seed
    systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
    [email protected] loaded active exited Load/Save RF Kill Switch Status of rfkill0
    [email protected] loaded active exited Load/Save RF Kill Switch Status of rfkill1
    [email protected] loaded active exited Load/Save RF Kill Switch Status of rfkill2
    [email protected] loaded active exited Load/Save RF Kill Switch Status of rfkill3
    systemd-sysctl.service loaded active exited Apply Kernel Variables
    systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev
    systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories
    systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
    systemd-udevd.service loaded active running udev Kernel Device Manager
    pstree
    systemd─┬─chromium─┬─chrome-sandbox───chromium─┬─chrome-sandbox───nacl_helper
    │ │ └─chromium─┬─chromium─┬─2*[{Blink GC Sweepe}]
    │ │ │ ├─2*[{Blink Heap Mark}]
    │ │ │ ├─{Chrome_ChildIOT}
    │ │ │ ├─{Compositor}
    │ │ │ ├─{HTMLParserThrea}
    │ │ │ ├─{OptimizingCompi}
    │ │ │ ├─{WorkerPool/662}
    │ │ │ └─{WorkerPool/663}
    │ │ ├─chromium─┬─2*[{Blink GC Sweepe}]
    │ │ │ ├─2*[{Blink Heap Mark}]
    │ │ │ ├─{Chrome_ChildIOT}
    │ │ │ ├─{Compositor}
    │ │ │ ├─{HTMLParserThrea}
    │ │ │ └─{OptimizingCompi}
    │ │ ├─12*[chromium─┬─2*[{Blink GC Sweepe}]]
    │ │ │ ├─2*[{Blink Heap Mark}]]
    │ │ │ ├─{Chrome_ChildIOT}]
    │ │ │ ├─{CompositorRaste}]
    │ │ │ ├─{Compositor}]
    │ │ │ ├─{HTMLParserThrea}]
    │ │ │ └─{OptimizingCompi}]
    │ │ ├─chromium─┬─2*[{Blink GC Sweepe}]
    │ │ │ ├─2*[{Blink Heap Mark}]
    │ │ │ ├─{Chrome_ChildIOT}
    │ │ │ ├─{CompositorRaste}
    │ │ │ ├─{Compositor}
    │ │ │ ├─{HTMLParserThrea}
    │ │ │ ├─{OptimizingCompi}
    │ │ │ ├─{WorkerPool/155}
    │ │ │ └─{WorkerPool/156}
    │ │ ├─chromium─┬─2*[{Blink GC Sweepe}]
    │ │ │ ├─2*[{Blink Heap Mark}]
    │ │ │ ├─{Chrome_ChildIOT}
    │ │ │ ├─{CompositorRaste}
    │ │ │ ├─{Compositor}
    │ │ │ ├─{HTMLParserThrea}
    │ │ │ ├─{OptimizingCompi}
    │ │ │ ├─{WorkerPool/666}
    │ │ │ └─{WorkerPool/667}
    │ │ └─chromium─┬─{AudioOutputDevi}
    │ │ ├─2*[{Blink GC Sweepe}]
    │ │ ├─2*[{Blink Heap Mark}]
    │ │ ├─{Chrome_ChildIOT}
    │ │ ├─{CompositorRaste}
    │ │ ├─{Compositor}
    │ │ ├─{FFmpegDemuxer}
    │ │ ├─{HTMLParserThrea}
    │ │ ├─{Media}
    │ │ ├─{OptimizingCompi}
    │ │ ├─{WorkerPool/688}
    │ │ └─{WorkerPool/693}
    │ ├─chromium─┬─chromium
    │ │ ├─{Chrome_ChildIOT}
    │ │ └─{Watchdog}
    │ ├─{AudioThread}
    │ ├─{Blink GC Sweepe}
    │ ├─2*[{Blink Heap Mark}]
    │ ├─3*[{BrowserBlocking}]
    │ ├─{BrowserWatchdog}
    │ ├─3*[{CachePoolWorker}]
    │ ├─{Chrome_CacheThr}
    │ ├─{Chrome_DBThread}
    │ ├─{Chrome_FileThre}
    │ ├─{Chrome_FileUser}
    │ ├─{Chrome_HistoryT}
    │ ├─{Chrome_IOThread}
    │ ├─{Chrome_ProcessL}
    │ ├─{Chrome_SafeBrow}
    │ ├─{Chrome_SyncThre}
    │ ├─{CrShutdownDetec}
    │ ├─{IndexedDB}
    │ ├─{LevelDBEnv.IDB}
    │ ├─{LevelDBEnv}
    │ ├─{NSS SSL ThreadW}
    │ ├─{NetworkChangeNo}
    │ ├─{OptimizingCompi}
    │ ├─2*[{Proxy resolver}]
    │ ├─{WorkerPool/1890}
    │ ├─{WorkerPool/1936}
    │ ├─{chromium}
    │ ├─{extension_crash}
    │ ├─{gpu-process_cra}
    │ ├─{handle-watcher-}
    │ ├─{inotify_reader}
    │ ├─{renderer_crash_}
    │ └─{sandbox_ipc_thr}
    ├─2*[dbus-daemon]
    ├─dbus-launch
    ├─dhcpcd
    ├─login───startx───xinit─┬─Xorg.bin─┬─xf86-video-inte
    │ │ └─{Xorg.bin}
    │ └─awesome───{gmain}
    ├─systemd───(sd-pam)
    ├─systemd-journal
    ├─systemd-logind
    ├─systemd-udevd
    ├─xterm───bash───pstree
    └─xterm───bash

  • [SOLVED]Shutdown fails, probably because of some config file I changed

    Right, i can't shutdown or reboot properly (pm-util's suspend works).
    When I try, all (or most, I can't tell) of the deamons are closed properly, but then something attempts to do something with slimlock. It loops so fast I cant' really read the error
    message, but I don't think slimlock is even suposed to be accessed at that point.
    Deleting slimlock doesn't help, it just gives a "couldn't find command slimlock" (or something similar) error instead.
    I have some vague idea that I'm to blame this, because I seem to remember messing around with the shutdown process, trying to get it to call slimlock before anything else.
    The thing is; I don't remember.
    From now on I'll keep some file with a log of changes I make to scripts and config files, to make this easier, but this time I really need help finding out what the heck I've done : )
    Last edited by Bladtman242 (2012-03-10 01:48:46)

    I've commented the bash scripts out, and the problem persists.
    So I figured I could "limit" the search to
    find / -mtime -14 -and -size -2M -exec grep -lisE ".*slimlock.* {} \;"
    It turned out to be a "sleep" script in /bin.
    I still have no idea why that was called, but I'm marking the thread as solved
    Thanks for your efforts
    Last edited by Bladtman242 (2012-03-10 01:42:56)

  • [SOLVED] Pacman "config file could not be read" error during Arch ins

    I've been attempting to get Arch setup for a while now, and after having some trouble with partitions, my wireless connecting, and setting up repos and mirrors, which the Wiki helped me solve, I've hit a bigger bump.  While updating the system using pacman as the Beginners Guide says to do, I get errors when I try to continue the update process as follows :
    btw: I'm typing this on a laptop next to my computer
    [root@McArch~]# pacman -Syu
    error: config file /etc/pacman.d/core could not be read
    error: config file /etc/pacman.d/extra could not be read
    error: config file /etc/pacman.d/community could not be read
    :: Synchronizing package databases . . .
    error: failed to updated core (unexpected error)
    error: failed to updated extra (unexpected error)
    error: failed to updated community (unexpected error)
    error: failed to synchronize any databases
    Any tips as to whats going on?  I've tried to created said files, and even insert mirrors into the file, like in the /etc/pacman.d/mirrorlist file but this doesn't seem to help
    Last edited by Windfinder (2008-09-29 20:43:29)

    Glad you got it working.
    I'm not sure what happened in your install but I just finished using an old 2007.08 iso and pacman first starts out with /etc/pacman.d/core, etc/pacman.d/extra, /etc/pacman.d/community ... etc., but I never had your problem when I did the #pacman -Syu after initial install reboot.  The pacman update removes the above mentioned repos and replaces them with a single /etc/pacman.d/mirrorlist.  You must have messed up an initial config file somehow as I couldn't get the same errors you got.  It looks like you had your /etc/pacman.conf file messed up somehow and when you pointed it to the mirrorlist it could finally work properly.  I'll just include my /etc/pacman.conf file and /etc/pacman.d/mirrorlist so you can compare.  NB*  these are from my x86_64 so for 32 bit machines i686 would replace x86_64 in the files.
    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir = /
    #DBPath = /var/lib/pacman/
    #CacheDir = /var/cache/pacman/pkg/
    #LogFile = /var/log/pacman.log
    HoldPkg = pacman glibc
    # If upgrades are available for these packages they will be asked for first
    SyncFirst = pacman
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #XferCommand = /usr/bin/curl %u > %o
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options (all disabled by default)
    #NoPassiveFtp
    #UseSyslog
    #ShowSize
    #UseDelta
    #TotalDownload
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    # - URLs will have $repo replaced by the name of the current repo
    # Repository entries are of the format:
    # [repo-name]
    # Server = ServerName
    # Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # Testing is disabled by default. To enable, uncomment the following
    # two lines. You can add preferred servers immediately after the header,
    # and they will be used before the default mirrors.
    #[testing]
    #Include = /etc/pacman.d/mirrorlist
    [core]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [extra]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [community]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    /etc/pacman.d/mirrorlist
    # Arch Linux repository mirrorlist
    # North America
    # - United States
    Server = http://mirror.neotuli.net/arch/$repo/os/x86_64
    Server = http://holmes.umflint.edu/archlinux/$repo/os/x86_64
    Server = http://archlinux.unixheads.org/$repo/os/x86_64
    Server = ftp://ftp.archlinux.org/$repo/os/x86_64
    Server = ftp://locke.suu.edu/linux/dist/archlinux/$repo/os/x86_64
    Server = ftp://ftp.gtlib.gatech.edu/pub/linux/distributions/archlinux/$repo/os/x86_64
    Server = ftp://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/x86_64
    Server = http://mirrors.easynews.com/linux/archlinux/$repo/os/x86_64
    Server = ftp://ftp.ibiblio.org/pub/linux/distributions/archlinux/$repo/os/x86_64
    Server = http://mirror.rit.edu/archlinux/$repo/os/x86_64
    Server = http://mirror.umoss.org/archlinux/$repo/os/x86_64
    # - Canada
    Server = ftp://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/@carch
    Well it was an interesting way to kill 30+ minutes.

  • XBMC-standalone config files location [solved]

    My HTPC seems to have corrupted one of the XBMC config files (probably the library) and now it doesn't seem to be able to add any videos (even with .nfo files) to the library (and it has lost quite a lot of videos that were already there).
    I've looked everywhere to try and delete the config files however I can't seem to find where they are when XBMC is started using systemctl (I thought I'd struck gold with "/usr/share/xbmc/system/" however deleting them didn't help).
    So far I've tried removing and re-installing XBMC and deleting /usr/share/xbmc/system (which is removed when uninstalling XBMC) and it doesn't seem to have reset configuration is there anywhere else I should look?
    Thanks for the help.
    Last edited by Aradreth (2013-10-19 12:32:48)

    There is no XBMC folder in any of the users under /home/ as it is run by the XBMC user created by the package. However you did make me think of looking at the .install file for where is puts the home directory for the user and the config files are in there ('/var/lib/xbmc/.xbmc/' if anyone else ever needs to find them).
    Problem solved.
    Thanks
    Last edited by Aradreth (2013-10-19 12:33:35)

  • Cannot parse *.Config file. Ensure you have configured the 'paypal' section correctly.

    I have added PayPal setting in web.config file and I can access paypay from my local. 
    I have copied that setting into web.debug.config and web.release.config but I can't access and I got the error from server.
    May I know what could be the reason?
    Cannot parse *.Config file. Ensure you have configured the 'paypal' section correctly.
    <paypal>
        <settings>
          <add name="mode" value="sandbox" />
          <add name="connectionTimeout" value="360000" />
          <add name="requestRetries" value="1" />
          <add name="clientId" value="xxx" />
          <add name="clientSecret" value="ccc" />
        </settings>
      </paypal>

    You can't add arbitrary application configuration to web.config, as that is used by Web API. Instead, add a configuration setting in the "app settings" section of the Configure tab in the portal.

  • AzureDiagnostics fails after role udpate with no changes to configuration, error "Failed to parse the WAD config file"

    Windows event log shows AzureDiagnostics errors "Failed to parse the WAD config file" and warning "
    No certficate with given thumbprint found in the certificate store. Thumbprint:" and
    System.ArgumentNullException: Value cannot be null.
    Parameter name: s
       at System.IO.StringReader..ctor(String s)
       at Microsoft.Azure.Plugins.Plugin.WadConfigValidator`1.Validate(String configString, String schemaPath, StringBuilder builder)
       at Microsoft.Azure.Plugins.Plugin.WadConfigValidator`1.Initialize(String configString, String schemaPath)
       at Microsoft.Azure.Plugins.Plugin.WadParser.Parse()
    Also tried a different deployment on a different subscription, same issue, and this one gets stuck in 'create' state with no roles showing up in 'instances' section for quite some time. Are Cloud Services even maintained by Microsoft
    anymore? Seems that they are second class citizens to VMs, no updates, no new portal, no new features, often can't update single role without updating all roles, etc.

    i am facing same error : here is the log:
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Starting DiagnosticPlugin.exe DiagnosticPlugin-ShutdownEvent DiagnosticPlugin-TotalShutdownEvent -wadVer1v3
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Starting DiagnosticsPlugin
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Checking VM Type
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] File HandlerEnvironment.json not found. Extension set to PAAS
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] RcfFileName: C:\Config\881bb2e524c04870b4e993fd8fefb7d8.881bb2e524c04870b4e993fd8fefb7d8.WorkerRole1_IN_0.13.xml
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] RoleInstanceId: WorkerRole1_IN_0; DeploymentId: 881bb2e524c04870b4e993fd8fefb7d8; RoleName: WorkerRole1
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Checking VM Type
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] File HandlerEnvironment.json not found. Extension set to PAAS
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Store Size: 4096
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Reading XML configuration file
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Will use thumbprint 
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Decrypting private configuration
    DiagnosticsPlugin.exe Warning: 0 : [3/19/2015 6:00:39 PM] No certficate with given thumbprint found in the certificate store. Thumbprint:
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:00:39 PM] Retrying after 30 seconds. Retry attempt 1
    DiagnosticsPlugin.exe Warning: 0 : [3/19/2015 6:01:09 PM] No certficate with given thumbprint found in the certificate store. Thumbprint:
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:01:09 PM] Retrying after 30 seconds. Retry attempt 2
    DiagnosticsPlugin.exe Warning: 0 : [3/19/2015 6:01:39 PM] No certficate with given thumbprint found in the certificate store. Thumbprint:
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:01:39 PM] Retrying after 30 seconds. Retry attempt 3
    DiagnosticsPlugin.exe Error: 0 : [3/19/2015 6:02:09 PM] System.Security.Cryptography.CryptographicException: The enveloped-data message does not contain the specified recipient.
       at System.Security.Cryptography.Pkcs.EnvelopedCms.DecryptContent(RecipientInfoCollection recipientInfos, X509Certificate2Collection extraStore)
       at Microsoft.Azure.Plugins.Diagnostics.dll.PluginConfigurationSettingsProvider.DecryptPrivateConfig(String encryptedConfig)
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:02:09 PM] WadCfg is provided in initial configuration. Using that to initialize Diagnostics.
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:02:09 PM] <PublicConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
      <WadCfg>
        <DiagnosticMonitorConfiguration overallQuotaInMB="4096">
          <DiagnosticInfrastructureLogs />
          <Directories scheduledTransferPeriod="PT1M">
            <IISLogs containerName="wad-iis-logfiles" />
            <FailedRequestLogs containerName="wad-failedrequestlogs" />
          </Directories>
          <PerformanceCounters scheduledTransferPeriod="PT1M">
            <PerformanceCounterConfiguration counterSpecifier="\Memory\Available MBytes" sampleRate="PT3M" />
            <PerformanceCounterConfiguration counterSpecifier="\Web Service(_Total)\ISAPI Extension Requests/sec" sampleRate="PT3M" />
            <PerformanceCounterConfiguration counterSpecifier="\Web Service(_Total)\Bytes Total/Sec" sampleRate="PT3M" />
            <PerformanceCounterConfiguration counterSpecifier="\ASP.NET Applications(__Total__)\Requests/Sec" sampleRate="PT3M" />
            <PerformanceCounterConfiguration counterSpecifier="\ASP.NET Applications(__Total__)\Errors Total/Sec" sampleRate="PT3M" />
            <PerformanceCounterConfiguration counterSpecifier="\ASP.NET\Requests Queued" sampleRate="PT3M" />
            <PerformanceCounterConfiguration counterSpecifier="\ASP.NET\Requests Rejected" sampleRate="PT3M" />
            <PerformanceCounterConfiguration counterSpecifier="\Processor(_Total)\% Processor Time" sampleRate="PT3M" />
          </PerformanceCounters>
          <WindowsEventLog scheduledTransferPeriod="PT1M">
            <DataSource name="Application!*" />
            <DataSource name="System!*" />
          </WindowsEventLog>
          <CrashDumps dumpType="Full">
            <CrashDumpConfiguration processName="WaAppAgent.exe" />
            <CrashDumpConfiguration processName="WaIISHost.exe" />
            <CrashDumpConfiguration processName="WindowsAzureGuestAgent.exe" />
            <CrashDumpConfiguration processName="WaWorkerHost.exe" />
            <CrashDumpConfiguration processName="DiagnosticsAgent.exe" />
            <CrashDumpConfiguration processName="w3wp.exe" />
          </CrashDumps>
          <Logs scheduledTransferPeriod="PT1M" scheduledTransferLogLevelFilter="Verbose" />
        </DiagnosticMonitorConfiguration>
      </WadCfg>
      <StorageAccount>vinaystorageaccounttest</StorageAccount>
    </PublicConfig>
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:02:09 PM] Private setting is loaded
    DiagnosticsPlugin.exe Error: 0 : [3/19/2015 6:02:09 PM] System.ArgumentNullException: Value cannot be null.
    Parameter name: s
       at System.IO.StringReader..ctor(String s)
       at Microsoft.Azure.Plugins.Plugin.WadConfigValidator`1.Validate(String configString, String schemaPath, StringBuilder builder)
       at Microsoft.Azure.Plugins.Plugin.WadConfigValidator`1.Initialize(String configString, String schemaPath)
       at Microsoft.Azure.Plugins.Plugin.WadParser.Parse()
    DiagnosticsPlugin.exe Error: 0 : [3/19/2015 6:02:09 PM] Failed to parse the WAD config file
    DiagnosticsPlugin.exe Information: 0 : [3/19/2015 6:02:09 PM] DiagnosticPlugin.exe exit with code -106

Maybe you are looking for

  • Need to send Automatic mails when the report successful or Fail.

    Hello Experts, Created one report for reconciliation to check BW and R/3 figures. There are exceptions designed using reporting Agent settings on the same report. (When the values from R/3 to BW are matching it shows Green color and if the values are

  • Module pool using ABAP Objects

    Hi All ,      I have a requirement for creating a transaction/module pool prog using OO ABAP  .     Can you please send some sample documents to guide completely about the creation and execution of the transaction . Rewards are assured !! Regards, Ra

  • Information regrading Business Packages

    hi all I want to know more about the business packages for EP which are delivered by both SAP and Third Party.Can anyone send me link or note where i can find all the information related to these packages.

  • HOW DO I TURN OFF COMPATIBILITY MODE IN VISTA?

    Yes, I know this is more of a Vista question then an iTunes question but if anyone can solve this, I thank you forever: I got a new computer that came with Vista on it. When I loaded all of my files from my old computer to my new one, I changed the c

  • Reading variables/​parameters from stpper motor controller

    I have three Pacific Scientific stepper motors and controllers. The controllers are programmable via a proprietary version of the basic programming language, called stepperbasic. I can control the motors using labview by performing a serial write fun