Problems with 2.7.0 on older Linux-Kernels
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: 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.
You can check your Kernelversion with: uname -r
Hi Stonygan, same on my server, I have kernelversion: uname -r -> 4.15.0 Ubuntu 18.04.2 LTS
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
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?
same here. Kernel 4.15.0 on Ubuntu 18.04.6. Hosted within Virtuozzo. (Strato)
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
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!
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.
we have compiled defid on the server with success, but we still have the error. now we have switched from strato to 1fire...
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).
wouldn't it be an option to revert boost to 1.74? see #1154 Or is there a special need for that upgrade?
What OS did you use? Did it work directly with Debian 11.2 (Kernel Linux 5.10 LTS)?
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.
- I did install brew (see https://docs.brew.sh/Homebrew-on-Linux) and installed the relevant packages
- sudo apt install autogen
- sudo apt install autoconf
- sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 curl
- sudo apt-get install libssl-dev libevent-dev libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev
- I downloaded the latest src: wget https://github.com/DeFiCh/ain/archive/refs/tags/v2.7.1.tar.gz
- tar -xvzf ./v2.7.1.tar.gz
- cd ain-2.7.1/
- I installed DBD db4:
./contrib/install_db4.sh 'pwd' - ./autogen.sh
- export BDB_PREFIX='/home/defichain/ain-2.7.1/db4'
-
./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" - make
- cp ./src/defid ~/.defi/
- cp ./src/defi-cli ~/.defi/
- cp ./src/defi-tx ~/.defi/
- ~/.defi/defid -daemon
I hope this helps you aswell! Good luck!