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

Error: setup Error: TypeError: Cannot read properties of undefined (reading 'mountpoint') #90

Open
dexbotsdev opened this issue Mar 6, 2024 · 28 comments · May be fixed by #128
Open

Error: setup Error: TypeError: Cannot read properties of undefined (reading 'mountpoint') #90

dexbotsdev opened this issue Mar 6, 2024 · 28 comments · May be fixed by #128

Comments

@dexbotsdev
Copy link

solv@ssdnodes:~$ solv setup
Updated /home/solv/solv.config.json with new values.
Setting up Solana Validator ...
? Which solv types do you want to setup? MAINNET_VALIDATOR
? Which mainnet mode do you want to setup? JitoMev
JITO MEV Setup Mode on!
? Enter commission bps 1000
? Select region Amsterdam
? What is your commission rate? You can change it later (default: 10%) 7
Setting up MAINNET_VALIDATOR...
Error: setup Error: TypeError: Cannot read properties of undefined (reading 'mountpoint')
at setup (/home/solv/.nodenv/versions/20.10.0/lib/node_modules/@epics-dao/solv/dist/index.js:288:1496)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async r. (/home/solv/.nodenv/versions/20.10.0/lib/node_modules/@epics-dao/solv/dist/index.js:288:3626)
at async r.parseAsync (/home/solv/.nodenv/versions/20.10.0/lib/node_modules/@epics-dao/solv/dist/index.js:16:3980)
at async main (/home/solv/.nodenv/versions/20.10.0/lib/node_modules/@epics-dao/solv/dist/index.js:336:831)

@POPPIN-FUMI
Copy link
Collaborator

Could you try with v3.3.5?

@t1ntech
Copy link

t1ntech commented Mar 17, 2024

3.3.5 installed, same error. Installing RPC NODE & Validator.

@POPPIN-FUMI
Copy link
Collaborator

sh -c "$(curl -sSfL "https://storage.googleapis.com/epics-bucket/resource/solv/v3.3/install")"

I tried this install script and worked.
Please let me know if you still have an error!

@Vera0011
Copy link

Vera0011 commented Mar 28, 2024

Hello,
Same error here! It may be due to using a virtual machine (VirtualBox, Ubuntu live server 22.04.4 amd 64, installing RPC-NODE)?
I am also using v3.3, following the steps from here: https://solv.epics.dev/en/?source=post_page-----4a8db29ed1de--------------------------------

@stevenkader
Copy link

Any solutions to this. I am getting this also on Ubuntu 22.04 x64. Thx.

@shenfu1991
Copy link

same error,Is it because my computer hardware configuration is too low? For example, the configuration cannot reach epyc 7743 and 512G ram?
,and logs is:

solv@HL:~$ solv setup
Updated /home/solv/solv.config.json with new values.
Setting up Solana Validator ...
? Which solv types do you want to setup? RPC_NODE
? Enter your IP address to allow access to RPC NODE: 0.0.0.0
[sudo] password for solv: 
✔️ Firewall updated!
Setting up RPC_NODE...
Error: setup Error: TypeError: Cannot read properties of undefined (reading 'mountpoint')
    at setup (/home/solv/.local/share/pnpm/global/5/.pnpm/@epics-dao+solv@3.3.13/node_modules/@epics-dao/solv/dist/index.js:294:1613)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async t. (/home/solv/.local/share/pnpm/global/5/.pnpm/@epics-dao+solv@3.3.13/node_modules/@epics-dao/solv/dist/index.js:294:3291)
    at async t.parseAsync (/home/solv/.local/share/pnpm/global/5/.pnpm/@epics-dao+solv@3.3.13/node_modules/@epics-dao/solv/dist/index.js:16:3980)
    at async main (/home/solv/.local/share/pnpm/global/5/.pnpm/@epics-dao+solv@3.3.13/node_modules/@epics-dao/solv/dist/index.js:351:819)

@POPPIN-FUMI
Copy link
Collaborator

Are you guys using VirtualBox?
If so, it is not recommended!
Could you please share what server instance is facing this problem?

@shenfu1991
Copy link

Are you guys using VirtualBox? If so, it is not recommended! Could you please share what server instance is facing this problem?

hello,my server is cloud server(vps).

ubuntu 22.04

Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         48 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  3
  On-line CPU(s) list:   0-2
Vendor ID:               AuthenticAMD
  Model name:            AMD Ryzen 9 7950X 16-Core Processor
    CPU family:          25
    Model:               97
    Thread(s) per core:  1
    Core(s) per socket:  1
    Socket(s):           3
    Stepping:            2
    BogoMIPS:            8982.74
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mc
                         a cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx m
                         mxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid ex
                         td_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 s
                         se4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes
                          xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy sv
                         m cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw p
                         erfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_a
                         djust bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq
                          rdseed adx smap avx512ifma clflushopt clwb avx512cd sh
                         a_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves a
                         vx512_bf16 clzero xsaveerptr wbnoinvd arat npt lbrv nri
                         p_save tsc_scale vmcb_clean pausefilter pfthreshold v_v
                         msave_vmload vgif avx512vbmi umip pku ospke avx512_vbmi
                         2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512
                         _vpopcntdq rdpid fsrm arch_capabilities
Virtualization features: 
  Virtualization:        AMD-V
  Hypervisor vendor:     KVM
  Virtualization type:   full
Caches (sum of all):     
  L1d:                   96 KiB (3 instances)
  L1i:                   96 KiB (3 instances)
  L2:                    3 MiB (3 instances)
  L3:                    192 MiB (3 instances)
NUMA:                    
  NUMA node(s):          1
  NUMA node0 CPU(s):     0-2
Vulnerabilities:         
  Gather data sampling:  Not affected
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Mmio stale data:       Not affected
  Retbleed:              Not affected
  Spec rstack overflow:  Mitigation; safe RET, no microcode
  Spec store bypass:     Mitigation; Speculative Store Bypass disabled via prctl
                          and seccomp
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer
                          sanitization
  Spectre v2:            Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIB
                         P disabled, RSB filling, PBRSB-eIBRS Not affected
  Srbds:                 Not affected
  Tsx async abort:       Not affected

@stevenkader
Copy link

I am using AWS : m6i.12xlarge
Screenshot 2024-04-08 at 5 21 26 PM

@janbaranowski
Copy link

Same thing happenning running this in a clean ubuntu docker image:

Setting up MAINNET_VALIDATOR...
Error: setup Error: TypeError: Cannot read properties of undefined (reading 'mountpoint')
at setup (/home/solv/.local/share/pnpm/global/5/.pnpm/@epics-dao+solv@3.3.15/node_modules/@epics-dao/solv/dist/index.js:299:1627)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async t. (/home/solv/.local/share/pnpm/global/5/.pnpm/@epics-dao+solv@3.3.15/node_modules/@epics-dao/solv/dist/index.js:299:3356)
at async t.parseAsync (/home/solv/.local/share/pnpm/global/5/.pnpm/@epics-dao+solv@3.3.15/node_modules/@epics-dao/solv/dist/index.js:16:3980)
at async main (/home/solv/.local/share/pnpm/global/5/.pnpm/@epics-dao+solv@3.3.15/node_modules/@epics-dao/solv/dist/index.js:356:819)

@POPPIN-FUMI
Copy link
Collaborator

It looks like AWS has some problems.
Can you guys come to solv discord to fix this?

https://discord.gg/J6qRD4KX

I think AWS's lsblk -l might be different from other instances.

@rluisr
Copy link

rluisr commented Apr 15, 2024

same here. Does anyone know how to solve it?

NAME  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
loop0   7:0    0 61.9M  1 loop /snap/core20/1405
loop1   7:1    0 63.9M  1 loop /snap/core20/2264
loop2   7:2    0 79.9M  1 loop /snap/lxd/22923
loop3   7:3    0 44.7M  1 loop /snap/snapd/15534
loop4   7:4    0   87M  1 loop /snap/lxd/27948
sda     8:0    0   64G  0 disk
sda1    8:1    0    1M  0 part
sda2    8:2    0   64G  0 part /

@fbettag
Copy link

fbettag commented Apr 19, 2024

Hey guys, so i'm having the same issue with a really large VM on VMware. The Problem seems to be the .disks array which is not getting populated.

I've just added a console.log(is().disks) right before the error, and it returns [] (empty array).

So there seems to be something wrong with the hdd detection i guess.

Updated /home/solv/solv.config.json with new values.
Setting up Solana Validator ...
? Which solv types do you want to setup? RPC_NODE
? Enter your IP address to allow access to RPC NODE: x.x.x.x
[sudo] password for solv: 
✔️ Firewall updated!
Setting up RPC_NODE...
[]
Error: setup Error: TypeError: Cannot read properties of undefined (reading 'mountpoint')
    at setup (/home/solv/.local/share/pnpm/global/5/.pnpm/@epics-dao+solv@3.3.19/node_modules/@epics-dao/solv/dist/index.js:299:1727)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async t.<anonymous> (/home/solv/.local/share/pnpm/global/5/.pnpm/@epics-dao+solv@3.3.19/node_modules/@epics-dao/solv/dist/index.js:299:3456)
    at async t.parseAsync (/home/solv/.local/share/pnpm/global/5/.pnpm/@epics-dao+solv@3.3.19/node_modules/@epics-dao/solv/dist/index.js:16:3980)
    at async main (/home/solv/.local/share/pnpm/global/5/.pnpm/@epics-dao+solv@3.3.19/node_modules/@epics-dao/solv/dist/index.js:356:819)

@fbettag
Copy link

fbettag commented Apr 19, 2024

since is is the value of yve(), and that gets defined as

function yve(){let e=(0,sk.execSync)("lsblk -l -b -o NAME,SIZE,MOUNTPOINT",{encoding:"utf8"}).split(`....

Now running that returns normal output:

solv@ubuntu-2004-lts:~$ lsblk -l -b -o NAME,SIZE,MOUNTPOINT
NAME                          SIZE MOUNTPOINT
loop0                     58314752 /snap/core18/2721
loop1                     58363904 /snap/core18/2812
loop2                     40996864 /snap/snapd/21184
loop3                     67014656 
loop4                     73728000 /snap/lxd/21029
loop5                     96292864 /snap/lxd/24061
loop6                     42393600 
loop7                     67051520 /snap/core20/2264
loop8                     67010560 /snap/core20/2182
loop9                     40615936 /snap/snapd/21465
sda                   214748364800 
sda1                       1048576 
sda2                    1073741824 /boot
sda3                  213671477248 
sr0                     1073741312 
ubuntu--vg-ubuntu--lv 213670428672 /

I'm guessing the following javascript magic boggles the array and thus misses the disk.

@stevenkader
Copy link

I got it working by making my main volume with OS 800 GB.

But I tried very power and expensive AWS server and was unable to catch-up.

@fbettag
Copy link

fbettag commented Apr 19, 2024

aaah, this could probably be the size check that follows if the disk is > 400gb or 850gb depending on what you're setting up.

@fbettag
Copy link

fbettag commented Apr 19, 2024

I got it working by making my main volume with OS 800 GB.

But I tried very power and expensive AWS server and was unable to catch-up.

we came to the same conclusion :) mine is now working too.

@stevenkader
Copy link

I got it working by making my main volume with OS 800 GB.
But I tried very power and expensive AWS server and was unable to catch-up.

we came to the same conclusion :) mine is now working too.

Were you able to catch-up yet?

@fbettag
Copy link

fbettag commented Apr 19, 2024

not yet

[2024-04-19T12:18:31.090839013Z INFO  solana_download_utils] downloaded 45691025552 bytes 64.4% 21319186.0 bytes/s
[2024-04-19T12:18:37.091242308Z INFO  solana_download_utils] downloaded 45819556320 bytes 64.6% 21420356.0 bytes/s
[2024-04-19T12:18:43.091653848Z INFO  solana_download_utils] downloaded 45948050392 bytes 64.8% 21414214.0 bytes/s
[2024-04-19T12:18:49.091876916Z INFO  solana_download_utils] downloaded 46076543688 bytes 65.0% 21414758.0 bytes/s

@stevenkader
Copy link

After it reaches 100% run 'solv get catchup' it will then show you if you are staying up to date or falling behind. I was always falling behind. Thx.

@fbettag
Copy link

fbettag commented Apr 19, 2024

i'll keep you posted, currently at 95%, my guess is the disks are too slow (even tho i have sata ssd only storage)

@fbettag
Copy link

fbettag commented Apr 19, 2024

ah yeah, i need to add more cpus to the VM.

[2024-04-19T12:53:47.414092964Z ERROR solana_validator] Failed to start validator: "PoH is slower than cluster target tick rate! mine: 767312631 cluster: 400000000."

@stevenkader
Copy link

ah yeah, i need to add more cpus to the VM.

[2024-04-19T12:53:47.414092964Z ERROR solana_validator] Failed to start validator: "PoH is slower than cluster target tick rate! mine: 767312631 cluster: 400000000."

I went as high as 98 and still had trouble catching up

fbettag added a commit to fbettag/solv that referenced this issue Apr 19, 2024
adds a log message when the disk it too small, fixes EpicsDAO#90 by giving the users a warning
@fbettag fbettag linked a pull request Apr 19, 2024 that will close this issue
@fbettag
Copy link

fbettag commented Apr 19, 2024

ah yeah, i need to add more cpus to the VM.
[2024-04-19T12:53:47.414092964Z ERROR solana_validator] Failed to start validator: "PoH is slower than cluster target tick rate! mine: 767312631 cluster: 400000000."

I went as high as 98 and still had trouble catching up

apparently it's just a missing log line. there is also no log line for 0 % :)

@fbettag
Copy link

fbettag commented May 5, 2024

I'm scared to buy a VPS at 250$ for nothing x)

Then operating a validator node might not be for you. it's a financial risk and 250$ is going to be the least of it.

@fbettag
Copy link

fbettag commented May 5, 2024

Operating validator nodes is not a scheme to make money. It's a way of supporting the Solana Ecosystem. Yes you get rewarded, but there are risks as there are with anything where you have to go money-first.

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

Successfully merging a pull request may close this issue.

10 participants