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

Printers deleting unassigning themselves

Scheduled Pinned Locked Moved Unsolved
FOG Problems
2
2
265
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.
  • R
    ryanlewis2010
    last edited by Oct 12, 2023, 9:17 PM

    So ive used the printer feature fairly well especially after print nightmare. However ive ran into issues with some computers keeping their attached printers, Sometimes they stay on log enough to install but than uninstall within 30 minutes and others it removes them before it has a chance to install them. At first i thought it was group related so i pulled one of the offenders out of all the groups and manually assigned the printers and still happens.

    Printer Service is enabled.
    Printers do install on some of the PCs.
    Fog Client is on 0.13
    Fog server is 1.5.10

    Printers are assigned, set as default and on fog managed only. After 2-15 minutes they are no longer showing on as assigned inside fog.

    Is there any logs that would show who or what is unassigning them?

    TIA

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Oct 14, 2023, 4:35 PM

      @ryanlewis2010 Do I get this right? You say the printer assignment done in the FOG web UI magically vanishes after a random time (1-30 minutes)?? Sounds really strange. I don’t think I have ever seen this happen.

      The assignments are simple database entries and there is no specific FOG log you can look at I think. But you can enable MySQL/MariaDB logging and try to figure out why this is happening. Will still be hard to find out what is causing this even if you see it in the logs.

      Do you use the FOG API by any chance? Some kind of scripting to automate FOG stuff?

      If not it’s probably best to manually check the database tables on your FOG server:

      shell> mysql -u root
      
      mysql> use fog;
      
      mysql> SELECT * FROM printerAssoc WHERE paPrinterID NOT IN (SELECT pID FROM printers);
      
      mysql> SELECT * FROM printerAssoc WHERE paHostID NOT IN (SELECT hostID FROM hosts);
      

      The later two (select) queries should return an empty result set. If you get results it means that there are assignments still in the database for hosts or printers that do not exist anymore. While this is not a problem in general it would still be wise to clean that up.

      Now you can start looking a a certain host having printers assigned by: SELECT * FROM printerAssoc WHERE paHostID=123456 (put in the host ID you see in the FOG web UI (parameter in the URL when editing this host)

      See if the assignment is in the database compared to what you see in the web UI.

      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

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      1 / 1
      • First post
        1/2
        Last post

      143

      Online

      12.1k

      Users

      17.3k

      Topics

      155.4k

      Posts
      Copyright © 2012-2024 FOG Project