-
-
Notifications
You must be signed in to change notification settings - Fork 40
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 Server not starting on HA OS 10.0+ #167
Comments
+1, still getting the same issue. Here is my logs:
|
I have the same. |
Ha os 10.3 does not fix this |
maybe here is solution: "containerd recently changed the default LimitNOFILE from 1048576 to infinity. |
It still do not start on HAOS 10.3. Log:
|
I was able to reproduce this by installing a VM on my Synology. Now I can try to figure out what happens. Sadly I have no real knowledge about all thath DBUS stuff and CUPS. @akslow sounds promising, I am just confused about that systemd relation. We start cups directly as entrypoint. Which might be the issue, not sure why this is not wrapped like the other s6 stuff. |
@bdraco might be helpful with this. |
Is there any progress with this |
Ok i can tell that it doesn't start wit the latest OS |
Yeah, still want to solve this issue. Just rare on time :( i can reproduce it, so next step might be to disable everything step by step to see what really causes the crashes. |
Ah, so this issue is known? For what it’s worth, it isn’t so simple as fiddling configuration options (host_dbus, full_access, usb, whatever) as far as I can tell. Additionally, no fork of the original repository has fixed this yet if that saves anybody else searching. Thanks for looking into it. If you can suggest things to try, I can also try then make a PR. I know Docker and Debian well though some knowledge likely dated, but brand new to Home Assistant. |
Trying to start on a RPI3 (model B) with HASSOS, same log of this issue. Looking in the journal:
__vm_enough_memory: pid: 344510, comm: cupsd, no enough memory for the allocation having:
Is so much memory needed to start cups? |
Inspired by Max work, I have created the addon in a little different way - using S6-Overlay v3, Avahi configured in the reflector mode and with access to host network. Tested with the latest Home Assistant 2023.9. AirPrint (i.e. from iPhone) works also. https://github.com/zajac-grzegorz/homeassistant-addon-cups-airprint |
Looks pretty good to me! Just gave it a quick spin on my Debian based home assistant installation, so can't really speak for the users with issues.
Might need some tweaking here and there, like a more recent version of CUPS or prebuild images.
…________________________________
From: Grzegorz Zajac ***@***.***>
Sent: Tuesday, September 26, 2023 8:48 PM
To: MaxWinterstein/homeassistant-addons ***@***.***>
Cc: Max Winterstein ***@***.***>; Comment ***@***.***>
Subject: Re: [MaxWinterstein/homeassistant-addons] Cups Server not starting on HA OS 10.0+ (Issue #167)
Inspired by Max work, I have created the addon in a little different way - using S6-Overlay v3, Avahi configured in the reflector mode and with access to host network.
Tested with the latest Home Assistant 2023.9. AirPrint (i.e. from iPhone) works also.
https://github.com/zajac-grzegorz/homeassistant-addon-cups-airprint<url>
—
Reply to this email directly, view it on GitHub<#167 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABNHB3AMP7ZBBTQ6725MXZDX4MPOZANCNFSM6AAAAAAZCSJ7UE>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Tried it on RPI4 HAOS10.5 HA 2023.9.2 and it works!! Thanks for making this |
Tried on RPI3-B, HAOS 10.5, HA 2023.9.3, SUPERVISOR 2023.9.2
|
considering your ram issue, consider an upgrade (then try again) |
@zajac-grzegorz should we collaborate on this somehow? |
not installed on rpi4 2Gb. |
I got it running on an RPi4 2GB. The image is built from scratch, which used much of the CPU and up to 500 GB RAM for about 5 minutes. Also, the RAM usage during normal operations is a bit odd: It uses about 50MB RAM, which is 4x the consumption of Max's version. |
@zajac-grzegorz are you okay with me wrapping this into my repo and provide pre-build images? of course with credits. |
Sure! Go ahead |
I quickly gave it a try, after a store refresh there should be Feedback, especially from those who had build issues, is highly recommended. |
I was able to complete the install process on a RPI3-B in the same way, waiting patiently and refreshing the add-on page. |
@GHGiampy local built images are always included in the backup of the addon. |
Eventhough it is almost the same as the one from zajac-grzegorz, which won't install for me, this one is installed and starts, but I see the following in the log: And it really is unreliable. I tried it with my iPhone, it sees the installed USB printer, but not able to print and after the first trial with printing, the server needs to be restarted to be able to try again. Here is the complete log:
|
That is a desired behaviour, because we run the second Avahi instance (in CUPS addon in the reflector mode) on the same host network. The first Avahi instance runs within the Hassio. If you can see the printer in iOS, it should be possible to send data to that printer... Have you checked if the printing job is created in the CUPS web interface? If the printing job is there, most probably wrong driver was selected for your printer. BTW what is the printer you use? |
The job is not in the list of the printing jobs, unfortunately.
The printer is an Epson AL-M2300 with USB connection.
Grzegorz Zajac ***@***.***> (időpont: 2023. okt. 9., H,
21:33) ezt írta:
… *** WARNING: Detected another IPv4 mDNS stack running on this host. This
makes mDNS unreliable and is thus not recommended. ***
That is a desired behaviour, because we run the second Avahi instance (in
CUPS addon in the reflector mode) on the same host network. The first Avahi
instance runs within the Hassio.
If you can see the printer in iOS, it should be possible to send data to
that printer... Have you checked if the printing job is created in the CUPS
web interface? If the printing job is there, most probably wrong driver was
selected for your printer. BTW what is the printer you use?
—
Reply to this email directly, view it on GitHub
<#167 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BBASZ5HQK34JB3U5FULSVN3X6RGPJAVCNFSM6AAAAAAZCSJ7UGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJTGU4TCMBRGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sure, it is checked and also the “Allow printing from the Internet”.
Grzegorz Zajac ***@***.***> (időpont: 2023. okt. 9., H,
21:42) ezt írta:
… The job is not in the list of the printing jobs, unfortunately. The
printer is an Epson AL-M2300 with USB connection.
Do you have this option selected on the Administration tab?
[image: image]
<https://user-images.githubusercontent.com/74325984/273683034-8ea7dae1-3d24-462f-a732-ba0e95fce6db.png>
—
Reply to this email directly, view it on GitHub
<#167 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BBASZ5FJHJMT7T6ZFZCO4SDX6RHTRAVCNFSM6AAAAAAZCSJ7UGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJTGYYTMMRTGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
what about printing the test page directly from the CUPS UI? |
I’ll try it
Grzegorz Zajac ***@***.***> (időpont: 2023. okt. 9., H,
21:46) ezt írta:
… what about printing the test page directly from the CUPS UI?
—
Reply to this email directly, view it on GitHub
<#167 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BBASZ5FUAST2L72GPLPU5JLX6RICRAVCNFSM6AAAAAAZCSJ7UGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJTGYZDMNRWGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
With the latest version I was able to install the addon and also the printer. HP LaserJet P1005. I managed to install it on Windows 10, but I can't even print the test page, both from Windows and from Cups.
But I don't know how to do this through the addon to see if I can use it in cups Any ideas what I can do? |
It could print the CUPS test page, and it seems today is my lucky day as it started working with my iPhone, too. Great job guys! Thank you, everyone, especially Max and Grzegorz! |
Still not able to run CUPS Print Server: Failed to to call /addons/1e14b3fb_cups/stats - Container addon_1e14b3fb_cups is not running OS = 11.0 Has there been an update or work-around? |
@rcrail looking at the slug 'cups' it seems like you running neither my test version, nor the one of @zajac-grzegorz. |
Thanks, both .local and ip work. Addon works great. Only issue I have noticed while using it is that when I restart the addon, printer I have previously configured and used is missing in cups. Is anybody else able to reproduce this? |
Check my repo. I have recently added the persistency for printer config data. |
Thanks, persistence works. |
Hey everyone, I updated the main Please use the Known issue to me, the cups admin has no password for the moment, |
I suppose this thread can be closed now?
Thanks, |
This has been discussed in #152
Unfortunately, adding "ulimit -n" to all run tasks did not solve the problem: #166
Current log when starting the add-on ( @Changuitox has a very similar, but not identical log in #166 ):
The text was updated successfully, but these errors were encountered: