Comments (6)
So this is an interesting one as we only enforce that setting in web_callbacks.cc
and we provide pupnp with a buffer of the xml description so it should be always provided.
We also don't do any initialisation of the library different in either case... I wonder if we are running into a pupnp bug here?
My C is even worse than my C++ so perhaps @gburca could take a look at pupnp?
It certainly sounds like https://sourceforge.net/p/pupnp/bugs/8/
from gerbera.
Can you try e4c0f5c?
from gerbera.
Good news and bad news.
Good news - that fixed it! description.xml is now published when "ui enabled=no"
also - if I go to the GUI url, I briefly see the GUI before being redirected to a "disabled" page
whereas before this was a straight up 404. there might be some exploits there...
Bad news - things seemed to get a little more fragile as far as SIGHUP is concerned, which might explain the messages and warnings in the code and references to pupnp...
Typically a single SIGHUP results in nothing being served and audio playback dying.
A second or third SIGHUP is needed to get things working again.
after which, a SIGHUP will break it again...
Log appears reasonable, showing the restart, but serving is down until the SIGHUP dance happens
the right number of times.
Big progress regardless, thanks!
from gerbera.
...also, after a clean shutdown, this version will sometimes come up not serving files, until the SIGHUP dance is done.
...turns out, the previous version [before this commit] had the same issue some times; looking through the logs, I can see that the "Initialized port:" is actually incrementing, and not the one specified.
It will usually come back around to the requested port.
Also, doing some SIGHUP testing I also saw some database troubles:
ERROR: Exception caught: error while doing select: [big SELECT statement]
Exception raised in [/home/whorfin/mediatomb/mediatomb-whorfin/src/storage/sql_storage.cc:936] _findObjectByPath(): error while doing select: [same big SELECT statement]
So I don't think this version is actually a regression, as the SIGHUP issue pre-exists, but may be made worse in some circumstances.
from gerbera.
I've seen that problem as well where it starts on the next port, as if the one it's configured for is in use. This has been happening since forever in my case. I tried waiting a bit after the shutdown thinking the restart is happening too fast, but it didn't seem to make a difference.
from gerbera.
Okay great. Lets close this and @whorfin can split out the SIGHUP stuff into a new issue.
from gerbera.
Related Issues (20)
- Ubuntu repository not accessible HOT 2
- Both Ubuntu repos down HOT 4
- gerbrea 2.0: Crash on initial import after first playlist HOT 10
- JFROG artifactory disabled HOT 2
- Install gerbera HOT 1
- Samsung tv not playing files HOT 7
- Apt update fails because jfrog subscription de-activated HOT 1
- Issue: "JFrog's Free-Tier subscription has been deactivated." HOT 14
- ToDo: Renew Docker OSS Subscription HOT 4
- firewall advice needed in documentation HOT 1
- Common.js Box Setup for Dates Uses Config Parameter Video/allYears HOT 1
- SIGSEGV while AutoScan HOT 2
- debian gerbera build -> undefined symbol HOT 6
- Gerbera 2.0 error: Failed to read /home/user/.mpdascache: No such file or directory HOT 12
- Gerbera 2.0 autoscan in config.xml does not work HOT 2
- Debian 12: ./build-deb.sh fails to complet due to unbound variable
- Box Layout settings without effect with "builtin" virtual-layout HOT 5
- No video content is showing under database > Video > [all subfolders] HOT 4
- Album artist tags ignored HOT 2
- [Bug] Unexpected crash when adding recursive autoscanning to folder. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gerbera.