Important note about SSL VPN compatibility for 20.0 MR1 with EoL SFOS versions and UTM9 OS. Learn more in the release notes.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

The file that you are trying to import is not a supported file format. Only TAR file format is supported.

Trying to import the webexceptions.

File is Entities.xml

tar file is created by cmd

tar -cvf newtarfilename.tar Entities.xml
The command is straight from the manual. I used 7zip too, which was my favorite tool in the past for this.

When importing a red box appears "The file that you are trying to import is not a supported file format. Only TAR file format is supported."

Well, it is .tar

applog.log shows nothing.
csc.log in Debug mode shows:

tail /log/csc.log -f |grep import



DEBUG     Jul 13 18:02:52  [worker:29578]: # OPCODE Called: 'upload_text_import_file'
MESSAGE   Jul 13 18:02:52  [worker:29578]: {"request":{"method":"opcode","name":"upload_text_import_file","version":"1.8","type":"json","length":396,"data":{ "___serverport": 4444, "importtype": "2", "___component": "GUI", "transactionid": "5635995", "mode": 727, "currentlyloggedinuserid": 153, "importfile": "\/sdisk\/upload\/newtarfilename.tar", "APIVersion": "1800.2", "___serverprotocol": "HTTP", "___username": "xxxx@xxxxxxxxx.xxx", "___meta": { "sessionType": 1 }, "___serverip": "172.xxx.xxx.xxx", "currentlyloggedinuserip": "10.xxx.xxx.31" }}}
DEBUG     Jul 13 18:02:52  [worker:29578]: ### insert_uuid: hdr: len=363 content=0 method=0 name=upload_text_import_file
DEBUG     Jul 13 18:02:52  [upload_text_import_file:29578]: init_db_handle_pl: Initializing DBI DB handle
INFO      Jul 13 18:02:52  [upload_text_import_file:29578]: creating json object
INFO      Jul 13 18:02:52  [upload_text_import_file:29578]: do_get: SET_Maintenance
DEBUG     Jul 13 18:02:52  [upload_text_import_file:29578]: do_prep_query: PREPSTMT without ARGS: select value from tblconfiguration where key='ips_cat_version'
DEBUG     Jul 13 18:02:52  [upload_text_import_file:29578]: execute_prepare_query: Initializing database for nobody:corporate
INFO      Jul 13 18:02:52  [upload_text_import_file:29578]: CSC::PREPSTMT : Create new connection.
DEBUG     Jul 13 18:02:52  [upload_text_import_file:29578]: get_txid:Transaction ID: 191534065
DEBUG     Jul 13 18:02:52  [upload_text_import_file:29578]: do_prep_query: PREPSTMT: 'select value from tblconfiguration where key='ips_cat_version''
INFO      Jul 13 18:02:52  [upload_text_import_file:29578]: do_at: (clean_importfiles:delete)
ERROR     Jul 13 18:02:52  [timer:1654]: delete_sched_node: timer clean_importfiles do not exist
DEBUG     Jul 13 18:02:52  [upload_text_import_file:29578]: log_exec: Command: /bin/mv $importFile /sdisk/APIImport.tar
INFO      Jul 13 18:02:52  [upload_text_import_file:29578]: csc_execve: Child exited with status 0
INFO      Jul 13 18:02:52  [upload_text_import_file:29578]: create_act_out_perl_obj: varname=out
INFO      Jul 13 18:02:52  [upload_text_import_file:29578]: create_act_out_perl_obj: out.status=0
DEBUG     Jul 13 18:02:52  [upload_text_import_file:29578]: log_exec: Command: crimport -s -i /sdisk/APIImport.tar  -a ?? -v /_conf/csc/IOMappingFiles/ -l /log/apiparser.log -C ?? $CURR_API_DISPLAY_VERSION $ips_cat_corp_ver
ERROR     Jul 13 18:02:52  [upload_text_import_file:29578]: csc_execve: Child exited with status 10
ERROR     Jul 13 18:02:52  [upload_text_import_file:29578]: log_exec: Failed Command: crimport -s -i /sdisk/APIImport.tar  -a ?? -v /_conf/csc/IOMappingFiles/ -l /log/apiparser.log -C ?? $CURR_API_DISPLAY_VERSION $ips_cat_corp_ver
INFO      Jul 13 18:02:52  [upload_text_import_file:29578]: create_act_out_perl_obj: varname=out
INFO      Jul 13 18:02:52  [upload_text_import_file:29578]: create_act_out_perl_obj: out.status=10
INFO      Jul 13 18:02:52  [upload_text_import_file:29578]: create_act_out_perl_obj: out.error=/sdisk/api-2021-07-13-18-02-52/Entities.xml:1778: parser error : Opening and ending tag mismatch: Configuration line 2 and WebFilterException
WARNING   Jul 13 18:02:52  [upload_text_import_file:29578]: Action with NOFAIL Failed.
DEBUG     Jul 13 18:02:52  [upload_text_import_file:29578]: destroy_db_handle_pl: Destroying DBI DB handle.
INFO      Jul 13 18:02:52  [upload_text_import_file:29578]: opcode 'upload_text_import_file': time taken: 0.130764788 seconds
DEBUG     Jul 13 18:02:52  [worker:29578]: # OPCODE Exited: 'upload_text_import_file' with Status: '500'



looks like there is some error in the xml file - can't it show a correct error then?


This thread was automatically locked due to age.