Hi Dee,
Thanks for taking the time to evaluate 1.5.0.
Make sure that in /etc/systemd/system/starman-ledgersmb.service, that
section points to your LedgerSMB installation, otherwise
tools/starman.psgi won,t be found.
[Service]
WorkingDirectory=WORKING_DIR
That's what was sed trying to fix for your, i.e. using the current
directory (pwd) as replacement for WORKING_DIR
Can you also confirm that tools/starman.psgi is in the tools directory?
Thanks,
Yves Lavoie
On 2016-12-27 07:05, o1bigtenor wrote:
> Greetings
>
> Trying to install LedgerSMB on a VM.
>
> Debian stable with 2GB RAM 80GB vdi.
> Installed nginx and postgresql neither configured (waiting to get to
> that part of the destructions!)
>
> Configuring systemd for Starman
> In the directory conf/systemd/ from the tarbal, there is a
> preconfigured systemd service file, which needs to be copied into
> place. In case you decided to install dependencies into a local::lib,
> the service file needs to be edited to set a PERL5LIB environment
> variable before you can succesfully start the service.
>
> # 'copy' systemd service configuration, enable and start
> $ sed -e "s#WORKING_DIR#$PWD#" conf/systemd/starman-ledgersmb.service \
>> /etc/systemd/system/starman-ledgersmb.service
> $ systemctl enable starman-ledgersmb
> $ service starman-ledgersmb start
>
> Note that the above assumes that the commands are being run from the
> root of the unpacked tarball. It also assumes that the tarball has
> been unpacked at its installation path.
>
> To verify that the service started up correctly, run:
>
> # verify that the Starman/LedgerSMB server started correctly
> $ journalctl -u starman-ledgersmb.service
>
> It is whilst working through this section that thinks are not working.
> command 'sed -e ...' only placed a blank page at '/etc/systemd/...'
> I removed page and copied the page from 'conf/systemd/...'
> did the enable and service start but - - -
> upon trying to verify using 'journalctl ...'
>
> I have about 70 000 lines saying:
>
> Dec 26 06:44:55 debian-stable-ledgersmb systemd[1]: Starting Starman
> LedgerSMB...
> Dec 26 06:44:55 debian-stable-ledgersmb systemd[1]: Started Starman LedgerSMB.
> Dec 26 06:44:56 debian-stable-ledgersmb starman[7846]:
> 2016/12/26-06:44:56 Starman::Server (type Net::Server::PreFork)
> starting! pid(7846)
> Dec 26 06:44:56 debian-stable-ledgersmb starman[7846]: Resolved
> [localhost]:5762 to [::1]:5762, IPv6
> Dec 26 06:44:56 debian-stable-ledgersmb starman[7846]: Resolved
> [localhost]:5762 to [127.0.0.1]:5762, IPv4
> Dec 26 06:44:56 debian-stable-ledgersmb starman[7846]: Binding to TCP
> port 5762 on host ::1 with IPv6
> Dec 26 06:44:56 debian-stable-ledgersmb starman[7846]: Binding to TCP
> port 5762 on host 127.0.0.1 with IPv4
> Dec 26 06:44:56 debian-stable-ledgersmb starman[7846]: Setting gid to
> "998 998 998"
> Dec 26 06:44:56 debian-stable-ledgersmb starman[7846]: Passed
> serialize value of none is incompatible with multiple ports - using
> default serialize
> Dec 26 06:44:56 debian-stable-ledgersmb starman[7846]: Error while
> loading /tools/starman.psgi: No such file or directory at (eval 18)
> line 4.
> Dec 26 06:44:56 debian-stable-ledgersmb starman[7846]: Error while
> loading /tools/starman.psgi: No such file or directory at (eval 18)
> line 4.
> Dec 26 06:44:56 debian-stable-ledgersmb starman[7846]: Error while
> loading /tools/starman.psgi: No such file or directory at (eval 18)
> line 4
>
>
> What needs to be changed to get 'starman' to work?
>
> Regards
>
> Dee
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Ledger-smb-users mailing list
> Ledger-smb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ledger-smb-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Ledger-smb-users mailing list
Ledger-smb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ledger-smb-users