Discussion:
[Freedombox-discuss] Install on web server VPS
Philippe Baret
2016-05-24 03:01:06 UTC
Permalink
I have been installing FredomBox on a web server VPS / Debian Testing

gandi.net / 1 core / 512 MB / 16GB / Fixed Ipv4 adress

Debian Testing is very fast to install for the Debian 8 Jessie image.

After installing freedombox-setup and setting up basic configuration, i opened my browser to the server fixed adress and got a Forbidden access from Apache. I had to enter in /etc/apache2/sites-available/plinth.conf in the <RequireAny> block. I could enter in the Plinth interface to launch the first configuration. Thank you jvalleroy for the support :)

It is now impossible to install apps, having this message "Error installing application: Cannot refresh cache whilst offline None".

in /etc/network/interfaces shows
auto lo
iface lo inet loopback
+
auto eth0
iface eth0 inet static
with adress, netmask and gateway data

Philippe
James Valleroy
2016-05-24 11:03:00 UTC
Permalink
Post by Philippe Baret
I have been installing FredomBox on a web server VPS / Debian Testing
gandi.net / *1* core / 512 MB / 16GB / Fixed Ipv4 adress
Debian Testing is very fast to install for the Debian 8 Jessie image.
After installing freedombox-setup and setting up basic configuration,
i opened my browser to the server fixed adress and got a Forbidden
access from Apache. I had to enter
in /etc/apache2/sites-available/plinth.conf in the <RequireAny> block.
I could enter in the Plinth interface to launch the first
configuration. Thank you jvalleroy for the support :)
It is now impossible to install apps, having this message "Error
installing application: Cannot refresh cache whilst offline None".
in /etc/network/interfaces shows
auto lo
iface lo inet loopback
+
auto eth0
iface eth0 inet static
with adress, netmask and gateway data
Philippe
I think there are possibly 2 issues here.

1st, could you try this workaround for packagekit?
https://fedoraproject.org/wiki/PackageKit_Frequently_Asked_Questions#PackageKit_won.27t_work_without_NetworkManager
After making that change, you will need to restart the packagekit service.

2nd, did you happen to save a copy of the freedombox-setup script log? I
suspect that part of the setup was not successful.

--
James
Philippe Baret
2016-05-24 14:29:24 UTC
Permalink
2nd, did you happen to save a copy of the freedombox-setup script log? I suspect that part of the setup was not successful.

--
James


Here is the log James:

GNU nano 2.5.3 File: freedombox-setup.log

running /usr/lib/freedombox/setup.d/01_etckeeper-pre
info: Not setting git user.email.
running /usr/lib/freedombox/setup.d/30_ldap-server
Reading package lists...
Building dependency tree...
Reading state information...
ldap-utils is already the newest version (2.4.42+dfsg-2+b2).
slapd is already the newest version (2.4.42+dfsg-2+b2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
libnss-ldapd is already the newest version (0.9.6-3).
libpam-ldapd is already the newest version (0.9.6-3).
nslcd is already the newest version (0.9.6-3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
running /usr/lib/freedombox/setup.d/86_plinth
Configuring Apache for Plinth...
Module headers already enabled
Module proxy already enabled
Considering dependency proxy for proxy_http:
Module proxy already enabled
Module proxy_http already enabled
Module rewrite already enabled
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Module socache_shmcb already enabled
Enabling module ssl.
See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates.
To activate the new configuration, you need to run:
service apache2 restart
Conf javascript-common already enabled
Site plinth already enabled
Site plinth-ssl already enabled
Done configuring Apache for Plinth.
Running Plinth setup...
Operations to perform:
Apply all migrations: auth, plinth, contenttypes
Running migrations:
No migrations to apply.
Done running Plinth setup.
running /usr/lib/freedombox/setup.d/90_apache2
Configuring Apache...
Module mpm_event already disabled
Module mpm_worker already disabled
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Module rewrite already enabled
Module ssl disabled.
To activate the new configuration, you need to run:
service apache2 restart
Module gnutls already enabled
Module alias already enabled
Module headers already enabled
Considering conflict php5 for php7.0:
Module php7.0 already enabled
Module cgi already enabled
Considering dependency ldap for authnz_ldap:
Module ldap already enabled
Module authnz_ldap already enabled
Conf freedombox already enabled
Site 000-default already enabled
Site default-ssl already disabled
Site default-tls already enabled
Done configuring Apache.
running /usr/lib/freedombox/setup.d/98_next-is-first-run
running /usr/lib/freedombox/setup.d/99_etckeeper
[master 155b163] Status after freedombox-setup run.
Author: fbx <***@freedombox>
5 files changed, 18 insertions(+), 9 deletions(-)
running /usr/lib/freedombox/setup.d/99_provide-source
Not adding source packages to filesystem (SOURCE=false)
running /usr/lib/freedombox/setup.d/99_zmessage

===================================================================
FreedomBox setup completed
===================================================================

Please note:

- For server security, all users except 'root', 'fbx' and those in
'admin' and 'sudo' groups will be denied console/GUI login access.
This is recommended for the security of various services running on
FreedomBox. Please edit /etc/security/access.conf if you wish to
remove or alter this restriction. Also see 'man access.conf'.

- You need to reboot before using FreedomBox to allow first run
operations to finish.
===================================================================

Philippe
James Valleroy
2016-05-24 22:04:06 UTC
Permalink
Post by Philippe Baret
Running Plinth setup...
Apply all migrations: auth, plinth, contenttypes
No migrations to apply.
Done running Plinth setup.
Thanks. It looks like "plinth --setup" isn't running correctly. May be
related to the virtualization used by the VPS provider.

Could you try running "sudo plinth --setup" directly?

--
James

Loading...