Cups внутренняя ошибка сервера

  • Печать

Страницы: [1]   Вниз

Тема: помогите разобраться с печатью  (Прочитано 4101 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
freemind

перестала работать печать.

решил переустановить cups: удаляю,

sudo service cups stop
sudo apt purge cups

после перезагрузки открываю http://localhost:631/ админка загружается, на никакие разделы не работают
что за ерунда?

 делаю

sudo service cups stopадминка перестает работать

делаю:

sudo service --status-all

oleg@satellite:~$ sudo service --status-all
 [ + ]  acpid
 [ - ]  alsa-utils
 [ - ]  anacron
 [ - ]  apparmor
 [ + ]  apport
 [ + ]  avahi-daemon
 [ + ]  binfmt-support
 [ - ]  bluetooth
 [ - ]  bootmisc.sh
 [ - ]  brltty
 [ - ]  checkfs.sh
 [ - ]  checkroot-bootclean.sh
 [ - ]  checkroot.sh
 [ + ]  console-setup
 [ + ]  cron
 [ + ]  cups
 [ - ]  cups-browsed
 [ + ]  dbus

при этом

oleg@satellite:~$ sudo apt purge cups
Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Пакет «cups» не установлен, поэтому не может быть удалён
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 33 пакетов не обновлено.

Я что-то не понимаю ничего :idiot2:

как вычистить cups полностью и потом переустановить его?

При попытке добавить принтер возникает ошибка There was an error during the CUPS operation: ‘Внутренняя Ошибка сервера’.

 

Подскажите, с какой стороны к нему подойти, как наладить печать?


Оффлайн
symon.2014


Оффлайн
freemind

oleg@satellite:~$ sudo service cups-browsed start
oleg@satellite:~$ sudo service --status-all
 [ + ]  cups
 [ + ]  cups-browsed

все равно There was an error during the CUPS operation: ‘Внутренняя Ошибка сервера’.
как на картинке выше


Пользователь добавил сообщение 10 Октября 2017, 15:30:53:


вот содержимое /var/log/cups/error_log.1

E [09/Oct/2017:07:35:01 +0500] Unknown directive JobPrivateAccess on line 90 of /etc/cups/cupsd.conf.
E [09/Oct/2017:07:35:01 +0500] Unknown directive JobPrivateValues on line 91 of /etc/cups/cupsd.conf.
E [09/Oct/2017:07:35:01 +0500] Unknown directive SubscriptionPrivateAccess on line 92 of /etc/cups/cupsd.conf.
E [09/Oct/2017:07:35:01 +0500] Unknown directive SubscriptionPrivateValues on line 93 of /etc/cups/cupsd.conf.
E [09/Oct/2017:07:35:01 +0500] Filter "pstops" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "pdftopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "rastertopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "imagetopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "imagetopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "imagetopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "imagetopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "imagetopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "imagetopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "imagetopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "imagetopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "imagetopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "imagetopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "imagetopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "imagetopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "imagetopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "imagetopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "imagetopdf" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "pdftops" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "pdftoraster" not found.
E [09/Oct/2017:07:35:01 +0500] Filter "pstops" not found.
E [10/Oct/2017:11:10:22 +0500] Unknown directive JobPrivateAccess on line 90 of /etc/cups/cupsd.conf.
E [10/Oct/2017:11:10:22 +0500] Unknown directive JobPrivateValues on line 91 of /etc/cups/cupsd.conf.
E [10/Oct/2017:11:10:22 +0500] Unknown directive SubscriptionPrivateAccess on line 92 of /etc/cups/cupsd.conf.
E [10/Oct/2017:11:10:22 +0500] Unknown directive SubscriptionPrivateValues on line 93 of /etc/cups/cupsd.conf.
E [10/Oct/2017:11:10:22 +0500] Filter "pstops" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "pdftopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "rastertopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "imagetopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "imagetopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "imagetopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "imagetopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "imagetopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "imagetopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "imagetopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "imagetopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "imagetopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "imagetopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "imagetopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "imagetopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "imagetopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "imagetopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "imagetopdf" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "pdftops" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "pdftoraster" not found.
E [10/Oct/2017:11:10:22 +0500] Filter "pstops" not found.
E [10/Oct/2017:11:10:22 +0500] [Client 4] Returning IPP client-error-not-possible for Create-Printer-Subscriptions (/) from localhost

« Последнее редактирование: 10 Октября 2017, 15:30:53 от freemind »


Оффлайн
symon.2014

Попробуй его ещё раз удалить, и проверь, не остались ли после него следы, в частности /etc/cups/* и ~/.cups


Оффлайн
freemind

удаление это

sudo apt purge cups?

больше ничего не надо?


Пользователь добавил сообщение 10 Октября 2017, 17:07:52:


/etc/cups/ остался, внутри есть файлы и папки

~/.cups отсутствует

есть еще
/usr/lib/cups/
/usr/share/cups/

это все тоже удалить?

« Последнее редактирование: 10 Октября 2017, 17:07:52 от freemind »


Оффлайн
symon.2014

Переименуй эти папки, чтоб остались, и установи cups , он должен создать их дефолтными.


Оффлайн
freemind

переименовал, установил, теперь cups вообще не запускается, http://localhost:631/ тоже не работает

oleg@satellite:~$ sudo apt-get install cups
oleg@satellite:~$ sudo service cups start
oleg@satellite:~$ sudo service --status-all
...
 [ - ]  cups
...


Оффлайн
EvangelionDeath

symon.2014, вот не надо учить плохому

sudo apt-get purge cups-browsed
sudo apt-get autoremove --purge
dpkg -l | awk '/^rc/ {print $2}' | sudo  xargs dpkg -P
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install cups cups-browsed

И наверное покажите

dpkg --get-selections '*cups*'

« Последнее редактирование: 10 Октября 2017, 17:55:52 от EvangelionDeath »

HP Pro 840 G3: Intel i5-6300U, 32GB DDR4 2133MHz, Intel 520, Intel Pro 2500 180GB/Ubuntu 22.04
Dell Latitude 5590: Intel i5-8350U, 16GB DDR4 2400MHz, Intel 620, Samsung 1TB/Ubuntu 22.04


Оффлайн
symon.2014

sudo service cups start

Прежде чем стартовать , надо включить или перелогиниться.


Оффлайн
freemind

проделал все вышеописанное, перезагрузился, cups не запустился.
cups-browsed запущен.
http://localhost:631/ недоступно

oleg@satellite:~$ dpkg --get-selections '*cups*'
cups install
cups-browsed install
cups-bsd install
cups-client install
cups-common install
cups-core-drivers install
cups-daemon install
cups-filters install
cups-filters-core-drivers install
cups-pk-helper install
cups-ppdc install
cups-server-common install
libcups2:amd64 install
libcups2:i386 install
libcupscgi1:amd64 install
libcupsfilters1:amd64 install
libcupsimage2:amd64 install
libcupsmime1:amd64 install
libcupsppdc1:amd64 install
python-cups install
python3-cups install
python3-cupshelpers install


Пользователь добавил сообщение 10 Октября 2017, 18:29:00:


логи cups пустые.

в syslog:

Oct 10 20:19:03 satellite systemd[1]: Listening on CUPS Scheduler.
Oct 10 20:19:03 satellite systemd[1]: Started CUPS Scheduler.
Oct 10 20:19:03 satellite systemd[1]: cups.service: Main process exited, code=exited, status=1/FAILURE
Oct 10 20:19:03 satellite systemd[1]: cups.service: Unit entered failed state.
Oct 10 20:19:03 satellite systemd[1]: cups.service: Failed with result 'exit-code'.
Oct 10 20:19:03 satellite kernel: [  474.414280] audit: type=1400 audit(1507648743.110:40): apparmor="DENIED" operation="sendmsg" profile="/usr/sbin/cupsd" name="/run/systemd/journal/socket" pid=5981 comm="cupsd" requested_mask="w" denied_mask="w" fsuid=0 ouid=0

« Последнее редактирование: 10 Октября 2017, 18:29:00 от freemind »


Оффлайн
EvangelionDeath

Проверил списки пакетов:
У меня нет python-cups
Но есть printer-driver-hpcups

sudo apt-get purge python-cups
sudo apt-get install printer-driver-hpcups
sudo service cups start && sudo service cups status

HP Pro 840 G3: Intel i5-6300U, 32GB DDR4 2133MHz, Intel 520, Intel Pro 2500 180GB/Ubuntu 22.04
Dell Latitude 5590: Intel i5-8350U, 16GB DDR4 2400MHz, Intel 620, Samsung 1TB/Ubuntu 22.04


Оффлайн
freemind

короче говоря с горем пополам запустился после

sudo apt purge cups-daemon
sudo apt-get install cups-daemon
sudo apt-get install cups

и даже принтер установился, Но не печатает
error_log пуст, в access_log такая петрушка:

localhost - - [11/Oct/2017:16:28:45 +0500] "POST /printers/KyoceraFS1125 HTTP/1.1" 200 207 Create-Job successful-ok
localhost - - [11/Oct/2017:16:28:45 +0500] "POST /printers/KyoceraFS1125 HTTP/1.1" 200 69484 Send-Document client-error-document-format-not-supported
localhost - - [11/Oct/2017:16:28:45 +0500] "POST /jobs/ HTTP/1.1" 200 177 Cancel-Job successful-ok
пробовал разные файлы, толку нет.

как-то не до конца установился похоже
Есть идеи что-где посмотреть-проверить?

доступа к http://localhost:631 так же нет


Оффлайн
EvangelionDeath

sudo apt-get install cups cups-daemon cups-browsed cups-filters cups-filters-core-drivers --reinstall
После чего удалить и установить по новому принтер.

HP Pro 840 G3: Intel i5-6300U, 32GB DDR4 2133MHz, Intel 520, Intel Pro 2500 180GB/Ubuntu 22.04
Dell Latitude 5590: Intel i5-8350U, 16GB DDR4 2400MHz, Intel 620, Samsung 1TB/Ubuntu 22.04


Оффлайн
freemind


  • Печать

Страницы: [1]   Вверх

I was able to work around the problem by setting up the printer using the CUPS web interface. I pointed my browser at localhost:631, which gave me the web interface. Then selected «Adding Printers and Classes», then «Add Printer».

It had already detected my network attached printer so it was just a matter of installing the correct PPD file from the selection.

I don’t know why attempting to install the printer through the ubuntu Printers settings resulted in the ‘server-error-internal-error’, but this method seems to have worked fine. If anyone knows what the root cause of the error is I’d still love to know…

Hello all,

I’ve installed cups to configure my printer for Uni and had already issues with the very first steps.

1) Ive installed cups:

sudo pacman -S cups cups-pdf

2) Enable it/Started it

sudo systemctl enable --now cups
sudo systemctl start --now cups

3) Restarted machine

4) Ran:

and obtained:

● cups.service - CUPS Scheduler
     Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled; vendor preset: disabled)
     Active: active (running) since Sun 2021-07-18 12:01:10 CEST; 13min ago
TriggeredBy: ● cups.socket
             ● cups.path
       Docs: man:cupsd(8)
   Main PID: 39957 (cupsd)
     Status: "Scheduler is running..."
      Tasks: 1 (limit: 18906)
     Memory: 2.1M
        CPU: 59ms
     CGroup: /system.slice/cups.service
             └─39957 /usr/bin/cupsd -l

Jul 18 12:01:10 archthink systemd[1]: Starting CUPS Scheduler...
Jul 18 12:01:10 archthink systemd[1]: Started CUPS Scheduler.

Which theoretically is telling me that cups is running.

If I access cups server at http://localhost:631/, whatever I click there returns me a «Internal Server Error».

If I run lpinfo -m, I also receive a «Internal Server Error»

If I run «ps aux | grep -v grep | grep cups» I receive:

root       39957  0.0  0.0  31100 10480 ?        Ss   12:01   0:00 /usr/bin/cupsd -l

Which confirms me once again it is in fact running. But whatever I do with cups gives me an internal server error. I really dont know what to do. Everything I see online, whenever someone installs cups and begins it service, it just works.

Thank you in advance for any answers.

EDIT:
Apparently there could’ve been an out of sync mirror where I obtained my cups package from and it could’ve been causing issues with cups running on my system.

After a system update and reinstallation of cups things worked again. smile

Last edited by cavalcantidd (2021-07-18 14:13:18)

Recently, I get internal server errors with CUPS.

> sudo lpinfo -m
lpinfo: Internal Server Error

Here is my /etc/cups/cupsd.conf. I’m not even sure where to start. I tried commenting out suspicious lines, but to no success. How can I fix this?

I run CUPS 1.7.2-1 on debian wheezy/sid.

Rui F Ribeiro's user avatar

Rui F Ribeiro

55.6k26 gold badges146 silver badges225 bronze badges

asked Apr 21, 2014 at 12:17

k.stm's user avatar

1

This error can occur when cups is not started by root.

sesu to root will not work; it must be the actual root account. You can either login as root and do service cups restart, or you can make sure cups is on in chkconfig (chkconfig cups on), and then reboot.

roaima's user avatar

roaima

104k14 gold badges131 silver badges254 bronze badges

answered Jan 24, 2017 at 21:32

Dave P.'s user avatar

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

.


0

2

Всем привет

Понадобилось поставить cups, в нем ни бум бум. Захожу на веб панель, домашняя страничка показывает портянку HTML, но admin работает как надо, пароль все такое. Но не могу добавить принтер, Add Printer пишет

Unable to add printer:

    Internal Server Error

система debian 10 live) принтер epson L210

systemctl status cups
● cups.service — CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-07-04 20:25:47 UTC; 12min ago
Docs: man:cupsd(8)
Main PID: 6745 (cupsd)
Tasks: 1 (limit: 4915)
Memory: 3.2M
CGroup: /system.slice/cups.service
└─6745 /usr/sbin/cupsd -l

куда копать?

P.s. ставил дрова printer-driver-gutenprint

  • Cummins c17d5 коды ошибок
  • Cuid 230 ошибка 52
  • Cucl2 fe fecl2 cu сколько ошибок
  • Cube acr ошибка сохранения недоступный аудиоисточник или неподдерживаемый аудиоформат
  • Cube acr не удалось осуществить запись ошибка сохранения недоступный аудиоисточник android 10