Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Fresh install on Ubuntu 16.04 not working #10

Open
WannaBeGeekster opened this issue Jul 20, 2018 · 3 comments
Open

Fresh install on Ubuntu 16.04 not working #10

WannaBeGeekster opened this issue Jul 20, 2018 · 3 comments

Comments

@WannaBeGeekster
Copy link

When I use the PPA install method on Ubuntu 16.04 it doesn't appear as if the configuration settings are getting loaded. I get the attached error. The error log just shows a break at line 7. So I loaded up perl and ran everything manually. Not sure if that is an effective way to get a better error message or not.

screen shot 2018-07-20 at 4 02 05 pm

@lixmal
Copy link
Owner

lixmal commented Aug 12, 2018

Is there any content in /etc/keepass4web/config.yml?
Is there a line like db_backend: 'Filesystem'? It appears to me, that there is no configured db_backend, resulting in your error message.

@SrDayne
Copy link

SrDayne commented Aug 5, 2019

Hi. The same problem.

Use of uninitialized value in concatenation (.) or string at /usr/share/keepass4web/bin/../lib/KeePass4Web/Backend.pm line 9.
Error while loading /usr/share/keepass4web/bin/app.psgi: Can't locate KeePass4Web/Backend/.pm in @INC (you may need to install the KeePass4Web::Backend:: module) (@INC contains: /usr/share/keepass4web/bin/../lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/keepass4web/bin/../lib/KeePass4Web/Backend.pm line 11.
Compilation failed in require at /usr/share/keepass4web/bin/../lib/KeePass4Web/KeePass.pm line 22.
BEGIN failed--compilation aborted at /usr/share/keepass4web/bin/../lib/KeePass4Web/KeePass.pm line 22.
Compilation failed in require at /usr/share/keepass4web/bin/../lib/KeePass4Web.pm line 18.
BEGIN failed--compilation aborted at /usr/share/keepass4web/bin/../lib/KeePass4Web.pm line 18.
Compilation failed in require at /usr/share/keepass4web/bin/app.psgi line 7.
BEGIN failed--compilation aborted at /usr/share/keepass4web/bin/app.psgi line 7.

Part of my config.yml:

##################################
### KeePass4Web related config ###
##################################

# where to get keepass database from
# use 'Filesystem' for a simple file in the local filesystem
# use 'Seafile' to get database from a Seafile host
# use 'LWP' to get database via a protocol supported by LWP
# use 'Dropbox' to get database from user's Dropbox
db_backend: 'Filesystem'

# backend to authenticate users before anything else
# available: LDAP, Htpasswd
auth_backend: 'Htpasswd'

# whether to use auth credentials for database backend provider (if backend requires authentication)
auth_reuse_cred: 0

### Database backends ###

# file specific configuration, db_backend = 'Filesystem'
Filesystem:
    db_location: '/etc/keepass4web/db.kdbx'

@lixmal
Copy link
Owner

lixmal commented Sep 8, 2019

@WannaBeGeekster @SrDayne

Sorry guys, running the app.psgi directly won't work like that, because it doesn't pick up the config files.
You can use the following to start it without apache and to get a (hopefully) more meaningful error message:

DANCER_CONFDIR=/etc/keepass4web/ plackup /usr/share/keepass4web/bin/app.psgi
# or
DANCER_CONFDIR=/etc/keepass4web/ perl /usr/share/keepass4web/bin/app.psgi

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants