question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

freenas-api-iscsi: Missing HTTP content-type

See original GitHub issue

Hello, I can’t create PVCs with the freenas-api-iscsi-driver running TrueNAS-SCALE-22.02.0.1. I tried connecting via http and https and used a known working API-Key that I tested using curl.

The log show the following issue: Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"iot", Name:"mosquitto-configinc", UID:"dd80c885-8b48-4753-9e2d-16679f65deb2", APIVersion:"v1", ResourceVersion:"1157939", FieldPath:""}): type: 'Warning' reason: 'ProvisioningFailed' failed to provision volume with StorageClass "freenas-iscsi-csi": rpc error: code = Unavailable desc = unexpected HTTP status code received from server: 502 (Bad Gateway); malformed header: missing HTTP content-type.

Any idea what could cause this and how to fix it?

Best regards Thies

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
tbrtjecommented, May 6, 2022

Hi there, I managed to get it to work. It turned out to be a networking issue. The cluster nodes weren’t able to connect to my truenas instance. The debug logs showed an EHOSTUNREACH error message that made it clear, so there wasn’t really a bug.

1reaction
lknitecommented, Oct 22, 2022

similar issue, after redeploying a cluster and associated apps via gitops, turned out the cluster dns wasn’t searching using a domain, so specifying an fqdn fixed the issue… or of course, could have added the domain to the /etc/resolv file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem accessing the API | TrueNAS Community
Hello, I'm new to FreeNAS API usage and just starting to play around with ... FreeNAS API query import requests import json from...
Read more >
Failure to mount volume provisioned in Truenas via iscsi driver
Hi @travisghansen, I'm facing some strange behaviour in my cluster and can't find whats wrong, but it feels like the code is not...
Read more >
11. Sharing — FreeNAS®11.2-U3 User Guide Table of Contents
This section demonstrates configuration and fine-tuning of AFP, NFS, SMB, WebDAV, and iSCSI shares. FTP and SSH configurations are described in Services. 11.1....
Read more >
Using TrueNAS to provide persistent storage for Kubernetes
I wanted to provide both iSCSI and NFS, so under k8s I created more sub datasets iscsi and nfs . Brevity is important...
Read more >
FreeNAS backend for ZFS over iSCSI | Proxmox Support Forum
We have toyed around with other back end ZFS solutions and really have not been pleased with them. Admittedly we have almost NO...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found