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

breizorro returns error code 255 after 0:00:00 #33

Open
Victoria-Samboco opened this issue Apr 1, 2024 · 8 comments
Open

breizorro returns error code 255 after 0:00:00 #33

Victoria-Samboco opened this issue Apr 1, 2024 · 8 comments

Comments

@Victoria-Samboco
Copy link

Not sure what is the problem please advise:

─────────────────────────────── solarkat.make_mask.load_scan_numbers ────────────────────────────────
2024-04-01 14:11:57 STIMELA.solarkat.make_mask.load_scan_numbers INFO: ### validated inputs
2024-04-01 14:11:57 STIMELA.solarkat.make_mask.load_scan_numbers INFO: cab print(f"Loading:
2024-04-01 14:11:57 STIMELA.solarkat.make_mask.load_scan_numbers INFO: scans_file =
obs81695/scan_numbers.txt
2024-04-01 14:11:57 STIMELA.solarkat.make_mask.load_scan_numbers INFO: singularity image
/home/samboco/.singularity/quay.io-stimela2-python-astro:cc0.1.2.simg exists

running

Loading scan numbers................

Loaded scan numbers: ['3', '5', '7', '9', '11', '13', '15', '17', '19', '21', '25', '27']

2024-04-01 14:11:57 STIMELA.solarkat.make_mask.load_scan_numbers INFO: returns exit code 0 after
0:00:00
2024-04-01 14:11:57 STIMELA.solarkat.make_mask INFO: processing step 'making_masks'
────────────────────────────────── solarkat.make_mask.making_masks ──────────────────────────────────
2024-04-01 14:11:57 STIMELA.solarkat.make_mask.making_masks INFO: ### validated inputs
2024-04-01 14:11:57 STIMELA.solarkat.make_mask.making_masks INFO: recipe 'making_masks':
2024-04-01 14:11:57 STIMELA.solarkat.make_mask.making_masks INFO: region_dir =
obs81695/region_files
2024-04-01 14:11:57 STIMELA.solarkat.make_mask.making_masks INFO: scan_list = [3, 5, ..., 27]
2024-04-01 14:11:57 STIMELA.solarkat.make_mask.making_masks INFO: running recipe 'making_masks'
2024-04-01 14:11:57 STIMELA.solarkat.make_mask.making_masks INFO: for loop iteration 0: scan = 3
for loop iteration 0: scan = 3
2024-04-01 14:11:57 STIMELA.solarkat.make_mask.making_masks INFO: processing step 'make_mask'
───────────────────────────── solarkat.make_mask.making_masks.make_mask ─────────────────────────────
step 'solarkat.make_mask.making_masks.make_mask' has failed, aborting the recipe
─────────────────────────────────── detailed error report follows ───────────────────────────────────
⚠ step 'solarkat.make_mask.making_masks.make_mask' has failed, aborting the recipe
└── error running cab 'breizorro'
└── breizorro returns error code 255 after 0:00:00
2024-04-01 14:11:57 STIMELA.solarkat.make_mask ERROR: step 'solarkat.make_mask' has failed, aborting
the recipe
─────────────────────────────────── detailed error report follows ───────────────────────────────────
⚠ step 'solarkat.make_mask' has failed, aborting the recipe
└── step 'solarkat.make_mask.making_masks' has failed, aborting the recipe
└── step 'solarkat.make_mask.making_masks.make_mask' has failed, aborting the recipe
└── error running cab 'breizorro'
└── breizorro returns error code 255 after 0:00:00

@IanHeywood
Copy link
Collaborator

This might be better placed in the stimela issues page, it doesn't look like breizorro is even being executed here...

@Victoria-Samboco
Copy link
Author

This might be better placed in the stimela issues page, it doesn't look like breizorro is even being executed here...

Thank you! I will put it there.

@o-smirnov
Copy link
Contributor

Which machine/directory are you running it on? I can try to recreate as you.

@Victoria-Samboco
Copy link
Author

Which machine/directory are you running it on? I can try to recreate as you.

On garfunkel
home/samboco/solarkat/solarkat-pipeline
I am running the command stimela run solarkat.yaml solarkat obs=L6 -s make-mask:image-7

@o-smirnov
Copy link
Contributor

And using which venv?

@Victoria-Samboco
Copy link
Author

And using which venv?

Iam using stimela_env here: source ~/Virtual_enviroments/stimela_env/bin/activate

@o-smirnov
Copy link
Contributor

OK, there was a small bug in stimela which prevented the full log from nested recipe steps being printed. Once I fixed that, the reason became obvious:

2024-04-02 23:08:44 STIMELA.solarkat.make_mask.making_masks.make_mask INFO: singularity image /home/samboco/.singularity/quay.io-stimela2-python-astro:cc0.1.2.simg exists                                       
### running /usr/local/bin/singularity exec --containall --pwd /home/samboco/solarkat/solarkat-pipeline --bind /home/samboco/solarkat/solarkat-pipeline:/home/samboco/solarkat/solarkat-pipeline:rw              
/home/samboco/.singularity/quay.io-stimela2-python-astro:cc0.1.2.simg breizorro --restored-image obs81695/ms_scans/sun_images/1695970273_sdp_l0_719ch_SN2021smj_scan_3-MFS-image.fits --merge                    
obs81695/region_files/sun_region_3.reg --threshold 1e+31 --outfile obs81695/sun_masks/1695970273_sdp_l0_719ch_SN2021smj_scan_3-mask.fits                                                                         
# FATAL:   "breizorro": executable file not found in $PATH                                                                                                                                                       
2024-04-02 23:08:44 STIMELA.solarkat.make_mask.making_masks.make_mask ERROR: step 'solarkat.make_mask.making_masks.make_mask' has failed, aborting the recipe                                                    
───────────────────────────────────────────────────────────────────────────────────────── detailed error report follows ─────────────────────────────────────────────────────────────────────────────────────────

You are defining your own breizorro cab (why? Any reason not to use cult-cargo? A custom version?). Assuming you mean to do this, I see you want to run a version from a virtual environment. However, you need to set opts: backend: select: native for this to work.

At the moment it's still trying to run your cab with the singularity backend, but since you haven't provided any image information, it falls back to a default python image, which of course doesn't contain a breizorro command.

So: fix your cab definition, or use the standard cult-cargo cab. But the logging back was legit, thanks for picking that up!

@Victoria-Samboco
Copy link
Author

OK, there was a small bug in stimela which prevented the full log from nested recipe steps being printed. Once I fixed that, the reason became obvious:

2024-04-02 23:08:44 STIMELA.solarkat.make_mask.making_masks.make_mask INFO: singularity image /home/samboco/.singularity/quay.io-stimela2-python-astro:cc0.1.2.simg exists                                       
### running /usr/local/bin/singularity exec --containall --pwd /home/samboco/solarkat/solarkat-pipeline --bind /home/samboco/solarkat/solarkat-pipeline:/home/samboco/solarkat/solarkat-pipeline:rw              
/home/samboco/.singularity/quay.io-stimela2-python-astro:cc0.1.2.simg breizorro --restored-image obs81695/ms_scans/sun_images/1695970273_sdp_l0_719ch_SN2021smj_scan_3-MFS-image.fits --merge                    
obs81695/region_files/sun_region_3.reg --threshold 1e+31 --outfile obs81695/sun_masks/1695970273_sdp_l0_719ch_SN2021smj_scan_3-mask.fits                                                                         
# FATAL:   "breizorro": executable file not found in $PATH                                                                                                                                                       
2024-04-02 23:08:44 STIMELA.solarkat.make_mask.making_masks.make_mask ERROR: step 'solarkat.make_mask.making_masks.make_mask' has failed, aborting the recipe                                                    
───────────────────────────────────────────────────────────────────────────────────────── detailed error report follows ─────────────────────────────────────────────────────────────────────────────────────────

You are defining your own breizorro cab (why? Any reason not to use cult-cargo? A custom version?). Assuming you mean to do this, I see you want to run a version from a virtual environment. However, you need to set opts: backend: select: native for this to work.

At the moment it's still trying to run your cab with the singularity backend, but since you haven't provided any image information, it falls back to a default python image, which of course doesn't contain a breizorro command.

So: fix your cab definition, or use the standard cult-cargo cab. But the logging back was legit, thanks for picking that up!

Thank you, l will fix it and run it again.

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

3 participants