Cdemu - no connection to dbus

Good afternoon!
I have tried to get cdemu to work, in order to mount a CUE image (as there is no converter from CUE to ISO as far as I know), but I'm stuck with the following error message.
[root@celestary ishina]# cdemu 0 /mnt/cdrom/installer/___.cue
ERROR: Failed to connect to CDEmu daemon: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute dbus-launch to autolaunch D-Bus session
ERROR: Failed to connect to daemon!
cdemud returns the following output
[root@celestary ishina]# cdemud
Starting daemon locally with following parameters:
- num_devices: 1
- ctl_device: /dev/vhba_ctl
- audio_backend: (null)
- audio_device: (null)
- system_bus: 0
cdemud: cdemud_daemon_initialize: failed to get session bus!
Daemon initialization failed: Failed to connect to D-BUS bus.
I have conducted some research on the error message. Normally, one should start cdemud with the -s parameter, which is specified in the file /etc/rc.d/cdemud:
cdemud -s -d -n $NUM_DRIVES -c $CTL_DEVICE -a $AUDIO_BACKEND -o $AUDIO_DEVICE &>/dev/null
is the starting command for the daemon - the bus is therefore already set - but still it does not seem to work.
Has anyone got an idea, which problem I could have run into?
Regards,
cg

I can't build cdemu-daemon from the AUR:
# yaourt -Sb --noconfirm cdemu-daemon
cdemud-mmc-features.h:26:1: warning: "LITTLE_ENDIAN_BITFIELD" redefined
In file included from /usr/include/libmirage-1.0/mirage.h:47,
                 from cdemud.h:44,
                 from cdemud-daemon.c:20:
/usr/include/libmirage-1.0/mirage-disc-structures.h:24:1: warning: this is the location of the previous definition
cdemud-daemon.c:33: error: expected specifier-qualifier-list before '__u32'
cdemud-daemon.c:43: error: expected specifier-qualifier-list before '__u32'
cdemud-daemon.c: In function '__cdemud_daemon_io_handler':
cdemud-daemon.c:154: error: 'struct vhba_request' has no member named 'cdb'
cdemud-daemon.c:154: error: 'struct vhba_request' has no member named 'cdb_len'
cdemud-daemon.c:155: error: 'struct vhba_request' has no member named 'cdb_len'
cdemud-daemon.c:156: error: 'struct vhba_request' has no member named 'cdb_len'
cdemud-daemon.c:156: error: 'struct vhba_request' has no member named 'cdb_len'
cdemud-daemon.c:160: error: 'struct vhba_request' has no member named 'data_len'
cdemud-daemon.c:166: error: 'struct vhba_response' has no member named 'tag'
cdemud-daemon.c:166: error: 'struct vhba_request' has no member named 'tag'
cdemud-daemon.c:167: error: 'struct vhba_response' has no member named 'status'
cdemud-daemon.c:169: error: 'struct vhba_response' has no member named 'data_len'
make[3]: *** [cdemud-daemon.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from cdemud.h:49,
                 from cdemud-audio.c:20:
cdemud-mmc-features.h:26:1: warning: "LITTLE_ENDIAN_BITFIELD" redefined
In file included from /usr/include/libmirage-1.0/mirage.h:47,
                 from cdemud.h:44,
                 from cdemud-audio.c:20:
/usr/include/libmirage-1.0/mirage-disc-structures.h:24:1: warning: this is the location of the previous definition
In file included from cdemud.h:49,
                 from cdemud-device.c:20:
cdemud-mmc-features.h:26:1: warning: "LITTLE_ENDIAN_BITFIELD" redefined
In file included from /usr/include/libmirage-1.0/mirage.h:47,
                 from cdemud.h:44,
                 from cdemud-device.c:20:
/usr/include/libmirage-1.0/mirage-disc-structures.h:24:1: warning: this is the location of the previous definition
make[3]: Leaving directory `/tmp/yaourt-tmp-root/abs-cdemu-daemon/src/cdemu-daemon-1.1.0/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/yaourt-tmp-root/abs-cdemu-daemon/src/cdemu-daemon-1.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-root/abs-cdemu-daemon/src/cdemu-daemon-1.1.0'
make: *** [all] Error 2
==> ERROR: Build Failed.
    Aborting...
Error: Makepkg was unable to build cdemu-daemon package.
If you like this package, please install aurvote
and vote for its inclusion/keeping in [community]

Similar Messages

  • Cdemu - can't get it to work (can't connect do dbus, no cdemu module)

    Hi all! As the topic subject says, I can't get cdemu to work.
    I'm trying to use it to mount some .mdf images (wanna play Diablo 2 again, and I really don't wanna use the CDs for this).
    So here goes. First I tried mounting the .mdf image with cdemu, like this...
    cdemu load 0 01.Install.mdf
    I get an error message:
    ERROR: Failed to connect to CDEmu daemon: org.freedesktop.DBus.Error.ServiceUnknown: The name net.sf.cdemu.CDEMUD_Daemon was not provided by any .service files
    ERROR: Failed to connect to daemon (bus: 'session')!
    So I found somewhere that I should compile the cdemu-daemon and cdemu-client...
    yaourt -Sb --noconfirm cdemu-daemon cdemu-client
    now, cdemu-daemon compiles fine, but cdemu-client doesn't seem to compile. what I get as an error is this:
    Byte-compiling python modules...
    __init__.pycdemu.py File "/usr/lib/python3.1/site-packages/cdemu/cdemu.py", line 128
    except dbus.DBusException, e:
    ^
    SyntaxError: invalid syntax
    The full output is in the pastebin.
    So anyway, cdemu client installs (althought the success of this is obviously questionable at best), and when I try mounting an image, I (probably as expected) get this:
    Traceback (most recent call last):
    File "/usr/bin/cdemu", line 23, in <module>
    import cdemu, cdemu.cdemu
    ImportError: No module named cdemu
    A little more digging revealed that cdemu-client is still compiled against python2 rather than python3, so that would probably be the reason why my compile fails.
    I would be very grateful if someone could tell me how to get this thing to work. And if I can help compiling this package properly, please do tell me how.
    Thanks in advance!

    Primoz wrote:First: Try to compile it to python2.
    How exactly do I do that?
    Primoz wrote:Second: Did you add cdemud to your Deamons array; or did sudo /etc/rc.d/cdemud start, before trying to load ISO file with cdemu?
    Third: Do you have vhba-module installed and is it added to modules array?
    Yes and yes.
    defears wrote:
    Try this from terminal. Took a long time for me to get this working too.
    cdemu load 0 /path/to/file.cue -b system
    Thanks! This worked. I can play Diablo 2 now, yaaaay

  • Automate SQL Connect in essbase

    Is there a way to automate the connection to SQL database while retrieving the data in essbase during rules file build. So everytime I have to update the metadata or fact data I won't have to type in the username and password for the SQL Data Source.
    Thanks ahead of time.

    You should write a maxl shell script (embedded in a batch script )which should call the essbase metadata and dataloads from the sql and later parameterize your essbase login credentials in the Batch script.
    For example.
    Content of batch script
    @echo off
    set d=%date:~-4,4%%date:~-7,2%%date:~0,2%
    set d=%d: =_%
    set t=%time:~0,2%%time:~3,2%%time:~6,2%
    set t=%t: =0%
    set ESSUSER=admin
    Set ESSPWD=Password
    set ESSSERVER=localhost
    set ESSAPP=Sample
    set ESSDB=Basic
    set DBUSER=admin123
    set DBPWD= password
    SET ESSBASE SERVER PATH=D:\Hyperion\Middleware\EPMSystem11R1\products\Essbase\EssbaseServer
    set MaxlScript=D:\Hyperion\Middleware\user_projects\epmsystem1\Essbaseserver\essbaseserver1\bin
    essmsh "D:\Load.mxl" %ESSUSER% %ESSPWD% %ESSSERVER% %dt% %tm%
    Maxlscript Content
    spool on to "D:/dataload.log";
    set timestamp on;
    login $ESSUSER $ESSPWD on $ESSSERVER;
    display session all;
    alter system kill request all;
    alter system logout session all force;
    import database $ESSAPP.$ESSDB data connect as $DBUSER identified by $DBPWD using server rules_file Sample.rul on error write to "d:\rule.log" ;
    spool off;
    logout;
    exit;
    I hope this one helps you
    Thanks,
    Sreekumar Hariharan

  • Darktable error with dbus

    Hi:
    I am having a problem with darktable:
    When I run the program begins to read the directory where I have my RAW, and when the program closes.
    I run it from console and I get the following error message:
    (darktable:3105): GConf-WARNING **: The connection to DBus was broken. Can't reinitialize it.
    I look if dbus daemon is running and yes, it is.
    Get the following error also, I do not know if you have something to do
    libusb couldn't open USB device /dev/bus/usb/001/001: Permission denied.
    libusb requires write access to USB device nodes.
    libusb couldn't open USB device /dev/bus/usb/001/002: Permission denied.
    libusb requires write access to USB device nodes.
    libusb couldn't open USB device /dev/bus/usb/002/001: Permission denied.
    libusb requires write access to USB device nodes.
    libusb couldn't open USB device /dev/bus/usb/003/001: Permission denied.
    libusb requires write access to USB device nodes.
    libusb couldn't open USB device /dev/bus/usb/004/001: Permission denied.
    libusb requires write access to USB device nodes.
    libusb couldn't open USB device /dev/bus/usb/004/002: Permission denied.
    libusb requires write access to USB device nodes.
    Falló en GConf: No se pudo contactar con el servidor de configuración: Error de D-Bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
    Falló en GConf: No se pudo contactar con el servidor de configuración: Error de D-Bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
    Any help??
    Previously, worked well. I do not know since when it fails
    Many thanks in advance
    Greetings
    Rafa

    For now try using https://aur.archlinux.org/packages.php?ID=54069 which is version with gconf disabled (I encountered similar bug, so made package as a temporary workaround around gconf troubles). If it works for you, switch to it before https://bugs.archlinux.org/task/26890 gets fixed.
    Last edited by Giniu (2011-11-17 15:59:30)

  • Netcfg dbus error

    Upon trying to use netcfg with my profile, it gives me an error.
    File "/usr/lib/network//connections//wireless-dbus", line 3, in <module>
        import dbus
    ImportError: No module named dbus
    Help, please.

    I already have them installed, would it be my python version number?
    I have the current 2.6.4.

  • Banshee + dbus problem

    I just switched from gnome to xfce and xmonad.
    Everything is wonderful but I've got an issue with banshee.
    It works, but it doesn't "connect" to dbus, and so I can't set my keybindings to it since if I try to execute something like "banshee-1 --previous" it would open a new banshee istance
    [Info 01:13:22.903] Running Banshee 1.5.2: [source-tarball (linux-gnu, x86_64) @ 2009-11-21 20:36:59 UTC]
    [Warn 01:13:23.096] DBus support could not be started. Disabling for this session.
    [Warn 01:13:23.709] Caught an exception - No support GNOME Settings Daemon could be reached. (in `Banshee.MultimediaKeys')
    at Banshee.MultimediaKeys.MultimediaKeysService.Banshee.ServiceStack.IExtensionService.Initialize () [0x00000]
    at Banshee.ServiceStack.ServiceManager.StartExtension (Mono.Addins.TypeExtensionNode node) [0x00000]
    [Warn 01:13:23.709] Extension `Banshee.MultimediaKeys.MultimediaKeysService' not started: No support GNOME Settings Daemon could be reached.
    [Warn 01:13:23.776] Caught an exception - No support GNOME Settings Daemon could be reached. (in `Banshee.MultimediaKeys')
    at Banshee.MultimediaKeys.MultimediaKeysService.Banshee.ServiceStack.IExtensionService.Initialize () [0x00000]
    at Banshee.ServiceStack.ServiceManager.StartExtension (Mono.Addins.TypeExtensionNode node) [0x00000]
    [Warn 01:13:23.776] Extension `Banshee.MultimediaKeys.MultimediaKeysService' not started: No support GNOME Settings Daemon could be reached.
    [Info 01:13:23.777] All services are started 0.680205s
    [Warn 01:13:24.212] IScreensaverManager extension failed to load - Argument cannot be null.
    Parameter name: address (in `NDesk.DBus')
    at NDesk.DBus.Bus.Open (System.String address) [0x00000]
    at NDesk.DBus.Bus.get_Session () [0x00000]
    Unable to open the session message bus. (in `NDesk.DBus')
    at NDesk.DBus.Bus.get_Session () [0x00000]
    at Banshee.GnomeBackend.GnomeScreensaverManager.get_Manager () [0x00000]
    at Banshee.GnomeBackend.GnomeScreensaverManager..ctor () [0x00000]
    at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[],System.Exception&)
    at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
    Exception has been thrown by the target of an invocation. (in `mscorlib')
    at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
    at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
    at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000]
    at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000]
    at System.Activator.CreateInstance (System.Type type) [0x00000]
    at Mono.Addins.TypeExtensionNode.CreateInstance () [0x00000]
    at Mono.Addins.InstanceExtensionNode.CreateInstance (System.Type expectedType) [0x00000]
    at Banshee.PlatformServices.ScreensaverManager..ctor () [0x00000]
    [Info 01:13:24.434] nereid Client Started
    The problem is exactly the one described here: http://bbs.archlinux.org/viewtopic.php?id=65189 and in fact if I try to launch banshee with dbus-launch it doesn't throw that error.
    Is there a way to fix that?

    ok, someone suggested the solution in irc: http://wiki.archlinux.org/index.php/D-Bus#D-bus_Launch

  • Problems running dbus enabled X session

    Hello,
    I wanted to start using BMPx and Tapioca. They both need dbus. I managed to launch both of them with dbus-launch.
    I read on the BMPx wiki and on this forum that in order to create a dbus for all programs in an x session I need to launch my WM with dbus-launch. So I added this line to my .xinitrc
    exec dbus-launch --exit-with-session openbox
    I also tried it with --auto-syntax and --sh-syntax.
    I also tried xfce and fluxbox.
    In all above casses both BMPx and Tapioca complained with :
    beep-media-player-2: Couldn't connect to session bus: Unable to determine the address of the message bus
    unless launched with dbus-launch.
    And dbus-montior claimed there's no bus
    I tried it also while running the dbus daemon and while not running it...
    when I do
    echo $DBUS_SESSION_BUS_ADDRESS
    I get nothing but when I run dbus-launch with no paramaters in a xterm I get :
    DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-5hsKboPaLc,guid=95c03244924aebfa7fd676e4debfb300';
    DBUS_SESSION_BUS_PID=3388;
    I'm running out of ideas, is anyone experiencing the same problems and/or knows the solution?
    Thank you,
    Grey

    I have also troubles with tapioca and the dbus.
    ** (tapiocaui:19304): WARNING **: failed to open connection to dbus
    I'm running kde 3.5.2-2 and started dbus and then hal before I restarted X.

  • HP LaserJet P1102W - no print output in Linux Mint 17.1 Cinnamon Desktop

    I've just done a default install of Linux Mint 17.1 - as feared, no print output.
    I'm guessing I need to install a driver - but I couldn't find anything easily on HP site, only Windows/Mac OS stuff. Are HP printers generally linux friendly? Where can I download drivers if they are? More over, I'm a total linux newbie, so any drivers need to be easily installed! I'm not currently familiar with Terminal windows and line commands!
    My printer does have wireless enabled, but I have it connected via direct USB also.
    Linux Mint did offer to run a diagnostic tool/debugging tool which gave a great deal of what means nothing to me. Debug output is below if it is helpful, but hoping a simple driver install will cure all ...
    Debug Output:
    Page 1 (Scheduler not running?):
    {'cups_connection_failure': False}
    Page 2 (Is local server publishing?):
    {'local_server_exporting_printers': False}
    Page 3 (Choose printer):
    {'cups_dest': <cups.Dest HP-LaserJet-Professional-P-1102w (default)>,
     'cups_instance': None,
     'cups_queue': u'HP-LaserJet-Professional-P-1102w',
     'cups_queue_listed': True}
    Page 4 (Check printer sanity):
    {'cups_device_uri_scheme': u'hp',
     'cups_printer_dict': {'device-uri': u'hp:/usb/HP_LaserJet_Professional_P_1102w?serial=000000000W4037X5PR1a',
                           'printer-info': u'Hewlett-Packard HP LaserJet Professional P 1102w',
                           'printer-is-shared': True,
                           'printer-location': u'Leela',
                           'printer-make-and-model': u'HP LaserJet Professional P 1102w, hpcups 3.14.3, requires proprietary plugin',
                           'printer-state': 3,
                           'printer-state-message': u'',
                           'printer-state-reasons': [u'none'],
                           'printer-type': 167948,
                           'printer-uri-supported': u'ipp://localhost:631/printers/HP-LaserJet-Professional-P-1102w'},
     'cups_printer_remote': False,
     'hplip_output': (['',
                       '\x1b[01mHP Linux Imaging and Printing System (ver. 3.14.3)\x1b[0m',
                       '\x1b[01mDevice Information Utility ver. 5.2\x1b[0m',
                       'Copyright (c) 2001-13 Hewlett-Packard Development Company, LP',
                       'This software comes with ABSOLUTELY NO WARRANTY.',
                       'This is free software, and you are welcome to distribute it',
                       'under certain conditions. See COPYING file for more details.',
                       '\x1b[01mHP Linux Imaging and Printing System (ver. 3.14.3)\x1b[0m',
                       '\x1b[01mSystem Tray Status Service ver. 2.0\x1b[0m',
                       'Copyright (c) 2001-13 Hewlett-Packard Development Company, LP',
                       'This software comes with ABSOLUTELY NO WARRANTY.',
                       'This is free software, and you are welcome to distribute it',
                       'under certain conditions. See COPYING file for more details.',
                       '\x1b[01mhp:/usb/HP_LaserJet_Professional_P_1102w?serial=000000000W4037X5PR1a\x1b[0m',
                       '\x1b[01mDevice Parameters (dynamic data):\x1b[0m',
                       '\x1b[01m  Parameter                     Value(s)                                                  \x1b[0m',
                       '  agent1-ack                    False                                                     ',
                       '  agent1-desc                   Black toner cartridge                                     ',
                       '  agent1-dvc                    0                                                         ',
                       '  agent1-health                 0                                                         ',
                       '  agent1-health-desc            Good/OK                                                   ',
                       '  agent1-hp-ink                 False                                                     ',
                       '  agent1-id                     0                                                         ',
                       '  agent1-kind                   4                                                         ',
                       '  agent1-known                  False                                                     ',
                       '  agent1-level                  100                                                       ',
                       '  agent1-level-trigger          0                                                         ',
                       '  agent1-sku                    85A                                                       ',
                       '  agent1-type                   1                                                         ',
                       '  agent1-virgin                 False                                                     ',
                       '  back-end                      hp                                                        ',
                       "  cups-printers                 ['HP-LaserJet-Professional-P-1102w']                      ",
                       '  cups-uri                      hp:/usb/HP_LaserJet_Professional_P_1102w?serial=000000000W',
                       '                                4037X5PR1a                                                ',
                       '  dev-file                                                                                ',
                       '  device-state                  1                                                         ',
                       '  device-uri                    hp:/usb/HP_LaserJet_Professional_P_1102w?serial=000000000W',
                       '                                4037X5PR1a                                                ',
                       '  deviceid                      MFG:Hewlett-Packard;MDL: LaserJet Professional P          ',
                       '                                1102w;CMD:ZJSJS,URF,PCLm,PJL,ACL,HTTCLSLSRINTER;DEHPHP  ',
                       '                                LaserJet Presessional P 110;F;FWVER:20110826;             ',
                       '  duplexer                      0                                                         ',
                       '  error-state                   0                                                         ',
                       '  host                                                                                    ',
                       '  in-tray1                      1                                                         ',
                       '  in-tray2                      1                                                         ',
                       '  is-hp                         True                                                      ',
                       '  media-path                    1                                                         ',
                       '  panel                         0                                                         ',
                       '  panel-line1                                                                             ',
                       '  panel-line2                                                                             ',
                       '  photo-tray                    0                                                         ',
                       '  port                          1                                                         ',
                       '  r                             0                                                         ',
                       '  revision                      254                                                       ',
                       '  rg                            000                                                       ',
                       '  rr                            000000                                                    ',
                       '  rs                            000000000                                                 ',
                       '  serial                        000000000W4037X5PR1a                                      ',
                       '  status-code                   1000                                                      ',
                       '  status-desc                   Idle                                                      ',
                       '  supply-door                   1                                                         ',
                       '  top-door                      1                                                         ',
                       '\x1b[01m',
                       'Model Parameters (static data):\x1b[0m',
                       '\x1b[01m  Parameter                     Value(s)                                                  \x1b[0m',
                       '  align-type                    0                                                         ',
                       '  clean-type                    0                                                         ',
                       '  color-cal-type                0                                                         ',
                       '  copy-type                     0                                                         ',
                       '  embedded-server-type          0                                                         ',
                       '  fax-type                      0                                                         ',
                       '  fw-download                   False                                                     ',
                       '  icon                          HP_LaserJet_1012.png                                      ',
                       '  io-mfp-mode                   6                                                         ',
                       '  io-mode                       1                                                         ',
                       '  io-support                    10                                                        ',
                       '  job-storage                   0                                                         ',
                       '  linefeed-cal-type             0                                                         ',
                       '  model                         HP_LaserJet_Professional_P_1102w                          ',
                       '  model-ui                      HP LaserJet Professional P 1102w                          ',
                       '  model1                        HP LaserJet Professional P 1102w Printer                  ',
                       '  monitor-type                  0                                                         ',
                       '  panel-check-type              0                                                         ',
                       '  pcard-type                    0                                                         ',
                       '  plugin                        1                                                         ',
                       '  plugin-reason                 1                                                         ',
                       '  power-settings                0                                                         ',
                       '  pq-diag-type                  0                                                         ',
                       '  r-type                        0                                                         ',
                       '  r0-agent1-kind                4                                                         ',
                       '  r0-agent1-sku                 85A                                                       ',
                       '  r0-agent1-type                1                                                         ',
                       '  scan-src                      0                                                         ',
                       '  scan-type                     0                                                         ',
                       '  status-battery-check          0                                                         ',
                       '  status-dynamic-counters       0                                                         ',
                       '  status-type                   8                                                         ',
                       '  support-released              True                                                      ',
                       '  support-subtype               2202411                                                   ',
                       '  support-type                  2                                                         ',
                       '  support-ver                   3.12.6                                                    ',
                       "  tech-class                    ['LJZjsMono']                                             ",
                       "  tech-subclass                 ['NoAutoDuplex']                                          ",
                       '  tech-type                     3                                                         ',
                       '  usb-pid                       4138                                                      ',
                       '  usb-vid                       1008                                                      ',
                       '  wifi-config                   3                                                         ',
                       'Done.',
                      ['\x1b[35;01mwarning: No display found.\x1b[0m',
                       '\x1b[31;01merror: hp-info -u/--gui requires Qt4 GUI support. Entering interactive mode.\x1b[0m',
                       '\x1b[35;01mwarning: No display found.\x1b[0m',
                       '\x1b[31;01merror: hp-systray requires Qt4 GUI and DBus support. Exiting.\x1b[0m',
                       '\x1b[35;01mwarning: Unable to connect to dbus. Is hp-systray running?\x1b[0m',
                      0),
     'is_cups_class': False,
     'local_cups_queue_attributes': {'charset-configured': u'utf-8',
                                     'charset-supported': [u'us-ascii', u'utf-8'],
                                     'color-supported': True,
                                     'compression-supported': [u'none', u'gzip'],
                                     'copies-default': 1,
                                     'copies-supported': (1, 9999),
                                     'cups-version': u'1.7.2',
                                     'device-uri': u'hp:/usb/HP_LaserJet_Professional_P_1102w?serial=000000000W4037X5PR1a',
                                     'document-format-default': u'application/octet-stream',
                                     'document-format-supported': [u'application/octet-stream',
                                                                   u'application/pdf',
                                                                   u'application/postscript',
                                                                   u'application/vnd.adobe-reader-postscript',
                                                                   u'application/vnd.cups-pdf',
                                                                   u'application/vnd.cups-pdf-banner',
                                                                   u'application/vnd.cups-postscript',
                                                                   u'application/vnd.cups-raster',
                                                                   u'application/vnd.cups-raw',
                                                                   u'application/x-cshell',
                                                                   u'application/x-csource',
                                                                   u'application/x-perl',
                                                                   u'application/x-shell',
                                                                   u'image/gif',
                                                                   u'image/jpeg',
                                                                   u'image/png',
                                                                   u'image/tiff',
                                                                   u'image/urf',
                                                                   u'image/x-bitmap',
                                                                   u'image/x-photocd',
                                                                   u'image/x-portable-anymap',
                                                                   u'image/x-portable-bitmap',
                                                                   u'image/x-portable-graymap',
                                                                   u'image/x-portable-pixmap',
                                                                   u'image/x-sgi-rgb',
                                                                   u'image/x-sun-raster',
                                                                   u'image/x-xbitmap',
                                                                   u'image/x-xpixmap',
                                                                   u'image/x-xwindowdump',
                                                                   u'text/css',
                                                                   u'text/html',
                                                                   u'text/plain'],
                                     'finishings-default': 3,
                                     'finishings-supported': [3],
                                     'generated-natural-language-supported': [u'en-us'],
                                     'ipp-versions-supported': [u'1.0',
                                                                u'1.1',
                                                                u'2.0',
                                                                u'2.1'],
                                     'ippget-event-life': 15,
                                     'job-creation-attributes-supported': [u'copies',
                                                                           u'finishings',
                                                                           u'ipp-attribute-fidelity',
                                                                           u'job-hold-until',
                                                                           u'job-name',
                                                                           u'job-priority',
                                                                           u'job-sheets',
                                                                           u'media',
                                                                           u'media-col',
                                                                           u'multiple-document-handling',
                                                                           u'number-up',
                                                                           u'output-bin',
                                                                           u'orientation-requested',
                                                                           u'page-ranges',
                                                                           u'print-color-mode',
                                                                           u'print-quality',
                                                                           u'printer-resolution',
                                                                           u'sides'],
                                     'job-hold-until-default': u'no-hold',
                                     'job-hold-until-supported': [u'no-hold',
                                                                  u'indefinite',
                                                                  u'day-time',
                                                                  u'evening',
                                                                  u'night',
                                                                  u'second-shift',
                                                                  u'third-shift',
                                                                  u'weekend'],
                                     'job-ids-supported': True,
                                     'job-k-limit': 0,
                                     'job-k-octets-supported': (0, 476568600),
                                     'job-page-limit': 0,
                                     'job-priority-default': 50,
                                     'job-priority-supported': [100],
                                     'job-quota-period': 0,
                                     'job-settable-attributes-supported': [u'copies',
                                                                           u'finishings',
                                                                           u'job-hold-until',
                                                                           u'job-name',
                                                                           u'job-priority',
                                                                           u'media',
                                                                           u'media-col',
                                                                           u'multiple-document-handling',
                                                                           u'number-up',
                                                                           u'output-bin',
                                                                           u'orientation-requested',
                                                                           u'page-ranges',
                                                                           u'print-color-mode',
                                                                           u'print-quality',
                                                                           u'printer-resolution',
                                                                           u'sides'],
                                     'job-sheets-default': (u'none', u'none'),
                                     'job-sheets-supported': [u'none',
                                                              u'classified',
                                                              u'confidential',
                                                              u'form',
                                                              u'secret',
                                                              u'standard',
                                                              u'topsecret',
                                                              u'unclassified'],
                                     'jpeg-k-octets-supported': (0, 476568600),
                                     'jpeg-x-dimension-supported': (0, 65535),
                                     'jpeg-y-dimension-supported': (1, 65535),
                                     'marker-change-time': 0,
                                     'media-bottom-margin-supported': [423, 547],
                                     'media-col-default': u'(unknown IPP value tag 0x34)',
                                     'media-col-supported': [u'media-bottom-margin',
                                                             u'media-left-margin',
                                                             u'media-right-margin',
                                                             u'media-size',
                                                             u'media-source',
                                                             u'media-top-margin',
                                                             u'media-type'],
                                     'media-default': u'iso_a4_210x297mm',
                                     'media-left-margin-supported': [423, 635],
                                     'media-right-margin-supported': [423, 635],
                                     'media-size-supported': [u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)',
                                                              u'(unknown IPP value tag 0x34)'],
                                     'media-source-supported': [u'auto',
                                                                u'manual'],
                                     'media-supported': [u'iso_a6_105x148mm',
                                                         u'iso_a5_148x210mm',
                                                         u'jpn_hagaki_100x148mm',
                                                         u'om_double-postcard_148.17x200.03mm',
                                                         u'om_jb5_182.12x257.05mm',
                                                         u'na_executive_7.25x10.5in',
                                                         u'om_16k195x270_195.09x269.88mm',
                                                         u'om_16k184x260_184.15x260mm',
                                                         u'oe_16k197x273_7.75x10.75in',
                                                         u'na_letter_8.5x11in',
                                                         u'iso_a4_210x297mm',
                                                         u'oe_flsa_8.5x13in',
                                                         u'na_legal_8.5x14in',
                                                         u'na_monarch_3.875x7.5in',
                                                         u'iso_dl_110x220mm',
                                                         u'na_number-10_4.125x9.5in',
                                                         u'iso_c5_162x229mm',
                                                         u'om_env-b5_176.04x250.12mm',
                                                         u'custom_min_3x5in',
                                                         u'custom_max_17x36in'],
                                     'media-top-margin-supported': [423, 547],
                                     'media-type-supported': [u'stationery'],
                                     'multiple-document-handling-supported': [u'separate-documents-uncollated-copies',
                                                                              u'separate-documents-collated-copies'],
                                     'multiple-document-jobs-supported': True,
                                     'multiple-operation-time-out': 300,
                                     'natural-language-configured': u'en-us',
                                     'notify-attributes-supported': [u'printer-state-change-time',
                                                                     u'notify-lease-expiration-time',
                                                                     u'notify-subscriber-user-name'],
                                     'notify-events-default': [u'job-completed'],
                                     'notify-events-supported': [u'job-completed',
                                                                 u'job-config-changed',
                                                                 u'job-created',
                                                                 u'job-progress',
                                                                 u'job-state-changed',
                                                                 u'job-stopped',
                                                                 u'printer-added',
                                                                 u'printer-changed',
                                                                 u'printer-config-changed',
                                                                 u'printer-deleted',
                                                                 u'printer-finishings-changed',
                                                                 u'printer-media-changed',
                                                                 u'printer-modified',
                                                                 u'printer-restarted',
                                                                 u'printer-shutdown',
                                                                 u'printer-state-changed',
                                                                 u'printer-stopped',
                                                                 u'server-audit',
                                                                 u'server-restarted',
                                                                 u'server-started',
                                                                 u'server-stopped'],
                                     'notify-lease-duration-default': 86400,
                                     'notify-lease-duration-supported': (0,
                                                                         2147483647),
                                     'notify-max-events-supported': [100],
                                     'notify-pull-method-supported': [u'ippget'],
                                     'notify-schemes-supported': [u'dbus',
                                                                  u'mailto',
                                                                  u'rss'],
                                     'number-up-default': 1,
                                     'number-up-supported': [1, 2, 4, 6, 9, 16],
                                     'operations-supported': [2,
                                                              4,
                                                              5,
                                                              6,
                                                              8,
                                                              9,
                                                              10,
                                                              11,
                                                              12,
                                                              13,
                                                              14,
                                                              16,
                                                              17,
                                                              18,
                                                              19,
                                                              20,
                                                              21,
                                                              22,
                                                              23,
                                                              24,
                                                              25,
                                                              26,
                                                              27,
                                                              28,
                                                              34,
                                                              35,
                                                              37,
                                                              38,
                                                              56,
                                                              57,
                                                              59,
                                                              16385,
                                                              16386,
                                                              16387,
                                                              16388,
                                                              16389,
                                                              16390,
                                                              16391,
                                                              16392,
                                                              16393,
                                                              16394,
                                                              16395,
                                                              16396,
                                                              16397,
                                                              16398,
                                                              16399,
                                                              16423,
                                                              14],
                                     'orientation-requested-default': None,
                                     'orientation-requested-supported': [3,
                                                                         4,
                                                                         5,
                                                                         6],
                                     'output-bin-default': u'face-down',
                                     'output-bin-supported': [u'face-down'],
                                     'page-ranges-supported': True,
                                     'pages-per-minute': 1,
                                     'pages-per-minute-color': 1,
                                     'pdf-k-octets-supported': (0, 476568600),
                                     'pdf-versions-supported': [u'adobe-1.2',
                                                                u'adobe-1.3',
                                                                u'adobe-1.4',
                                                                u'adobe-1.5',
                                                                u'adobe-1.6',
                                                                u'adobe-1.7',
                                                                u'iso-19005-1_2005',
                                                                u'iso-32000-1_2008',
                                                                u'pwg-5102.3'],
                                     'pdl-override-supported': [u'attempted'],
                                     'port-monitor': u'none',
                                     'port-monitor-supported': [u'none'],
                                     'ppd-timestamp': u'*',
                                     'print-color-mode-default': u'color',
                                     'print-color-mode-supported': [u'monochrome',
                                                                    u'color'],
                                     'print-quality-default': 4,
                                     'print-quality-supported': [3, 4],
                                     'printer-commands': u'none',
                                     'printer-current-time': u'(IPP_TAG_DATE)',
                                     'printer-dns-sd-name': u'Hewlett-Packard HP LaserJet Professional P 1102w @ Leela',
                                     'printer-error-policy': u'retry-job',
               

    Hi @durandal,
    I read your post and see that you need the drivers for the P1102w printer. I can provide the website for you.
    Here is the link for the HP Linux Imaging and Printing website. HP Linux imaging and printing.
    Here is the link for the P1102w drivers. HP LaserJet Professional p1102w Printer.
    If you need more information, please post your questions at the Linux Distribution Forums.
    If you appreciate my efforts, please click the Thumbs up button below.
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • HP Laserjet not working with CUPS

    There are some related threads in this forum, but I still can't figure out what is my problem (printer works in some situations - printing a pdf in evince or a webpage in chromium - but in others not, e.g. printing from emacs), and there are error messages from hp-check.
    Here are two command-line checks:
    [tj@arch ~]$ lpstat
    [tj@arch ~]$ hp-probe
    HP Linux Imaging and Printing System (ver. 3.12.2)
    Printer Discovery Utility ver. 4.1
    Using connection type: usb
    | DEVICE DISCOVERY |
    Device URI Model
    hp:/usb/HP_LaserJet_P2055d?serial=S1663Y7 HP LaserJet P2055d
    Found 1 printer(s) on the 'usb' bus.
    Here is what the CUPS webinterface at localhost:631 says:
    HP_LaserJet_P2055d (Idle, Accepting Jobs, Not Shared)
    Description: HP_LaserJet_P2055d
    Location:
    Driver: HP LaserJet P2055 Postscript (recommended) (grayscale, 2-sided printing)
    Connection: hp:/usb/HP_LaserJet_P2055d?serial=S1663Y7
    Defaults: job-sheets=none, none media=na_letter_8.5x11in sides=one-sided
    And here is the output from hp-checks, with 4 errors, the 2 most prominent of them extracted first:
    warning: No queues found.
    Checking for permissions of USB attached printers...
    HP Device 0x5c17 at 001:004:
    Device URI: hp:/usb/HP_LaserJet_P2055d?serial=S1663Y7
    error: Unable to connect to dbus session bus.
    Device node: /dev/bus/usb/001/004
    Mode: 0664
    getfacl: Entferne f?hrende '/' von absoluten Pfadnamen
    # file: dev/bus/usb/001/004
    # owner: root
    # group: lp
    user::rw-
    group::rw-
    other::r--
    [tj@arch ~]$ hp-check
    HP Linux Imaging and Printing System (ver. 3.12.2)
    Dependency/Version Check Utility ver. 14.3
    Copyright (c) 2011-14 Hewlett-Packard Development Company, LP
    This software comes with ABSOLUTELY NO WARRANTY.
    This is free software, and you are welcome to distribute it
    under certain conditions. See COPYING file for more details.
    Note: hp-check can be run in three modes:
    1. Compile-time check mode (-c or --compile): Use this mode before compiling the
    HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
    are installed to successfully compile HPLIP.
    2. Run-time check mode (-r or --run): Use this mode to determine if a distro
    supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball
    has the proper dependencies installed to successfully run.
    3. Both compile- and run-time check mode (-b or --both) (Default): This mode
    will check both of the above cases (both compile- and run-time dependencies).
    Saving output in log file: hp-check.log
    Initializing. Please wait...
    | SYSTEM INFO |
    Basic system information:
    Linux arch 3.2.13-1-ARCH #1 SMP PREEMPT Sat Mar 24 09:10:39 CET 2012 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ AuthenticAMD GNU/Linux
    Distribution:
    unknown 0.0
    Checking Python version...
    OK, version 2.7.2 installed
    Checking PyQt 4.x version...
    OK, version 4.9.1 installed.
    Checking for CUPS...
    Status:
    Version: 1.5.2
    error_log is set to level: warn
    Checking for dbus/python-dbus...
    dbus daemon is running.
    python-dbus version: 0.84.0
    | COMPILE AND RUNTIME DEPENDENCIES |
    note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
    note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).
    Checking for dependency: CUPS - Common Unix Printing System...
    OK, found.
    Checking for dependency: CUPS devel- Common Unix Printing System development files...
    OK, found.
    Checking for dependency: CUPS image - CUPS image development files...
    OK, found.
    Checking for dependency: DBus - Message bus system...
    OK, found.
    Checking for dependency: gcc - GNU Project C and C++ Compiler...
    OK, found.
    Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
    OK, found.
    Checking for dependency: libcrypto - OpenSSL cryptographic library...
    OK, found.
    Checking for dependency: libjpeg - JPEG library...
    OK, found.
    Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
    OK, found.
    Checking for dependency: libpthread - POSIX threads library...
    OK, found.
    Checking for dependency: libtool - Library building support services...
    OK, found.
    Checking for dependency: libusb - USB library...
    OK, found.
    Checking for dependency: make - GNU make utility to maintain groups of programs...
    OK, found.
    Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
    warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
    Checking for dependency: PolicyKit - Administrative policy framework...
    OK, found.
    Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
    OK, found.
    Checking for dependency: Python DBus - Python bindings for DBus...
    OK, found.
    Checking for dependency: Python devel - Python development files...
    OK, found.
    Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
    warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
    Checking for dependency: Python XML libraries...
    OK, found.
    Checking for dependency: Python 2.3 or greater - Required for fax functionality...
    OK, found.
    Checking for dependency: Python 2.2 or greater - Python programming language...
    OK, found.
    Checking for dependency: Reportlab - PDF library for Python...
    warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
    Checking for dependency: SANE - Scanning library...
    OK, found.
    Checking for dependency: SANE - Scanning library development files...
    OK, found.
    Checking for dependency: scanimage - Shell scanning program...
    OK, found.
    Checking for dependency: xsane - Graphical scanner frontend for SANE...
    warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
    | HPLIP INSTALLATION |
    Currently installed HPLIP version...
    HPLIP 3.12.2 currently installed in '/usr/share/hplip'.
    Current contents of '/etc/hp/hplip.conf' file:
    # hplip.conf. Generated from hplip.conf.in by configure.
    [hplip]
    version=3.12.2
    [dirs]
    home=/usr/share/hplip
    run=/var/run
    ppd=/usr/share/ppd/HP
    ppdbase=/usr/share/ppd
    doc=/usr/share/doc/hplip-3.12.2
    icon=/usr/share/applications
    cupsbackend=/usr/lib/cups/backend
    cupsfilter=/usr/lib/cups/filter
    drv=/usr/share/cups/drv/hp
    # Following values are determined at configure time and cannot be changed.
    [configure]
    network-build=yes
    pp-build=yes
    gui-build=yes
    scanner-build=yes
    fax-build=yes
    dbus-build=yes
    cups11-build=no
    doc-build=yes
    shadow-build=no
    hpijs-install=yes
    foomatic-drv-install=yes
    foomatic-ppd-install=yes
    foomatic-rip-hplip-install=yes
    hpcups-install=yes
    cups-drv-install=yes
    cups-ppd-install=yes
    internal-tag=3.12.2
    restricted-build=no
    ui-toolkit=qt4
    qt3=no
    qt4=yes
    policy-kit=no
    hpijs-only-build=no
    lite-build=no
    udev-acl-rules=yes
    hpcups-only-build=no
    hpijs-only-build=no
    Current contents of '/var/lib/hp/hplip.state' file:
    # hplip.state - HPLIP runtime persistent variables.
    [plugin]
    installed=0
    eula=0
    Current contents of '~/.hplip/hplip.conf' file:
    [settings]
    systray_visible = 0
    systray_messages = 0
    [last_used]
    device_uri =
    printer_name = HP_LaserJet_P2055d
    working_dir = .
    [commands]
    scan =
    [refresh]
    rate = 30
    enable = false
    type = 1
    [polling]
    enable = false
    interval = 5
    device_list =
    [fax]
    voice_phone =
    email_address =
    [installation]
    date_time = 04/03/12 12:29:03
    version = 3.12.2
    | DISCOVERED USB DEVICES |
    Device URI Model
    hp:/usb/HP_LaserJet_P2055d?seria HP LaserJet P2055d
    l=S1663Y7
    | INSTALLED CUPS PRINTER QUEUES |
    warning: No queues found.
    | SANE CONFIGURATION |
    'hpaio' in '/etc/sane.d/dll.conf'...
    OK, found. SANE backend 'hpaio' is properly set up.
    Checking output of 'scanimage -L'...
    device `v4l:/dev/video0' is a Noname USB Camera (046d:08da) virtual device
    | PYTHON EXTENSIONS |
    Checking 'cupsext' CUPS extension...
    OK, found.
    Checking 'pcardext' Photocard extension...
    OK, found.
    Checking 'hpmudext' I/O extension...
    OK, found.
    Checking 'scanext' SANE scanning extension...
    OK, found.
    | USB I/O SETUP |
    Checking for permissions of USB attached printers...
    HP Device 0x5c17 at 001:004:
    Device URI: hp:/usb/HP_LaserJet_P2055d?serial=S1663Y7
    error: Unable to connect to dbus session bus.
    Device node: /dev/bus/usb/001/004
    Mode: 0664
    getfacl: Entferne f?hrende '/' von absoluten Pfadnamen
    # file: dev/bus/usb/001/004
    # owner: root
    # group: lp
    user::rw-
    group::rw-
    other::r--
    | USER GROUPS |
    lp wheel games video audio optical storage scanner power users www
    | SUMMARY |
    error: 4 errors and/or warnings.
    Please refer to the installation instructions at:
    http://hplip.sourceforge.net/install/index.html
    Done.
    Maybe there is something wrong with my dbus anyway? I get a lot of org.freedesktop.xyz not found messages in many situations.
    Thanks for any hints.
    Last edited by 4on6 (2012-04-03 14:16:14)

    4on6 wrote:There are some related threads in this forum, but I still can't figure out what is my problem (printer works in some situations - printing a pdf in evince or a webpage in chromium - but in others not, e.g. printing from emacs).
    The distinction that comes to mind here is that emacs (and some others) will print via lp.  I suspect that the default printer for lp is not set, and therefore the print job is lost.
    To test this, create ~/.cups/lpoptions (if you don't already have it) with the content:
    Default <The_Name_Of_My_Printer_In_CUPS>
    And see if that helps.

  • DG4ODBC (11.2 g) on LINUX 64bit using FreeTDS ODBC Driver Manager

    Hi,
    I got a problem to connect via dg4odbc using usind database link. Below I've listed all my configuration files + dg4odbc trace output.
    This is what I've already done:
    1. Configured FreeTDS with odbc (see below)
    2. I did some test using odbc.ini using isql,tsql and all were succeed :)
    3. Configured three files initMSSQL.ora, listener and tnsnames
    4. tnsping tns_entry also was succeed (HS=OK)
    But when I created public dblink (CREATE PUBLIC DATABASE LINK hslink CONNECT TO "dbuser" IDENTIFIED BY "dbpassword" using 'my_tns entry') i cannot use it becouse it shows me errors listed in dg4odbc file.
    Please see my configuration and help me tu figure out what I could done wrong or missmatch something !!!!!!!!!!!!
    DATABASE INFO:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    Heterogeneous Agent Release 11.2.0.1.0 - 64bit Production Built with
    Oracle Database Gateway for ODBC
    **********typical freetds.conf, odbc.ini, odbcinst.ini configuration*********
    /etc/freetds/freetds.conf
    # Microsoft server
    [SQLSERVER]
    host = my_host_ip
    port = 593377
    tds version = 7.0
    /etc# cat odbc.ini
    [MSSQL]
    Driver = FreeTDS
    Description = ODBC connection via FreeTDS
    Trace = No
    Servername = SQLSERVER
    Language =
    Database = mydb_name
    User = mydb_user
    Password = mydb_passwd
    Logging = 0
    LogFile =
    QuotedId = Yes
    AnsiNPW = Yes
    /etc# cat odbcinst.ini
    [FreeTDS]
    Description = TDS driver (Sybase/MS SQL)
    Driver = /usr/lib/odbc/libtdsodbc.so
    Setup = /usr/lib/odbc/libtdsS.so
    CPTimeout =
    CPReuse =
    FileUsage = 1
    *****Configuration init[SID].ora, listener.ora, tnsnames.ora*****
    /u01/app/oracle/product/11.2.0/dbhome_1/hs/admin$ cat initMSSQL.ora
    # is a sample agent init file containing the HS parameters that
    # are needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = MSSQL
    HS_FDS_SHAREABLE_NAME = /usr/lib/odbc/libtdsodbc.so
    set ODBCINI=/etc/odbc.ini
    set ODBCINSTINI=/etc/odbcinst.ini
    HS_FDS_TRACE_LEVEL = Debug
    #HS_FDS_SUPPORT_STATISTICS = FALSE
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin$ cat listener.ora
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = /u01/app/oracle
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC=
    (SID_NAME=MSSQL)
    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
    (PROGRAM=dg4odbc)
    (ENVS=LD_LIBRARY_PATH = /usr/lib:/usr/lib/odbc)
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin$ cat tnsnames.ora
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    MSSQLCONN=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA= (SID=MSSQL))
    (HS=OK)
    *******dg4odbc trace output***********
    :/u01/app/oracle/product/11.2.0/dbhome_1/hs/log$ cat MSSQL_agt_12650.trc
    Oracle Corporation --- MONDAY MAY 09 2011 16:22:44.248
    Heterogeneous Agent Release
    11.2.0.1.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "Debug"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
    ORACLE_SID is "MSSQL"
    Product-Info:
    Port Rls/Upd:1/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:MSSQL
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=873
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=873
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2011/05/09-16:22:44
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib/odbc/libtdsodbc.so"
    Entered hgolofns at 2011/05/09-16:22:44
    symbol_peflctx=0xbff65b50
    hoaerr:0
    Exiting hgolofns at 2011/05/09-16:22:44
    Entered hgolofns at 2011/05/09-16:22:44
    symbol_peflctx=0xbff63720
    hoaerr:0
    Exiting hgolofns at 2011/05/09-16:22:44
    Entered hgolofns at 2011/05/09-16:22:44
    symbol_peflctx=0xbff62f30
    hoaerr:0
    Exiting hgolofns at 2011/05/09-16:22:44
    Entered hgolofns at 2011/05/09-16:22:44
    symbol_peflctx=0xbff638f0
    hoaerr:0
    Exiting hgolofns at 2011/05/09-16:22:44
    Entered hgolofns at 2011/05/09-16:22:44
    hoaerr:28500
    Exiting hgolofns at 2011/05/09-16:22:44
    Failed to load ODBC library symbol: /usr/lib/odbc/libtdsodbc.so(SQLDescribeParam)
    Exiting hgolofn, rc=28500 at 2011/05/09-16:22:44
    Exiting hgoinit, rc=28500 with error ptr FILE:hgoinit.c LINE:337 FUNCTION:hgoinit() ID:Loading ODBC aray of function ptrs
    Entered hgoexit
    HS Gateway: NULL connection context at exit
    Exiting hgoexit, rc=0 with error ptr FILE:hgoexit.c LINE:108 FUNCTION:hgoexit() ID:Connection context
    Could somebody help me please to figure out what is wrong with??????

    Hi,
    Thanks for very quick response Kgronau!!!
    I applied the changes which you suggest and this is what I achived - "Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION" but when I changed HS_FDS_SQLLEN_INTERPRETATION to 32 it disapered and appeared new one :).
    I won't pase all trace couse it silly long:
    *************trace*******************
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    HOSGIP returned value of "32" for HS_FDS_SQLLEN_INTERPRETATION
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys
    ;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
    ORACLE_SID is "MSSQL"
    Product-Info:
    Port Rls/Upd:1/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:MSSQL
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=873
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=873
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2011/05/10-09:25:57
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/local/unixODBC/lib/libodbc.so"
    Entered hgolofns at 2011/05/10-09:25:57
    symbol_peflctx=0x9bf405f0
    hoaerr:0
    Exiting hgolofns at 2011/05/10-09:25:57
    Entered hgolofns at 2011/05/10-09:25:57
    symbol_peflctx=0x9bf40750
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    treat_SQLLEN_as_compiled = 0
    Exiting hgoinit, rc=0 at 2011/05/10-09:25:57
    Entered hgolgon at 2011/05/10-09:25:57
    reco:0, name:monitoringdb, tflag:0
    Entered hgosuec at 2011/05/10-09:25:57
    Exiting hgosuec, rc=0 at 2011/05/10-09:25:57
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using monitoringdb as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2011/05/10-09:25:57
    HS_FDS_CONNECT_INFO = "MSSQL"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2011/05/10-09:25:57
    dsn:MSSQL, name:monitoringdb
    optn:
    Entered hgocip at 2011/05/10-09:25:57
    dsn:MSSQL
    Exiting hgocip, rc=0 at 2011/05/10-09:25:57
    Exiting hgogenconstr, rc=0 at 2011/05/10-09:25:57
    Entered hgopoer at 2011/05/10-09:25:57
    hgopoer, line 233: got native error 0 and sqlstate I; message follows...
    Exiting hgopoer, rc=0 at 2011/05/10-09:25:57
    hgocont, line 2752: calling SqlDriverConnect got sqlstate I
    Exiting hgocont, rc=28500 at 2011/05/10-09:25:57 with error ptr FILE:hgocont.c LINE:2772 FUNCTION:hgocont() ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2011/05/10-09:25:57 with error ptr FILE:hgolgon.c LINE:781 FUNCTION:hgolgon() ID:Calling hgocont
    Entered hgoexit at 2011/05/10-09:25:57
    Exiting hgoexit, rc=0
    So I've no idea why it's doesen't work :( . Does somebody know if there is any patch to solve it ??? I did not install any patch on database 11.2.
    Thanks a lot

  • Performance to fetch result set from stored procedure.

    I read some of related threads, but couldn't find any good suggestions about the performance issue to fetch the result set from a stored procedure.
    Here is my case:
    I have a stored procedure which will return 2,030,000 rows. When I run the select part only in the dbartisan, it takes about 3 minutes, so I know it's not query problem. But when I call the stored procedure in DBArtisan in following way:
    declare cr SYS_REFCURSOR;
    firstname char(20);
    lastname char(20);
    street char(40);
    city char(20);
    STATE varchar2(2);
    begin DISPLAY_ADDRESS(cr);
    DBMS_OUTPUT.ENABLE(null);
    LOOP
    FETCH cr INTO firstname,lastname,street, city, state;
    EXIT WHEN cr%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE( firstname||','|| lastname||','|| street||',' ||city||',' ||STATE);
    END LOOP;
    CLOSE cr;
    end;
    It will take about 100 minutes. When I used DBI fetchrow_array in perl code, it took about same amount of time. However, same stored procedure in sybase without using cursor, and same perl code, it only takes 12 minutes to display all results. We assume oracle has better performance. So what could be the problem here?
    The perl code:
    my $dbh = DBI->connect($databaseserver, $dbuser, $dbpassword,
    { 'AutoCommit' => 0,'RaiseError' => 1, 'PrintError' => 0 })
    or die "couldn't connect to database: " . DBI->errstr;
    open OUTPUTFILE, ">$temp_output_path";
    my $rc;
    my $sql="BEGIN DISPLAY_ADDRESS(:rc); END;";
    my $sth = $dbh->prepare($sql) or die "Couldn't prepare statement: " . $dbh->errstr;
    $sth->bind_param_inout(':rc', \$rc, 0, { ora_type=> ORA_RSET });
    $sth->execute() or die "Couldn't execute statement: " . $sth->errstr;
    while($address_info=$rc->fetchrow_arrayref()){
    my ($firstname, $lastname, $street, $city, $STATE) = @$address_info;
    print OUTPUTFILE $firstname."|".$lastname."|".$street."|".$city."|".$STATE;
    $dbh->commit();
    $dbh->disconnect();
    close OUTPUTFILE;
    Thanks!
    rulin

    Thanks for you reply!
    1) The stored procedure has head
    CREATE OR REPLACE PROCEDURE X_OWNER.DISPLAY_ADDRESS
    cv_1 IN OUT SYS_REFCURSOR
    AS
    err_msg VARCHAR2(100);
    BEGIN
    --Adaptive Server has expanded all '*' elements in the following statement
    OPEN cv_1 FOR
    Select ...
    commit;
    EXCEPTION
    WHEN OTHERS THEN
    err_msg := SQLERRM;
    dbms_output.put_line (err_msg);
    ROLLBACK;
    END;
    If I only run select .. in DBArtisan, it display all 2030,000 rows in 3:44 minutes
    2) But when call stored procedure, it will take 80-100 minutes .
    3) The stored procedure is translated from sybase using migration tools, it's very simple, in sybase it just
    CREATE PROCEDURE X_OWNER.DISPLAY_ADDRESS
    AS
    BEGIN
    select ..
    The select part is exact same.
    4) The perl code is almost exact same, except the query sql:
    sybase verson: my $sql ="exec DISPLAY_ADDRESS";
    and no need bind the cursor parameter.
    This is batch job, we create a file with all information, and ftp to clients everynight.
    Thanks!
    Rulin

  • [solved] CUPS a nd HPLIP issues

    I have this old Pentium II machine running LXbuntu 9.04. Everything is working fine on it, except it cannot be upgraded without breaking everything because it is ubuntu.
    Also, the CUPS/HPLIP combo is working fine on it and my USB-connected printer is printing (this is old CUPS 1.3.9 and HPLIP is also not particularly new).
    So, I installed Arch alongside, updated it, and tried setting up cups/hplip, but I can't get the printer to work.
    I get to cusp webadmin, add printer, it finds it, but then when I select it, then select default options, like paper size, and click ADD, the new page appears after 2-3 minutes with this information:
    Add Printer HP_DeskJet_845C Error
    Unable to get list of printer drivers:
    Success
    Add Printer HP_DeskJet_845C Error
    Unable to get list of printer drivers:
    Success
    Now, I don't want to be a malcontent seeing the glass half empty so I do appreciate the fact it successfully produced an error, but I would sure like to be able to print something.
    Last edited by Lockheed (2012-03-01 16:00:30)

    Saving output in log file: hp-check.log
    Initializing. Please wait...
    | SYSTEM INFO |
    Basic system information:
    Linux desknik 3.2.7-1-ARCH #1 SMP PREEMPT Tue Feb 21 16:59:04 UTC 2012 i686 Pentium II (Deschutes) GenuineIntel GNU/Linux
    Distribution:
    unknown 0.0
    Checking Python version...
    OK, version 2.7.2 installed
    Checking PyQt 4.x version...
    error: NOT FOUND OR FAILED TO LOAD!
    Checking for CUPS...
    Status: scheduler is running
    Version: 1.5.2
    error_log is set to level: warn
    Checking for dbus/python-dbus...
    dbus daemon is running.
    python-dbus version: 0.84.0
    | COMPILE AND RUNTIME DEPENDENCIES |
    note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
    note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).
    Checking for dependency: CUPS - Common Unix Printing System...
    OK, found.
    Checking for dependency: CUPS devel- Common Unix Printing System development files...
    OK, found.
    Checking for dependency: CUPS image - CUPS image development files...
    OK, found.
    Checking for dependency: DBus - Message bus system...
    OK, found.
    Checking for dependency: gcc - GNU Project C and C++ Compiler...
    OK, found.
    Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
    OK, found.
    Checking for dependency: libcrypto - OpenSSL cryptographic library...
    OK, found.
    Checking for dependency: libjpeg - JPEG library...
    OK, found.
    Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
    OK, found.
    Checking for dependency: libpthread - POSIX threads library...
    OK, found.
    Checking for dependency: libtool - Library building support services...
    OK, found.
    Checking for dependency: libusb - USB library...
    OK, found.
    Checking for dependency: make - GNU make utility to maintain groups of programs...
    OK, found.
    Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
    warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
    Checking for dependency: PolicyKit - Administrative policy framework...
    OK, found.
    Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
    error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
    Checking for dependency: Python DBus - Python bindings for DBus...
    OK, found.
    Checking for dependency: Python devel - Python development files...
    OK, found.
    Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
    warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
    Checking for dependency: Python XML libraries...
    OK, found.
    Checking for dependency: Python 2.3 or greater - Required for fax functionality...
    OK, found.
    Checking for dependency: Python 2.2 or greater - Python programming language...
    OK, found.
    Checking for dependency: Reportlab - PDF library for Python...
    warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
    Checking for dependency: SANE - Scanning library...
    OK, found.
    Checking for dependency: SANE - Scanning library development files...
    OK, found.
    Checking for dependency: scanimage - Shell scanning program...
    OK, found.
    Checking for dependency: xsane - Graphical scanner frontend for SANE...
    warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
    | HPLIP INSTALLATION |
    Currently installed HPLIP version...
    HPLIP 3.12.2 currently installed in '/usr/share/hplip'.
    Current contents of '/etc/hp/hplip.conf' file:
    # hplip.conf. Generated from hplip.conf.in by configure.
    [hplip]
    version=3.12.2
    [dirs]
    home=/usr/share/hplip
    run=/var/run
    ppd=/usr/share/ppd/HP
    ppdbase=/usr/share/ppd
    doc=/usr/share/doc/hplip-3.12.2
    icon=/usr/share/applications
    cupsbackend=/usr/lib/cups/backend
    cupsfilter=/usr/lib/cups/filter
    drv=/usr/share/cups/drv/hp
    # Following values are determined at configure time and cannot be changed.
    [configure]
    network-build=yes
    pp-build=yes
    gui-build=yes
    scanner-build=yes
    fax-build=yes
    dbus-build=yes
    cups11-build=no
    doc-build=yes
    shadow-build=no
    hpijs-install=yes
    foomatic-drv-install=yes
    foomatic-ppd-install=yes
    foomatic-rip-hplip-install=yes
    hpcups-install=yes
    cups-drv-install=yes
    cups-ppd-install=yes
    internal-tag=3.12.2
    restricted-build=no
    ui-toolkit=qt4
    qt3=no
    qt4=yes
    policy-kit=no
    hpijs-only-build=no
    lite-build=no
    udev-acl-rules=yes
    hpcups-only-build=no
    hpijs-only-build=no
    Current contents of '/var/lib/hp/hplip.state' file:
    # hplip.state - HPLIP runtime persistent variables.
    [plugin]
    installed=0
    eula=0
    Current contents of '~/.hplip/hplip.conf' file:
    [last_used]
    device_uri = hp:/usb/DeskJet_845C?serial=CN1641P4NPSX
    [installation]
    date_time = 02/28/12 14:46:18
    version = 3.12.2
    | DISCOVERED USB DEVICES |
    Device URI Model
    hp:/usb/DeskJet_845C?serial=CN16 HP DeskJet 845C
    41P4NPSX
    | INSTALLED CUPS PRINTER QUEUES |
    lpstat
    Type: Unknown
    Device URI: No destinations added.
    | SANE CONFIGURATION |
    'hpaio' in '/etc/sane.d/dll.conf'...
    error: Not found. SANE backend 'hpaio' NOT properly setup (needs to be added to /etc/sane.d/dll.conf).
    Checking output of 'scanimage -L'...
    No scanners were identified. If you were expecting something different,
    check that the scanner is plugged in, turned on and detected by the
    sane-find-scanner tool (if appropriate). Please read the documentation
    which came with this software (README, FAQ, manpages).
    | PYTHON EXTENSIONS |
    Checking 'cupsext' CUPS extension...
    OK, found.
    Checking 'pcardext' Photocard extension...
    OK, found.
    Checking 'hpmudext' I/O extension...
    OK, found.
    Checking 'scanext' SANE scanning extension...
    OK, found.
    | USB I/O SETUP |
    Checking for permissions of USB attached printers...
    HP Device 0x904 at 001:005:
    Device URI: hp:/usb/DeskJet_845C?serial=CN1641P4NPSX
    warning: Unable to connect to dbus. Is hp-systray running?
    Device node: /dev/bus/usb/001/005
    Mode: 0664
    getfacl: Removing leading '/' from absolute path names
    # file: dev/bus/usb/001/005
    # owner: root
    # group: lp
    user::rw-
    user:cc:rw-
    group::rw-
    mask::rw-
    other::r--
    | USER GROUPS |
    lp wheel ftp log http games video audio optical floppy storage camera power users cc abs
    | SUMMARY |
    error: 7 errors and/or warnings.
    Please refer to the installation instructions at:
    http://hplip.sourceforge.net/install/index.html
    Done.
    [cc@desknik ~]$
    HP Linux Imaging and Printing System (ver. 3.12.2)
    System Tray Status Service ver. 2.0
    Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
    This software comes with ABSOLUTELY NO WARRANTY.
    This is free software, and you are welcome to distribute it
    under certain conditions. See COPYING file for more details.
    warning: Qt/PyQt 4 initialization failed.
    error: hp-systray requires Qt4 GUI and DBus support. Exiting.

  • Use of non-migratable database link not allowed - weblogic

    Can somebody help me with this error?
    The application use an entity bean for a view that use a dblink for accesing a table from another oracle database.
    Thank you.
    javax.ejb.EJBException: EJB Exception: ; nested exception is:
         Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-24777: use of non-migratable database link not allowed
    Error Code: 24777
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:120)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:102)
         at $Proxy190.queryVCommentMonitoring(Unknown Source)
         at ro.uct.capone.viewcontroller.Utils.getStatus(Utils.java:36)
         at ro.uct.capone.viewcontroller.forms.WatchListForm.validate(WatchListForm.java:114)
         at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:942)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-24777: use of non-migratable database link not allowed

    I've gotten past this by creating the dblink as SHARED.
    The SQL is
    CREATE SHARED DATABASE LINK "yourlink"
    CONNECT TO "dbuser" IDENTIFIED BY "dbuserpassword"
    AUTHENTICATED BY "dbuser" IDENTIFIED BY "dbuserpassword"
    USING 'databasename';
    note the quote character use.
    You can also use SQL Developer to adjust this.
    This does depend on shared database connections between your db's.

  • [SOLVED] Gnome problems still here, nautilus, and no regular session

    After updating today I now I can't open a normal gnome session- only a failsafe session. the ~/.xsession errors show:
    /etc/gdm/Xsession: Beginning session setup...
    /etc/gdm/Xsession: ssh-agent not found!
    /etc/gdm/Xsession: Setup done, will execute: gnome-session
    gnome-session[10497]: WARNING: Could not connect to ConsoleKit: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
    gnome-session[10497]: CRITICAL: dbus_g_connection_get_connection: assertion `gconnection' failed
    process 10497: arguments to dbus_connection_send_with_reply_and_block() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3298.
    This is normally a bug in some application using the D-Bus library.
    D-Bus not built with -rdynamic so unable to print a backtrace
    gnome-session[10497]: ******************* START ********************************
    gnome-session[10497]: Frame 0: /usr/lib/gnome-session/gnome-session [0x418ab7]
    gnome-session[10497]: Frame 1: /usr/lib/gnome-session/gnome-session [0x418c06]
    gnome-session[10497]: Frame 2: /lib/libc.so.6 [0x7ff6b78ab150]
    gnome-session[10497]: Frame 3: /lib/libc.so.6(gsignal+0x35) [0x7ff6b78ab0c5]
    gnome-session[10497]: Frame 4: /lib/libc.so.6(abort+0x183) [0x7ff6b78ac5e3]
    gnome-session[10497]: Frame 5: /usr/lib/libdbus-1.so.3 [0x7ff6ba383675]
    gnome-session[10497]: Frame 6: /usr/lib/libdbus-1.so.3 [0x7ff6ba37f4ed]
    gnome-session[10497]: Frame 7: /usr/lib/libdbus-1.so.3(dbus_connection_send_with_reply_and_block+0x12f) [0x7ff6ba3693bf]
    gnome-session[10497]: Frame 8: /usr/lib/gnome-session/gnome-session [0x411cbc]
    gnome-session[10497]: Frame 9: /usr/lib/gnome-session/gnome-session [0x411dc0]
    gnome-session[10497]: Frame 10: /usr/lib/gnome-session/gnome-session [0x419d90]
    gnome-session[10497]: Frame 11: /usr/lib/gnome-session/gnome-session [0x41a26f]
    gnome-session[10497]: Frame 12: /lib/libc.so.6(__libc_start_main+0xe6) [0x7ff6b7897546]
    gnome-session[10497]: Frame 13: /usr/lib/gnome-session/gnome-session [0x40ad59]
    gnome-session[10497]: ******************* END ****************
    This happened before and after I added the line
    "AutostartCondition=GNOME /apps/nautilus/preferences/show_desktop"
    to /usr/share/applications, and changed X-GNOME-AutoRestart=true to =false as a workaround to the nautilus respawning problem here http://bbs.archlinux.org/viewtopic.php?id=69219 .
    BTW, it stopped the respawing, but Nautilus now will not launch either from menus or command line.  I get this at command line:
    [wrc@myhost ~]$ nautilus
    (nautilus:10655): GVFS-RemoteVolumeMonitor-WARNING **: remote volume monitor with dbus name org.gtk.Private.HalVolumeMonitor is not supported
    (nautilus:10655): GVFS-RemoteVolumeMonitor-WARNING **: remote volume monitor with dbus name org.gtk.Private.GPhoto2VolumeMonitor is not supported
    ** (nautilus:10655): WARNING **: Cannot connect to DBus Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
    process 10655: arguments to dbus_connection_send_with_reply_and_block() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3298.
    This is normally a bug in some application using the D-Bus library.
    D-Bus not built with -rdynamic so unable to print a backtrace
    [wrc@myhost ~]$
    Last edited by wrc1944 (2009-04-07 14:29:37)

    OK- I think I've SOLVED all my Nautilus problems, which included the endless respawning "Starting Filemanager windows" on the panel, the hal daemon related GDM 3 for 1 key repeat prevents login problem, and the Nautilus refusing to launch problem!
    After reviewing the Gentoo Hal documetation, and realizing I had the xf86-input-evdev driver installed on Arch, I had forgotten that in order to get the mouse/keyboard to function I had to previously add a line in xorg.conf that was now conflicting with hal/dbus and the new xorg server version.
    I just commented out this line in xorg.conf, like this
    Section "ServerFlags"
    # Option "AllowEmptyInput" "false"
    Option "DontZap" "false"
    EndSection
    and added the hal daemon (which calls dbus) to my /etc/rc.conf, which allows evdev/hal/dbus to do it's thing.
    Along with the edits to the /usr/share/applications/nautilus.desktop file (which is strangely named "File Manager" in Thunar, one of three files of the same name).  The edits made are:
    X-GNOME-AutoRestart=false    # changed from =true
    AutostartCondition=GNOME /apps/nautilus/preferences/show_desktop    # added this line
    Now, I can boot from GDM into a normal gnome session, and Nautilus launches normally, without endlessly repawning itself in the panel.
    The fix itself was quite simple, but tracing the cause down and understanding it was not!
    Last edited by wrc1944 (2009-04-07 06:27:21)

  • 10.8.5 supplemental & server 2.2 breaks postgres/caldavd?

    caldavd fails because postgres is failing to start.  Best I can tell is there are two startup scripts for postgres.  com.apple.postgress.plist has launchd start a postgres on the socket specified in:
    /Library/Server/PostgreSQL For Server Services/Socket
    whilst org.postgresql.postgres.plist has launchd start a postgres on the socket specified in:
    /private/var/pgsql_socket
    The latter is started but the former fails (postgres exists with code 1 and launchd throttles for a 10 second retry).
    I notice caldavd's error log:
    2013-10-08 09:09:18-0700 [-] Re-trying connection due to connection failure
              Traceback (most recent call last):
                File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext
                  return func(*args,**kw)
                File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/threadutils.py", line 48, in _run
                  while self._qpull():
                File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/threadutils.py", line 69, in _qpull
                  return True
                File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/threadutils.py", line 82, in _oneWorkUnit
                  self._reactor.callFromThread(deferred.callback, result)
              --- <exception caught here> ---
                File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/threadutils.py", line 74, in _oneWorkUnit
                  result = instruction()
                File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/enterprise/adbapi2.py", line 1025, in initCursor
                  connection = self.connectionFactory()
                File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/txda v/base/datastore/dbapiclient.py", line 196, in connect
                  connection = self.dbModule.connect(*self.connectArgs, **self.connectKw)
                File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/pgdb .py", line 482, in connect
                  dbtty, dbuser, dbpasswd)
              pg.InternalError: could not connect to server: No such file or directory
                        Is the server running locally and accepting
                        connections on Unix domain socket "/Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432"?
    which is failing because there is no active unix socket because postgres fails.  I tried downloading the 10.8.5 combo update and installing with no change of behavior.
    Anyone got any ideas?

    The following is in the logs but I note the date earlier than my 10.5.8 supplemental / Server 2.2.2 update.
    2013-10-07 07:29:08 PDT ERROR:  role "collab" already exists
    2013-10-07 07:29:08 PDT STATEMENT:  CREATE ROLE collab SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;
    2013-10-07 07:29:08 PDT LOG:  connection received: host=[local]
    2013-10-07 07:29:08 PDT LOG:  connection authorized: user=collab database=postgres
    2013-10-07 07:29:08 PDT LOG:  statement: CREATE DATABASE collab;
    2013-10-07 07:29:08 PDT ERROR:  database "collab" already exists
    2013-10-07 07:29:08 PDT STATEMENT:  CREATE DATABASE collab;
    2013-10-07 07:29:08 PDT LOG:  connection received: host=[local]
    2013-10-07 07:29:08 PDT LOG:  connection authorized: user=_postgres database=postgres
    2013-10-07 07:29:08 PDT LOG:  statement: CREATE ROLE webauth SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;
    2013-10-07 07:29:08 PDT ERROR:  role "webauth" already exists
    2013-10-07 07:29:08 PDT STATEMENT:  CREATE ROLE webauth SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;
    2013-10-07 07:29:08 PDT LOG:  connection received: host=[local]
    2013-10-07 07:29:08 PDT LOG:  connection authorized: user=webauth database=webauth
    Here are the receipts from /Library/Receipts/InstallHistory.plist:
    <dict>
            <key>date</key>
            <date>2013-10-07T15:18:51Z</date>
            <key>displayName</key>
            <string>OS X v10.8.5 Supplemental Update</string>
            <key>displayVersion</key>
            <string>1.0</string>
            <key>packageIdentifiers</key>
            <array>
                <string>com.apple.pkg.update.os.10.8.5.supplemental</string>
            </array>
            <key>processName</key>
            <string>Software Update</string>
        </dict>
    <dict>
            <key>date</key>
            <date>2013-10-07T19:12:27Z</date>
            <key>displayName</key>
            <string>Server</string>
            <key>displayVersion</key>
            <string>10.8</string>
            <key>packageIdentifiers</key>
            <array>
                <string>com.apple.pkg.ServerAppStore</string>
            </array>
            <key>processName</key>
            <string>storeagent</string>
        </dict>
    <dict>
            <key>date</key>
            <date>2013-10-07T22:25:22Z</date>
            <key>displayName</key>
            <string>OS X Update Combined</string>
            <key>displayVersion</key>
            <string></string>
            <key>packageIdentifiers</key>
            <array>
                <string>com.apple.pkg.update.os.10.8.5.12F45.combo</string>
                <string>com.apple.pkg.RemoteDesktop</string>
            </array>
            <key>processName</key>
            <string>Installer</string>
        </dict>
    The PDT times should be 7 hours behind the Zulu timestamps so I think the postgres log errors occured before the first update -- perhaps they are innocuous.  There are no further entries past the 7:29:08 timestamp in the PostgreSQL_Server_Services.log file, which seems strange.

Maybe you are looking for

  • How was someone using my e-mail address as their Apple ID?

    First time posting, so I apologize in advance if this is the wrong forum. 1) I have a primary e-mail adress that is not linked to my iTunes.  The only time this e-mail address was used in conjunction with anything Apple was when I purchased Quicktime

  • Aligning HP D4160 Printer

    I recently had to replace a cartridge in my HP Deskjet D4160 printer. Whenever I do this, I realign the carts using the HP printer maintenance utility. However, I've discovered that the align function no longer works. I assume this is related to the

  • Mac Mini and iBook

    hey i was wondering if anyone has been able to use their mac mini with their laptop - What i am trying to do is this: I want to use the mac mini as my new computer but use the laptop as the keyboard and display - i feel like i could make it work if i

  • Performing Top-n Analysis (but per group)

    The Oracle University Guide SQL Volume 2 says: To perform Top-n Analysis the general syntax is SELECT [column_list], ROWNUM FROM (SELECT [column_list] FROM table ORDER BY Top-N_column) WHERE ROWNUM <= N; for example To display the top three earner na

  • List of Network Users in Loginwindow Omitted

    I have a Mountain Lion 10.8.5 client machine joined to a Mountain Lion 10.8.5 OS X Server on which I have completed DNS, OD, and network account configuration steps.  I have added a network account on the server (and Server.app displays the account a