Ok, seems like the 360 and 60 settings didn't work either. I'll put some of 
the output using packer_log here. Maybe you can gleam something from it.

Here it is: 

Starting post-processor amazon-import                                           
                                                                                
                          ==> virtualbox-ovf: Running post-processor: 
amazon-import                                                                   
                                                                                
                     2019/01/15 11:45:07 packer.exe: 2019/01/15 11:45:07 Found 
region us-east-1                                                                
                                                                                
       2019/01/15 11:45:07 packer.exe: 2019/01/15 11:45:07 [INFO] AWS Auth 
provider use                                                                    
                                                                             d: 
"StaticProvider"                                                                
                                                                                
                                                              2019/01/15 
11:45:07 packer.exe: 2019/01/15 11:45:07 Rendered s3_key_name as pack           
                                                                                
                                                      er-import-1547570312.ova  
                                                                                
                                                                                
                                       2019/01/15 11:45:07 packer.exe: 
2019/01/15 11:45:07 Looking for image in artifac                                
                                                                                
                                 t                                              
                                                                                
                                                                                
                  2019/01/15 11:45:07 packer.exe: 2019/01/15 11:45:07 Opening 
file output-virtualb                                                            
                                                                                
     ox-ovf\packer-virtualbox-ovf-1547570312.ova to upload                      
                                                                                
                                                                          
virtualbox-ovf (amazon-import): Uploading output-virtualbox-ovf\packer-virtu    
                                                                                
                                                             
albox-ovf-1547570312.ova to s3://packertestbucket/packer-import-1547570312.ova  
                                                                                
                                                                     
virtualbox-ovf (amazon-import): Completed upload of output-virtualbox-ovf\pa    
                                                                                
                                                             
cker-virtualbox-ovf-1547570312.ova to 
s3://packertestbucket/packer-import-154757                                      
                                                                                
                           0312.ova                                             
                                                                                
                                                                                
            2019/01/15 12:16:21 packer.exe: 2019/01/15 12:16:21 Calling EC2 to 
import from s                                                                   
                                                                              
3://packertestbucket/packer-import-1547570312.ova                               
                                                                                
                                                                     
virtualbox-ovf (amazon-import): Started import of s3://packertestbucket/pack    
                                                                                
                                                             
er-import-1547570312.ova, task id import-ami-0be69e5a5077f6e11                  
                                                                                
                                                                     
virtualbox-ovf (amazon-import): Waiting for task import-ami-0be69e5a5077f6e1    
                                                                                
                                                             1 to complete (may 
take a while)                                                                   
                                                                                
                                              2019/01/15 13:25:44 [INFO] 
(telemetry) ending amazon-import                                                
                                                                                
                                      2019/01/15 13:25:44 Deleting original 
artifact for build 'virtualbox-ovf'                                             
                                                                                
                           Build 'virtualbox-ovf' errored: 1 error(s) occurred: 
                                                                                
                                                                                
            2019/01/15 13:25:44 ui error: Build 'virtualbox-ovf' errored: 1 
error(s) occurre                                                                
                                                                                
 d:                                                                             
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                    * Post-processor failed: Import task 
import-ami-0be69e5a5077f6e11 failed with er                                     
                                                                                
                            ror: ResourceNotReady: failed waiting for 
successful resource state                                                       
                                                                                
                       * Post-processor failed: Import task 
import-ami-0be69e5a5077f6e11 failed with er                                     
                                                                                
                            ror: ResourceNotReady: failed waiting for 
successful resource state                                                       
                                                                                
                       2019/01/15 13:25:44 Builds completed. Waiting on 
interrupt barrier...                                                            
                                                                                
                2019/01/15 13:25:44 machine readable: error-count []string{"1"} 
                                                                                
                                                                                
 2019/01/15 13:25:44 ui error:                                                  
                                                                                
                                                                  ==> Some 
builds didn't complete successfully and had errors:                             
                                                                                
                                                        2019/01/15 13:25:44 
machine readable: virtualbox-ovf,error []string{"1 error(s)                     
                                                                                
                                             occurred:\n\n* Post-processor 
failed: Import task import-ami-0be69e5a5077f6e11 f                              
                                                                                
                                   ailed with error: ResourceNotReady: failed 
waiting for successful resource state                                           
                                                                                
                      "}                                                        
                                                                                
                                                                                
       2019/01/15 13:25:44 ui error: --> virtualbox-ovf: 1 error(s) occurred:   
                                                                                
                                                                                
                                                                                
                                                                                
                                                         * Post-processor 
failed: Import task import-ami-0be69e5a5077f6e11 failed with er                 
                                                                                
                                                ror: ResourceNotReady: failed 
waiting for successful resource state                                           
                                                                                
                                   ==> Builds finished but no artifacts were 
created.                                                                        
                                                                                
                                                                                
                                                                                
                                                                                
        ==> Some builds didn't complete successfully and had errors:            
                                                                                
                                                                         --> 
virtualbox-ovf: 1 error(s) occurred:                                            
                                                                                
                                                                                
                                                                                
                                                                                
                                              * Post-processor failed: Import 
task import-ami-0be69e5a5077f6e11 failed with er                                
                                                                                
                                 ror: ResourceNotReady: failed waiting for 
successful resource state                                                       
                                                                                
                                                                                
                                                                                
                                                                                
        ==> Builds finished but no artifacts were created.                      
                                                                                
                                                                         
2019/01/15 13:25:44 [INFO] (telemetry) Finalizing.                              
                                                                                
                                                                 2019/01/15 
13:25:44 waiting for all plugin processes to complete...                        
                                                                                
                                                      2019/01/15 13:25:44 
C:\Users\Morgan Davis\Desktop\packer.exe: plugin process exi                    
                                                                                
                                             ted                                
                                                                                
                                                                                
                              2019/01/15 13:25:44 C:\Users\Morgan 
Davis\Desktop\packer.exe: plugin process exi                                    
                                                                                
                             ted


On Tuesday, January 15, 2019 at 10:11:10 AM UTC-5, Rickard von Essen wrote:
>
> Some background
>
> https://github.com/hashicorp/packer/issues/6732
>
> On Tue, Jan 15, 2019 at 4:06 PM Morgan Andrew Davis <[email protected] 
> <javascript:>> wrote:
>
>> If the current run with it doesn't work i'll run it with the packer_log 
>> and put some output here. I appreciate your help thus far.
>>
>>
>> On Tuesday, January 15, 2019 at 9:52:47 AM UTC-5, Rickard von Essen wrote:
>>>
>>> If you run with PACKER_LOG=1 I think you will see a line every time it 
>>> polls AWS for the state.
>>>
>>> On Tue, Jan 15, 2019 at 3:36 PM Morgan Andrew Davis <
>>> [email protected]> wrote:
>>>
>>>> Scratch what I just posted. I grabbed the wrong file. 
>>>> examplepacker.json is: 
>>>>
>>>>
>>>> {
>>>> "_comment": "json comment... This file uses the virtualbox builder and 
>>>> then feeds it into the amazon post processor. You can remove the post 
>>>> processor and the builder can work by itself. May need to be modified to 
>>>> work with another source image",
>>>> "builders": [{
>>>> "type": "virtualbox-ovf",
>>>> "source_path": "./atomicorp-aeo-hub.ova",
>>>> "ssh_pty": "true",
>>>> "ssh_username": "root",
>>>> "ssh_password": "atomicorp",
>>>> "ssh_wait_timeout": "10000s",
>>>> "shutdown_command": "echo 'atomicorp' | sudo -S shutdown -P now",
>>>> "format": "ova"
>>>> }],
>>>> "post-processors" : [{
>>>> "type": "amazon-import",
>>>>         "access_key": "",
>>>>         "secret_key": "",
>>>>         "region": "us-east-1",
>>>>         "s3_bucket_name": "packertestbucket",
>>>>         "tags": {
>>>>              "Description": "packer/boxcutter amazon-import 
>>>> {{timestamp}}"
>>>>         }
>>>> }]
>>>> }
>>>> My bad, I have a lot of files open.
>>>> On Tuesday, January 15, 2019 at 9:32:23 AM UTC-5, Morgan Andrew Davis 
>>>> wrote:
>>>>>
>>>>> Sure. The command is export "AWS_MAX_ATTEMPTS=1000"; export 
>>>>> "AWS_POLL_DELAY_SECONDS=10"; packer build ./examplepacker.json where 
>>>>> examplepacker.json has the following inside: 
>>>>>
>>>>> {
>>>>> "builders": [{
>>>>> "type": "vmware-vmx",
>>>>> "source_path": 
>>>>> "./output-atomicorp-aeo-hub-vmware-iso/atomicorp-aeo-hub.vmx",
>>>>> "ssh_pty": "true",
>>>>> "ssh_username": "root",
>>>>> "ssh_password": "atomicorp",
>>>>> "ssh_wait_timeout": "10000s",
>>>>> "shutdown_command": "echo 'atomicorp' | sudo -S shutdown -P now",
>>>>> "format": "ova"
>>>>> }],
>>>>> "post-processors" : [{
>>>>> "type": "amazon-import",
>>>>>         "access_key": "",
>>>>>         "secret_key": "",
>>>>>         "region": "us-east-1",
>>>>>         "s3_bucket_name": "packertestbucket",
>>>>>         "tags": {
>>>>>              "Description": "packer/boxcutter amazon-import 
>>>>> {{timestamp}}"
>>>>>         }
>>>>> }]
>>>>> }
>>>>> Note that I removed the access and secret key to post the rest here. 
>>>>> I'm fairly certain that part is right and I don't need to share that 
>>>>> since 
>>>>> it is the company's. Is this what you wanted or did you want the terminal 
>>>>> output or something else? I am going to go ahead and try and run this 
>>>>> using 
>>>>> the numbers you posted up top.
>>>>> On Tuesday, January 15, 2019 at 9:24:28 AM UTC-5, Rickard von Essen 
>>>>> wrote:
>>>>>>
>>>>>> Could you show how how done that, you shouldn't get that if those 
>>>>>> take effect. (I would increase the polling intervall to something larger 
>>>>>> like 60s and set the max attempts to something more sane like 360).
>>>>>>
>>>>>> On Tue, Jan 15, 2019 at 3:19 PM Morgan Andrew Davis <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> Hello again. I was hoping someone could help me with another issue. 
>>>>>>> Hopefully, this will be the last one for the current project. When I am 
>>>>>>> running an amazon import with packer using the AWS_MAX_ATTEMPTS thing I 
>>>>>>> get 
>>>>>>> an error like: ResourceNotReady: waiting for successful resource state. 
>>>>>>> Even when I set the max attempts and the interval to something 
>>>>>>> ridiculous 
>>>>>>> like 1000 and 10 it still gives me this. Does anyone have advice as to 
>>>>>>> how 
>>>>>>> to overcome this? I appreciate any help you can give me.
>>>>>>>
>>>>>>> -- 
>>>>>>> This mailing list is governed under the HashiCorp Community 
>>>>>>> Guidelines - https://www.hashicorp.com/community-guidelines.html. 
>>>>>>> Behavior in violation of those guidelines may result in your removal 
>>>>>>> from 
>>>>>>> this mailing list.
>>>>>>>  
>>>>>>> GitHub Issues: https://github.com/mitchellh/packer/issues
>>>>>>> IRC: #packer-tool on Freenode
>>>>>>> --- 
>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>> Groups "Packer" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>>> send an email to [email protected].
>>>>>>> To view this discussion on the web visit 
>>>>>>> https://groups.google.com/d/msgid/packer-tool/88024ca4-3e93-4b04-9421-bf9c4b1c09be%40googlegroups.com
>>>>>>>  
>>>>>>> <https://groups.google.com/d/msgid/packer-tool/88024ca4-3e93-4b04-9421-bf9c4b1c09be%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>> -- 
>>>> This mailing list is governed under the HashiCorp Community Guidelines 
>>>> - https://www.hashicorp.com/community-guidelines.html. Behavior in 
>>>> violation of those guidelines may result in your removal from this mailing 
>>>> list.
>>>>  
>>>> GitHub Issues: https://github.com/mitchellh/packer/issues
>>>> IRC: #packer-tool on Freenode
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Packer" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/packer-tool/48215ae3-1005-4cc4-a205-4642e01fe65c%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/packer-tool/48215ae3-1005-4cc4-a205-4642e01fe65c%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> -- 
>> This mailing list is governed under the HashiCorp Community Guidelines - 
>> https://www.hashicorp.com/community-guidelines.html. Behavior in 
>> violation of those guidelines may result in your removal from this mailing 
>> list.
>>  
>> GitHub Issues: https://github.com/mitchellh/packer/issues
>> IRC: #packer-tool on Freenode
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Packer" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/packer-tool/bfea7a77-6921-4ae4-8d3c-4a6a6c57837c%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/packer-tool/bfea7a77-6921-4ae4-8d3c-4a6a6c57837c%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/e4b9c67b-8762-4622-a809-616eff0beed3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to