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

Błąd serwera CUPS [ROZWIĄZANY]

Zaczęty przez xprotor0, Lipiec 19, 2019, 11:52:35 PM

Poprzedni wątek - Następny wątek

xprotor0

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?

pavbaranov

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ć.

xprotor0

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ę ?

xprotor0


pavbaranov

Weż odinstaluj CUPS i ponownie zainstaluj. Namieszałeś coś okropnie.

xprotor0

Wpisałem
sudo apt-get remove cups
sudo apt-get install cups
i nic się nie zmieniło

pavbaranov

Pokaż logi. Bez tego to jest zgadywanka.

xprotor0

Ale właśnie nie wiem jak te logi się pokazuje ?

pavbaranov

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.

xprotor0

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

pavbaranov

Logi!!! (ich treść), a nie lista plików. Ostatnie to access_log i error_log.

xprotor0

#11
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.

pavbaranov

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.

xprotor0

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ś

xprotor0

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 ? :)


Zobacz najnowsze wiadomości na forum