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

Re: setup.pl fails in ledgersmb on squeeze when set up through apt-get install ledgersmb



For archiving purposes I include below the privatepaste entries:
(mind you that entries differ between http://privatepaste.com  and
http://www.privatepaste.com)



http://www.privatepaste.com/1346153a6b :
======================================
[Fri Nov 09 19:43:57 2012] [notice] caught SIGTERM, shutting down. 
[Fri Nov 09 21:40:07 2012] [notice] Apache/2.2.22 (Debian) configured --
resuming normal operations.
Fri Nov 9 22:13:20 2012 Sysconfig.pm created tempdir /tmp/ledgersmb
rc=0 
Use of uninitialized value $msg_plus in concatenation (.) or string at
LedgerSMB/Auth.pm line 79. 
DBI connect('dbname=template1','',...) failed: fe_sendauth: no password
supplied at LedgerSMB.pm line 986. 
DBI connect('dbname=any_qualified_name','ledgersmb',...) failed: FATAL:
database "any_qualified_name" does not exist at LedgerSMB/Database.pm
line 287. 
DBD::Pg::db do failed: ERROR: permission denied to create database at
LedgerSMB/Database.pm line 429. 
DBD::Pg::db do failed: ERROR: permission denied to create database at
LedgerSMB/Database.pm line 429. 
Compilation failed in require at /usr/share/ledgersmb/setup.pl line 8. 
[Fri Nov 09 22:22:07 2012] [error] [client 192.168.122.1] Premature end
of script headers: setup.pl, referer:
http://192.168.122.98/ledgersmb/setup.pl. 
[Fri Nov 09 22:22:08 2012] [error] [client 192.168.122.1] File does not
exist: /var/www/favicon.ico.
[Fri Nov 09 22:22:08 2012] [error] [client 192.168.122.1] File does not
exist: /var/www/favicon.ico.
======================================







http://www.privatepaste.com/2e670b538a
======================================

1. Name of virtual machine
==========================
lsmb-1.3.23-1_deb606_AMD-X86_64_virgin



2. Install of virtual machine
=============================
ISO: debian-6.0.6-amd64-netinst.iso of 2012-11-07
OS type: Debian Squeeze
Memory: 1024 MB
1 CPU

Storage: 8 GB disk image on compute's hard drive
	 Allocate entire disk now

Click [Install]

Localisation:
	 Language: 	English
	 Country:	United Kingdom
	 Keymap to use:	American English

Hostname: 		lsmb_squeeze
Domain name: 		<empty>
root:			root/root_pw
user:			user/user_pw

Partitioning:
			Guided - use entire disk and set up encrypted LVM
Disk to partition: 	Virtual disk 1 (vda) - 8.6 GB Virtio Block Device
Partitioning scheme: 	All files in one partition

Virtual disk 1 (vda) - 8.6 GB Virtio Block Device
	#1 primary	254.8 MB B F	ext2	/boot
	#5 log		  8.3 GB   K	crypto	(vda5_crypt)
Encrypted volume (vda5_crypt) - 8.3 GB Linux device-mapper (crypt)
LVM VG lsmb-squeeze, LV root - 7.9 GB Linux device-mapper (linear)
	#1		  7.9 GB   f	ext3	/
LVM VG lsmb-squeeze, LV swap_1 - 394.3 MB Linux device-mapper (linear)
	#1		394.3 MB   f	swap	swap

Anonymous packages statistics:
dpkg-reconfigure popularity-contest
http://popcon.debian.org

Do a basic-only install: 	[*] Standard system utilities

GRUB loader installed to master boot record

System will reboot automatically.
======================================






http://www.privatepaste.com/aabb56e224
======================================
3. Install of ledgersmb package
===============================

Run
	# apt-get update
	# apt-get upgrade
	# apt-get distr-upgrade

Then http://packages.debian.org/sid/all/ledgersmb/download says:
Edit apt-get's sources.list to add sid main from unstable:
	# nano /etc/apt/sources.list
          deb http://ftp.surfnet.nl/os/Linux/distr/debian/ sid main

Then 
	# apt-get update
	# apt-get install ledgersmb
(DO NOT DO apt-get upgrade or distr-upgrade !!!)

Configuring ledgersmb:
Automatic, see also:
/usr/share/doc/ledgersmb/README.Debian

LedgerSMB database administrative user,
needed for the administrative web user interface,
typically at http://localhost/ledgersmb/setup.pl:

ledgersmb
pw:
2012-11-02
lsmb_db_admin_pw

Configure database for ledgersmb with dbconfig-common?: yes

Postgresql application password for ledgersmb to register with the
database server 
(ident based authentication was not specifically initiated):
2012-11-02
lsmb_pgsql_appl_pw

     # service apache2 restart
(It could not reliably establish the domain name and used 127.0.0.1
instead, which seemed ok to me.)


UNTIL HERE IS WHAT IS IN 'virgin' VM
------------------------------------
------------------------------------
MAKE A CLONE HERE AND WORK WITH THAT

Clone:
lsmb-1.3.23-1_deb606_AMD-X86_64_1
======================================





http://www.privatepaste.com/e7d074a1a2
======================================
4. Further configuration
========================

First fix internet access according to 
http://lists.debian.org/debian-s390/2012/04/msg00020.html
Then restart the VM

For access from the VM's host, edit
/etc/ledgersmb/ledgersmb-httpd.conf:

<Directory /usr/share/ledgersmb>
  Order Deny,Allow
  Deny from All
  Allow from 127.0.0.1
  Allow from localhost
  Allow from 192.168.122
</Directory>

<Directory /var/lib/ledgersmb/css>
  Order Deny,Allow
  Deny from All
  Allow from 127.0.0.1
  Allow from localhost
  Allow from 192.168.122
</Directory>
Without this I got in /var/log/apache2/error.log:
"Directory index forbidden by Options
directive: /usr/share/ledgersmb/css/, referer: ..../ledgersmb/setup.pl"


First generate keys for ssh-ing with 'the_host'
----------------------------------------------
(
Consult
http://www.howtoforge.com/set-up-ssh-with-public-key-authentication-debian-etch
and
https://help.ubuntu.com/community/SSH/OpenSSH/Keys
)

Add IP the_host in /etc/hosts
  # echo "192.168.122.1 the_host >> /etc/hosts

Generate ssh keys:
  $ ssh-keygen -t rsa
with passphrase = <empty> for direct login.

Copy public key to the_host:
  $ ssh-copy-id ..hidden..


AFTER ALL THIS WORK, CLONE AGAIN
--------------------------------
--------------------------------
NEW CLONE:
lsmb-1.3.23-1_deb606_AMD-X86_64_2
And work further with this clone!
======================================





On Sat, 2012-11-10 at 00:15 +0000, ario wrote:
> I have created (and re-created already a few times) a brand new
> Debian-6.0.6/ledgersmb-1.3.23-1 Virtual Machine in qemu/kvm in Fedora
> 17, with every step--at least I think so--according to the book. But
> upon logging in with the setup.pl script, I keep getting the error:
> 
> "The server encountered an internal error or misconfiguration and was
> unable to complete your request."
> 
> resulting in entries in /var/log/apache2/error.log like this:
> http://www.privatepaste.com/1346153a6b
> 
> The errors occur when trying to log in, pointing the host's web browser
> to http://<VM's IP>/ledgersmb/setup.pl, entering:
>   Super-user: ledgersmb
>   Password: lsmb_db_admin_pw
>   database: any_qualified_name
> 
> and then clicking on [Yes] when the script asks if it should create the
> (until then non-existing) database.
> 
> 
> The funny thing is that the setup.pl proceeds to the Database Management
> Console no matter whether I give the password lsmb_db_admin_pw or the
> password lsmb_pgsql_appl_pw.
> I thought the first would be the right one to enter, but even with the
> second one, the script doesn't complain and proceeds to the Console
> where, after pressing [Yes], that the error presents itself.
> 
> 
> 
> Is this a bug in the deb package for ledgersmb, or is there some
> additional configuration required that I don't know about, before I can
> login successfully?
> 
> Thanks.
> 
> 
> P.S. Following are (in detail) the steps I've taken in setting up the
> system:
> 
> First I set up a Debian 6.0.6 VM with Virtual Machine Manager as
> described in here:
> http://www.privatepaste.com/2e670b538a
> 
> Then I installed and set up ledgersmb-1.3.23-1 using apt-get install
> from debian sid main as described here:
> http://www.privatepaste.com/aabb56e224
> 
> After that, some configurations are carried out as in:
> http://privatepaste.com/e7d074a1a2 
> which completes the install, after which the failing login is attempted.
>