Bug#980039: freedombox: Setup Wizard stuck on the welcome screen

2021-01-15 Thread Christian Perrier
>Can you please check the logs of plinth service?
>E.g. run "journalctl -u plinth" as root, and look for any repeating error 
>messages.

>> -- System Information:
>> Distributor ID:  Raspbian
>> Description: Raspbian GNU/Linux 10 (buster)

>Could you please share how you installed freedombox package?

Hello James,

(may I suggest CC'ing -submitter@b.d.o to answers if input is
needed by the person who submitted the bug report? I actually noticed
your request while looking at the BTS but others might miss it)

Anyway, I installed freedombox by installing the backports packages on
my home server which is running buster (no other backports as far as I
remember).

journalctl -u plinth gives a hint :

janv. 13 19:04:26 kheops /usr/bin/plinth[928]: Running first setup.
janv. 13 19:04:26 kheops /usr/bin/plinth[928]: Running setup for
modules, essential - True, selected modules - None
janv. 13 19:04:26 kheops /usr/bin/plinth[928]: Running module setup - apache
janv. 13 19:04:27 kheops /usr/bin/plinth[928]: Error running setup - php-fpm
   Traceback (most recent
call last):
 File
"/usr/lib/python3/dist-packages/plinth/setup.py", line 78, in run

self.module.setup(self, old_version=current_version)
 File
"/usr/lib/python3/dist-packages/plinth/modules/apache/__init__.py",
line 65, in setup

helper.install(managed_packages)
 File
"/usr/lib/python3/dist-packages/plinth/setup.py", line 102, in install
   raise
PackageNotInstalledError(package_name)

plinth.errors.PackageNotInstalledError: php-fpm
janv. 13 19:04:27 kheops /usr/bin/plinth[928]: Error running setup - php-fpm

So I actually assumed that a dependency might be missing somewhere.
So, I just "apt-installed" php-fpm and then :

janv. 15 11:12:02 kheops /usr/bin/plinth[928]: Running first setup.
janv. 15 11:12:02 kheops /usr/bin/plinth[928]: Running setup for
modules, essential - True, selected modules - None
janv. 15 11:12:02 kheops /usr/bin/plinth[928]: Running module setup - apache
janv. 15 11:12:03 kheops /usr/bin/plinth[928]: # apache setup --old-version 0
janv. 15 11:12:03 kheops sudo[28790]:   plinth : TTY=unknown ; PWD=/ ;
USER=root ; COMMAND=/usr/share/plinth/actions/apache setup
--old-version 0
janv. 15 11:12:03 kheops sudo[28790]: pam_unix(sudo:session): session
opened for user root by (uid=0)
janv. 15 11:12:08 kheops /usr/bin/plinth[928]: Error executing command
- ['sudo', '-n', '/usr/share/plinth/actions/apache', 'setup',
'--old-version', '0'], , ERROR: Conf javascript-common does not exist!
   Traceback (most recent
call last):
 File
"/usr/share/plinth/actions/apache", line 202, in 
   main()
 File
"/usr/share/plinth/actions/apache", line 198, in main
   subcommand_method(arguments)
 File
"/usr/share/plinth/actions/apache", line 160, in subcommand_setup

webserver.enable('javascript-common', kind='config')
 File
"/usr/lib/python3/dist-packages/plinth/action_utils.py", line 227, in
enable
   action_required =
webserver_enable(name, kind, apply_changes=False)
 File
"/usr/lib/python3/dist-packages/plinth/action_utils.py", line 157, in
webserver_enable

subprocess.check_output([command_map[kind], name])
 File
"/usr/lib/python3.7/subprocess.py", line 395, in check_output
   **kwargs).stdout
 File
"/usr/lib/python3.7/subprocess.py", line 487, in run
   output=stdout, stderr=stderr)

subprocess.CalledProcessError: Command '['a2enconf',
'javascript-common']' returned non-zero exit status 1.
janv. 15 11:12:08 kheops /usr/bin/plinth[928]: Error running setup -
('apache', '', 'ERROR: Conf javascript-common does not
exist!\nTraceback (most recent call last):\n  File
"/usr/share/plinth/actions/apache", line 202, in \n
main()\n  File "/usr/share/plinth/actions/apache"
   Traceback (most recent
call last):
 File
"/usr/lib/python3/dist-packages/plinth/setup.py", line 78, in run

self.module.setup(self, old_version=current_version)
 File
"/usr/lib/python3/dist-packages/plinth/modules/apache/__init__.py",
line 68, in setup
   ['setup',

Bug#980039: freedombox: Setup Wizard stuck on the welcome screen

2021-01-13 Thread James Valleroy
On Wed, 13 Jan 2021 11:25:26 +0100 Christian Perrier 
 wrote:
> Version: 20.21~bpo10+1
> ...
> Anyway, the problem is simple : when launching the initial setup wizard,
> the screen doesn't for further than the welcome screen. The page reload
> every 5 seconds or so, I left it doint this for hours, filling up my
> Apache logsbut nothing more happens.
> 

Can you please check the logs of plinth service?
E.g. run "journalctl -u plinth" as root, and look for any repeating error 
messages.

> -- System Information:
> Distributor ID:   Raspbian
> Description:  Raspbian GNU/Linux 10 (buster)

Could you please share how you installed freedombox package?



OpenPGP_signature
Description: OpenPGP digital signature


Bug#980039: freedombox: Setup Wizard stuck on the welcome screen

2021-01-13 Thread Christian Perrier
Package: freedombox
Version: 20.21~bpo10+1
Severity: normal

Hello fellow maintainers of freedombox,

My first Debian bug report for ages, it seems (one more to reach bug
#100!!!). Now, I'm a simple (and happy) user of Debian systems at
home, and as everything works so well, I don't make bug reports
anymorebut it seems that things didn't change that much.

Anyway.I'm trying to setup a FreedomBox at home and I'm stupidely
stuck with a simple problem. Probably easy to debug if only I could
figure out where to look. But I'm afraid that all these very modern
things are a bit new for me.

Anyway, the problem is simple : when launching the initial setup wizard,
the screen doesn't for further than the welcome screen. The page reload
every 5 seconds or so, I left it doint this for hours, filling up my
Apache logsbut nothing more happens.

The setup wizard is launched from another machine on my local network by
accessing the https URL of my freedombox server (not https://freedombox
as foudn in many online docs, as I have my own DNS server already
running).

This is probably not a bug per se but probably a usability issue so the
bug maybe lies in the documentation at least to know where to look in
order to solve the problem...:-)

Hope this helps and you guys will be able to give the needed clue to
figure out the problem.

For the record, just to be sure that my problem is not an l10n problem,
I switched my browser languege to en_US instead of fr_FR. But no lucK.

Thanks for your great work on all this. I still remind first hearing
about FreedomBox at DebConf 10 in NYC. Long Time ago.


-- System Information:
Distributor ID: Raspbian
Description:Raspbian GNU/Linux 10 (buster)
Release:10
Codename:   buster
Architecture: armv7l

Kernel: Linux 5.4.83-v7l+ (SMP w/4 CPU cores)
Kernel taint flags: TAINT_CRAP
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages freedombox depends on:
ii  adduser 3.118
ii  apache2 2.4.38-3+deb10u4
ii  augeas-tools1.11.0-3
ii  avahi-daemon0.7-4+b1
ii  avahi-utils 0.7-4+b1
ii  batctl  2020.4-1~bpo10+1
ii  borgbackup  1.1.15-1~bpo10+1
ii  certbot 0.31.0-1
ii  cockpit 235-1~bpo10+1
ii  curl7.64.0-4+deb10u1
ii  debconf [debconf-2.0]   1.5.71
ii  debsecan0.4.19
ii  dnsutils1:9.11.5.P4+dfsg-5.1+deb10u2
ii  e2fsprogs   1.44.5-1+deb10u3
ii  ez-ipupdate 3.0.11b8-13.4.1
ii  fail2ban0.10.2-2.1
ii  firewalld   0.8.2-1~bpo10+1
ii  flite   2.1-release-3
ii  fonts-fork-awesome  1.1.5+ds1-2
ii  fonts-lato  2.0-2
ii  gdisk   1.0.3-1.1
ii  gettext 0.19.8.1-9
ii  gir1.2-glib-2.0 1.58.3-2
ii  gir1.2-nm-1.0   1.14.6-2+deb10u1
ii  gir1.2-udisks-2.0   2.8.1-4
ii  javascript-common   11
ii  ldap-utils  2.4.56+dfsg-1~bpo10+1
ii  ldapscripts 2.0.8-1
ii  libapache2-mod-auth-pubtkt  0.13-1
ii  libglib2.0-bin  2.58.3-2+deb10u2
ii  libjs-bootstrap44.3.1+dfsg2-1
ii  libjs-jquery3.3.1~dfsg-3
ii  libjs-modernizr 2.6.2+ds1-3
ii  libnss-ldapd0.9.10-2
ii  libpam-ldapd0.9.10-2
ii  lsof4.91+dfsg-1
ii  needrestart 3.4-5
ii  netcat-openbsd  1.195-2
ii  network-manager 1.14.6-2+deb10u1
ii  nftables0.9.6-1~bpo10+1
ii  nscd2.28-10+rpi1
ii  nslcd   0.9.10-2
ii  openssh-server  1:7.9p1-10+deb10u2
ii  openssl 1.1.1d-0+deb10u4+rpt1
ii  parted  3.2-25
ii  php7.3-fpm [php-fpm]7.3.19-1~deb10u1
ii  ppp 2.4.7-2+4.1+deb10u1
ii  pppoe   3.12-1.2
ii  python3 3.7.3-1
ii  python3-apt 1.8.4.3
ii  python3-argon2  18.3.0-1
ii  python3-augeas  0.5.0-1
ii  python3-bootstrapform   3.4-2
ii  python3-cherrypy3   8.9.1-2
ii  python3-configobj   5.0.6-3
ii  python3-dbus1.2.8-3
ii  python3-django  2:2.2.17-2~bpo10+1
ii  python3-django-axes 4.4.0-1
ii  python3-django-captcha  0.5.6-1
ii  python3-django-stronghold   0.3.0+debian-1
ii  python3-gi  3.30.4-1
ii  python3-markupsafe  1.1.0-1
ii  python3-openssl 19.0.0-1
ii  python3-pampy   1.8.4-1
ii  python3-paramiko2.6.0-1~bpo10+1
ii  python3-psutil  5.7.2-1~bpo10+2
ii  python3-requests