Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUPS doesn't start #162

Open
Sekenenz opened this issue Jan 24, 2025 · 1 comment
Open

CUPS doesn't start #162

Sekenenz opened this issue Jan 24, 2025 · 1 comment

Comments

@Sekenenz
Copy link

Regardless of the container package (olbat/cupsd - ydkn/cups - anujdatar/cups) I can't get cups to work, the container won't start.
Can anyone share the yaml?

@Sekenenz
Copy link
Author

Sekenenz commented Jan 26, 2025

HW

H/W path           Device     Class          Description
========================================================
                              system         To Be Filled By O.E.M. (To Be Filled By O.E.M.)
/0                            bus            N3010-NUC
/0/0                          memory         64KiB BIOS
/0/a                          memory         4GiB System Memory
/0/a/0                        memory         4GiB DIMM DDR3 1600 MHz (0.6 ns)
/0/a/1                        memory         DIMM [empty]
/0/11                         memory         112KiB L1 cache
/0/12                         memory         1MiB L2 cache
/0/13                         processor      Intel(R) Celeron(R) CPU  N3010  @ 1.04GHz
/0/100                        bridge         Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register
/0/100/2           /dev/fb0   display        Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller
/0/100/13          scsi1      storage        Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SATA Controller
/0/100/13/0.0.0    /dev/sda   disk           32GB MM362 32GB
/0/100/13/0.0.0/1             volume         31MiB Windows FAT volume
/0/100/13/0.0.0/2  /dev/sda2  volume         23MiB EFI partition
/0/100/13/0.0.0/3  /dev/sda3  volume         6143MiB EFI partition
/0/100/13/0.0.0/4  /dev/sda4  volume         23MiB EFI partition
/0/100/13/0.0.0/5  /dev/sda5  volume         6143MiB EFI partition
/0/100/13/0.0.0/6  /dev/sda6  volume         8191KiB EFI partition
/0/100/13/0.0.0/7  /dev/sda7  volume         96MiB EXT4 volume
/0/100/13/0.0.0/8  /dev/sda8  volume         17GiB EXT4 volume
/0/100/14                     bus            Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller
/0/100/14/0        usb1       bus            xHCI Host Controller
/0/100/14/0/5                 communication  Bluetooth Radio
/0/100/14/1        usb2       bus            xHCI Host Controller
/0/100/1a                     generic        Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine
/0/100/1b          card0      multimedia     Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series High Definition Audio Controller
/0/100/1b/0        input4     input          HDA Intel PCH Front Headphone
/0/100/1b/1        input5     input          HDA Intel PCH HDMI/DP,pcm=3
/0/100/1b/2        input6     input          HDA Intel PCH HDMI/DP,pcm=7
/0/100/1b/3        input7     input          HDA Intel PCH HDMI/DP,pcm=8
/0/100/1c                     bridge         Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #1
/0/100/1c/0                   network        RTL8821AE 802.11ac PCIe Wireless Network Adapter
/0/100/1c.1                   bridge         Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #2
/0/100/1c.1/0      eth0       network        RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller
/0/100/1f                     bridge         Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU
/0/100/1f/0                   system         PnP device PNP0b00
/0/100/1f/1                   system         PnP device PNP0c02
/0/100/1f/2                   generic        PnP device NTN0530
/0/100/1f/3                   system         PnP device PNP0c02
/0/100/1f/4                   system         PnP device PNP0c02
/0/100/1f/5                   system         PnP device PNP0c02
/0/100/1f.3                   bus            Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx SMBus Controller
/1                 input0     input          Power Button
/2                 input1     input          Sleep Button
/3                 input2     input          Power Button
/4                 input3     input          Video Bus

yaml

name: cups
services:
  cups:
    cpu_shares: 90
    command: []
    container_name: cups
    deploy:
      resources:
        limits:
          memory: 3596M
        reservations:
          memory: "67108864"
    devices:
      - /dev/bus/usb:/dev/bus/usb
    environment:
      - CUPSADMIN=admin
      - CUPSPASSWORD=password
      - TZ=Europe/Rome
    image: anujdatar/cups:latest
    labels:
      icon: https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/cups/icon.png
    ports:
      - mode: ingress
        target: 631
        published: "631"
        protocol: tcp
    restart: unless-stopped
    volumes:
      - type: bind
        source: /DATA/AppData/cups/config
        target: /etc/cups
        bind:
          create_host_path: true
    cap_add: []
    network_mode: bridge
    privileged: false

Container

$ sudo docker ps -a
CONTAINER ID   IMAGE                   COMMAND            CREATED          STATUS                          PORTS     NAMES
fc10c5f918ef   anujdatar/cups:latest   "/entrypoint.sh"   12 minutes ago   Restarting (1) 53 seconds ago             cups

Log

$ sudo docker logs cups
++ grep -ci admin /etc/shadow
+ '[' 0 -eq 0 ']'
+ useradd -r -G lpadmin -M admin
+ echo admin:password
+ chpasswd
+ ln -fs /usr/share/zoneinfo/Europe/Rome /etc/localtime
+ dpkg-reconfigure --frontend noninteractive tzdata

Current default time zone: 'Europe/Rome'
Local time is now:      Sun Jan 26 17:26:07 CET 2025.
Universal Time is now:  Sun Jan 26 16:26:07 UTC 2025.

+ '[' '!' -f /etc/cups/cupsd.conf ']'
+ exec /usr/sbin/cupsd -f
++ grep -ci admin /etc/shadow
+ '[' 1 -eq 0 ']'
+ '[' '!' -f /etc/cups/cupsd.conf ']'
+ exec /usr/sbin/cupsd -f
++ grep -ci admin /etc/shadow
+ '[' 1 -eq 0 ']'
+ '[' '!' -f /etc/cups/cupsd.conf ']'
+ exec /usr/sbin/cupsd -f
++ grep -ci admin /etc/shadow
+ '[' 1 -eq 0 ']'
+ '[' '!' -f /etc/cups/cupsd.conf ']'
+ exec /usr/sbin/cupsd -f
++ grep -ci admin /etc/shadow
+ '[' 1 -eq 0 ']'
+ '[' '!' -f /etc/cups/cupsd.conf ']'
+ exec /usr/sbin/cupsd -f
++ grep -ci admin /etc/shadow
+ '[' 1 -eq 0 ']'
+ '[' '!' -f /etc/cups/cupsd.conf ']'
+ exec /usr/sbin/cupsd -f
++ grep -ci admin /etc/shadow
+ '[' 1 -eq 0 ']'
+ '[' '!' -f /etc/cups/cupsd.conf ']'
+ exec /usr/sbin/cupsd -f
++ grep -ci admin /etc/shadow
+ '[' 1 -eq 0 ']'
+ '[' '!' -f /etc/cups/cupsd.conf ']'
+ exec /usr/sbin/cupsd -f
++ grep -ci admin /etc/shadow
+ '[' 1 -eq 0 ']'
+ '[' '!' -f /etc/cups/cupsd.conf ']'
+ exec /usr/sbin/cupsd -f
++ grep -ci admin /etc/shadow
+ '[' 1 -eq 0 ']'
+ '[' '!' -f /etc/cups/cupsd.conf ']'
+ exec /usr/sbin/cupsd -f
++ grep -ci admin /etc/shadow
+ '[' 1 -eq 0 ']'
+ '[' '!' -f /etc/cups/cupsd.conf ']'
+ exec /usr/sbin/cupsd -f``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant