-
Notifications
You must be signed in to change notification settings - Fork 683
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
profile upload fails to compliance server #1298
Comments
I seem to be having the same issue. Here is the error message I am getting on the compliance server:
|
Seems like you are including existing controls as well. Mine is a simple include_controls only:
|
@donwlewis I tried both simple skip's and then tried the overloaded control as all the examples show the overloaded version . I figured it was worth a try. To be honest it looks like your not running a inspec compliance login first or if you are .then maybe this is another issue ;) |
Yes I am running the inspec compliance login before, and I get the same On Sat, Nov 19, 2016, 12:03 AM poshpaws notifications@github.com wrote:
|
Hi there I'm running inspec 1.8.0 on windows and I'm having an issue with I can share the profile and the archive if that helps. if I just zip the profile using 7zip and upload its fine if you want me to raise seperate issue I will Best Regards Gary |
You need the latest version the Chef Compliance Server 1.7.7. If the issue continues with that version, please let us know. |
@chris-rock I'm getting this running latest master. |
When profiles are uploaded the compliance server shells out to If the profile has no dependencies, this works fine, but if there are dependencies it needs to be authenticated to download them from the compliance server. If I'm not logged in and try to check the profile on my local machine:
The server is doing the same thing, since it just shells out without first authenticating. |
@donwlewis If you upload using the latest version of inspec (1.8.0 right now), it should vendor all of the dependencies before upload and you won't have this problem on the server, since the vendored dependencies will be present in the tarball that gets uploaded. See http://lollyrock.com/articles/chef-compliance-meta-profiles/ for a good explanation of how that stuff all works. @username-is-already-taken2 Which version of the compliance server are you running? If it's the latest stable (1.7.7) please open a separate issue and we'll take a look. Going to close this now but please reopen if this remains a problem. |
@smith Is this issue resolved or being followed upon in another ticket? I am using compliance 1.9.2 and inspec version 1.20.0. I am facing the same issue as described here, unable to upload the profile which has dependencies. Failing upload with an error ""Failed to POST /owners//compliance/test-inheritance/tar." |
In the logs i see error given below: Cannot fetch compliance://base/windows because your compliance token has not been I did login and generate the api_token for the user we are trying to upload the profile with. I can confirm this as i was able to upload other profiles without dependencies. |
Description
Simple inheritance test profile (attached)
attempting to upload it yelds a 500 error : Error: Response from server was: exit status 1 [status code 500]
inspec cli upload gives a slightly more verbose output , but fails:
I, [2016-11-16T10:53:25.952791 #14377] INFO -- : Checking profile in IGM_CIS-RHEL6-L1
I, [2016-11-16T10:53:25.953354 #14377] INFO -- : Metadata OK.
I, [2016-11-16T10:53:28.170759 #14377] INFO -- : Found 167 controls.
W, [2016-11-16T10:53:28.171031 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_1.1.11_Add_nodev_Option_to_Removable_Media_Partitions has no tests defined
W, [2016-11-16T10:53:28.171343 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_1.1.12_Add_noexec_Option_to_Removable_Media_Partitions has no tests defined
W, [2016-11-16T10:53:28.171412 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_1.1.13_Add_nosuid_Option_to_Removable_Media_Partitions has no tests defined
W, [2016-11-16T10:53:28.171465 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_1.2.1_Configure_Connection_to_the_RHN_RPM_Repositories has no tests defined
W, [2016-11-16T10:53:28.171511 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_1.2.5_Obtain_Software_Package_Updates_with_yum has no tests defined
W, [2016-11-16T10:53:28.171563 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_1.2.6_Verify_Package_Integrity_Using_RPM has no tests defined
W, [2016-11-16T10:53:28.171639 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_1.7_Use_the_Latest_OS_Release has no tests defined
W, [2016-11-16T10:53:28.171788 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_4.3.1_Deactivate_Wireless_Interfaces has no tests defined
W, [2016-11-16T10:53:28.171830 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_4.4.1.1_Disable_IPv6_Router_Advertisements has no tests defined
W, [2016-11-16T10:53:28.171867 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_4.4.1.2_Disable_IPv6_Redirect_Acceptance has no tests defined
W, [2016-11-16T10:53:28.171911 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_4.4.2_Disable_IPv6 has no tests defined
W, [2016-11-16T10:53:28.171969 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_4.5.1_Install_TCP_Wrappers has no tests defined
W, [2016-11-16T10:53:28.172006 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_4.5.2_Create_etchosts.allow has no tests defined
W, [2016-11-16T10:53:28.172233 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_4.5.4_Create_etchosts.deny has no tests defined
W, [2016-11-16T10:53:28.172333 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_4.6.1_Disable_DCCP has no tests defined
W, [2016-11-16T10:53:28.172378 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_4.6.2_Disable_SCTP has no tests defined
W, [2016-11-16T10:53:28.172438 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_4.6.3_Disable_RDS has no tests defined
W, [2016-11-16T10:53:28.172483 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_4.6.4_Disable_TIPC has no tests defined
W, [2016-11-16T10:53:28.172541 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_4.8_Enable_IP6tables has no tests defined
W, [2016-11-16T10:53:28.172592 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_5.1.3_Configure_etcrsyslog.conf has no tests defined
W, [2016-11-16T10:53:28.172634 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_5.1.6_Accept_Remote_rsyslog_Messages_Only_on_Designated_Log_Hosts has no tests defined
W, [2016-11-16T10:53:28.172672 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_5.3_Configure_logrotate has no tests defined
W, [2016-11-16T10:53:28.172782 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_6.3.3_Set_Lockout_for_Failed_Password_Attempts has no tests defined
W, [2016-11-16T10:53:28.172841 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_6.4_Restrict_root_Login_to_System_Console has no tests defined
W, [2016-11-16T10:53:28.172920 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_8.3_Set_GNOME_Warning_Banner has no tests defined
W, [2016-11-16T10:53:28.172978 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_9.1.10_Find_World_Writable_Files has no tests defined
W, [2016-11-16T10:53:28.173021 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_9.1.13_Find_SUID_System_Executables has no tests defined
W, [2016-11-16T10:53:28.173058 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_9.1.14_Find_SGID_System_Executables has no tests defined
W, [2016-11-16T10:53:28.173270 #14377] WARN -- : Control xccdf_org.cisecurity.benchmarks_rule_9.2.13_Check_User_Home_Directory_Ownership has no tests defined
Profile is valid
Generate temporary profile archive at /tmp/IGM_CIS-RHEL6-L120161116-14377-ghs499.tar.gz
I, [2016-11-16T10:53:28.195366 #14377] INFO -- : Generate archive /tmp/IGM_CIS-RHEL6-L120161116-14377-ghs499.tar.gz.
I, [2016-11-16T10:53:28.200844 #14377] INFO -- : Finished archive generation.
Start upload to adm_reidga2/IGM_CIS-RHEL6-L1
Uploading to Chef Compliance
Error during profile upload:
"Failed to POST /owners/adm_reidga2/compliance/IGM_CIS-RHEL6-L1/tar."
InSpec and Platform Version
version 1.4.1 os RHEL6 & OS X 10.11.6
compliance server Version: 1.6.8
Replication Case
attempt to import profile
IGM_CIS-RHEL6-L1.zip
The text was updated successfully, but these errors were encountered: