Grub failing to read newest grub.conf [Solved]

I have been working on installing archlinux and xen to run a xenserver with archlinux as my dom0. The installation of the grub went fine. A potential problem was me trying to install grub to my boot partition the first time on accident. Following are the commands I used to install grub.
# grub-install /dev/sda1
As you'd expect, I was informed that installing this way was a bad idea, and that the installation would not continue. I meant to use the following command instead:
# grub-install /dev/sda
Which completed successfully.
After that, I created the grub.conf
# grub-mkconfig -o /boot/grub/grub.config
Completed successfully.
The actual output of these commands are exactly what I would have expected from them. If desired, I can post the output, but they were what would be expected form a successfully completed command.
After running through the installation and creation of the grub.conf file, I rebooted and was presented with the grub menu selection screen. While the xen entry was certainly found and put in the grub.conf (which I checked afterwords), there were only two entries: Archlinux and Archlinux booting from the backup ramfs. Thinking that this may have been the correct behavior for a server that is running a baremetal hypervisor, I choose the normal Archlinux entry and was greeted with an error screen informing me that a UUID for a partition that does not exist was not able to be found. Trying the bakup archlinux entry gave me the same result.
I am now unable to boot the system. Rebooting into live media, remounting partitions, arch-chroot into the /mnt directory, and reinstalling grub and recreating the grub.conf file has gotten me nowhere.I have several questions about this:
Is it possible that the UUIDs and grub.conf from my previous install could have been preserved somehow? The previous install used gpt partitioning while this one used mbr.
Is there something that I am missing to get grub to create the file and use it?
Do special procedures have to be followed to clear gpt formatted disks before using mbr?
Last edited by ephreal (2015-03-15 05:42:40)

Having no luck, I looked into syslinux a bit and gave it a try, and am now booting just fine. This doesn't solve the initial issue of having grub consistently show the wrong UUID, but it is a workaround.
Thank you Head_On_A_Stick for the clarification.
EDIT: The information for setting up xen with syslinux was found here and here. I'd just like to remind anyone using syslinux for the first time that the default root partition is /dev/sda3 and has to be changed in the config file. Got me 5 times in a row!
Last edited by ephreal (2015-03-15 05:52:24)

Similar Messages

  • [Solved]Grub ignores commands in /etc/xen/grub.conf

    I have the following lines in the file /etc/xen/grub.conf, however it completely ignores the changes I have made
    #XEN_HYPERVISOR_CMDLINE="dom0_mem=-4096M dom0_vcpus_pin=true iommu=1 xsave=1"
    #XEN_LINUX_CMDLINE="console=tty0"
    after running
    grub-mkconfig -o /boot/grub/grub.cfg
    and then rebooting and runnning
    sudo xl list
    I get
    Domain-0 0 7643 8 r----- 167.9
    Last edited by TheLowEndTheory (2014-04-19 08:57:49)

    Sometimes it's the simple things, I can't believe I didn't bother to check if that was a comment. I just face palmed so hard, thank you.

  • Firewire module install with rpm not updating "/etc/grub.conf" file

    Hello,
    Thank you in advance! I am trying to setup Oracle10g RAC on RedHat Enterprise Linux ES 4.0. As a part of that process, I am trying to install the shared disk (Firewire) module on the node using 'rpm' as follows:
    rpm -ivh --force oracle-firewire-modules-2.6.9.EL-1286-1.i686.rpm
    It is getting installed perfectly. However, I am expecting with "-ivc" option, it is supposed to update "/etc/grub.conf" file. But it is not updating this file. Therefore reboot could NOT load this module and can not proceed further. Any help on this is really appreciated!
    Thanks again,
    Kishore

    karol's link did the deed!  I had gone to the page that shows the most up to date mirrors and used that for the install. But when I used the link that karol gave it not only gave me the same URL as I used earlier to install, it gave me some additional suffixes that didn't appear on the page that provided the updated links. When I added /$repo/os/$arch, pacman took off and started burning rubber. So many thanks!
    Now I can go ahead and install reflector, which is the first thing I try and do when I get an Arch install up and running. Thanks again.
    After seeing karol's script in post#4, I see that the /$repo/os//4arch was showing up there also. I didn't see anything like that when I copied the link to install.
    Last edited by pottzie (2012-03-14 02:42:28)

  • Redhat 6.4 - grub.conf entry to boot Windows?

    Dear Experts,
    I have a server and three hard disks.
    One disk has Redhat 5.5 on it.
    One disk has Windows 7.
    The third has Redhat 6.4.
    I've been trying to configure grub to boot any one of the three I choose.
    To begin with, all disks work perfectly fine stand alone.
    If you disconnect all cables except for the one disk, that one disk will boot perfectly fine.
    Redhat 5.5 grub.conf:
    default=0
    timeout=9
    splashimage=(hd0,0)/grub/splash.xpm.gz
    hiddenmenu
    title Redhat 5.5 Enterprise Linux-base (2.6.18-194.el5)
    root (hd0,0)
    kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet
    initrd /initrd-2.6.18-194.el5.img
    title Windows 7
    rootnoverify (hd1,0)
    makeactive
    chainloader +1
    boot
    Redhat 5.5 boots Windows 7 perfectly fine.
    What was really nice about this method, is that I no longer have to modify the Windows MBR, and the two disks are no longer married to each other.
    Then I installed Redhat 6.4. But it's been a struggle since then.
    Redhat 6.4 grub.conf:
    default=0
    timeout=5
    splashimage=(hd0,1)/grub/splash.xpm.gz
    hiddenmenu
    title Redhat 6.4 Kernel (2.6.32-358.el6.x86_64)
         root (hd0,1)
         kernel /vmlinuz-2.6.32-358.el6.x86_64 ro root=UUID=d624839b-32e7-4e8a-8454-5a837cecd947 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet numa=off
         initrd /initramfs-2.6.32-358.el6.x86_64.img
    title Redhat 5.5 Enterprise Linux-base (2.6.18-194.el5)
         root (hd1,0)
         kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet
         initrd /initrd-2.6.18-194.el5.img
    title Windows 7
         rootnoverify (hd2,0)
         makeactive
         chainloader +1
         boot
    hd* is changed to reflect the new boot order in the BIOS.
    Using this grub.conf on Redhat 6.4,
    Redhat 6.4 and Redhat 5.5 will boot perfectly fine.
    However, when attempting to boot Windows 7,
    the process begins to start windows.
    However, this error then occurs:
    File:      \boot\bcd
    Status:      0x0000001
    Info:          An error occurred while attempting to read the boot configuration data.
    There is also a message about using a boot repair disk.
    However, this is a bogus message.
    If I disconnect all other drives, Windows still boots perfectly fine.
    More info:
    rpm -qa | grep -i "grub"
    Redhat 5.5:
    grub-0.97-13.5
    Redhat 6.4:
    grub-0.97-81.0.1.el6.x86_64
    For most of last night and today,
    I've been googling, and trying grub shell commands.
    To no avail.
    Any ideas on how I can get Redhat 6.4 to boot Windows?
    Thanks a lot!

    Based on my experience which this topic, issues are often due to mixing GPT and MBR partitioned disks and boot loaders, which are incompatible technologies. Your computer might be able to choose BIOS or uEFI for booting, but it to my knowledge no system can dynamically choose between them unless you install a very special bootloader.
    I think dual boot is obsolete and generally provides no advantage over virtualization, such as Oracle VM VirtualBox. Most modern systems support type 2 hardware virtualization and are adequately equipped. Perhaps that is something to consider, which can add value to your computing experience.

  • Arch Won't boot after lockup: "Failed to read file" [SOLVED]

    So like many stories, this one begins with a "Sudo pacman -Syu".
    Everything was updating fine, but then my system locked up.  I let it set for awhile, but when I couldn't even get a console, I finally rebooted (yes, bad, I know).
    I was about half-way through the upgrading process.
    Now my system will not boot, and I only get a "Failed to read file" error.
    I chrooted into my system through the live disk, and managed to finish the upgrade (I had to fix a few files, and reinstall some manually). I tried a "mkinitcpio -p linux," but no luck.
    Is there anything else I could post that might be helpful?  This error does not tell me a whole lot.
    Thanks!
    Last edited by thewooster (2014-06-18 16:11:51)

    I did a little more looking around, and found a few more problems.
    When I run a "mkinitcpio -p linux" now, I get:
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> 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
    It also appears I have a number of "empty" directories "pacman -S linux"
    resolving dependencies...
    looking for inter-conflicts...
    Packages (1): linux-3.14.6-1
    Total Installed Size: 70.27 MiB
    Net Upgrade Size: 0.00 MiB
    checking keyring...
    checking package integrity...
    loading package files...
    checking for file conflicts...
    checking available disk space...
    reinstalling linux...
    >>> Updating module dependencies. Please wait ...
    depmod: ERROR: failed to load symbols from /lib/modules/3.14.6-1-ARCH/extramodules/fglrx.ko.gz: Invalid argument
    >>> 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
    ==> ERROR: Unable to write to /boot/initramfs-linux.img
    ==> 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
    ==> ERROR: Unable to write to /boot/initramfs-linux-fallback.img
    ldconfig: File /usr/lib/libclamunrar_iface.so is empty, not checked.
    ldconfig: File /usr/lib/libfontforgeexe.so.2.0.0 is empty, not checked.
    ldconfig: File /usr/lib/libfontforgeexe.so.2 is empty, not checked.
    ldconfig: File /usr/lib/libgunicode.so.4 is empty, not checked.
    ldconfig: File /usr/lib/libfontforgeexe.so is empty, not checked.
    ldconfig: File /usr/lib/libcord.so is empty, not checked.
    ldconfig: File /usr/lib/libgdraw.so.5 is empty, not checked.
    ldconfig: File /usr/lib/libgdk_pixbuf_xlib-2.0.so is empty, not checked.
    ldconfig: File /usr/lib/libgnome-menu-3.so is empty, not checked.
    ldconfig: File /usr/lib/libgdk_pixbuf-2.0.so is empty, not checked.
    ldconfig: File /usr/lib/libgccpp.so is empty, not checked.
    ldconfig: File /usr/lib/libhunspell.so is empty, not checked.
    ldconfig: File /usr/lib/libgdk_pixbuf-2.0.so.0.3000.8 is empty, not checked.
    ldconfig: File /usr/lib/libgccpp.so.1 is empty, not checked.
    ldconfig: File /usr/lib/libwbclient.so.0 is empty, not checked.
    ldconfig: File /usr/lib/libhunspell-1.3.so is empty, not checked.
    ldconfig: File /usr/lib/libgioftp.so is empty, not checked.
    ldconfig: File /usr/lib/libgdk_pixbuf-2.0.so.0 is empty, not checked.
    ldconfig: File /usr/lib/libgdraw.so is empty, not checked.
    ldconfig: File /usr/lib/libX11-xcb.so.1 is empty, not checked.
    ldconfig: File /usr/lib/libgioftp.so.2 is empty, not checked.
    ldconfig: File /usr/lib/libclamunrar.so.6 is empty, not checked.
    ldconfig: File /usr/lib/libfontforge.so is empty, not checked.
    ldconfig: File /usr/lib/libX11.so.6 is empty, not checked.
    ldconfig: File /usr/lib/libgdk_pixbuf_xlib-2.0.so.0 is empty, not checked.
    ldconfig: File /usr/lib/libclamav.so.6 is empty, not checked.
    ldconfig: File /usr/lib/libgutils.so.2.0.0 is empty, not checked.
    ldconfig: File /usr/lib/libgnome-menu-3.so.0.0.1 is empty, not checked.
    ldconfig: File /usr/lib/libgunicode.so is empty, not checked.
    ldconfig: File /usr/lib/libtalloc.so.1 is empty, not checked.
    ldconfig: File /usr/lib/libclamunrar.so is empty, not checked.
    ldconfig: File /usr/lib/libclamunrar_iface.so.6.1.23 is empty, not checked.
    ldconfig: File /usr/lib/libpytalloc-util.so.2 is empty, not checked.
    ldconfig: File /usr/lib/libcord.so.1 is empty, not checked.
    ldconfig: File /usr/lib/libX11-xcb.so is empty, not checked.
    ldconfig: File /usr/lib/libgccpp.so.1.0.3 is empty, not checked.
    ldconfig: File /usr/lib/libtalloc.so.2 is empty, not checked.
    ldconfig: File /usr/lib/libtalloc.so is empty, not checked.
    ldconfig: File /usr/lib/libwbclient.so is empty, not checked.
    ldconfig: File /usr/lib/libX11.so.6.3.0 is empty, not checked.
    ldconfig: File /usr/lib/libfontforge.so.2 is empty, not checked.
    ldconfig: File /usr/lib/libgutils.so is empty, not checked.
    ldconfig: File /usr/lib/libclamunrar.so.6.1.23 is empty, not checked.
    ldconfig: File /usr/lib/libclamunrar_iface.so.6 is empty, not checked.
    ldconfig: File /usr/lib/libhunspell-1.3.so.0.0.0 is empty, not checked.
    ldconfig: File /usr/lib/libtalloc.so.2.1.1 is empty, not checked.
    ldconfig: File /usr/lib/libgutils.so.2 is empty, not checked.
    ldconfig: File /usr/lib/libfontforge.so.2.0.0 is empty, not checked.
    ldconfig: File /usr/lib/libtalloc-compat1-2.1.1.so is empty, not checked.
    ldconfig: File /usr/lib/libgc.so.1 is empty, not checked.
    ldconfig: File /usr/lib/libpytalloc-util.so is empty, not checked.
    ldconfig: File /usr/lib/libcord.so.1.0.3 is empty, not checked.
    ldconfig: File /usr/lib/libgunicode.so.4.0.0 is empty, not checked.
    ldconfig: File /usr/lib/libX11.so is empty, not checked.
    ldconfig: File /usr/lib/libpytalloc-util.so.2.1.1 is empty, not checked.
    ldconfig: File /usr/lib/libgc.so is empty, not checked.
    ldconfig: File /usr/lib/libhunspell-1.3.so.0 is empty, not checked.
    ldconfig: File /usr/lib/libgdk_pixbuf_xlib-2.0.so.0.3000.8 is empty, not checked.
    ldconfig: File /usr/lib/libgdraw.so.5.0.0 is empty, not checked.
    ldconfig: File /usr/lib/libX11-xcb.so.1.0.0 is empty, not checked.
    ldconfig: File /usr/lib/libwbclient.so.0.11 is empty, not checked.
    ldconfig: File /usr/lib/libgioftp.so.2.0.0 is empty, not checked.
    ldconfig: File /usr/lib/libgc.so.1.0.3 is empty, not checked.
    ldconfig: File /usr/lib/libclamav.so is empty, not checked.
    ldconfig: File /usr/lib/libgnome-menu-3.so.0 is empty, not checked.
    ldconfig: File /usr/lib/libclamav.so.6.1.23 is empty, not checked.
    Gummiboot will not reinstall "gummiboot -path=$esp install":
    Failed to check file system type of : no such file or directory
    I have considered doing a reinstall, but I have so many customizations that I would prefer not to lose them.  I do have an rsync backup, but it is a little old, and do have separate home/root partitions, but wouldn't I still lose a fair amount of customizations?

  • T61 DVD/CD-RW drive fails to read and crashes

    Hello Everyone, I hope people still visit this area of the forums!
    I've highlighted and bolded the symptoms to make them easier to find.
    I recently purchased a T61 6457-C15 on eBay, and have been in the proccess of setting up and customizing it to suit my tastes. When I recieved the laptop, it looked as though Windows had been restored to original factory state, plus some free software, so I proceeded under that assumption. First I used Windows Update to download all the updates that it could find including IE8. I wanted to have an anti-virus program running on my computer before I used a browser to access the internet. I ran IE8 and went straight to the Microsoft Security Essentials website and downloaded the Install program. At this point I tried to remove the pre-installed and expired Norton Internet Security using the built-in uninstall, but it failed. A message box popped saying that I needed to put the Norton installation disc in the CD-ROM drive so that the uninstall program could find a Norton support file. My computer did not come with any discs, but my mothe had bought Norton 2008, so I took that disc and put it in the drive. The drive started spinning right away, and the uninstall program found the file it was looking for in a few seconds. The support file directed me to the Norton website to get their removal tool, which removed Norton from my system in short order. Afterwards, I ran the Microsoft Security Essentials install program and got MSE running on my computer before doing anything else.
    Then I went to the Lenovo support website and had it auto-detect my system. That took me to the support page for my system, where I went to the "Downloads and Drivers" page. I downloaded Access Connections and ThinkVantage Toolbox for Vista 32-bit (my OS is Vista Business 32-bit). I then used Lenovo System Update to retrieve all the updates it deemed neccessary from Lenovo, including those for itself and system components, both software and firmware. There were 35 or more updates suggested, and I trusted the software, so I started downloading them all. I'm not sure, but I think that a DVD/CD-RW drive update was included in the list, but I can't remember if it was auxiliary software, drivers or firmware. After Lenovo System Update was convinced that it had all the neccessary updates, I downloaded Revo Uninstaller and set about removing uneccassary and unwanted programs from my computer and trimming the startup list. I did not touch any Windows or ThinkVantage components, and I searched each program online, so I'm sure that I did not delete or disable any drivers or system files, or anything from Lenovo. I mainly removed Apple products and non-functional software from my system, including an integrated camera driver (my system does not have an integrated camera) and third-party programs that were already missing files or otherwise inoperable when I got my computer. Up to this point I had been using a gigabit ethernet connection to download software; I had not used the DVD/CD-RW drive except for the one time I specified earlier.
    Now that I had my system set up to my liking, including personalization and power settings, I started to install my first program: Command & Conquer the First Decade from a DVD-ROM. When I put the disc in the drive and closed it, it took a few seconds for the drive to spin up, and once it did, it was constantly running at high speed and I could hear the reader constantly moving back and forth quickly. After a few minutes the disc's install menu finally appeared, so I clicked on the install button. I waited several minutes but nothing happened, so I tried to view the contents of the drive by going to My Computer > DVD/CD-RW drive (D, right clicking and selecting explore from the menu options. When I did that, the address bar of the My Computer window started to fill up with a dark gray progress bar and said "loading (D", I think with the drive or disc name after it. After it took several minutes to fill completely, nothing happened. I waited a few more minutes to see if anything would change, (nothing did,) I clicked on the X button in the top right corner of the window to close it. A few minutes and clicks later, the My Computer window was labeled as (not responding), and the window itself became grayed-out. I started Task Manager and tried to close the My Computer window, but the entire Windows Desktop disappeared along with it, saying that it would attempt to restart. Even Task Manager became non-responsive and quit after closing My Computer. After a few minutes of staring at my background (and nothing else), I ejected the disc, and Windows Desktop reappeared immediately and acted as if nothing had ever been wrong.
    I checked Device Manager, but neither the DVD/CD-RW drive nor any of the ATA controllers were flagged; in fact they all said they were working properly with up-to-date drivers. I ran the ThinkVantage Toolbox diagnostics on the drive using a data CD, a music CD and a different DVD-ROM, but in each case the drive failed the tests and a message box popped-up saying that the discscould not be read because they were scratched or there was a hardware problem. I checked the discs both before I put them in and after I took them out, and they were not scratched; also, all of the discs are publisher-manufactured from a software or music company. I restarted my computer, booted the Rescue and Recovery option and Ran PC-Doctor from there. I ran the same drive read tests with the same failure results. The entire time the drive was behaving the same way it had when it first failed to read a disc. Next I removed and cleaned the drive both inside and out with a can of compressed air; I also cleaned the ultrabay itself. Finally I tried fixing the problem with Microsoft Fix It, but when it automatically ejected the drive and i put a disc in, the disc became trapped in the drive and Windows froze up like before. I had to restart Windows twice (once with a BSOD) in order to get the disc out. When the disc was removed the computer went back to normal operation once again.
    Please help me, my DVD/CD-RW drive is a Matshi ta UJDA775, my operating system is Windows Vista Business and my T61's model number is 6457-C15. I have tried all the troubleshooting fixes and none have worked. I have tried updating drivers and using diagnostic software and they have not worked. I have tried disabling drag-to-disc burning and it has not worked. I have treid removing and cleaning the drive and that has not solved my problem. I did notice that the driver for the "Intel(R) ICH8M-E/M SATA AHCI controller" is the only related driver that can be rolled back, so maybe that might fix it. I'm also wondering if a firmware change caused this, and if so, if there is any way I can undo that. The only other fix I've heard of that I haven't tried is editing the registry, but I'm hesitant to do that. I haven't tried booting from the CD drive because I have no bootable CDs and I'm worried that my computer might get stuck in that mode. I'm hoping that someone can tell me what I can do to try to fix this problem, preferably without wrecking my computer. Thank you for taking the time to read my post.
    P.S. Just adding a note; I went through both the Microsoft and Lenovo Update histories and the only related updates I could find were: ThinkPad BIOS update, Easy Eject utility, Intel Matrix Storager Manager driver for Windows (32-bit), and maybe one of the two Intel Chipset Support for Vista updates. I tried rolling back the AHCI driver but it had no effect.
    Solved!
    Go to Solution.

    Well, my problem is fixed, and here's how. I had some trouble figuring out how to contact Lenovo technical support; online options directed me to the IBM support website, which was clearly designed for businesses. Selecting the "Call technical support" option on the Lenovo support website and then choosing my country gave me a 24/7 hotline number. After waiting about five minutes on hold, a nice young fellow by the name of "Tyrese" answered (I maybe misspelling his name), but the connection was so bad that we could barely hear each other. Although he semed eager to help, when I told him my problem the first things he suggested were simple, like cleaning the drive, However, when I told him all of my efforts, described above, to fix the problem myself and read him the log from the Rescue and Recovery diagnostic program, after he checked the error codes against his computer database he promptly replied that the only fix was to send out a new drive. I was happy to have gotten such a successful resolution to a support call in less than fifteen minutes; apparently, all the work I had done trying to solve the problem myself had paid off in a way. Unfortunately, although I had tried to spell out my address for him, some of it got left off of the address label, which caused some trouble in receiving the new drive. Once I got it, I installed it using the uninstall & remove (old drive), shut down, start up, insert & install (new drive) method that I referenced earlier in this topic. I've been using the new drive since then without any trouble, so I guess that the only fix was to replace the drive. Also, I noticed that the new drive was a Hitachi, perhaps a T400/410 or T500/510 Ultrabay Slim drive, which should help me avoid the problems that other users were having with the older Matshi-ta drives. I hope this description helps anyone else having a problem with the optical drives on the T61/61p.

  • Urgent: Failed to read WSDL

    Hi,
    I am getting error in our production system similar to below error whenever the load in the server is very high. How do I resolve this problem?
    The process domain encountered the following errors while loading the process "myOrderBooking" (revision "1.0"): Failed to read wsdl.
    Failed to read wsdl at "http://127.0.0.1:9700/orabpel/default/CreditRatingService/CreditRatingService?wsdl", because "Failed to read WSDL from http://127.0.0.1:9700/orabpel/default/CreditRatingService/CreditRatingService?wsdl: HTTP connection error code is 502".
    Thanks,
    Ravi

    are you getting the HTTP 502 error?
    If so it looks like you have proxy issues getting out the external service. Either you are not going through a proxy service when one is required, or the traffic is being routed through a proxy server for an internal address.
    To try and solve it start a browser session on the server and test the URL. If successful configure the SOA proxy setting the same as the brower.
    cheers
    James

  • SshException: Failed to read remote identification [Unknown cause]

    I have set up the cygwin server to run sftp in my project, but i got these exception, how should i solve it?
    Here is the exception :
    com.maverick.ssh.SshException: com.maverick.ssh.SshException
         at com.maverick.ssh.SshException.<init>(Unknown Source)
         at com.maverick.ssh.SshConnector.A(Unknown Source)
         at com.maverick.ssh.SshConnector.connect(Unknown Source)
         at com.maverick.ssh.SshConnector.connect(Unknown Source)
         at qrcom.util.EdtFTPClient.edtUploadFile(EdtFTPClient.java:182)
         at qrcom.SUPPORT.files.dao.local.FTP.CreateFTPFileEON.runFTPFile(CreateFTPFileEON.java:183)
         at qrcom.SUPPORT.files.dao.local.FTP.CreateFTPFileEON.initFTPFile(CreateFTPFileEON.java:129)
         at qrcom.SUPPORT.files.dao.local.FTP.CreateFTPFileEON.startReport(CreateFTPFileEON.java:101)
         at qrcom.SUPPORT.files.dao.local.FTP.CreateFTPFileEON.main(CreateFTPFileEON.java:1052)
    Caused by: com.maverick.ssh.SshException: Failed to read remote identification [Unknown cause]
         ... 9 more
    these is the function that i think causes it :
    public void edtUploadFile(String fileFullPath, String remoteFileName, ArrayList attachList, String strftpIP, String ftpPortNo, String strftpUserID, String strftpPwd, FTPMessage ftpMailMessage) throws FTPFileException, Exception{
    StringBuffer ftpMailMsg = new StringBuffer();
    FTPClient ftp = null;
    FTPMessageCollector listener = null;
    try
    * Create an SshConnector instance
    SshConnector con = SshConnector.getInstance();
    // Lets do some host key verification
    con.getContext(SshConnector.SSH2).setHostKeyVerification(new ConsoleKnownHostsKeyVerification("C:\\cygwin\\home\\wmlam\\.ssh\\known_hosts"));
    Ssh2Context ssh2Context = (Ssh2Context)con.getContext(SshConnector.SSH2);
    //ssh2Context.setPreferredPublicKey(Ssh2Context.PUBLIC_KEY_SSHDSS);
    ssh2Context.setPreferredPublicKey(Ssh2Context.PUBLIC_KEY_SSHRSA);
    * Connect to the host
    int port = Integer.parseInt(ftpPortNo);
    SocketTransport t = new SocketTransport(strftpIP, port);
    t.setTcpNoDelay(true);
    PublicKeyAuthentication pk = new PublicKeyAuthentication();
    SshPrivateKeyFile pkfile = SshPrivateKeyFileFactory.parse(new FileInputStream("C:\\cygwin\\home\\wmlam\\.ssh\\id_rsa"));
    SshKeyPair pair;
    if(pkfile.isPassphraseProtected()) {
    pair = pkfile.toKeyPair(Ssh2Context.PUBLIC_KEY_SSHRSA);
    } else
    pair = pkfile.toKeyPair(null);
    pk.setPrivateKey(pair.getPrivateKey());
    pk.setPublicKey(pair.getPublicKey());
    SshClient ssh = con.connect(t, strftpUserID);
    * Determine the version
    if(ssh instanceof Ssh1Client) {
    System.out.println(strftpIP + " is an SSH1 server!! SFTP is not supported");
    ssh.disconnect();
    System.exit(0);
    else
    System.out.println(strftpIP + " is an SSH2 server");
    Ssh2Client ssh2 = (Ssh2Client)ssh;
    * Authenticate the user using password authentication
    com.maverick.ssh.PasswordAuthentication pwd = new com.maverick.ssh.PasswordAuthentication();
    do {
    pwd.setPassword(strftpPwd);
    while(ssh2.authenticate(pwd)!=SshAuthentication.COMPLETE
    && ssh.isConnected());
    * Start a session and do basic IO
    if(ssh.isAuthenticated()) {
    SftpClient sftp = new SftpClient(ssh2);
    // Tell the client which EOL the remote client is using - note
    // that this will be ignored with version 4 of the protocol
    sftp.setRemoteEOL(SftpClient.EOL_LF);
    // Now put the file, the remote file should end up with all \r\n changed to \n
    //sftp.put(textFile.getAbsolutePath());
    sftp.put(fileFullPath+remoteFileName);
    * Now perform some binary operations
    sftp.setTransferMode(SftpClient.MODE_BINARY);
    * List the contents of the directory
    SftpFile[] ls = sftp.ls();
    for(int i=0;i<ls.length;i++) {
    ls.getParent();
    System.out.println(SftpClient.formatLongname(ls[i]));
    ftpMailMsg.append("<TABLE border=1 width=100% cellspacing=1 cellpadding=1>");
    ftpMailMsg.append("<TR>");
    ftpMailMsg.append("<TD width=60%> <b>CSMS</b></TD>");
    ftpMailMsg.append("<TD width=40%> <b>FTP</b></TD>");
    ftpMailMsg.append("</TR>");
    ftpMailMsg.append("<TR>");
    ftpMailMsg.append("<TD>"+fileFullPath+"</TD>");
    ftpMailMsg.append("<TD>"+remoteFileName+"</TD>");
    ftpMailMsg.append("</TR>");
    if(attachList!=null && !attachList.isEmpty()){
    Iterator iter = attachList.iterator();
    String [] strAtth;
    String strAtthPathAndName = "";
    String strAtthFTPServerFileName = "";
    for(int i=0; i<attachList.size();i++){
    strAtth = (String [])attachList.get(i);
    strAtthPathAndName = qrMisc.trim(strAtth[1]);
    strAtthFTPServerFileName = qrMisc.trim(strAtth[2]);
    sftp.setTransferMode(SftpClient.MODE_BINARY);
    sftp.put(strAtthPathAndName,strAtthFTPServerFileName);
    ftpMailMsg.append("<TR>");
    ftpMailMsg.append("<TD>"+strAtthPathAndName+"</TD>");
    ftpMailMsg.append("<TD>"+strAtthFTPServerFileName+"</TD>");
    ftpMailMsg.append("</TR>");
    ftpMailMsg.append("</TABLE>");
    if(ftpMailMessage!=null){
    String tmpFtpMailMsg = qrMisc.trim(ftpMailMsg.toString());
    ftpMailMessage.setFTPMessage(tmpFtpMailMsg);
    System.out.println("Test complete");
    ssh.disconnect();
    catch(FileNotFoundException exp){
    exp.printStackTrace();
         listener.logCommand("[FileNotFoundException]Error occur while transfering file :"+exp);
    writeToLog(listener.getLog());
    throw new FTPFileException("[FileNotFoundException] Error occur while transfering file :"+exp.toString());
    }catch(IOException exp){
    exp.printStackTrace();
         listener.logCommand("[IOException]Error occur while transfering file :"+exp);
    writeToLog(listener.getLog());
    throw new FTPFileException("[IOException] Error occur while transfering file :"+exp.toString());
    } catch (Exception exp) {
    exp.printStackTrace();
    listener.logCommand("[Exception]Error occur while transfering file :"+exp);
    writeToLog(listener.getLog());
    throw new FTPFileException("[Exception] Error occur while transfering file :"+exp.toString());
    the program stopped at this line, while trying to connect to ssh :
    SshClient ssh = con.connect(t, strftpUserID);
    Can i use ftp together with sftp? how can i solve this ?
    Edited by: gloria_lai on Dec 13, 2007 9:54 AM

    Hi,
    The issue which you are facing can be the result of security or authentication problems (such as attempting to manage a remote server in an untrusted domain, for example; or attempting to manage a server by using credentials that are not recognized as those
    of an administrator on the remote server), or configuration problems (missing Windows PowerShell, remote management not enabled on the target server, etc.). For more information you can refer below article.
    Windows Server 2012 - Server Manager
    Troubleshooting Guide, Part II: Troubleshoot Manageability Status Errors in Server Manager
    In addition if you want to enable Remote Management you can try to enable using command line or Windows Power Shell. Go through
    this article for additional details.
    To Enable through Command line & Windows Power-Shell (Run as Administrator):
    Configure-SMRemoting.exe –enable
    Hope it helps!
    Thanks.
     

  • Failed to read PID from file /run/nginx.pid: Invalid argument

    Hi,
    tried to get an nginx server running to set up an owncloud environment.
    When starting the nginx server
      $  systemctl start nginx.service
    I get the message: "Failed to read PID from file /run/nginx.pid: Invalid argument"
    [root@klaus /etc/nginx]# systemctl status nginx
    nginx.service - A high performance web server and a reverse proxy server
    Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled)
    Active: active (running) since Sat 2013-10-12 17:50:46 CEST; 8min ago
    Process: 1823 ExecStart=/usr/bin/nginx -g pid /run/nginx.pid; daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 1821 ExecStartPre=/usr/bin/nginx -t -q -g pid /run/nginx.pid; daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Main PID: 1825 (nginx)
    CGroup: /system.slice/nginx.service
    ├─1825 nginx: master process /usr/bin/nginx -g pid /run/nginx.pid; daemon on; master_process on;
    └─1826 nginx: worker process
    Oct 12 17:50:46 klaus systemd[1]: Failed to read PID from file /run/nginx.pid: Invalid argument
    Oct 12 17:50:46 klaus systemd[1]: Started A high performance web server and a reverse proxy server.
    but /run/nginx.pid is readable:
    # cat /run/nginx.pid
    2058
    # ll /run/nginx.pid
    -rw-r--r-- 1 root root 4 Oct 12 17:39 /run/nginx.pid
    It seems nginx is runnung thought but in my browser I only get a blank page.
    Any help appreciated.
    Last edited by wombalton (2013-10-13 14:17:46)

    Actually it's the first time I tried to set up one.
    I Basically followed this guide [1] adopting it to arch.
    That's where i got my nginx.conf from. Taking the standard nginx.conf that comes by install and replacing the server part.
    After some searching I found the owncloud manual[2] with an example nginx.conf. Comparing that with my one I found some differences. Applying them works out fine.
    I get now the owncloud page.
    The systemd error  still ocurs, but I think it does not matter to run the server.
    Thanks for your help.
    [1] https://docs.google.com/file/d/0B0ZsTQd … ring&pli=1
    [2] http://doc.owncloud.org/server/5.0/admi … figuration
    EDIT:
    Just in case someone stumbles over this and tries to use the config:
    This one [3] really works
    [3] http://doc.owncloud.org/server/5.0/admi … thers.html
    Last edited by wombalton (2013-10-14 13:31:22)

  • Failed to read/update the registry for the BO XI R2 Critical Hot Fix

    We are trying to apply service pack 4 for the BO XI R2 Sp4 for SAP Integration Kits and received the following error message during install and unable to proceed:
    "Failed to read/update the registry for the BO XI R2 Critical Hot Fix for Partner Integration Kits"
    We had applied a Critical Hot Fix about one week ago and it might be causing the error. How do we uninstall the Critical Hot Fix if it is indeed causing the problem?
    Additionally, we have uninstalled the Integration Kit and reinstalled it hoping it will solve the problem but it didn't.
    Any help will be greatly appreciated.
    Thanks.

    Please post this query to the Business Objects Enterprise Administration forum:
    BI Platform
    That forum is monitored by qualified technicians and you will get a faster response there. Also, all BOE queries remain in one place and thus can be easily searched in one place.
    Thank you for your understanding,
    Ludek

  • Inside EM Console Test Service button-- Parse WSDL Failed to read WSDL

    Hi,
    I have SOA 11.1.1.5 installed. Have HTTPS setup also. I have multiple partitions and am facing an issue to access wsdls of all the processes deployed under that partition.
    In EM Console when I click any Process under the partition in question then click Test and get a screen whith a button Parse WSDL when I select that button
    I get the below error
    oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: WSDLException: faultCode=OTHER_ERROR: Failed to read WSDL from
    https://host:port/soa-infra/services/SServices/ServiceFileList/ServiceFileList_client_ep?WSDL:WSDL not found
    at oracle.sysman.emSDK.webservices.wsdlparser.ParsedWSDLFactoryImpl.getParsedWSDL(ParsedWSDLFactoryImpl.java:157)
    at oracle.sysman.emSDK.webservices.wsdlparser.ParsedWSDLFactoryImpl.getParsedWSDL(ParsedWSDLFactoryImpl.java:87)
    at oracle.sysman.emas.model.wsmgt.WSTestModel.init(WSTestModel.java:226)
    at oracle.sysman.emas.view.wsmgt.WSView.parseWSDL(WSView.java:166)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    ............................All the Processes deployed in other partitions works fine and can access the wsdl just fine it's only this one partition where I am facing the above issue.
    Any help is appreciated.
    Thanks

    Here are the steps I took so far but no luck
    I went ahead deleted the custom folder that holds all xsds, wsdls from MDS and re-imported into MDS.
    Undeployed all the processes and deleted the partition through EM.
    Logged into MDS and ran delete from MDS_PATHS where path_fullname like '/deployed-composites/CustomServices%';
    Again created the same partition through EM and deployed the Process but ran into the same issue.
    As all the processes deployed in this partition have there schemas stored in MDS and are not part of the Project. So looks like it's not able to access the MDS for the referenced objects and so the wsdl load fails. But even if I deploy any other simple process that doesn't refer to MDS this also doesn't load the wsdl but if deploy the same process in other partition it works fine so wondering if there's anything with the Partition even though I deleted and re-created but somewhere it still keeps something.
    But any process that refers MDS if deployed in any other partition also doesn't work.
    So facing 2 issues why anything deployed in that particular partition doesn't work and second why any process that reference MDS for any objects doesn't work regardless of which Partition it gets deployed.
    I really want to solve this rather than doing a complete reinstall which to me may endup in the same scenario.
    When a paste the wsdl url in a browser this is what I get
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding addressInside the EM when click Test->Parse WSDL I get the below error
    The WSDL document could not be parsed
    The following error occured while parsing the WSDL location -
    WSDLException: faultCode=OTHER_ERROR: Failed to read WSDL
    from https://hostname/soa-infra/services/CustomServices/CustomServicesNotification/customserviceemailnotification_client_ep?WSDL:WSDL not found
    oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: WSDLException: faultCode=OTHER_ERROR: Failed to read WSDL from https://hostname/soa-infra/services/CustomServices/CustomServicesNotification/customserviceemailnotification_client_ep?WSDL:WSDL not found
    oracle.sysman.emSDK.webservices.wsdlparser.ParsedWSDLFactoryImpl.getParsedWSDL(ParsedWSDLFactoryImpl.java:157) at
    oracle.sysman.emSDK.webservices.wsdlparser.ParsedWSDLFactoryImpl.getParsedWSDL(ParsedWSDLFactoryImpl.java:87) at
    As am not sure if this could be due to MDS or something is corrupted on the mid-tier.
    Any help is really appreciated.
    Thanks

  • BPEL Cluster: Failed to read wsdl

    I want to start a bpel process over the dashboard from bpel pm.
    If i click the bpel process on the dashboad, i get a timeout with the following error message:
    Failed to read wsdl file at: "http://10.0.0.211:7778/orabpel/default/BPELCluster/1.0/BPELCluster?wsdl", caused by: java.net.SocketException. : Connection reset
    But if i put the link into the same browser, i get the WSDL immediately.
    10.0.0.211 is the ip of my load balancer....
    Any comments?

    I'm also facing the same exact error after clustering the BPEL Process Manager.
    Were you able to solve this issue.
    Please share your thoughts.

  • Ajax submit failed: error = 403, forbidden----how can solve this error

    Ajax submit failed: error = 403, Forbidden--how can solve this error to create a new eprintcenter account

    I am having the SAME problem.  This is so frustrating.   If i try to log on with teh user account I already have, I get the above message.  If i try to create a new accoutn it says the account is already existing.  If i click on forgot password, nnothing happens.  HELP!  I am stuck in a loop!!

  • Recovery Manager is failing to read backup files from disc

    Product Name:
    HP G56-129WM
    Operating System:
    Windows 7
    I used the HP Recovery Manager (F11) to backup my files instead of using the Windows backup. The HP Recovery Manager back uped my files on 2 dvd discs. I then restored my laptop to factory settings. When I go to restore my files, it will only go to 40% and then ask me to insert backup DISC 2. When I insert the disc, it fails to read it. The disc pops out and I keep getting a request to insert DISC 2. What is going on?
    This question was solved.
    View Solution.

    I have a related but different issue with file back-up using HP recovery manager.
    I have a Pavilion g7-1070us laptop that failed to start and simply displays a blue-screen with a blinking cursor (no error message). I could NOT get into safe-mode by hitting F8, but was able to activate the “HP recovery manager” by hitting F11. I was trying to back-up my files before triggering the system restore. It asked me what types of files to back-up, then scanned the computer for these files and was finalizing the files for back-up; then suddenly an error message showed up saying something like "No storage device detected. Make sure the removable disc drive is connected to computer". But I have both a DVD sitting in the optical drive and a USB drive attached!!!!!! Apparently the recovery manager doesn’t see them?
    Can someone throw me a life-saver here? If I cannot recover my files, I cannot proceed with the system restore and I am forever stuck here!!!!!!
    Please help!!!! Much appreciated!!

  • Failed to read parameter object error in BO server XI

    We have the enterprise edition of Business Objects server XI, which is available in the Solaris 10 machine. We try to upload the rpt file using the Central  Management Console Log in, at the time we got the following error.
    There was an error while retrieving data from the server: Failed to read data from report file /var/tmp/data_gen_letter.rpt63065d888163420.  Reason: Failed to read parameter object.
    Can anybodies help me on this, why this error has came.
    Thanks in advance.
    Regards,
    Vel.

    Hi,
    the problem has to do with the permissions on dynamic prompts. Eventually you can solve this by setting the permissions on the prompts using the Business View Manager. (CrystalBVM.exe: to be found in BOBJ client installations on windows)
    Do your report fetch data from an SAP R/3 system?
    Regards,
    Stratos

Maybe you are looking for

  • Key-based SSH Authentication and AFP Home Directories

    I'm setting up some users with AFP home directories (hosted on an Xserve, with a couple of G5 towers as Open Directory clients). When logging in on the console on a G5 tower, the home directories work fine. The users can SSH into the Xserve using SSH

  • Ironing the bugs out of a custom Mail Stationery

    So I'm making a custom Mail Stationery for myself. It's pretty set up the way I want to look. It looks good when I'm sending it, and to someone else who uses the Mail client, it looks like it's supposed to as well. In Gmail's web interface, it doesn'

  • How do i know the no. of transaction doDML will perform?

    Hi, In my application, i am using custom java data source implementation methodology as per the document. I have to fetch records from a service and to populate it to view object and to post the records which belongs to current transaction, to servic

  • Moving Events and archiving videos directly from Canon HF100 to External HD

    Hello, After purchasing my Macbook and my canon HF100 camcorder I got too carried away and excitedly imported too many videos to Imovie. When the Macbook had no more space to import new movies, without reading instructions ( NOW I KNOW... ALWAYS to r

  • Should I Use a Dynamic "Get" Function?

    So let's say I have a table called "Book", and it has the columns "ID, Name, Author, ISBN" I'm wondering what the Pros and Cons would be to creating a function to get books by any attribute using one function: <cffunction name="GetBook"> <cfargument