After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 660658 - gnome-user-share passes "Listen -1" to apache
gnome-user-share passes "Listen -1" to apache
Status: RESOLVED DUPLICATE of bug 660146
Product: gnome-user-share
Classification: Core
Component: general
2.30.x
Other Linux
: Normal major
: ---
Assigned To: gnome-user-share maintainers
gnome-user-share maintainers
Depends on:
Blocks:
 
 
Reported: 2011-10-01 22:32 UTC by bernie
Modified: 2011-10-17 15:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description bernie 2011-10-01 22:32:03 UTC
NOTE: judging from the code in git, this bug also affects the 3.x.

This happens because bind() fails in http.c:get_port():

 [pid 18669] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 17
 [pid 18669] setsockopt(17, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
 [pid 18669] bind(17, {sa_family=AF_UNSPEC, sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 16) = -1 EAFNOSUPPORT (Address family not supported by protocol)

This is with kernel 3.0... not sure if it used to work in the past.


Additionally, gnome-user-share does seems to ignore the fact that apache failed to start. There's no indication that something went wrong at the GUI level. The user is just left wondering why enabling file sharing doesn't seem to have any visible effect.
Comment 1 bernie 2011-10-01 22:46:05 UTC
The main bug appears to be a 3.0 regression:

  https://bugzilla.kernel.org/show_bug.cgi?id=42012

The bug is currently unavailable because kernel.org is down. Folow the thread here:

  http://permalink.gmane.org/gmane.linux.network/205328

The second part of the bug (no feedback to user when apache fails to start) still stands.
Comment 2 Alexandre Rostovtsev 2011-10-11 17:54:35 UTC
There is a patch for the first problem on launchpad: https://bugs.launchpad.net/ubuntu/+source/gnome-user-share/+bug/856732

Also, see https://bugzilla.redhat.com/show_bug.cgi?id=738428
Comment 3 Bastien Nocera 2011-10-17 13:37:36 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 660146 ***
Comment 4 bernie 2011-10-17 15:41:38 UTC
This part is still unfixed:

  Additionally, gnome-user-share does seems to ignore the fact that apache
  failed to start. There's no indication that something went wrong at the GUI
  level. The user is just left wondering why enabling file sharing doesn't
  seem to have any visible effect.

Shall I file a separate bug for this?
Comment 5 Bastien Nocera 2011-10-17 15:46:26 UTC
(In reply to comment #4)
> This part is still unfixed:
> 
>   Additionally, gnome-user-share does seems to ignore the fact that apache
>   failed to start. There's no indication that something went wrong at the GUI
>   level. The user is just left wondering why enabling file sharing doesn't
>   seem to have any visible effect.
> 
> Shall I file a separate bug for this?

Sure, though I won't fix it, gnome-user-share will be merged into GNOME proper at some point soon, and that particular code will probably die.