[SOLVED] Error with mysql/perl

I am horribly ignorant of mysql/perl, I just know they have been working as I have a myth server and all works well, but currently I'm attempting to set up Torrentflux and mythrename.pl, both which give an error that in my eyes appears similar, hopefully someone can sort this out??
Here is the command that is one step of setting up torrentflux:
~ # mysql_setpermission -u root
Password for user root to connect to MySQL:
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.10.0 /usr/share/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /usr/lib/perl5/current /usr/lib/perl5/site_perl/current .) at (eval 9) line 3, <STDIN> line 1.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge.
at /usr/bin/mysql_setpermission line 71
~ #
And here's trying to run mythrename.pl:
~ # /usr/share/mythtv/contrib/mythrename.pl --link /media/mythtv/ --format %T/%T%-%S
Net::UPnP::ControlPoint is not installed!
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.10.0 /usr/share/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /usr/lib/perl5/current /usr/lib/perl5/site_perl/current .) at (eval 13) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge.
at /usr/share/perl5/site_perl/5.10.0/MythTV.pm line 337
~ #
EDIT: Okay, I just got help from someone in IRC and it was perl-related. I set up cpan as per the wiki here: http://www.mythtv.org/wiki/index.php/Mythrename.pl. It works great now!
Last edited by colbert (2008-08-01 21:28:54)

I am horribly ignorant of mysql/perl, I just know they have been working as I have a myth server and all works well, but currently I'm attempting to set up Torrentflux and mythrename.pl, both which give an error that in my eyes appears similar, hopefully someone can sort this out??
Here is the command that is one step of setting up torrentflux:
~ # mysql_setpermission -u root
Password for user root to connect to MySQL:
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.10.0 /usr/share/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /usr/lib/perl5/current /usr/lib/perl5/site_perl/current .) at (eval 9) line 3, <STDIN> line 1.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge.
at /usr/bin/mysql_setpermission line 71
~ #
And here's trying to run mythrename.pl:
~ # /usr/share/mythtv/contrib/mythrename.pl --link /media/mythtv/ --format %T/%T%-%S
Net::UPnP::ControlPoint is not installed!
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.10.0 /usr/share/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /usr/lib/perl5/current /usr/lib/perl5/site_perl/current .) at (eval 13) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge.
at /usr/share/perl5/site_perl/5.10.0/MythTV.pm line 337
~ #
EDIT: Okay, I just got help from someone in IRC and it was perl-related. I set up cpan as per the wiki here: http://www.mythtv.org/wiki/index.php/Mythrename.pl. It works great now!
Last edited by colbert (2008-08-01 21:28:54)

Similar Messages

  • ExecuteQuery() error with MySQL

    I have already followed all the steps recommended by OTN to create a connection with MySQL (most up-to-date files) in JDeveloper 10g. It works fine except when I try to find a view and execute a query using an Application Module in a jsp:
    ApplicationModule appMod = appMod.getGenericAppMod();
    ViewObject voTabEmployee = appMod.findViewObject("TabEmployee");
    voTabEmployee.executeQuery();
    It works ok when connected to Oracle DB but it raises the following exception when I move Business Components to a MySQL connection, exactly as recommended:
    java.lang.ClassCastException: com.mysql.jdbc.ServerPreparedStatement
    Any help would be highly appreciated.
    Marcio

    Hi Marcio
    The ApplicationModule that you create in your source (utilApp.java) is created using the default configuration that uses the OracleSQLBuilder as the default SQLBuilder (configured to work with Oracle Databases). Thus, when you use MySQL or any other database (and I confirmed this using SQLServer), a ClassCastException is thrown.
    Instead of using the following lines:
    Context ic = new InitialContext(env);
    String theAMDefName = "mysysjcom.MySysJComModule";
    ApplicationModuleHome home = (ApplicationModuleHome) ic.lookup(theAMDefName);
    ApplicationModule appMod = home.create();
    appMod.getTransaction().connectToDataSource(null, "jdbc/MYSYSJCOMCoreDS", false);
    can you use the following lines:?
    Context ic = new InitialContext(env);
    String theAMDefName = "mysysjcom.MySysJComModule";
    ApplicationModule appMod = Configuration.createRootApplicationModule(theAMDefName, <config_name>);
    ic.lookup(theAMDefName);
    I got your sample working with the above change
    This will ensure that you are using the same configuration that has the SQLBuilder correctly set to your Database type
    Thanks
    Prasanth

  • [SOLVED]Error with xf86-video-ati 6.12.99.git20091221-1 + mesa-7.6.1-1

    Upgrade mesa (7.6-2 -> 7.6.1-1), libgl (7.6-2 -> 7.6.1-1), libgl (7.6-2 -> 7.6.1-1) and ati-dri (7.6-2 -> 7.6.1-1) from testing broke my resolution in KDE - X start only with vesa driver.
    I don't use xorg.conf, kernel is kernel26 2.6.32.2-1 from testing, KMS disabled (don't work with this kernel)
    /var/log/Xorg.0.log:
    (II) LoadModule: "radeon"
    (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
    dlopen: libdrm_radeon.so.1: cannot open shared object file: No such file or directory
    (EE) Failed to load /usr/lib/xorg/modules/drivers/radeon_drv.so
    (II) UnloadModule: "radeon"
    (EE) Failed to load module "radeon" (loader failed, 7)
    (II) LoadModule: "vesa"
    Compiling xf86-video-ati-git (20091223-1) solve this problem
    Last edited by Tapan (2009-12-23 14:19:23)

    I have kernel 2.6.31-ARCH, nothing testing repository but in my
    grep EE /var/log/Xorg.0.log
    Current Operating System: Linux skynet 2.6.31-ARCH #1 SMP PREEMPT Tue Nov 10 19:01:40 CET 2009 x86_64
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (II) Loading extension MIT-SCREEN-SAVER
    (EE) Failed to load module "fbdev" (module does not exist, 0)
    (EE) RADEON(0): [dri] RADEONDRIGetVersion failed because of a version mismatch.
    (EE) Microsoft Comfort Curve Keyboard 2000: failed to initialize for relative axes.
    and, for example, switch for different desktop is very slow. Also maximized windows is very slow (I'm using xfce with compositing)

  • [SOLVED] errors with fdisk and cryptsetup; is my drive going bad?

    I'm having issues with re-formatting an external hard drive using dm-crypt. It was previously formatted with TrueCrypt/NTFS, which I used as a shared backup drive between Windows and Arch. At some point, it stopped being able to mount, which I attributed to allowing Windows to "fix" it after improper dismount (e.g. a hard kill).
    I decided to re-format with ext4 and only use it from Arch, but now I'm wondering if I may have a hardware issue with the drive. I've tried a lot more (like going through the full zero write after mounting the drive as a temporary dm-crypt device), but here's the condensed version to illustrate the problem.
    system info
    This is on a fresh boot. Just adding that as I've had issues with kernel modules after updating if a new kernel comes through. A fresh boot removes that potential issue.
    $ uname -a
    Linux arch_840 4.0.3-1-ARCH #1 SMP PREEMPT Wed May 13 15:38:47 CEST 2015 x86_64 GNU/Linux
    $ lsmod | grep dm_
    dm_crypt 28672 2
    dm_mod 98304 5 dm_crypt
    $ lsmod |grep xts
    xts 16384 2 serpent_sse2_x86_64,twofish_x86_64_3way
    gf128mul 16384 2 lrw,xts
    smartctl status
    Figured I should check the drive. There's a lot of old age and pre-fail warnings, but this post would seem to suggest I'm okay?
    # smartctl -A /dev/sdb
    smartctl 6.3 2014-07-26 r3976 [x86_64-linux-4.0.3-1-ARCH] (local build)
    Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
    === START OF READ SMART DATA SECTION ===
    SMART Attributes Data Structure revision number: 16
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x002f 100 100 051 Pre-fail Always - 0
    2 Throughput_Performance 0x0026 252 252 000 Old_age Always - 0
    3 Spin_Up_Time 0x0023 090 089 025 Pre-fail Always - 3330
    4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 703
    5 Reallocated_Sector_Ct 0x0033 252 252 010 Pre-fail Always - 0
    7 Seek_Error_Rate 0x002e 252 252 051 Old_age Always - 0
    8 Seek_Time_Performance 0x0024 252 252 015 Old_age Offline - 0
    9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 3707
    10 Spin_Retry_Count 0x0032 252 252 051 Old_age Always - 0
    11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 104
    12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 734
    191 G-Sense_Error_Rate 0x0022 100 100 000 Old_age Always - 17
    192 Power-Off_Retract_Count 0x0022 252 252 000 Old_age Always - 0
    194 Temperature_Celsius 0x0002 064 053 000 Old_age Always - 24 (Min/Max 16/47)
    195 Hardware_ECC_Recovered 0x003a 100 100 000 Old_age Always - 0
    196 Reallocated_Event_Count 0x0032 252 252 000 Old_age Always - 0
    197 Current_Pending_Sector 0x0032 252 252 000 Old_age Always - 0
    198 Offline_Uncorrectable 0x0030 252 252 000 Old_age Offline - 0
    199 UDMA_CRC_Error_Count 0x0036 200 200 000 Old_age Always - 0
    200 Multi_Zone_Error_Rate 0x002a 100 100 000 Old_age Always - 3
    223 Load_Retry_Count 0x0032 100 100 000 Old_age Always - 104
    225 Load_Cycle_Count 0x0032 079 079 000 Old_age Always - 214068
    Disk info, delete existing partition, new MBR, create new partition
    # fdisk /dev/sdb
    Welcome to fdisk (util-linux 2.26.1).
    Changes will remain in memory only, until you decide to write them.
    Be careful before using the write command.
    Command (m for help): p
    Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x76d37b6d
    Device Boot Start End Sectors Size Id Type
    /dev/sdb1 63 976768064 976768002 465.8G 83 Linux
    Command (m for help): d
    Selected partition 1
    Partition 1 has been deleted.
    Command (m for help): o
    Created a new DOS disklabel with disk identifier 0x2cd60f13.
    Command (m for help): n
    Partition type
    p primary (0 primary, 0 extended, 4 free)
    e extended (container for logical partitions)
    Select (default p): p
    Partition number (1-4, default 1):
    First sector (2048-976773167, default 2048):
    Last sector, +sectors or +size{K,M,G,T,P} (2048-976773167, default 976773167):
    Created a new partition 1 of type 'Linux' and of size 465.8 GiB.
    Command (m for help): w
    The partition table has been altered.
    Calling ioctl() to re-read partition table.
    Syncing disks.
    trying to format with cryptsetup
    I had a bunch of custom options, but other Arch posts suggested just trying the default, which is what I've done here. It fails with the same error as when I try to pass a cipher, key size, etc. ("Command failed with code 5: IO error while encrypting keyslot.").
    # truecrypt -v --debug luksFormat /dev/sdb1
    bash: truecrypt: command not found
    [root@arch_840 jwhendy]# cryptsetup -v --debug luksFormat /dev/sdb1
    # cryptsetup 1.6.6 processing "cryptsetup -v --debug luksFormat /dev/sdb1"
    # Running command luksFormat.
    # Locking memory.
    # Installing SIGINT/SIGTERM handler.
    # Unblocking interruption on signal.
    WARNING!
    ========
    This will overwrite data on /dev/sdb1 irrevocably.
    Are you sure? (Type uppercase yes): YES
    # Allocating crypt device /dev/sdb1 context.
    # Trying to open and read device /dev/sdb1.
    # Initialising device-mapper backend library.
    # Timeout set to 0 miliseconds.
    # Iteration time set to 1000 miliseconds.
    # Interactive passphrase entry requested.
    Enter passphrase:
    Verify passphrase:
    # Formatting device /dev/sdb1 as type LUKS1.
    # Crypto backend (gcrypt 1.6.3) initialized.
    # Detected kernel Linux 4.0.3-1-ARCH x86_64.
    # Topology: IO (512/0), offset = 0; Required alignment is 1048576 bytes.
    # Checking if cipher aes-xts-plain64 is usable.
    # Using userspace crypto wrapper to access keyslot area.
    # Generating LUKS header version 1 using hash sha1, aes, xts-plain64, MK 32 bytes
    # KDF pbkdf2, hash sha1: 996745 iterations per second.
    # Data offset 4096, UUID 181fed4d-42f2-4f0f-8b70-cb7ba459e25f, digest iterations 121625
    # Updating LUKS header of size 1024 on device /dev/sdb1
    # Key length 32, device size 976771120 sectors, header size 2050 sectors.
    # Reading LUKS header of size 1024 from device /dev/sdb1
    # Key length 32, device size 976771120 sectors, header size 2050 sectors.
    # Adding new keyslot -1 using volume key.
    # Calculating data for key slot 0
    # KDF pbkdf2, hash sha1: 1008246 iterations per second.
    # Key slot 0 use 492307 password iterations.
    # Using hash sha1 for AF in key slot 0, 4000 stripes
    # Updating key slot 0 [0x1000] area.
    # Using userspace crypto wrapper to access keyslot area.
    IO error while encrypting keyslot.
    # Releasing crypt device /dev/sdb1 context.
    # Releasing device-mapper backend.
    # Unlocking memory.
    Command failed with code 5: IO error while encrypting keyslot.
    Things also tend to hang with respect to the drive at this point. For example, fdisk -l spits out /dev/sda partitions immediately and then just hangs instead of printing out /dev/sdb info, then eventually quits (without ever writing it).
    Any suggestions on where to look/how to troubleshoot? I found some possibly related posts, but nothing that looks promising:
    - Impossible to crypt the drive using cryptsetup (fixed by rebooting)
    - cryptsetup fails to open Udev cookie 0xd4d94f5 (semid 0) waiting for z (no responses; the hang after seems similar)
    There's a couple odds and ends references to cryptsetup 1.6.6 having issues. I downloaded 1.6.4-1 and 1.6.5-1 and -2 from ARM to try, but wanted to post this in the meantime in case something stuck out.
    Last edited by jwhendy (2015-05-29 16:01:40)

    @qinohe I thought of that and the other day started formatting with mkfs.ext4; unfortunately, it was at work and I had to leave before I could let it finish. It had been chugging along a good few hours, and I was surprised it would take that long. I was able to format it with ext4 using Windows 7 (I dual boot) with the MiniTool Partition Wizard but I didn't use it like that before trying to solve the cryptsetup issue again.
    This last time around, I was getting unresponsive behavior. I think I need to reboot each time I try something with cryptsetup, as any commands related to that drive seem to hang afterwards (fdisk, umount, eject, mkfs, or trying crypsetup again). Perhaps I'll just let it cook overnight with mkfs and see if I can at least have an unencrypted, but functional drive.
    One interesting tidbit is that even though cryptsetup fails, when I've tried to issue mkfs afterward, it asks me to confirm that I want to format the disk since it has a LUKS header... so something appears to have been written. Is it possible the header is causing some issues? I don't know much about the structure of a disk (like what range the MBR resides in, what constitutes a header, etc.) but have been wondering if there's some way to start really, really clean with the disk. Like I'd just bought it -- something appears to be lingering around from previous efforts?
    @frostschutz I'll check tomorrow. That's a good question. Just checked journalctl and here are some of the errors that appear; unfortunately, I wasn't watching so I can't tell you what matches up with what command:
    May 23 09:32:22 arch_840 systemd-udevd[7784]: inotify_add_watch(7, /dev/sdb1, 10) failed: No such file or directory
    May 23 09:32:22 arch_840 kernel: usb 3-4: stat urb: status -108
    ### there's lots like this; like 10 in a row with various sector values listed
    May 23 09:32:19 arch_840 kernel: Buffer I/O error on dev sdb1, logical block 61341696, lost async page write
    May 23 09:32:19 arch_840 kernel: blk_update_request: I/O error, dev sdb, sector 490735616
    ### there's also a bunch like this, from tab #0 -> #29 (not colored red, so not sure they're errors?)
    May 23 09:32:19 arch_840 kernel: sd 2:0:0:0: [sdb] tag#0 CDB: opcode=0x2a 2a 00 1d 07 bc 10 00 04 00 00
    May 23 09:32:18 arch_840 kernel: sd 2:0:0:0: [sdb] tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT
    I paged down quite a ways and those seem like the unique messages when I search the journal for "sdb". Anything stand out? I will say that the same sector numbers appeared in multiple blocks of the third error type listed, so that makes me wonder if something is genuinely wrong with the disk. I'll post the output of the full smartctl scan when I hopefully run it tomorrow.
    Thanks for chiming in!

  • [Solved] errors with keys after pacman update?

    Hi,
    I installed pacman 4.0.1-4, but now this is what happens when I try and update.
    Proceed with installation? [Y/n] Y
    (28/28) checking package integrity [######################] 100%
    error: binutils-multilib: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
    error: libcap-ng: signature from "Ionut Biru <[email protected]>" is unknown trust
    error: cifs-utils: signature from "Tobias Powalowski <[email protected]>" is unknown trust
    error: cmake: signature from "Dave Reisner <[email protected]>" is unknown trust
    error: colord: signature from "Ionut Biru <[email protected]>" is unknown trust
    error: lib32-glibc: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
    error: lib32-gcc-libs: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
    error: gcc-libs-multilib: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
    error: gcc-multilib: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
    error: perl: key "6D1655C14CE1C13E" is unknown
    error: key "6D1655C14CE1C13E" could not be looked up remotely
    error: openssl: signature from "Pierre Schmitz <[email protected]>" is unknown trust
    error: git: signature from "Dan McGee <[email protected]>" is unknown trust
    error: gpgme: signature from "Dave Reisner <[email protected]>" is unknown trust
    error: gvfs: signature from "Dave Reisner <[email protected]>" is unknown trust
    error: inetutils: key "FCF2CB179205AC90" is unknown
    :: Import PGP key 9205AC90, "Eric Belanger <[email protected]>", created 2011-04-19? [Y/n] Y
    error: key "Eric Belanger <[email protected]>" could not be imported
    error: intltool: key "FCF2CB179205AC90" is unknown
    :: Import PGP key 9205AC90, "Eric Belanger <[email protected]>", created 2011-04-19? [Y/n] ^C
    Interrupt signal received
    When pacman updated it suggested that I run this command,
    sudo pacman-key --init
    I know that usually I would say yes to a key and pacman should remember it, but what are all the errors?
    Last edited by mich04 (2012-01-20 17:19:26)

    # /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 -C - -f %u > %o
    #CleanMethod = KeepInstalled
    Architecture = auto
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options (all disabled by default)
    #UseSyslog
    #ShowSize
    #UseDelta
    #TotalDownload
    #CheckSpace
    # 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
    # - URLs will have $arch replaced by the name of the architecture
    # 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.
    # The testing repositories are disabled by default. To enable, uncomment the
    # repo name header and Include 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]
    Include = /etc/pacman.d/mirrorlist
    [extra]
    Include = /etc/pacman.d/mirrorlist
    #[community-testing]
    #Include = /etc/pacman.d/mirrorlist
    [community]
    Include = /etc/pacman.d/mirrorlist
    # If you want to run 32 bit applications on your x86_64 system,
    # enable the multilib repositories as required here.
    #[multilib-testing]
    #Include = /etc/pacman.d/mirrorlist
    [multilib]
    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
    Here it is.

  • Communication packets error with MySQL

    Hi,
    I'm having a problem with executing a query on MySQL. It seems that I'm getting the communication packets error once in a while and I'm not sure whether the query is bad or the settings on the database server is bad. Could anyone give me an insight where to look after?
    Thank you,
    852825
    MySQL: 5.1.41-3ubuntu12.7
    JDBC: 5.1.12
    Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Got an error writing communication packets
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
         at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
         at com.mysql.jdbc.Util.getInstance(Util.java:384)
         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)
         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3562)
         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3494)
         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1960)
         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2114)
         at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2696)
         at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2105)
         at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2264)

    I've tried the community but no response so far. Any tips on where to look?

  • [SOLVED] Error with usb external HD

    Since 1.5.x kernel serie I get the following message on attaching a external usb hb:
    ago 14 10:21:42 udisksd[429]: Error performing initial housekeeping for drive /org/freedesktop/UDisks2/drives/ST1000LM024_HN_M101MBB_S2ZPJ9BD491796: Error updating SMART data: sk_disk_check_sleep_mode: Operation not supported (udisks-error-quark, 0)
    ago 14 10:21:42 nono kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88020fc5bc48
    ago 14 10:21:42 nono kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88020fc5bcd8
    ago 14 10:21:42 nono kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88020fc5bc00
    ago 14 10:21:42 nono kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88020fc5bc90
    ago 14 10:21:42 nono kernel: scsi host6: uas_eh_bus_reset_handler success
    ago 14 10:21:42 nono systemd-udevd[150]: worker [500] terminated by signal 9 (Killed)
    I've been solving this issue installing an old local 1.4.x kernel file.
    Today I have installed a new 1.6.x. kernel and this problem still persists.
    Thanks in advance for your help.
    Last edited by Miles28 (2014-08-14 14:24:18)

    Try disabling the UAS driver, check here [1] how to disable it for a particular drive.
    [1] https://bbs.archlinux.org/viewtopic.php?id=183190

  • ExecuteUpdate error with mysql

    Dear All:
    i have a wierd error right here, the code is working correctly for the first call to this jsp page but the error come out when second call to this page. the field was update wrongly, credit=credit-1 become credit=credit-2 and Point=Point+1 become Point=Point+2.
    I am using the mysql and tomcat
    <%
    String a1="update studentdetail Set credit=credit-1 where UserID = '"+UserID+"'";//deduct from student
    a=statement.executeUpdate(a1);
    out.println(a1+" "+a);
    String a2="update teacherinfo Set Point=Point+1 where TeacherID = '"+tID+"'";//add into teacherinfo table
    a=statement.executeUpdate(a2);
    out.println(a2+" "+a);
    String a3="update teachersubcription Set Point=Point+1 where ID = '"+myID+"'";//add into teacher subcription table
    a=statement.executeUpdate(a3);
    out.println(a3+" "+a);
    %>
    please help

    It's hard to tell from the code you provided, but it sounds like a classic case of not reinitializing variables. Depending on where this code lives and how it gets used, you'll update your database with credit-1 and that credit-1 value which now lives in your DB must be finding it's way back into the credit variable. Check everyplace you set that variable and everyplace you read the DB and I'll bet you find your answer.
    Cheers

  • ECM Connector + Turnkey Installation - Error with MySQL (NoClassDefFoundError)

    Twice I have installed LiveCycle ES for JBoss Using Turnkey (following the documentation)... W2K3 Server, 2GB RAM, 32GB Hard Drive, Java 1.5.0.15.
    The core services work good, but it's ECM Connector for Documentum that throws up an error. (Snippets of the server.log below)
    I searched for aspectj.org namespace and it belongs to MySql. Am I supposed to copy a jar file somewhere? I searched the docs but couldn't find any mention.
    Odd enough, the sample ECM Documentum Connector Services work, it's the standard ones that don't (Authentication, Connector, etc)
    EMCDocumentumContentRepositoryConnector: 1.0 Stopped com.adobe.livecycle.ConnectorforEMCDocumentum 8.0.3188.1.83522.8
    When I click start, I get internal error and server.log fills up with the class not found errors.
    Any insight you could provide would great helpful.
    Thanks in advance,
    Vikram
    2008-07-11 11:08:54,984 ERROR [org.jboss.ejb.plugins.LogInterceptor] Unexpected Error in method: public abstract java.lang.Object com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterLocal.doRequiresNe w(com.adobe.idp.dsc.transaction.TransactionDefinition,com.adobe.idp.dsc.transaction.Transa ctionCallback) throws com.adobe.idp.dsc.DSCException
    java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
    at com.adobe.livecycle.documentumservice.impl.util.DocumentumUtils.configureClient(Documentu mUtils.java:88)
    at com.adobe.livecycle.documentumservice.impl.DocumentumProviderServiceLifeCycleImpl.configu reDocbroker(DocumentumProviderServiceLifeCycleImpl.java:261)
    at com.adobe.livecycle.documentumservice.impl.DocumentumProviderServiceLifeCycleImpl.execute Once(DocumentumProviderServiceLifeCycleImpl.java:92)
    at com.adobe.livecycle.documentumservice.impl.DocumentumProviderServiceLifeCycleImpl.onStart (DocumentumProviderServiceLifeCycleImpl.java:53)
    at ...
    org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:595)
    2008-07-11 11:08:55,000 INFO [STDOUT] Jul 11, 2008 11:08:55 AM com.adobe.idp.dsc.registry.service.impl.ServiceRegistryImpl start
    SEVERE: ServiceRegistryImpl:start(EMCDocumentumAuthProviderService, 1.0):com.adobe.idp.dsc.DSCRuntimeException(Internal error.)
    ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:207)
    at com.adobe.idp.dsc.transaction.impl.DefaultTransactionTemplate.execute(DefaultTransactionT emplate.java:79)
    at

    Using j2se 1.4.2_04, turnkey installation works perfectly.
    Bye,
    Dr.Channard

  • Connection error with mysql

    hi,
    i'm using j2sdk1.4.2 and mysql 3.x, and i'm having problems with the connection of these two. i used the latest connector which is mysql-connector-java-3.0.14-production-bin.jar, and i followed all the steps for installing this connector. my classpath is already set to where i placed the jar file. however, i still get this error :
    java.sql.SQLException : unable to connect to any hosts due to exception: java.net.ConnectException : Connection refused : connect
    what should i do?
    and by the way, here's the code :
    import java.sql.*;
    public class JdbcExample1 {
    public static void main(String args[]) {
    try {
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    Connection con = DriverManager.getConnection("jdbc:mysql:///");
    if(!con.isClosed())
    System.out.println("Successfully connected to MySQL server...");
    } catch(Exception e) {
    System.err.println("Exception: " + e.getMessage());
         e.printStackTrace();
    } }

    Hi, I am new to all these.
    Recently I been trying to get Mysql and JSP and Tomcat working but try and try still cannot. Since you guys are on this topic and more knowledgeable I hope that you could help me out. Thanks.
    I have the same set up as you except mysql version 4.0
    MySQL is working fine by itself, JSP is working fine connecting to Apache Tomcat fine but cannot get MySQL data connected to show on Tomcat.
    Sample code as below
    import java.sql.*;
    import java.io.*;
    class StocksMy {
    public static void main (String args []) {
    try {
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    try {
    } catch (Exception e) {
    System.out.println("StocksMy");
    System.exit(1);
    Connection conn =DriverManager.getConnection
    ("jdbc:mysql://:3306/StocksMy);
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery ("select * from stocks");
    while (rset.next()) {
    String ticker=rset.getString(1).trim();
    String title=rset.getString(2).trim();
    String price=rset.getString(3).trim();
    String blanks=
    System.out.print (ticker);
    System.out.print(blanks.substring(1,8-ticker.length()));
    System.out.print (title);
    System.out.print(blanks.substring(1,41-title.length()));
    System.out.println (price);
    } catch (Exception e) {
    System.out.println("StocksMy: JDBC exception");
    System.exit(1);
    PLEASE is this correct?
    How to get this to show up in Tomcat (localhost:8080) ?
    I guess must convert to JSP first? How? Can show from sample above or a simple sample?
    All very confusing to me.
    Thanks guys.

  • [SOLVED] Error with the php5 module for apache

    Hi!
    I've installed Apache 2.0.55-1 and PHP5 5.1.4-4. When I try to run the apache server it fails. Then I do httpd -k start and I get:
    Syntax error on line 262 of /etc/httpd/conf/httpd.conf:
    API module structure `php5_module' in file /usr/lib/apache/libphp5.so is garbled - perhaps this is not an Apache module DSO?
    The file libphp5 exists, but seems corrupted.
    See you
    NeOnsKuLL

    That version of the package has been built with apache 2.2.x. Be sure to use that version of apache too, as 2.0 won't work with that specific package.

  • [Partially Solved] Error with bsdtar and symbolic links

    I'm trying to install a package (asymptote) from AUR but am running into an odd error.  During the extract phase I get errors like
    asymptote-1.70/base/asy-keywords.el: Can't update time for asymptote-1.70/base/asy-keywords.el: Function not implemented
    bsdtar: Error exit delayed from previous errors.
    I found a post that may help: http://bbs.archlinux.org/viewtopic.php?id=50750.  Do I really have to do this?
    By the way, I too am running on a Linode (Xen virtualization).
    Thanks,
    Luis
    Last edited by banbh (2009-05-24 00:22:13)

    I have not got to the bottom of my problems with bsdtar and symlinks.  I suspect it must have something to do with either my configuration (derived from the Arch image provided by Linode) or running under virtualisation.
    However, others might find my work-around useful, so I document it below.
    I downloaded asymptote from AUR using wget ("wget http://aur.archlinux.org/packages/asymptote/asymptote.tar.gz"), unpacked it, then patched the PKGBUILD
    $ diff -u PKGBUILD.orig PKGBUILD
    --- PKGBUILD.orig 2009-05-23 17:58:47.000000000 -0400
    +++ PKGBUILD 2009-05-23 18:00:49.000000000 -0400
    @@ -11,9 +11,12 @@
    'used if present at compile time: freeglut, gsl, fftw')
    source=(http://downloads.sourceforge.net/sourceforge/asymptote/$pkgname-$pkgver.src.tgz)
    md5sums=('1ded335bc63b662a6eb920a4c065706c')
    +noextract=($pkgname-$pkgver.src.tgz)
    build() {
    - cd $srcdir/$pkgname-$pkgver
    + cd $srcdir
    + tar xzf $pkgname-$pkgver.src.tgz
    + cd $pkgname-$pkgver
    ./configure --enable-gc=/usr --prefix=/usr \
    --with-latex=/usr/share/texmf/tex/latex || return 1
    make asy || return 1
    After that I simply did a "makepkg" followed by "sudo pacman -U asymptote-1.73-1-i686.pkg.tar.gz"

  • "Bad handshake" error with MySQL

    Hello,
    I'm having problems when I try to connect to DB using MySQL 4.1.1alpha.
    I have Conector/J 3.1 and Connector/ODBC 3.51.
    The exceptions occur when I try to connect with the sentence:
    conection = DriverManager.getConnection("jdbc:mysql://localhost:3306/mysql?user=root");
    the exception thrown is:
    Communication link failure: Bad handshake
    I can connect from mysql and from mysql Control Center but not from JAVA.
    Does Anyone know my problem?
    Greetings
    Mariano

    Did you try this?
    conection = DriverManager.getConnection("jdbc:mysql://localhost:3306 /mysql?user=root&password=");
    if still doesn't work, recompile the driver and try again. It happened to me once when I downloaded their binary [instead of recompiling their src myself].
    hope this helps

  • [SOLVED] Error with PKGBUILD for package hash-identifier

    Hi,
    I tried to install the package hash-identifier.
    While running makepkg -s, there is an error:
    ==> ERROR: PKGBUILD contains CRLF characters and cannot be sourced.
    I guess this is due to the New Line character at line 17 of the PKGBUILD:
    sed -e 's|
    ||g' -i Hash_ID_v${pkgver}.py
    So I remove it, but then I get this other error and I don't know what to do with it:
    ==> Extracting sources...
    ==> Starting prepare()...
    sed: -e expression #1, char 0: no previous regular expression
    ==> ERROR: A failure occurred in prepare().
    Aborting...
    Last edited by PâtéDeCerf (2015-03-11 08:18:34)

    Thanks for your reply. I'm not familiar with package build syntax nor python, so I don't understand everything you wrote.
    It would be good if you could explain more clearly though.
    By applying the change you propose, I was able to build the package and install it.
    NB: To run the program, type from the command-line :
    $ hash-id
    ...and not simply "hash-identifier"
    Last edited by PâtéDeCerf (2015-03-11 08:21:10)

  • [Solved]Error with installing package: /usr/lib64 exists in filesystem

    So i know there are other posts about this and i have read them and I have also read the wiki https://wiki.archlinux.org/index.php/De … _in_.2Flib and also this forum post https://bbs.archlinux.org/viewtopic.php?id=156942
    the error i get when trying to install a package from the AUR
    error: failed to commit transaction (conflicting files)
    hp-health: /usr/lib64 exists in filesystem
    Errors occurred, no packages were upgraded.
    I tried to find who owned the files/package in the /lib by the following commands
    $ grep '^lib/' /var/lib/pacman/local/*/files
    $ find /lib -exec pacman -Qo -- {} +
    the output was
    /lib is owned by filesystem 2015.02-1
    Im confused what to do at this point as the wiki that I linked above says
    If any package apart from glibc is listed as owning a file, that package needs to be updated to install its files in /usr/lib
    Last edited by PigsInSpace (2015-03-01 02:25:24)

    You are following directions for a file conflict with /lib for a very specific one-time manual intervention, but you don't have that file conflict according to the error message you posted and it is not for that intervention.  See this instead: https://wiki.archlinux.org/index.php/Pa … 9.22_error then report the error on the aur page for that package.
    This fixes it:
    package() {
    cd "$srcdir"
    + mv usr/lib64 usr/lib
    cp -a opt usr var "$pkgdir"

Maybe you are looking for