K2InformaticsGmbH / imem

Clustered in-memory database based on MNESIA with simple SQL layer
http://www.k2informatics.ch/
Apache License 2.0
21 stars 4 forks source link

Failing all_apps_version_info without configuration #249

Closed stoch closed 5 years ago

stoch commented 5 years ago

On a non-packaged dderl installation

select * from ddVersion

returns

13:36:48.240 [info] [_IMEM_] {imem,423} 1 modules of asn1-5.0.4
13:36:48.241 [error] [_IMDR_] {erlimem_session,345} async_resp eacces
13:36:48.241 [error] [_DDRL_] {dderl_fsm,1212} Error on fsm <0.985.0> when State filling Message:  eacces

We expect a list of applications and associated erlang beam names, probably without GIT link since the back end configuration for link generation is missing.

@c-bik Are Java Script files expected without further configuration?

There is no default configuration created for imem_client in ddConfig which makes it difficult to guess what needs to be configured.

@c-bik please link this issue to documenting items for imem:all_apps_version_info() and imem_client

stoch commented 5 years ago
(dderl1@127.0.0.1)1> imem:all_apps_version_info().
** exception error: eacces
     in function  open_port/2
        called as open_port({spawn_executable,"c:/Program Files/Git/mingw64/bin/git.exe"},
                            [{cd,"/net/isildur/ldisk/daily_build/20_prebuild_opu_o.2017-12-11_21/otp_src_20/lib/asn1/src"},
                             {args,["rev-parse","HEAD"]},
                             binary,exit_status,stderr_to_stdout])
     in call from imem:os_cmd/3 (c:/projects/git/dderl/_checkouts/imem/src/imem.erl, line 641)
     in call from imem:git_info/2 (c:/projects/git/dderl/_checkouts/imem/src/imem.erl, line 529)
     in call from imem:all_apps_version_info/4 (c:/projects/git/dderl/_checkouts/imem/src/imem.erl, line 426)
c-bik commented 5 years ago

Fixed with https://github.com/K2InformaticsGmbH/erlpkg/issues/11

c-bik commented 5 years ago

Fixed by https://github.com/K2InformaticsGmbH/erlpkg/commit/3de33877dfcd539b4abe3388b87ee14dccb223cc