(error) message(_provision.setup.sh fail) provision.setup.sh BECAUSE OF ERROR STATE (4)
See original GitHub issueHaving trouble with initial setup. Migrating from MyNode. First attempt it detected old data and went through the migration setup. Had an issue with Lightning Progress ,kept rebooting. Reinstalled LND. Was not able to get in with new pw C saved nor raspiblitz. Ended up reset HDD keeping blockchain. First attempt similar PW issues. Setup pw and it would not recognize after reboot.
Re-flashed sd and started again. Attempted to recover LND wallet from seed and backup file option. Then this log. Any input much appreciated.
###########################################################
# /home/admin/raspiblitz.log
***********************************************
Running RaspiBlitz Bootstrap 1.7.1
Thu 28 Oct 11:00:58 BST 2021
***********************************************
# *** blitz.ssh.sh checkrepair
# countKeyFiles(8)
# OK: SSHD RUNNING
No HDMI switch found.
No FS EXPAND needed. needsExpansion(0) fsexpanded(1)
No SSHRESET switch found.
No UASP FIX needed (1st-try).
Waiting for HDD/SSD ...
total 604
drwxr-xr-x 2 root root 4096 Oct 28 11:00 .
drwxr-xr-x 118 root root 4096 Oct 28 11:00 ..
-rw-r--r-- 1 root root 565189 Jan 31 2020 moduli
-rw-r--r-- 1 root root 1580 Jan 31 2020 ssh_config
-rw-r--r-- 1 root root 3250 Jan 31 2020 sshd_config
-rw------- 1 root root 1381 Oct 28 11:00 ssh_host_dsa_key
-rw-r--r-- 1 root root 606 Oct 28 11:00 ssh_host_dsa_key.pub
-rw------- 1 root root 513 Oct 28 11:00 ssh_host_ecdsa_key
-rw-r--r-- 1 root root 178 Oct 28 11:00 ssh_host_ecdsa_key.pub
-rw------- 1 root root 411 Oct 28 11:00 ssh_host_ed25519_key
-rw-r--r-- 1 root root 98 Oct 28 11:00 ssh_host_ed25519_key.pub
-rw------- 1 root root 1823 Oct 28 11:00 ssh_host_rsa_key
-rw-r--r-- 1 root root 398 Oct 28 11:00 ssh_host_rsa_key.pub
-rw-r--r-- 1 root root 338 Mar 5 2021 ssh_import_id
wifiIsSet=0
hddBackupLocationAvailable=0
hddRestoreConfigAvailable=0
memRestoreConfigAvailable=0
wifiRestore=0
wifiBackup=0
No UASP FIX needed (2nd-try).
isMounted: 0
Skipping UASP deactivation ... cmdlineExists(1) hddAdapterUSB(174c:55aa) hddAdapterUSAP(1)
HDD already part of system: 0
Temp mounting (1) data drive (sda)
Temp mounting (1) result: 1
HDD is there but not AutoMounted yet - Waiting for user Setup/Update
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 29574828 4380736 23945048 16% /
devtmpfs 1933976 0 1933976 0% /dev
tmpfs 1968600 0 1968600 0% /dev/shm
tmpfs 1968600 16828 1951772 1% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 1968600 0 1968600 0% /sys/fs/cgroup
tmpfs 32768 4 32764 1% /var/cache/raspiblitz
/dev/mmcblk0p1 258095 31495 226601 13% /boot
tmpfs 393720 0 393720 0% /run/user/1000
/dev/sda1 960322016 427670056 483800536 47% /mnt/hdd
# lsblk -o NAME,FSTYPE,LABEL
NAME FSTYPE LABEL
sda
└─sda1 ext4 BLOCKCHAIN
mmcblk0
├─mmcblk0p1 vfat boot
└─mmcblk0p2 ext4 rootfs
# RASPIBLITZ DATA DRIVE Status
# BASICS
isMounted=1
isBTRFS=0
hddRaspiData=0
hddRaspiVersion=''
isSSD=1
datadisk='sda'
datapartition='sda1'
hddBlocksBitcoin=1
hddBlocksLitecoin=0
hddBytes=1000141693440
hddGigaBytes=931
hddUsedInfo='408G (47%)'
hddDataFreeKB=483800536
hddAdapterUSB='174c:55aa'
hddAdapterUSAP=1
# RAID
isRaid=0
raidCandidates=0
# SWAP
isSwapExternal=0
Displaying Info Message: Please Login for Setup
## WAIT LOOP: USER SETUP/UPDATE/MIGRATION
# Sourcing /mnt/hdd/raspiblitz.conf
# Sourcing /var/cache/raspiblitz/temp/raspiblitz.setup
# RASPIBLITZ SETUP STATE
network=bitcoin
hostname= Removed
lightning=lnd
network=bitcoin
chain=main
setPasswordA=1
setPasswordB=1
setPasswordC=1
seedWords='
seedPassword=''
staticchannelbackup='/home/bitcoin/temp/upload/channel.backup'
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 29574828 4283600 24042184 16% /
devtmpfs 1933976 0 1933976 0% /dev
tmpfs 1968600 0 1968600 0% /dev/shm
tmpfs 1968600 25040 1943560 2% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 1968600 0 1968600 0% /sys/fs/cgroup
tmpfs 32768 16 32752 1% /var/cache/raspiblitz
/dev/mmcblk0p1 258095 31495 226601 13% /boot
tmpfs 393720 0 393720 0% /run/user/1000
tmpfs 393720 0 393720 0% /run/user/1001
# lsblk -o NAME,FSTYPE,LABEL
# Update /home/admin/raspiblitz.info
state=provision
message='Starting Provision'
baseimage=raspios_arm64
cpu=aarch64
board=rp4
ramMB=3844
ramGB=4
network=
chain=
localip=‘removed
online='1'
dnsworking=1
fsexpanded=1
displayClass=lcd
displayType=
setupStep=0
setupPhase='setup'
fundRecovery=0
hostname=
hddCandidate='sda'
hddGigaBytes=931
hddBlocksBitcoin=1
hddBlocksLitecoin=0
hddGotMigrationData=
# migrationFile()
# setting PASSWORD A
Calling _provision.setup.sh for basic setup tasks ..
EXIT _provision.setup.sh BECAUSE OF ERROR STATE (4)
This can also happen if _provision.setup.sh has syntax errors
# /home/admin/raspiblitz.provision-setup.log
###################################
# _provision.setup.sh
###################################
*** Prepare bitcoin ***
sudo: unable to initialize PAM: Too many open files
sudo: unable to initialize PAM: Too many open files
error='no data drive mounted'
File Exists: /mnt/hdd/bitcoin/bitcoin.conf --> 0
# setting PASSWORD B
# OK -> RPC Password B changed
# Reboot is needed
...
*** Start bitcoin (SETUP) ***
- This can take a while ..
FAIL: setup: failed bitcoin
***********************************************************
ERROR - please report to development team
***********************************************************
state(error) message(_provision.setup.sh fail)
https://github.com/rootzoll/raspiblitz#support
command to shutdown --> off
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
How can I have Vagrant's provision fail if a subcommand fails?
I dont think vagrant provides for an option on the shell provisioning but it can be managed within your script itself by using...
Read more >Solution - Troubleshooting 'failed to get secret from' Error ...
Solution - Troubleshooting 'failed to get secret from' Error When Provisioning Volumes. Issue. You are experiencing an issue where a PersistentVolumeClaim ...
Read more >Troubleshooting mount issues - Amazon Elastic File System
The file system mount command hangs for a minute or two, and then fails with a timeout error. The following code shows an...
Read more >Troubleshoot pipeline runs - Azure DevOps - Microsoft Learn
Learn how to troubleshoot pipeline runs in Azure Pipelines and Team Foundation Server.
Read more >Known Issues with Oracle Database Appliance in This Release
DCS Agent unavailable due to time zone errors when provisioning or patching ... Oracle Grid Infrastructure upgrade fails, though the rootupgrade.sh script ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@radixrat thank you for the report. In the dev branch (v1.7.2r1f currently) the disk folder permissions are taken care of, so hope this is fixed.
Just ran into a similar issue on a migration to a new hard drive:
Noticed when I logged in as bitcoin user and tried to navigate to folders that I didn’t have access to read past
/mnt/hddonce I gave read perms to that folder the daemon restarted and started to work. May not be the same problem in every case but thought I would relay.