• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Printer Problems

Scheduled Pinned Locked Moved Solved
Windows Problems
5
15
6.3k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    apathetic_admin
    last edited by apathetic_admin Feb 3, 2016, 7:34 PM Feb 3, 2016, 8:49 PM

    Running 6152 from Github.

    Trying to do network printers through the FOG client, not sure why it isn’t working.

    The log shows:

    ------------------------------------------------------------------------------
    --------------------------------PrinterManager--------------------------------
    ------------------------------------------------------------------------------
     2/3/2016 3:47 PM Client-Info Version: 0.9.10
     2/3/2016 3:47 PM PrinterManager Running...
     2/3/2016 3:47 PM Middleware::Communication URL: http://fog.domain.local/fog/service/servicemodule-active.php?moduleid=printermanager&mac=90:B1:1C:A7:85:C2||00:00:00:00:00:00:00:E0&newService=1
     2/3/2016 3:47 PM Middleware::Communication Response: Success
     2/3/2016 3:47 PM Middleware::Communication URL: http://fog.domain.local/fog/service/Printers.php?mac=90:B1:1C:A7:85:C2||00:00:00:00:00:00:00:E0&newService=1
     2/3/2016 3:47 PM Middleware::Communication Response: Success
     2/3/2016 3:47 PM PrinterManager Creating list of printers
     2/3/2016 3:47 PM PrinterManager Creating printer objects
     2/3/2016 3:47 PM Middleware::Communication URL: http://fog.domain.local/fog/service/Printers.php?id=27&mac=90:B1:1C:A7:85:C2||00:00:00:00:00:00:00:E0&newService=1
     2/3/2016 3:47 PM Middleware::Communication Response: Success
     2/3/2016 3:47 PM Middleware::Communication URL: http://fog.domain.local/fog/service/printerlisting.php?newService=1
     2/3/2016 3:47 PM Middleware::Communication Response: Success
     2/3/2016 3:47 PM Printer Removing printer: Annex HP Laserjet 4250
     2/3/2016 3:47 PM PrinterManager Adding printers
     2/3/2016 3:47 PM NetworkPrinter Attempting to add printer:
     2/3/2016 3:47 PM NetworkPrinter --> Name = \\printers.domain.local\NE_Call_Center_HP_LaserJet_4250_PCL6
    2/3/2016 3:49 PM Service ERROR: Process must exit before requested information can be determined.
    

    Update: For the time being I have shut off the PrinterManager service and re-deployed all of our printers through GPOs. I’d love to get this working again though, it was very handy to manage printers through FOG.

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Wayne Workman Feb 3, 2016, 9:40 PM Feb 4, 2016, 3:39 AM

      Notifying @Jbob about this. You’re not the only one with printer issues. I’m linking this thread to another…
      https://forums.fogproject.org/topic/6574/fog-removing-printers-regardless-of-settings/5

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      A 1 Reply Last reply Feb 4, 2016, 3:29 PM Reply Quote 0
      • A
        apathetic_admin @Wayne Workman
        last edited by Feb 4, 2016, 3:29 PM

        @Wayne-Workman Thanks for that. Been having trouble with the search feature on here so I wouldn’t have found that otherwise.

        1 Reply Last reply Reply Quote 0
        • A
          anthonyglamis
          last edited by Feb 5, 2016, 12:06 AM

          Hello,
          I don’t mean to hijack but I am also having printer issues. Mine are a little different. I am trying to create tcp/ip port printers. I followed the WIKI and this is the result of my log. Any thoughts on the last line? I searched that output but didn’t find anything. I’m assuming “Return Code 0” is a specific error?


          --------------------------------PrinterManager--------------------------------

          2/4/2016 5:23 PM Client-Info Version: 0.9.11
          2/4/2016 5:23 PM PrinterManager Running…
          2/4/2016 5:23 PM Middleware::Communication URL: http://192.168.1.243/fog/service/servicemodule-active.php?moduleid=printermanager&mac=7C:E9:D3:F6:D4:46|B8:88:E3:34:EF:3D||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
          2/4/2016 5:23 PM Middleware::Communication Response: Success
          2/4/2016 5:23 PM Middleware::Communication URL: http://192.168.1.243/fog/service/Printers.php?mac=7C:E9:D3:F6:D4:46|B8:88:E3:34:EF:3D||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
          2/4/2016 5:23 PM Middleware::Communication Response: Success
          2/4/2016 5:23 PM PrinterManager Creating list of printers
          2/4/2016 5:23 PM PrinterManager Creating printer objects
          2/4/2016 5:23 PM Middleware::Communication URL: http://192.168.1.243/fog/service/Printers.php?id=2&mac=7C:E9:D3:F6:D4:46|B8:88:E3:34:EF:3D||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
          2/4/2016 5:23 PM Middleware::Communication Response: Success
          2/4/2016 5:23 PM PrinterManager Removing extra printers…
          2/4/2016 5:23 PM PrinterManager Adding printers
          2/4/2016 5:23 PM LocalPrinter Attempting to add printer:
          2/4/2016 5:23 PM LocalPrinter --> Name = SAC-Shipping Room
          2/4/2016 5:23 PM LocalPrinter --> IP = IP_192.168.1.250
          2/4/2016 5:23 PM LocalPrinter --> Port = IP_192.168.1.250
          2/4/2016 5:23 PM LocalPrinter --> File = /opt/fog/printerdrivers/lanier64/OEMSETUP.INF
          2/4/2016 5:23 PM LocalPrinter --> Model = LANIER MP 5002 PCL 6
          2/4/2016 5:23 PM LocalPrinter Return code 0

          T J 2 Replies Last reply Feb 5, 2016, 12:09 AM Reply Quote 0
          • T
            Tom Elliott @anthonyglamis
            last edited by Feb 5, 2016, 12:09 AM

            @anthonyglamis In nearly all programs a return code of 0 means success. I don’t think there’s any issues based on the log. Are you noticing errors?

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            A 1 Reply Last reply Feb 5, 2016, 12:24 AM Reply Quote 0
            • A
              anthonyglamis @Tom Elliott
              last edited by Feb 5, 2016, 12:24 AM

              @Tom-Elliott Thanks for the reply, thank you for explaining what that meant. I am not receiving errors, however the printer does not get created. When I navigate to devices and printers, the printer is not installed. Is there a better way to troubleshoot this since I am getting a return code of 0?

              W 1 Reply Last reply Feb 5, 2016, 12:27 AM Reply Quote 0
              • W
                Wayne Workman @anthonyglamis
                last edited by Feb 5, 2016, 12:27 AM

                @anthonyglamis said:

                Is there a better way to troubleshoot this since I am getting a return code of 0?

                Post your printer settings from Printer Management here so we can see what you’ve done. Maybe something will stick out.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                A 1 Reply Last reply Feb 5, 2016, 12:36 AM Reply Quote 0
                • A
                  anthonyglamis @Wayne Workman
                  last edited by Feb 5, 2016, 12:36 AM

                  @Wayne-Workman 0_1454632534064_Screenshot from 2016-02-04 18:34:28.png
                  My samba share is accessible via windows machines. Directory is \192.168.1.243\printerdrivers

                  T 1 Reply Last reply Feb 5, 2016, 12:39 AM Reply Quote 0
                  • T
                    Tom Elliott @anthonyglamis
                    last edited by Feb 5, 2016, 12:39 AM

                    @anthonyglamis Your issue is it is not installing the printer driver.

                    Your “Printer INF File” being set to /opt/fog/blah is your FOG Server stuff. That particular field should hold the path to the driver within windows. (C:\windows\inf\something.inf). This, I think, is the problem you’re facing.

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    A 1 Reply Last reply Feb 5, 2016, 12:52 AM Reply Quote 1
                    • A
                      anthonyglamis @Tom Elliott
                      last edited by anthonyglamis Feb 4, 2016, 6:53 PM Feb 5, 2016, 12:52 AM

                      @Tom-Elliott OK so am I not understanding the WIKI? I set up a Samba share and dumped the driver in /opt/fog/printerdrivers/
                      I was thinking the Samba share holds the drivers, and you create a printer definition in Fog and the INF file path points to the Samba share directory. I followed this page.

                      https://wiki.fogproject.org/wiki/index.php?title=Creating_a_Samba_Based_Printer_Store_on_FOG

                      In order for the printer to be added to the host computer, the printer drivers must be stored in a public area, or included on the host computer. This public area can be a Novell Network share where public has read-only access, a Windows share that is public read-only to everyone, or a Samba share (possibly residing on the FOG server) that is public read-only to everyone. This share must be accessible via a UNC path as the service may attempt to install the printers before drive mapping occurs. In this share the printer drives and .inf file must exist. FOG supports install IP based (Jet-Direct) printers, public access NDS printers, Local printers, windows share based printers, (and we think, but could use a confirmation as it hasn’t been tested) AD based printers.

                      T 1 Reply Last reply Feb 5, 2016, 12:59 AM Reply Quote 0
                      • T
                        Tom Elliott @anthonyglamis
                        last edited by Tom Elliott Feb 4, 2016, 7:03 PM Feb 5, 2016, 12:59 AM

                        @anthonyglamis While that is potentially possible, the link must be unc, or prior mounted.
                        Remember, linux uses / for directory separation, but windows uses \ for directory separation.

                        Even if the samba share is mounted before it looks, you still need to tell it WHERE to look.

                        Prior mounting is not a good method though as when the service runs, it’s fully possible the mapping hasn’t been done.

                        Even with that, if the share is located at /opt/fog/, You would still need to access as:

                        \\ServerName\opt\fog\printerdriver\restoftheway (of course change the parts to get to the real location.

                        If the mapping has occurred you would change the value to:

                        DriveLetter:\opt\fog\printerdriver\restoftheway

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                        A 1 Reply Last reply Feb 5, 2016, 7:38 PM Reply Quote 3
                        • J
                          JJ Fullmer Testers @anthonyglamis
                          last edited by Feb 5, 2016, 7:36 PM

                          @anthonyglamis said:

                          2/4/2016 5:23 PM LocalPrinter --> IP = IP_192.168.1.250

                          Sorry for any repeated information that others said. I saw some posts after I started writing this and didn’t feel like taking out pieces.

                          The first problem I see is right here.
                          The printer ip shouldn’t have IP_ in front of it. It should just be the ip address plain and simple
                          Also the Printer INF File path should be the path to the share that the client uses to access the file. All these fields are passed to the service and run on the computer, so they need to be how the host computer gets to them, not how fog gets to them. i.e. /opt/fog won’t work. \\192.168.1.243\printerdrivers\printer.inf might do the trick

                          Try testing with an inf file on a local computer with a local path in fog. i.e.

                          • Put the inf in C:\printer.inf on the client computer
                          • set the inf file path in fog to C:\printer.inf

                          That would just see if the service is working for you.
                          With network shares, I find that it only works with the fog service if it’s already mounted. I.E. A network share mapped through active directory gpo. This is something I hope to improve in the future.

                          An alternative method is a snapin with a script. Checkout the template script I posted here
                          https://forums.fogproject.org/topic/6540/adding-custom-printer-configuration

                          Another way of testing the printer install is to test the actual command that the fog service uses to add a printer. It uses a special function for adding a port, but if you don’t already have the port created you can create it with this command in the command line.
                          Cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\Prnport.vbs -a -r portname -h ipAddress -o raw -n 9100
                          Then test adding the printer with this command in an administrator command prompt. Which is the way that fog adds it. This will help you confirm your settings further. I took out the /q parameter that goes after /if (install printer from file) so that any error messages won’t be supressed when you test
                          RUNDLL32 printui.dll,PrintUIEntry /if /b "Printer Name" /f "INF File Path" /r "PortName" /m "Model name from inf file"

                          If that command adds the printer, then your printer settings are all correct as they are, if it fails, then you should get an error message with more explanation.

                          Some other caveats I’ve found are that you sometimes need more than just the inf next to the inf. I.e. the .cab, .cat. dlls and stuff that it links to sometimes need to be in the same directory. So if you download a driver package and then unzip it, just use the full extracted folder in your share. You can do some testing and see which is actually neccesarry, cause sometimes just the inf is needed, other times (like with the hp universal print driver) you need the whole folder to get it to install proper.

                          Personally I currently make a printer script with the template I posted in the above referenced forum post and then add that information to fog. I deploy the script as a snapin to install the printer when the fog service fails to add the printer the FOG printer management successfully removes and keeps the printers that are allowed after it’s installed with that script.
                          It is surely possible to get the FOG printer management to work as it is in most situations. But I find it easier to have a failsafe for when it has trouble accessing a network share or when it doesn’t like the inf file or something like that.

                          Also one other little caveat. I noticed that the inf in this one is oem… That’s usually the “published” or “installed” inf file once the printer driver is added to windows and gets appended to or its own happy inf file created in C:\Windows\INF
                          Sometimes that one works fine, but sometimes that one will contain other printer information and confuse a computer that it wasn’t made on. I usually stick with the inf that the driver comes with that you download off the manufactuer’s website. But that’s just my two cents.

                          Have you tried the FogApi powershell module? It's pretty cool IMHO
                          https://github.com/darksidemilk/FogApi
                          https://fogapi.readthedocs.io/en/latest/
                          https://www.powershellgallery.com/packages/FogApi
                          https://forums.fogproject.org/topic/12026/powershell-api-module

                          A 2 Replies Last reply Feb 5, 2016, 7:40 PM Reply Quote 2
                          • A
                            anthonyglamis @Tom Elliott
                            last edited by Feb 5, 2016, 7:38 PM

                            @Tom-Elliott Thanks for the reply and for helping me understand a bit more. I am still unsuccessful at adding a printer.

                            I tried placing the driver locally on the client in C:\DRIVERS\lanier64 and placed that path on the “printer INF file” section in fog to C:\DRIVERS\lanier64\OEMSETUP.INF, still no luck. The log output states return code 0. I’m wondering if the Model = LANIER MP 5002 PCL 6 field is my issue? I copied the model syntax right from the .INF file.

                            I also mapped the client to the samba share Z:\192.168.1.243\printerdrivers\lanier64 Input the path on “printer INF file” to Z:\opt\fog\printerdrivers\lanier64\OEMSETUP.INF

                            Still no luck. I apologize if your previous explanation went completely over my head, but am I missing something terribly easy?

                            1 Reply Last reply Reply Quote 0
                            • A
                              anthonyglamis @JJ Fullmer
                              last edited by Feb 5, 2016, 7:40 PM

                              @Arrowhead-IT Just saw this. Thanks for the the reply, I’ll check this out.

                              1 Reply Last reply Reply Quote 1
                              • A
                                anthonyglamis @JJ Fullmer
                                last edited by Feb 6, 2016, 1:23 AM

                                @Arrowhead-IT Removing the IP_ was exactly the fix. My printer mapped successfully both ways, locally, and via my samba share. This is good stuff.

                                @apathetic_admin I’m not sure if this helps you or not but creating TCP/IP definitions has been successful for me. The Samba directions via the Wiki were pretty straight forward. I really didn’t like the idea of placing a ton of printer drivers locally on my “master” images, so the Samba share worked great.

                                1 Reply Last reply Reply Quote 2
                                • 1 / 1
                                1 / 1
                                • First post
                                  7/15
                                  Last post

                                283

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project