Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with 2.7.0 on older Linux-Kernels #1186

Closed
Stonygan opened this issue Apr 2, 2022 · 14 comments
Closed

Problems with 2.7.0 on older Linux-Kernels #1186

Stonygan opened this issue Apr 2, 2022 · 14 comments

Comments

@Stonygan
Copy link

Stonygan commented Apr 2, 2022

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.

@defichain-bot
Copy link
Member

@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.

@Stonygan
Copy link
Author

Stonygan commented Apr 2, 2022

You can check your Kernelversion with: uname -r

@eMDi101
Copy link

eMDi101 commented Apr 2, 2022

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

@eMDi101
Copy link

eMDi101 commented Apr 5, 2022

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
Copy link

eMDi101 commented Apr 5, 2022

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?

@bertlorenz
Copy link

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

@KunoWA
Copy link

KunoWA commented Apr 11, 2022

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

@tomcat2k
Copy link

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!

@Stonygan
Copy link
Author

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.

@eMDi101
Copy link

eMDi101 commented Apr 11, 2022

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

@markus-mw
Copy link

markus-mw commented Apr 12, 2022

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).

@bertlorenz
Copy link

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

@KunoWA
Copy link

KunoWA commented Apr 17, 2022

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

@KunoWA
Copy link

KunoWA commented May 24, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants