Re: Cannot change the gateway port (civetweb)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Probably this is the reason:

https://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html

Regards,
-- 
Jarosław Owsiewski

2016-02-17 15:28 GMT+01:00 Alexandr Porunov <alexandr.porunov@xxxxxxxxx>:
Hello,

I have problem with port changes of rados gateway node.
I don't know why but I cannot change listening port of civetweb.

My steps to install radosgw:
ceph-deploy install --rgw gateway
ceph-deploy admin gateway
ceph-deploy create rgw gateway

(gateway starts on port 7480 as expected)

To change the port I add the following lines to ceph.conf:
[client.rgw.gateway]
rgw_frontends = "civetweb port=80"

then I update it on all nodes:
ceph-deploy --overwrite-conf config push admin-node node1 node2 node3 gateway

After this I try to restart rados gateway:
systemctl restart ceph-radosgw@rgw.gateway

But after restart it doesn't work and /var/log/ceph/ceph-client.rgw.gateway.log shows this:
2016-02-17 16:06:03.766890 7f3a9215d880  0 set uid:gid to 167:167
2016-02-17 16:06:03.766976 7f3a9215d880  0 ceph version 9.2.0 (bb2ecea240f3a1d525bcb35670cb07bd1f0ca299), process radosgw, pid 2810
2016-02-17 16:06:03.859469 7f3a9215d880  0 framework: civetweb
2016-02-17 16:06:03.859480 7f3a9215d880  0 framework conf key: port, val: 80
2016-02-17 16:06:03.859488 7f3a9215d880  0 starting handler: civetweb
2016-02-17 16:06:03.859534 7f3a9215d880  0 civetweb: 0x7f3a92846b00: set_ports_option: cannot bind to 80: 13 (Permission denied)
2016-02-17 16:06:03.876508 7f3a5f7fe700  0 ERROR: can't read user header: ret=-2
2016-02-17 16:06:03.876516 7f3a5f7fe700  0 ERROR: sync_user() failed, user=alex ret=-2

I have added 80 port to iptables and I haven't any firewalls on nodes. 

Please help me change the port.

Regards, Alexandr

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux