pip install on CentOS Linux 7.6.1810 64bit / Linux 3.10.0-957.5.1.el7.x86_64 Server

33 views
Skip to first unread message

hp

unread,
Feb 5, 2019, 8:08:26 PM2/5/19
to rdiffweb
Hello,

I successfully installed rdiffweb on my server but can't access it from the outside. One problem, how did you imagine that someone access the server (from outside) via a web browser to use it when it runs on localhost:8080?

Kind regards!

Ilya Kostyuchenkin

unread,
Feb 5, 2019, 9:54:18 PM2/5/19
to hp, rdiffweb
Hi

I would like to install nginx as a reverse-proxy for rdiffweb in this case.

ср, 6 февр. 2019 г. в 08:08, hp <hp.w...@gmail.com>:
Hello,

I successfully installed rdiffweb on my server but can't access it from the outside. One problem, how did you imagine that someone access the server (from outside) via a web browser to use it when it runs on localhost:8080?

Kind regards!

--
You received this message because you are subscribed to the Google Groups "rdiffweb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdiffweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Patrik Dufresne

unread,
Feb 6, 2019, 7:29:39 AM2/6/19
to Ilya Kostyuchenkin, hp, rdiffweb
To install nginx, you may take a look to the documentation here:

It's a bit slim, but it make reference to a nginx configuration.

---

But, the easier solution would be to reconfigure rdiffweb to listen on 0.0.0.0.
Take a look at ServerHost and ServerPort configuration. The right value would be 
ServerHost=0.0.0.0
ServerPort=8080

The configuration file is located here: /etc/rdiffweb/rdw.conf

--
Patrik Dufresne Service Logiciel inc.
http://www.patrikdufresne.com/
130 rue Doris
St-Colomban, QC J5K 1T9

Hans-Peter Weecks

unread,
Feb 7, 2019, 10:05:08 AM2/7/19
to Patrik Dufresne, Ilya Kostyuchenkin, rdiffweb

Thank you all for your help. I choosed to fix it via /etc/rdiffweb/rdw.conf.

Just another question:  $ rdiffweb dies gracefully after invoking it. No process in the bg after coming back without an error?

Patrik Dufresne

unread,
Feb 7, 2019, 10:28:11 AM2/7/19
to Hans-Peter Weecks, Ilya Kostyuchenkin, rdiffweb
Calling rdiffweb will not fork the process in background. If you want to run it as a service, you must configure your system to do it. Either using systemd or init.d. Installation with pip is limited and doesn't allow installation of serviced unit or init.d script. That must be done manually.

As to why the application dies, you may take a look into /var/log/rdiffweb,log for more details.

--
Patrik Dufresne Service Logiciel inc.
http://www.patrikdufresne.com/
130 rue Doris
St-Colomban, QC J5K 1T9

hp

unread,
Feb 8, 2019, 11:45:20 AM2/8/19
to rdiffweb
I installed it as a service with this:

[Unit]
Description=Rdiffweb Server
Documentation=http://www.patrikdufresne.com/en/rdiffweb/

[Service]
ExecStart=/bin/rdiffweb

[Install]
WantedBy=multi-user.target


but got these errors back after enabling and starting it:

/var/log

[2019-02-08 17:25:16,607][INFO   ][127.0.0.1][none][MainThread][rdiffweb.rdw_plugin] module plugin [UserPrefsSSHKeys] rejected: plugins is not enabled
[2019-02-08 17:25:16,608][ERROR  ][127.0.0.1][none][MainThread][rdiffweb.rdw_plugin] fail to load module plugin [Ldap] from ['rdiffweb.plugins.ldap_auth']
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/rdiffweb/rdw_plugin.py", line 101, in _load_eggs
    yield (module_name, entry.load(), entry.dist)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.7/site-packages/rdiffweb/plugins/ldap_auth/__init__.py", line 34, in <module>
    import ldap
ImportError: No module named ldap

..

[2019-02-08 17:25:17,629][ERROR  ][127.0.0.1][none][MainThread][cherrypy.error] [08/Feb/2019:17:25:17] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0x7fd9112151d0>>
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py", line 230, in publish
    output.append(listener(*args, **kwargs))
  File "/usr/lib/python2.7/site-packages/cherrypy/_cpserver.py", line 191, in start
    super(Server, self).start()
  File "/usr/lib/python2.7/site-packages/cherrypy/process/servers.py", line 177, in start
    portend.free(*self.bind_addr, timeout=Timeouts.free)
  File "/usr/lib/python2.7/site-packages/portend.py", line 119, in free
    raise Timeout("Port {port} not free on {host}.".format(**locals()))
Timeout: Port 8080 not free on 0.0.0.0.

[2019-02-08 17:25:17,630][ERROR  ][127.0.0.1][none][MainThread][cherrypy.error] [08/Feb/2019:17:25:17] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py", line 268, in start
    self.publish('start')
  File "/usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py", line 248, in publish
    raise exc
ChannelFailures: Timeout('Port 8080 not free on 0.0.0.0.',)


ldap is switched off in /etc/rdiffweb/rdw.conf

Thank you for any further help.

[root@domain multi-user.target.wants]# systemctl status rdiffweb.service
● rdiffweb.service - Rdiffweb Server
   Loaded: loaded (/usr/lib/systemd/system/rdiffweb.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fr 2019-02-08 16:15:47 CET; 1min 46s ago
     Docs: http://www.patrikdufresne.com/en/rdiffweb/
 Main PID: 12592 (code=exited, status=70)

Feb 08 16:15:45 .de systemd[1]: Started Rdiffweb Server.
Feb 08 16:15:47 .de systemd[1]: rdiffweb.service: main process exited, code=exited, status=70/n/a
Feb 08 16:15:47 .de systemd[1]: Unit rdiffweb.service entered failed state.
Feb 08 16:15:47 .de systemd[1]: rdiffweb.service failed.

Patrik Dufresne

unread,
Feb 8, 2019, 12:15:41 PM2/8/19
to hp, rdiffweb
Hello,

Timeout: Port 8080 not free on 0.0.0.0.

This indicate something else is listening on port 8080. Have a look at the service running on the same server. Port 8080 is known to be used by many web service process.

netstat -nap | grep 8080

Should help you find the other process running.

--
Patrik Dufresne Service Logiciel inc.
http://www.patrikdufresne.com/
130 rue Doris
St-Colomban, QC J5K 1T9

hp

unread,
Feb 8, 2019, 3:15:07 PM2/8/19
to rdiffweb
You were right. There was still a httpd.service running. Rdiffweb is up and running now. Hopefully my last question: Is it enough to define a normal rdiff-backup cli command to find a new repository in rdiffweb? I didn't found something to setup in rdw.conf.

Kind regards from Germany Sir.

Patrik Dufresne

unread,
Feb 8, 2019, 8:02:09 PM2/8/19
to hp, rdiffweb
Not sure to understand this last question.
> Is it enough to define a normal rdiff-backup cli command to find a new repository in rdiffweb? I didn't found something to setup in rdw.conf

By default rdiffweb expect backup to be located in /backups/ any rdiff-backup repo shouldbe auto detected.
If your backup are located else where, you must loging to rdiffweb and change the location.

image.png

This is configurable per user.

--
Patrik Dufresne Service Logiciel inc.
http://www.patrikdufresne.com/
130 rue Doris
St-Colomban, QC J5K 1T9

hp

unread,
Feb 9, 2019, 2:53:58 AM2/9/19
to rdiffweb
This is the perfect answer to my questions. Thank you!

Patrik Dufresne

unread,
Feb 9, 2019, 8:01:53 AM2/9/19
to hp, rdiffweb
Great !

Your feedback is welcome !

--
Patrik Dufresne Service Logiciel inc.
http://www.patrikdufresne.com/
130 rue Doris
St-Colomban, QC J5K 1T9

Reply all
Reply to author
Forward
0 new messages