Witaj na Forum Linuxiarzy
Zanim zalogujesz się, by pisać na naszym forum zapoznaj się z kilkoma zasadami savoir-vivre'u w wątku Administracja-> Przywitaj się. Wątki z problemami zamieszczone w dziale "Przywitaj się" będą usuwane.

Autor Wątek: Błąd serwera CUPS [ROZWIĄZANY]  (Przeczytany 1287 razy)

Offline xprotor0

  • Newbie
  • *
  • Wiadomości: 18
Błąd serwera CUPS [ROZWIĄZANY]
« dnia: Lipiec 19, 2019, 11:52:35 pm »
Witam mam taki problem z menadżerem drukarek, drukarka mi coś szwankowała i w ustawieniach klikłem coś jak historia drukowania (nie wiem teraz dokładnie bo nie umiem wejść w ustawienia ) Teraz jak kliknę w centrum sterowania w drukarki to mam tylko opcję połącz później połącz z serwerem i takie coś /run/cups/cups.sock a jak już dam połącz to wyskakuje komunikat błąd serwera CUPS. Nie mam pojęcia jak to mam przywrócić do stanu pierwotnego?
« Ostatnia zmiana: Lipiec 22, 2019, 07:18:14 pm wysłana przez xprotor0 »

Offline pavbaranov

  • Hero Member
  • *****
  • Wiadomości: 1418
Odp: Błąd serwera CUPS
« Odpowiedź #1 dnia: Lipiec 20, 2019, 09:14:20 am »
W przeglądarce wpisz: localhost:631 i sprawdź co jest grane, skonfiguruj drukarkę, ewentualnie usuń ją i ponownie dodaj. Możesz też sprawdzić logi serwera. Jeśli nie pomoże prosta konfiguracja, przeinstalowanie, to poprosimy o te logi, bo z opisu wynika: zrobiłem coś - pomóżcie przywrócić prawidłowe działanie :)
Aha - sprawdź, czy masz podniesioną usługę org.cups.cupsd.service i/lub socket.
PS: Podany plik w /run/ ma być.

Offline xprotor0

  • Newbie
  • *
  • Wiadomości: 18
Odp: Błąd serwera CUPS
« Odpowiedź #2 dnia: Lipiec 20, 2019, 09:10:23 pm »
W przeglądarce pokazuje mi komunikat Serwer localhost odrzucił połączenie. Drukarki nie mogę dodać nic nie mogę zrobić nie mogę nawet wejść w ustawienia. Jak nacisnę w centrum sterowania drukarki mogę się tylko połączyć ale ale właśnie nie umiem.
A jak mam sprawdzić logi i podniesioną usługę ?

Offline xprotor0

  • Newbie
  • *
  • Wiadomości: 18
Odp: Błąd serwera CUPS
« Odpowiedź #3 dnia: Lipiec 20, 2019, 09:26:42 pm »
https://images91.fotosik.pl/220/00d895992c529513med.png
https://images91.fotosik.pl/220/3a315afc8c0a6aa1med.png
https://images89.fotosik.pl/220/c023ca3604858848med.png

Offline pavbaranov

  • Hero Member
  • *****
  • Wiadomości: 1418
Odp: Błąd serwera CUPS
« Odpowiedź #4 dnia: Lipiec 20, 2019, 09:30:11 pm »
Weż odinstaluj CUPS i ponownie zainstaluj. Namieszałeś coś okropnie.

Offline xprotor0

  • Newbie
  • *
  • Wiadomości: 18
Odp: Błąd serwera CUPS
« Odpowiedź #5 dnia: Lipiec 20, 2019, 09:51:53 pm »
Wpisałem
sudo apt-get remove cups
sudo apt-get install cups
i nic się nie zmieniło

Offline pavbaranov

  • Hero Member
  • *****
  • Wiadomości: 1418
Odp: Błąd serwera CUPS
« Odpowiedź #6 dnia: Lipiec 20, 2019, 10:38:40 pm »
Pokaż logi. Bez tego to jest zgadywanka.

Offline xprotor0

  • Newbie
  • *
  • Wiadomości: 18
Odp: Błąd serwera CUPS
« Odpowiedź #7 dnia: Lipiec 20, 2019, 11:04:33 pm »
Ale właśnie nie wiem jak te logi się pokazuje ?

Offline pavbaranov

  • Hero Member
  • *****
  • Wiadomości: 1418
Odp: Błąd serwera CUPS
« Odpowiedź #8 dnia: Lipiec 20, 2019, 11:22:24 pm »
Już wyżej Ci napisałem. Nadto masz pliki w /var/log/cups, chyba nie trudno je znaleźć.
Ogólnie jednak - pomyśl i przypomnij sobie co spieprzyłeś i przedstaw.

Offline xprotor0

  • Newbie
  • *
  • Wiadomości: 18
Odp: Błąd serwera CUPS
« Odpowiedź #9 dnia: Lipiec 20, 2019, 11:38:31 pm »
Logi
access_log       access_log.3.gz  access_log.6.gz  error_log.1     error_log.4.gz
access_log.1     access_log.4.gz  access_log.7.gz  error_log.2.gz  error_log.5.gz
access_log.2.gz  access_log.5.gz  error_log        error_log.3.gz  error_log.6.gz

W ustawieniach jest opcja na samym dole coś jak wykasuj ustawienia i historie drukarek

Offline pavbaranov

  • Hero Member
  • *****
  • Wiadomości: 1418
Odp: Błąd serwera CUPS
« Odpowiedź #10 dnia: Lipiec 21, 2019, 10:50:59 am »
Logi!!! (ich treść), a nie lista plików. Ostatnie to access_log i error_log.

Offline xprotor0

  • Newbie
  • *
  • Wiadomości: 18
Odp: Błąd serwera CUPS
« Odpowiedź #11 dnia: Lipiec 21, 2019, 12:50:34 pm »
access_log.1
localhost - - [19/Jul/2019:00:07:37 +0200] "POST / HTTP/1.1" 200 349 Create-Printer-Subscriptions successful-ok
localhost - - [19/Jul/2019:00:07:37 +0200] "POST / HTTP/1.1" 200 176 Create-Printer-Subscriptions successful-ok
localhost - - [19/Jul/2019:00:14:37 +0200] "POST / HTTP/1.1" 200 277 Create-Printer-Subscriptions successful-ok
localhost - - [19/Jul/2019:00:14:42 +0200] "POST / HTTP/1.1" 200 156 Cancel-Subscription successful-ok
localhost - - [19/Jul/2019:00:14:55 +0200] "POST / HTTP/1.1" 200 277 Create-Printer-Subscriptions successful-ok
localhost - - [19/Jul/2019:00:15:01 +0200] "POST /admin/ HTTP/1.1" 401 175 CUPS-Delete-Printer successful-ok
localhost - cups-pk-helper [19/Jul/2019:00:15:01 +0200] "POST /admin/ HTTP/1.1" 200 175 CUPS-Delete-Printer successful-ok
localhost - cups-pk-helper [19/Jul/2019:00:15:05 +0200] "POST / HTTP/1.1" 200 1832 CUPS-Get-Devices -
localhost - cups-pk-helper [19/Jul/2019:00:15:06 +0200] "POST / HTTP/1.1" 200 222 CUPS-Get-Devices -
localhost - - [19/Jul/2019:00:15:16 +0200] "POST / HTTP/1.1" 200 156 Cancel-Subscription successful-ok
localhost - - [19/Jul/2019:00:15:19 +0200] "POST / HTTP/1.1" 200 277 Create-Printer-Subscriptions successful-ok
localhost - - [19/Jul/2019:00:15:20 +0200] "POST / HTTP/1.1" 200 156 Cancel-Subscription successful-ok
localhost - - [19/Jul/2019:02:30:02 +0200] "POST / HTTP/1.1" 401 123 Cancel-Subscription successful-ok
localhost - root [19/Jul/2019:02:30:03 +0200] "POST / HTTP/1.1" 200 123 Cancel-Subscription successful-ok
localhost - - [19/Jul/2019:02:30:03 +0200] "POST / HTTP/1.1" 200 152 Cancel-Subscription successful-ok
localhost - - [19/Jul/2019:08:45:01 +0200] "POST / HTTP/1.1" 200 349 Create-Printer-Subscriptions successful-ok
localhost - - [19/Jul/2019:08:45:01 +0200] "POST / HTTP/1.1" 200 176 Create-Printer-Subscriptions successful-ok
localhost - - [19/Jul/2019:08:50:40 +0200] "POST / HTTP/1.1" 200 277 Create-Printer-Subscriptions successful-ok
localhost - - [19/Jul/2019:08:57:08 +0200] "GET /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
localhost - krzysiek [19/Jul/2019:08:57:08 +0200] "GET /admin/conf/cupsd.conf HTTP/1.1" 200 6403 - -
localhost - - [19/Jul/2019:08:57:52 +0200] "POST / HTTP/1.1" 200 156 Cancel-Subscription successful-ok
localhost - - [19/Jul/2019:10:58:54 +0200] "POST / HTTP/1.1" 200 277 Create-Printer-Subscriptions successful-ok
localhost - - [19/Jul/2019:10:58:59 +0200] "POST / HTTP/1.1" 200 366 Create-Printer-Subscriptions successful-ok
localhost - - [19/Jul/2019:10:58:59 +0200] "POST / HTTP/1.1" 200 366 Create-Printer-Subscriptions successful-ok
localhost - - [19/Jul/2019:10:59:01 +0200] "POST / HTTP/1.1" 200 156 Cancel-Subscription successful-ok
localhost - - [19/Jul/2019:10:59:01 +0200] "POST / HTTP/1.1" 200 156 Cancel-Subscription successful-ok
localhost - - [19/Jul/2019:10:59:04 +0200] "GET /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
localhost - krzysiek [19/Jul/2019:10:59:04 +0200] "GET /admin/conf/cupsd.conf HTTP/1.1" 200 6403 - -
localhost - - [19/Jul/2019:10:59:19 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
localhost - cups-pk-helper [19/Jul/2019:10:59:19 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 201 4571 - -
localhost - - [19/Jul/2019:10:59:36 +0200] "GET /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
localhost - root [19/Jul/2019:10:59:36 +0200] "GET /admin/conf/cupsd.conf HTTP/1.1" 200 4571 - -
localhost - root [19/Jul/2019:10:59:36 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 201 22 - -

Bo access_log jest pusty

A tu jest error_log
X [21/Jul/2019:00:07:06 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:00:07:06 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:00:07:07 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:00:07:07 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:00:07:07 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:12:28:10 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:12:28:10 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:12:28:10 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:12:28:11 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:12:28:11 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:12:31:48 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:12:31:48 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:12:31:49 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:12:31:49 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:12:31:49 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:12:39:40 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:12:39:41 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:12:39:41 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:12:39:41 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:12:39:41 +0200] No valid Listen or Port lines were found in the configuration file.

A tu error_log.1
X [20/Jul/2019:00:06:58 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:00:06:58 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:00:06:58 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:00:06:59 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:00:06:59 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:00:27:50 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:00:27:50 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:00:27:50 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:00:27:50 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:00:27:51 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:07:30:18 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:07:30:19 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:07:30:19 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:07:30:19 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:07:30:19 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:08:51:07 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:08:51:07 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:08:51:07 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:08:51:08 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:08:51:08 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:09:12:57 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:09:12:57 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:09:12:57 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:09:12:57 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:09:12:58 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:20:54:33 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:20:54:33 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:20:54:33 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:20:54:34 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:20:54:34 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:21:49:40 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:21:49:41 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:21:49:41 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:21:49:41 +0200] No valid Listen or Port lines were found in the configuration file.
X [20/Jul/2019:21:49:41 +0200] No valid Listen or Port lines were found in the configuration file.
« Ostatnia zmiana: Lipiec 21, 2019, 07:19:32 pm wysłana przez lami07 »

Offline pavbaranov

  • Hero Member
  • *****
  • Wiadomości: 1418
Odp: Błąd serwera CUPS
« Odpowiedź #12 dnia: Lipiec 21, 2019, 01:43:55 pm »
Niewiele ciekawego w tym jest. Mogę tylko napisać, to ja bym zrobił.
1. Usunął z poziomu panelu sterowania CUPS drukarkę a następnie ponownie ją zainstalował i skonfigurował.
2. Jeśłi nie pomoże - odinstalował sterownik drukarki, ponownie zainstalował - dalej jw. (zainstalowanie w CUPS, konfiguracja).
3. Jeśli i to nie pomoże - odinstalowanie CUPS, odinstalowanie sterownika i ponowna ich instalacja, a następnie podniesienie usługi CUPS, instalacja i konfiguracja drukarki.
Innych pomysłów - brak.

Offline xprotor0

  • Newbie
  • *
  • Wiadomości: 18
Odp: Błąd serwera CUPS
« Odpowiedź #13 dnia: Lipiec 21, 2019, 02:23:43 pm »
Nie mogę nic dodać nic z konfigurować
Zainstalowałem teraz wirtualnego linux mint i już wiem co zrobiłem.
Teraz w wirtualnym systemie jak klikniesz w centrum sterowania i drukarki jest dodaj drukarkę a ja mam połącz z serwerem tak jak to było przedstawione w wcześniejszych zdjęciach.
Wszedłem w ustawienia w tym okienku co dodajesz drukarkę tam jeszcze klikłem zaawansowane i zaznaczyłem pierwsze od góry nie zachowuj historii i stało się takie coś

Offline xprotor0

  • Newbie
  • *
  • Wiadomości: 18
Odp: Błąd serwera CUPS
« Odpowiedź #14 dnia: Lipiec 21, 2019, 03:09:41 pm »
Usunąłem cups z całymi katalogami, później zainstalowałem i mam tylko jeden plik z eroor_log
X [21/Jul/2019:14:47:01 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:14:47:01 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:14:47:01 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:14:47:01 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:14:47:02 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:15:03:37 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:15:03:37 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:15:03:38 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:15:03:38 +0200] No valid Listen or Port lines were found in the configuration file.
X [21/Jul/2019:15:03:38 +0200] No valid Listen or Port lines were found in the configuration file.

Co jeszcze musiałem zrobić ten plik do odczytu przez roota

A chciałbym że by był taki log
localhost - - [21/Jul/2019:12:30:30 +0000] "POST / HTTP/1.1" 200 346 Create-Printer-Subscriptions successful-ok
localhost - - [21/Jul/2019:12:30:30 +0000] "POST / HTTP/1.1" 200 173 Create-Printer-Subscriptions successful-ok

Podmienić pliku raczej chyba nie idzie nie ? :)