Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6637411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:18:42+00:00 2026-05-25T23:18:42+00:00

My solr service works without HTTP authentication, but my webhost provides it and I’d

  • 0

My solr service works without HTTP authentication, but my webhost provides it and I’d like to take advantage of it.

I’ve been given a username and password to access my solr service by dotcloud in the form of a url:

‘http://dotcloud:XXXXXXXXXXXXXXXXXXXX@gigsmash-teamfoobar.dotcloud.com/solr/’

When I point my browser to this address, it works just fine.

In my settings.py file I have the following line:

    HAYSTACK_SOLR_URL = 'http://dotcloud:XXXXXXXXXXXXXXXXXXX@gigsmash-teamfoobar.dotcloud.com/solr/' 

but when I run ./manage.py build_solr_schema, I get the following error:

ValueError: invalid literal for int() with base 10: ‘XXXXXXXXXXXXXXXXXX@gigsmash-teamfoobar.dotcloud.com’

I don’t have any problem building a schema if I remove the URL, but then I am unable to build an index (“Error 401: UNAUTHORIZED”) which, of course, makes sense.

I can’t find anything in the haystack docs that talks about authentication. This seems like something that would be solved by an extra couple of lines in settings.py like:

    HAYSTACK_SOLR_USER = 'dotcloud'
    HAYSTACK_SOLR_PSSWD = 'XXXXXXXXXXXXXXXXXXX'

but, no dice. A complete list of the Haystack settings reveals nothing along those lines: http://docs.haystacksearch.org/dev/settings.html .

Any ideas??

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:18:43+00:00Added an answer on May 25, 2026 at 11:18 pm

    I ran into the same issue on dotcloud. The error actually isn’t in Haystack — it’s in pysolr. Pysolr assumes that if there’s a colon in the url, everything after it must be a port number.

    One short term fix would be to use the following config on your dotcloud solr service to disable authentication:

    config:
    solr_authentication: false

    I would only do this in a dev environment and if you have data up there that isn’t sensitive (since anybody could get to that url). The ultimate solution is to patch pysolr.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We can use solr range query like: http://localhost:8983/solr/select?q=queryStr&fq=x:[10 TO 100] AND y:[20 TO 300]
I implemented Solr SpellCheck Component based on the document from http://wiki.apache.org/solr/SpellCheckComponent , it works
in solr schema the defaultOperator value is OR but when i use browse(http://localhost:8983/solr/browse)for searching
I'm working with Solr and I'd like to know if it is possible to
I started Solr and ran the following query: curl http://localhost:8983/solr/dataimport?command=full-import&commit=true I then checked the
I need to customize Solr highlighting prefix and suffix like this: <span class=highlight>text</span> instead
I built a web service A which use Solr as its text search engine.
I am using Solr/SolrNet and would like to use the MoreLikeThisHandler to provide my
are you aware of the best companies which provide apache solr AS A SERVICE?
i have been playing around with apache SOLR since last 3 weeks and very

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.