Project

General

Profile

Issue at the end of installation "getaddrinfo: Name or service not known"

Added by Martijn Jonker over 10 years ago

Solution for unknown host in third post.

Hi! I've managed to successfully install Redmine following this tutorial: http://grandslam90.wordpress.com/2012/05/22/howto-redmine-2-0-0-passenger-subversion-repositories-in-ubuntu-12-04/

However, something seems to have gone wrong at the end when doing:

ruby /usr/share/redmine/extra/svn/reposman.rb --redmine my_domain.com --svn-dir /var/svn --owner www-data --url http://my_domain.com/svn --verbose --key=my_api_key

(obviously with my own api key and domain)

It is giving the following error:

querying Redmine for projects...
Unable to connect to http://my_domain.com/sys/: getaddrinfo: Name or service not known

I am not sure what this means and if I need to resolve it. Any help would be appreciated.


Replies (5)

RE: Issue at the end of installation "getaddrinfo: Name or service not known" - Added by Martijn Jonker over 10 years ago

I have run into some more issues, after googling the above issues and other for hours I still have not found a solution. It doesn't help that I am new to redmine and everything else. If someone can help me out that would be greatly appreciated.

The command:

svn log

Errors:

svn: '.' is not a working copy

(I get this with some other svn commands also)

-

Under my project > repository it gives the error:

The entry or revision was not found in the repository.

And I am still having issues resolving host name like in the first post (it also says host not found when trying to checkout using 'svn checkout'). I've googled but found no solutions, I am not using a proxy and the domain name is pingable and accessible and everything.

Edit:

Environment:
  Redmine version                          2.0.0.stable
  Ruby version                             1.9.3 (x86_64-linux)
  Rails version                            3.2.3
  Environment                              production
  Database adapter                         Mysql2
Redmine plugins:
  no plugin installed

Edit2: I am missing an A record thus the unknown host, I've just added it and should hopefully resolve the unknown host issue.
Edit3: Uknown host issue still not fixed, I can not ping redmine.mydomain.com from the machine redmine is hosted on, but I can ping it fine from my own PC, so can others.

RE: Issue at the end of installation "getaddrinfo: Name or service not known" - Added by Martijn Jonker over 10 years ago

Alright so I managed to fix the unknown host stuff by moving

resolv.conf
from /etc then moving it back. After that I could resolve everything again and no more unknown hosts. This in turn fixed the issue I had with not being able to check things out or use other svn commands.

The original error (getaddrinfo: Name or service not known) was also fixed cause of this.

But one issue remains, under my project > repository it says:

The entry or revision was not found in the repository.

RE: Issue at the end of installation "getaddrinfo: Name or service not known" - Added by Martijn Jonker over 10 years ago

Alright so I made a svn repository at /var/svn/test-project - and added file:////var/svn/test-project as url under test project > settings > repository and it is now working.

I just don't get how to actually checkout using TortoiseSVN?

RE: Issue at the end of installation "getaddrinfo: Name or service not known" - Added by Mischa The Evil over 10 years ago

Martijn Jonker wrote:

Alright so I made a svn repository at /var/svn/test-project - and added file:////var/svn/test-project as url under test project > settings > repository and it is now working.

I just don't get how to actually checkout using TortoiseSVN?

You should use the correct repo url in TortoiseSVN. In the case of the howto you have used to install your stack and the repo name you've given above, it should be something like http://my_domain.com/svn/test-project.

Note that TortoiseSVN is a Windows client for the Subversion server (component) that is running on your Ubuntu Redmine stack.

RE: Issue at the end of installation "getaddrinfo: Name or service not known" - Added by Martijn Jonker over 10 years ago

Yes I got confused, I'm new to all this. I'm using git now which is working nicely.

    (1-5/5)