# Error while installing cvb on WSL Ubuntu 20.04

**URL:** <https://forum.commonvisionblox.com/t/error-while-installing-cvb-on-wsl-ubuntu-20-04/1566>\
**Category:** General Questions\
**Created:** [December 14, 2021, 2:40pm UTC](https://forum.commonvisionblox.com/t/error-while-installing-cvb-on-wsl-ubuntu-20-04/1566 "2021-12-14T14:40:58Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ASchmitt](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/aschmitt/32/827_2.png) [@ASchmitt](https://forum.commonvisionblox.com/u/ASchmitt)\
**Post date:** [December 14, 2021, 2:40pm UTC](https://forum.commonvisionblox.com/t/error-while-installing-cvb-on-wsl-ubuntu-20-04/1566/1 "2021-12-14T14:40:58Z")

</div>

I receive the message

```auto
Failed to retrieve/decode the log configuration for module GEVSVC: Failed to connect to the shared memory with connection info: No such file or directory

*****************************************************************
                  (c) 2015 STEMMER IMAGING GmbH
*****************************************************************

STEMMER IMAGING Logging Service Application
BuildDate : May 26 2021

```

when I install cvb 13.04.003 on my WSL.

Do you have an idea what went wrong here and how I could solve this?

---

<div class="post-metadata">

**Author:** ![illusive](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/illusive/32/61_2.png) [@illusive](https://forum.commonvisionblox.com/u/illusive)\
**Post date:** [December 15, 2021, 2:31pm UTC](https://forum.commonvisionblox.com/t/error-while-installing-cvb-on-wsl-ubuntu-20-04/1566/2 "2021-12-15T14:31:00Z")

</div>

That particular warning about the log configuration hints at the siLogSvc daemon not running (yet) when the application (in this case the sigevsvc daemon) started. This should not really hamper operation of the siGevSvc, it means, however, that the siGevSvc will be unable to emit log messages to :cvb:'s log viewer.

---

<div class="post-metadata">

**Author:** ![ASchmitt](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/aschmitt/32/827_2.png) [@ASchmitt](https://forum.commonvisionblox.com/u/ASchmitt)\
**Post date:** [December 20, 2021, 10:44am UTC](https://forum.commonvisionblox.com/t/error-while-installing-cvb-on-wsl-ubuntu-20-04/1566/3 "2021-12-20T10:44:07Z")

</div>

Okay, then do you have a solution for me on how to fix the problem. I suspect that this problem is preventing the GEV server from starting. Because when trying to start a GEV server the following error messages come up.

```auto
Failed to retrieve/decode the log configuration for module BaseDLO: Failed to connect to the shared memory with connection info: No such file or directory
Failed to retrieve/decode the log configuration for module CoreDLO: Failed to connect to the shared memory with connection info: No such file or directory
Failed to retrieve/decode the log configuration for module CVGevServer: Failed to connect to the shared memory with connection info: No such file or directory
Failed to retrieve/decode the log configuration for module GEVSD: Failed to connect to the shared memory with connection info: No such file or directory
terminate called after throwing an instance of 'std::domain_error'
  what(): failed to register updated handler

```

---

<div class="post-metadata">

**Author:** ![c.hartmann](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/c.hartmann/32/247_2.png) [@c.hartmann](https://forum.commonvisionblox.com/u/c.hartmann)\
**Post date:** [December 20, 2021, 11:12am UTC](https://forum.commonvisionblox.com/t/error-while-installing-cvb-on-wsl-ubuntu-20-04/1566/4 "2021-12-20T11:12:16Z")

</div>

Hi @ASchmitt,

Just to make things a bit clearer. WSL is a bit more reluctant to start services (not the same runlevels as a default linux system or none).  
The “Failed to re…” messages can be removed by explicitly start/execute “sudo service siLogSvc restart” and “sudo service siGevSvc restart” “sudo service cvmgmtd restart” should start the rest of the services.

The error you provided does not really say much, could you send a backtrace? Or an info where this exception originates from?

And WSL1 and WSL2 will be quite different due to the network setup of WSL2. WSL2 will be much harder to “bludgeon” into a working Gev setup.  
Even for the GevServer. Which one are you using?

(Just as a note, since both the gev service and the gev server are mentioned, we have to be careful about nomenclature here)

---

<div class="post-metadata">

**Author:** ![ASchmitt](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/aschmitt/32/827_2.png) [@ASchmitt](https://forum.commonvisionblox.com/u/ASchmitt)\
**Post date:** [December 20, 2021, 12:52pm UTC](https://forum.commonvisionblox.com/t/error-while-installing-cvb-on-wsl-ubuntu-20-04/1566/5 "2021-12-20T12:52:16Z")

</div>

Hi @c.hartmann,  
I am running the WSL2.  
I don`t know, how I can get the backtrace with cvb. Can you tell me, where I can find the log?  
The exception happens, when I try to run code like this:

```auto
// Create server
gev_server = Cvb::GevServer::Server::CreateWithConstSize(image->Size(),
	Cvb::ColorModel::RGBGuess,
	Cvb::DataType::FromNativeType<bool>(),
	static_cast<Cvb::GevServer::DriverType>(0));

// Set the resent-buffer to zero, as no ring-buffer is used and the images and packets that were lost during the transmission process cannot be requested again
gev_server->Stream()->SetResendBuffersCount(0);

// ***Send the image***
gev_server->Stream()->TrySend(*image);

```

After using the restarting commands you have posted and staring the GEV Server again, I will get the following error message:

```auto
terminate called after throwing an instance of 'std::domain_error'
  what(): failed to register updated handler
Aborted

```

---

<div class="post-metadata">

**Author:** ![ASchmitt](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/aschmitt/32/827_2.png) [@ASchmitt](https://forum.commonvisionblox.com/u/ASchmitt)\
**Post date:** [December 20, 2021, 3:58pm UTC](https://forum.commonvisionblox.com/t/error-while-installing-cvb-on-wsl-ubuntu-20-04/1566/6 "2021-12-20T15:58:02Z")

</div>

I have now also tried it with WSL1 and the cvb version 13.04.000.  
The procedure was as follows:

1. install the WSL1 Ubuntu20.04
2. run “sudo apt update” and “sudo apt upgrade”.
3. install the build essentials with " sudo apt-get install -y build-essential".
4. install cmake with “sudo apt install cmake”.
5. install cvb with “sudo sh install\_cvb.sh”.  
 → after installing cvb for the first time the following errors appear

```auto
Installing Codemeter package
Selecting previously unselected package codemeter.
(Reading database ... 40709 files and directories currently installed.)
Preparing to unpack .../codemeter_7.21.4611.501_amd64.deb ...
Unpacking codemeter (7.21.4611.501) ...
dpkg: dependency problems prevent configuration of codemeter:
 codemeter depends on libxcb-icccm4 (>= 0.4.1); however:
  Package libxcb-icccm4 is not installed.
 codemeter depends on libxcb-image0 (>= 0.2.1); however:
  Package libxcb-image0 is not installed.
 codemeter depends on libxcb-keysyms1 (>= 0.4.0); however:
  Package libxcb-keysyms1 is not installed.
 codemeter depends on libxcb-render-util0; however:
  Package libxcb-render-util0 is not installed.
 codemeter depends on libxcb-render0; however:
  Package libxcb-render0 is not installed.
 codemeter depends on libxcb-xinerama0; however:
  Package libxcb-xinerama0 is not installed.
 codemeter depends on libxcb-xkb1; however:
  Package libxcb-xkb1 is not installed.
 codemeter depends on libxkbcommon-x11-0 (>= 0.5.0); however:
  Package libxkbcommon-x11-0 is not installed.
 codemeter depends on libxkbcommon0 (>= 0.5.0); however:
  Package libxkbcommon0 is not installed.

dpkg: error processing package codemeter (--install):
 dependency problems - leaving unconfigured
Processing triggers for systemd (245.4-4ubuntu3.13) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
 codemeter
Selecting previously unselected package cvb-camerasuite.
dpkg: regarding .../cvb-camerasuite-13.04.003-ubu2004-x86_64.deb containing cvb-camerasuite, pre-dependency problem:
 cvb-camerasuite pre-depends on codemeter (>= 5.22.1504.500)
  codemeter is unpacked, but has never been configured.

dpkg: error processing archive /mnt/c/Users/aSchmitt/Documents/Emulation/cvbinst/cvb-camerasuite-13.04.003-ubu2004-x86_64.deb (--install):
 pre-dependency problem - not installing cvb-camerasuite
Selecting previously unselected package cvb-camerasuite-dev.
(Reading database ... 41783 files and directories currently installed.)
Preparing to unpack .../cvb-camerasuite-dev-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-camerasuite-dev (13.04.003) ...
dpkg: dependency problems prevent configuration of cvb-camerasuite-dev:
 cvb-camerasuite-dev depends on cvb-camerasuite (= 13.04.003); however:
  Package cvb-camerasuite is not installed.

dpkg: error processing package cvb-camerasuite-dev (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 /mnt/c/Users/aSchmitt/Documents/Emulation/cvbinst/cvb-camerasuite-13.04.003-ubu2004-x86_64.deb
 cvb-camerasuite-dev
Selecting previously unselected package cvb-foundation.
(Reading database ... 42450 files and directories currently installed.)
Preparing to unpack .../cvb-foundation-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-foundation (13.04.003) ...
Selecting previously unselected package cvb-foundation-dev.
Preparing to unpack .../cvb-foundation-dev-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-foundation-dev (13.04.003) ...
dpkg: dependency problems prevent configuration of cvb-foundation:
 cvb-foundation depends on cvb-camerasuite (= 13.04.003); however:
  Package cvb-camerasuite is not installed.

dpkg: error processing package cvb-foundation (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cvb-foundation-dev:
 cvb-foundation-dev depends on cvb-camerasuite-dev (= 13.04.003); however:
  Package cvb-camerasuite-dev is not configured yet.

dpkg: error processing package cvb-foundation-dev (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 cvb-foundation
 cvb-foundation-dev
Selecting previously unselected package cvb-tools.
(Reading database ... 42532 files and directories currently installed.)
Preparing to unpack .../cvb-tools-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-tools (13.04.003) ...
Selecting previously unselected package cvb-tools-dev.
Preparing to unpack .../cvb-tools-dev-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-tools-dev (13.04.003) ...
dpkg: dependency problems prevent configuration of cvb-tools:
 cvb-tools depends on cvb-camerasuite (= 13.04.003); however:
  Package cvb-camerasuite is not installed.

dpkg: error processing package cvb-tools (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cvb-tools-dev:
 cvb-tools-dev depends on cvb-camerasuite-dev (= 13.04.003); however:
  Package cvb-camerasuite-dev is not configured yet.

dpkg: error processing package cvb-tools-dev (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 cvb-tools
 cvb-tools-dev

Reboot required!

```

1. machine was restarted
2. because of the errors cvb was uninstalled with “sudo sh uninstall-cvb.sh”.
3. machine was restarted
4. cvb is installed again with "sudo sh install\_cvb.sh  
 → the following log appears:

```auto
Installing Codemeter package
(Reading database ... 41843 files and directories currently installed.)
Preparing to unpack .../codemeter_7.21.4611.501_amd64.deb ...
invoke-rc.d: could not determine current runlevel
 * Stopping CodeMeter WebAdmin codemeter-webadmin [OK]
invoke-rc.d: could not determine current runlevel
 * Stopping CodeMeter Server codemeter [OK]
Unpacking codemeter (7.21.4611.501) over (7.21.4611.501) ...
Setting up codemeter (7.21.4611.501) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: could not determine current runlevel
Processing triggers for systemd (245.4-4ubuntu3.13) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
(Reading database ... 41843 files and directories currently installed.)
Preparing to unpack .../cvb-camerasuite-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-camerasuite (13.04.003) ...
Selecting previously unselected package cvb-camerasuite-dev.
Preparing to unpack .../cvb-camerasuite-dev-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-camerasuite-dev (13.04.003) ...
Setting up cvb-camerasuite (13.04.003) ...
Creating symbolic link from /opt/cvb-13.04.003 to /opt/cvb
Setting CVB services up...
Failed to retrieve/decode the log configuration for module GEVSVC: Failed to connect to the shared memory with connection info: No such file or directory

*****************************************************************
                  (c) 2015 STEMMER IMAGING GmbH
*****************************************************************

STEMMER IMAGING Logging Service Application
BuildDate : May 26 2021

Enter service
Updating udev rules...
Setting up cvb-camerasuite-dev (13.04.003) ...
Processing triggers for systemd (245.4-4ubuntu3.13) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Selecting previously unselected package cvb-foundation.
(Reading database ... 42712 files and directories currently installed.)
Preparing to unpack .../cvb-foundation-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-foundation (13.04.003) ...
Selecting previously unselected package cvb-foundation-dev.
Preparing to unpack .../cvb-foundation-dev-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-foundation-dev (13.04.003) ...
Setting up cvb-foundation (13.04.003) ...
Setting up cvb-foundation-dev (13.04.003) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Selecting previously unselected package cvb-tools.
(Reading database ... 42793 files and directories currently installed.)
Preparing to unpack .../cvb-tools-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-tools (13.04.003) ...
Selecting previously unselected package cvb-tools-dev.
Preparing to unpack .../cvb-tools-dev-13.04.003-ubu2004-x86_64.deb ...
Unpacking cvb-tools-dev (13.04.003) ...
Setting up cvb-tools (13.04.003) ...
Setting up cvb-tools-dev (13.04.003) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...

Reboot required!

```

---

<div class="post-metadata">

**Author:** ![usernv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/usernv/32/637_2.png) [@usernv](https://forum.commonvisionblox.com/u/usernv)\
**Post date:** [December 21, 2021, 8:38am UTC](https://forum.commonvisionblox.com/t/error-while-installing-cvb-on-wsl-ubuntu-20-04/1566/7 "2021-12-21T08:38:18Z")

</div>

afaik cvb should not be installed as sudo as the folders will not be accessible during notmal execution

---

<div class="post-metadata">

**Author:** ![c.hartmann](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/c.hartmann/32/247_2.png) [@c.hartmann](https://forum.commonvisionblox.com/u/c.hartmann)\
**Post date:** [December 21, 2021, 8:54am UTC](https://forum.commonvisionblox.com/t/error-while-installing-cvb-on-wsl-ubuntu-20-04/1566/8 "2021-12-21T08:54:28Z")

</div>

Hi @ASchmitt,

i think your installation is just fine. Simply verify the services are running before use: siLogSvc, siGevSvc and cvmgmtd. Oh and codemeter.

---

<div class="post-metadata">

**Author:** ![ASchmitt](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/aschmitt/32/827_2.png) [@ASchmitt](https://forum.commonvisionblox.com/u/ASchmitt)\
**Post date:** [December 23, 2021, 11:33am UTC](https://forum.commonvisionblox.com/t/error-while-installing-cvb-on-wsl-ubuntu-20-04/1566/9 "2021-12-23T11:33:25Z")

</div>

Hi @c.hartmann ,  
Thanks for the help, the services run fine after using “sudo service siLogSvc restart”, “sudo service siGevSvc restart” and “sudo service cvmgmtd restart”. But after this I am getting the error message:

```auto
Server Could not bind to 169.254.186.244:3956: Unspecified error (System error: #99).
terminate called after throwing an instance of 'cvboost159::exception_detail::clone_impl<cvboost159::exception_detail::error_info_injector<cvboost159::lock_error> >'
  what(): boost: mutex lock failed in pthread_mutex_lock: Invalid argument
Aborted (core dumped)

```

A few days before everything was fine and the program that starts a GEV server ran without problems in the WSL, I don’t know what could have changed, I also reinstalled the WSL to solve the problem but nothing helped :(.

---

<div class="post-metadata">

**Author:** ![usernv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/usernv/32/637_2.png) [@usernv](https://forum.commonvisionblox.com/u/usernv)\
**Post date:** [January 5, 2022, 8:29am UTC](https://forum.commonvisionblox.com/t/error-while-installing-cvb-on-wsl-ubuntu-20-04/1566/10 "2022-01-05T08:29:46Z")

</div>

Hi @ASchmitt,

could you please send a dump to the support? We would then have a look at it.

---

<div class="post-metadata">

**Author:** ![ASchmitt](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/aschmitt/32/827_2.png) [@ASchmitt](https://forum.commonvisionblox.com/u/ASchmitt)\
**Post date:** [January 5, 2022, 2:42pm UTC](https://forum.commonvisionblox.com/t/error-while-installing-cvb-on-wsl-ubuntu-20-04/1566/11 "2022-01-05T14:42:12Z")

</div>

Yes, I can make an image-file from my WSL and send it to you.

---

<div class="post-metadata">

**Author:** ![illusive](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/illusive/32/61_2.png) [@illusive](https://forum.commonvisionblox.com/u/illusive)\
**Post date:** [January 5, 2022, 3:54pm UTC](https://forum.commonvisionblox.com/t/error-while-installing-cvb-on-wsl-ubuntu-20-04/1566/12 "2022-01-05T15:54:24Z")

</div>

To me this looks like a not-gracefully-handled reaction to a problem that potentially lies somewhere else, triggered by the failing `bind` call. Can you tell which of the three services terminated here?

Other than that, I agree with @usernv - dump file would be most helpful here.

---

<div class="post-metadata">

**Author:** ![ASchmitt](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/aschmitt/32/827_2.png) [@ASchmitt](https://forum.commonvisionblox.com/u/ASchmitt)\
**Post date:** [January 6, 2022, 1:34pm UTC](https://forum.commonvisionblox.com/t/error-while-installing-cvb-on-wsl-ubuntu-20-04/1566/13 "2022-01-06T13:34:27Z")

</div>

I have uploaded my exported WSL here: [https://we.tl/t-ZlTJajBKpG](https://we.tl/t-ZlTJajBKpG)  
You can start the program /root/Vector\_Gev, which is a C++ program, that creates a GEV\_Server and starts them.

---

<div class="post-metadata">

**Author:** ![ASchmitt](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/aschmitt/32/827_2.png) [@ASchmitt](https://forum.commonvisionblox.com/u/ASchmitt)\
**Post date:** [January 6, 2022, 1:38pm UTC](https://forum.commonvisionblox.com/t/error-while-installing-cvb-on-wsl-ubuntu-20-04/1566/14 "2022-01-06T13:38:56Z")

</div>

Don’t get me wrong, the program works now, but it throws some messages it shouldn’t.  
It is a bit strange.  
I will try to reproduce the error consistently.
