ain icon indicating copy to clipboard operation
ain copied to clipboard

Problems with 2.7.0 on older Linux-Kernels

Open Stonygan opened this issue 4 years ago • 14 comments

What happened:

defid dont start and throws a error message:

************************
EXCEPTION: N5boost10filesystem16filesystem_errorE
boost::filesystem::create_directory: File exists: /home/tdefichain/.defi
defi in AppInit()

defid: chainparamsbase.cpp:33: const CBaseChainParams &BaseParams(): Assertion globalChainBaseParams failed.
Aborted

How to reproduce it (as minimally and precisely as possible):

It seems its a problem with older kernels. We notice that it occurs mainly with virtuozzo virtualization. No problems occur with kernel-version: 5.10.0-11-amd64 5.4.0-92-generic 5.4.0-100-generic 4.19.0-18-amd64

We identify problems with kernel: 4.19.0 5.4.0

What are your environment parameters:

See above, problem exists with Version 2.7.0

Feel free to add more Infos and versions when you have similiar problems.

Stonygan avatar Apr 02 '22 12:04 Stonygan

@Stonygan: Thanks for opening an issue, it is currently awaiting triage.

The triage/accepted label can be added by foundation members by writing /triage accepted in a comment.

Details

I am a bot created to help the DeFiCh developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the DeFiCh/oss-governance-bot repository.

defichain-bot avatar Apr 02 '22 12:04 defichain-bot

You can check your Kernelversion with: uname -r

Stonygan avatar Apr 02 '22 12:04 Stonygan

Hi Stonygan, same on my server, I have kernelversion: uname -r -> 4.15.0 Ubuntu 18.04.2 LTS

eMDi101 avatar Apr 02 '22 21:04 eMDi101

I have now reinstalled my v server with Ubuntu 20.04.4 LTS and unfortunately I still have the same error. uname -r -> 5.4.0

eMDi101 avatar Apr 05 '22 16:04 eMDi101

my virtual server provider also uses virtuozzo virtualization. looks like virtuozzo does not support a new kernel in the vm.

any idea how i can continue to operate the masternode?

eMDi101 avatar Apr 05 '22 22:04 eMDi101

same here. Kernel 4.15.0 on Ubuntu 18.04.6. Hosted within Virtuozzo. (Strato)

bertlorenz avatar Apr 07 '22 18:04 bertlorenz

I do have still the same issue. uname -r -> 4.19.0 cat /etc/debian_version -> 10.12 uname -mrs -> Linux 4.19.0 x86_64 Is there any solution known?

After I updated to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0 x86_64), I do have still the same issue: uname -r -> 5.4.0

But this is the latest Ubuntu available on webtropia. So it looks like there is no solution for me :-(

Does anybody have a fix without a kernel update? As this is not possible on webtropia, i tried.


EXCEPTION: N5boost10filesystem16filesystem_errorE
boost::filesystem::create_directory: File exists: "/home/defichain/.defi"
defi in AppInit()

defid: chainparamsbase.cpp:33: const CBaseChainParams &BaseParams(): Assertion `globalChainBaseParams' failed. Aborted

KunoWA avatar Apr 11 '22 09:04 KunoWA

Same problem here on my end (kernel 4.19.0). Previous version worked without a problem. The issue here was posted 9 days ago. It would be super kind if the devs could comment on priority / next steps. Thanks for all your amazing efforts, highly appreciated!

tomcat2k avatar Apr 11 '22 13:04 tomcat2k

You need a newer kernel for this version. When your Provider use Virtuozzo as Hypervisor, you cant update the kernel. you must switch to another Server with KVM or similar virtualization. Maybe you can compile defid by yourself, but i think thats not a good idea, because you must do this with every new version again. My preferred solution is to switch to another server with a supported virtualization or a root server.

Stonygan avatar Apr 11 '22 13:04 Stonygan

we have compiled defid on the server with success, but we still have the error. now we have switched from strato to 1fire...

eMDi101 avatar Apr 11 '22 19:04 eMDi101

You need a newer kernel for this version. When your Provider use Virtuozzo as Hypervisor, you cant update the kernel. you must switch to another Server with KVM or similar virtualization. Maybe you can compile defid by yourself, but i think thats not a good idea, because you must do this with every new version again. My preferred solution is to switch to another server with a supported virtualization or a root server.

Is this a new requirement for 2.7? I had never such a problem before.

Kernel Version 4.4.0 isn't working either (Ubuntu 20).

markus-mw avatar Apr 12 '22 05:04 markus-mw

wouldn't it be an option to revert boost to 1.74? see #1154 Or is there a special need for that upgrade?

bertlorenz avatar Apr 12 '22 08:04 bertlorenz

What OS did you use? Did it work directly with Debian 11.2 (Kernel Linux 5.10 LTS)?

KunoWA avatar Apr 17 '22 06:04 KunoWA

Hi all! I did finally manage to build the defichain node myself on an old linux kernel which is not supported anymore.

My linux is: lsb_release -a => No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.4 LTS Release: 20.04 Codename: focal

I followed the instructions found on github but had to try around because the option --disable-wallet did not work for me as expected. Therefore I did also have to install the BDB database db4, I assume.

  1. I did install brew (see https://docs.brew.sh/Homebrew-on-Linux) and installed the relevant packages
  2. sudo apt install autogen
  3. sudo apt install autoconf
  4. sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 curl
  5. sudo apt-get install libssl-dev libevent-dev libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev
  6. I downloaded the latest src: wget https://github.com/DeFiCh/ain/archive/refs/tags/v2.7.1.tar.gz
  7. tar -xvzf ./v2.7.1.tar.gz
  8. cd ain-2.7.1/
  9. I installed DBD db4: ./contrib/install_db4.sh 'pwd'
  10. ./autogen.sh
  11. export BDB_PREFIX='/home/defichain/ain-2.7.1/db4'
  12. ./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"
  13. make
  14. cp ./src/defid ~/.defi/
  15. cp ./src/defi-cli ~/.defi/
  16. cp ./src/defi-tx ~/.defi/
  17. ~/.defi/defid -daemon

I hope this helps you aswell! Good luck!

KunoWA avatar May 24 '22 20:05 KunoWA