help > RE: unable to write the header...
Feb 19, 2021  01:02 AM | Alfonso Nieto-Castanon - Boston University
RE: unable to write the header...
Dear Elen

That looks like a problem writing to your disk. It may be due to either: a) a disk full (you already ruled that out); b) a permissions issue (check if that file is somewhat corrupt from a previous run and it cannot be overwritten, or if it was created by a different user and you lack write permissions); or c) a disk-access issue (e.g. check if your computer goes to sleep or puts the disks to sleep after certain amount of time, or if it is a network drive and the connection to the server gets interrupted for any reason)

Let me know if none of these seem to fit your case

Best
Alfonso
Originally posted by elen24:
Dear Alfonso,

I am running in CONN with a dataset of 42 subjects (2 groups of 21) in 1 session and 2 conditions (subvocal speech and finger tapping). The analysis runs over a external memory which still has 1619.6Gb  of free space (format: NTFS).

After running smoothly the preprocessing and denoising steps, I have gotten to the first-level analysis step. It run for a couple of hours without problems (over 15 hours pipeline was expected) but it stopped somewhere at the subject20_condition1_source155.

I decided to eliminate the 1st level results and repeat it again, and the same error was shown at "D:\conn\conn_project_t1_42\results\firstlevel\SBC_01\corr_Subject010_Condition002_Source155.nii".

Could you help me out here?


I copy the error description from the conn toolbox  log and from Matlab log:


ERROR DESCRIPTION: (conn toolbox)

Error using nifti/create (line 26)
Unable to write header for "D:\conn\conn_project_t1_42\results\firstlevel\SBC_01\corr_Subject020_Condition001_Source155.nii".
Error in spm_create_vol>create_vol (line 210)
create(N);
Error in spm_create_vol (line 17)
v = create_vol(V(i));
Error in spm_write_vol (line 83)
V = spm_create_vol(V);
Error in conn_process (line 2446)
spm_write_vol(V,tanh(t));
Error in conn_process (line 47)
case 'analyses_gui_seedandroi',conn_disp(['CONN: RUNNING ANALYSIS STEP (ROI-to-ROI or seed-to-voxel analyses)']); conn_process([10,11,15],varargin{:});
Error in conn (line 7662)
else conn_process('analyses_gui_seedandroi',CONN_x.Analysis); ispending=false;
Error in conn_menumanager (line 120)
feval(CONN_MM.MENU{n0}.callback{n1}{1},CONN_MM.MENU{n0}.callback{n1}{2:end});
CONN19.c
SPM12 + DAiSS DEM FieldMap MEEGtools
Matlab v.2020b
project: CONN19.c
storage: 1619.6Gb available
spm @ D:\spm12
conn @ D:\conn


MATLAB:

Checking if data files have been edited or moved. Please wait...
Project D:\conn\conn_project_t1_42.mat loaded
Ready to run First-level Analysis processing pipeline
overwrite existing results (re-compute for all subjects/ROIs)
conditions : subvocal speech ;
local processing (run on this computer)
CONN: RUNNING ANALYSIS STEP (ROI-to-ROI or seed-to-voxel analyses)
Step 1/3: ROI-to-voxel first-level analyses
first-level data in D:\conn\conn_project_t1_42\results\firstlevel\SBC_01
Error: Permission denied
There was a problem writing to the header of
"D:\conn\conn_project_t1_42\results\firstlevel\SBC_01\corr_Subject020_Condition001_Source155.nii"
ERROR DESCRIPTION:

Error using nifti/create (line 26)
Unable to write header for "D:\conn\conn_project_t1_42\results\firstlevel\SBC_01\corr_Subject020_Condition001_Source155.nii".
Error in spm_create_vol>create_vol (line 210)
create(N);
Error in spm_create_vol (line 17)
v = create_vol(V(i));
Error in spm_write_vol (line 83)
V = spm_create_vol(V);
Error in conn_process (line 2446)
spm_write_vol(V,tanh(t));
Error in conn_process (line 47)
case 'analyses_gui_seedandroi',conn_disp(['CONN: RUNNING ANALYSIS STEP (ROI-to-ROI or seed-to-voxel analyses)']); conn_process([10,11,15],varargin{:});
Error in conn (line 7662)
else conn_process('analyses_gui_seedandroi',CONN_x.Analysis); ispending=false;
Error in conn_menumanager (line 120)
feval(CONN_MM.MENU{n0}.callback{n1}{1},CONN_MM.MENU{n0}.callback{n1}{2:end});
CONN19.c
SPM12 + DAiSS DEM FieldMap MEEGtools
Matlab v.2020b
project: CONN19.c
storage: 1619.6Gb available
spm @ D:\spm12
conn @ D:\conn

Threaded View

TitleAuthorDate
elen24 Feb 17, 2021
RE: unable to write the header...
Alfonso Nieto-Castanon Feb 19, 2021
elen24 Feb 26, 2021
Alfonso Nieto-Castanon Feb 26, 2021
elen24 Feb 26, 2021
Alfonso Nieto-Castanon Feb 26, 2021
elen24 Feb 28, 2021