Results 1 to 6 of 6

Thread: noip2 "Can't locate configuration file..." - but it's right there!

  1. #1
    Join Date
    Aug 2006
    Location
    Long Beach, CA
    Beans
    132
    Distro
    Ubuntu 9.10 Karmic Koala

    noip2 "Can't locate configuration file..." - but it's right there!

    I'd like to get the No-IP DUC working on my computer, but I can't figure out what to make of this...
    Code:
    giggity@rcr-laptop ~ $ sudo noip2 -C
    [sudo] password for rob: 
    
    Auto configuration for Linux client of no-ip.com.
    
    Multiple network devices have been detected.
    
    Please select the Internet interface from this list.
    
    By typing the number associated with it.
    0    eth0
    1    wlan0
    0
    Please enter the login/email string for no-ip.com  giggity@giggity.com
    Please enter the password for user 'giggity@giggity.com'  **********
    
    Only one host [rcr-laptop.no-ip.org] is registered to this account.
    It will be used.
    Do you wish to run something at successful update?[N] (y/N)  ^M
    
    New configuration file '/usr/local/etc/no-ip2.conf' created.
    
    giggity@rcr-laptop ~ $ ls /usr/local/etc
    no-ip2.conf
    giggity@rcr-laptop ~ $ noip2
    Can't locate configuration file /usr/local/etc/no-ip2.conf. (Try -c). Ending!
    As you can see, the configuration file is right there... anyone else having this problem? Better yet, anyone know how to fix this?

  2. #2
    Join Date
    Feb 2009
    Beans
    1

    Post Re: noip2 "Can't locate configuration file..." - but it's right there!

    Hi.
    I had the same problem like you, i fixed giving to the noip2 the path where is the noip2-configuration file with the option -c.
    First I configured (the same way as you), then...
    # sudo noip2 -c /var/lib/noip2/noip2.conf

    See you.

  3. #3
    Join Date
    Oct 2008
    Beans
    16

    Re: noip2 "Can't locate configuration file..." - but it's right there!

    Well I tried this way and it worked.
    First type in the terminal
    Code:
    sudo chmod 700 /usr/local/bin/noip2
    chown root:root /usr/local/bin/noip2
    You will notice that "sudo noip2" will now execute the process.

    Next, save the following shell script
    #! /bin/sh
    # /etc/init.d/noip2.sh

    # Supplied by no-ip.com
    # Modified for Debian GNU/Linux by Eivind L. Rygge <eivind@rygge.org>
    # corrected 1-17-2004 by Alex Docauer <alex@docauer.net>

    # . /etc/rc.d/init.d/functions # uncomment/modify for your killproc

    DAEMON=/usr/local/bin/noip2
    NAME=noip2

    test -x $DAEMON || exit 0

    case "$1" in
    start)
    echo -n "Starting dynamic address update: "
    start-stop-daemon --start --exec $DAEMON
    echo "noip2."
    ;;
    stop)
    echo -n "Shutting down dynamic address update:"
    start-stop-daemon --stop --oknodo --retry 30 --exec $DAEMON
    echo "noip2."
    ;;

    restart)
    echo -n "Restarting dynamic address update: "
    start-stop-daemon --stop --oknodo --retry 30 --exec $DAEMON
    start-stop-daemon --start --exec $DAEMON
    echo "noip2."
    ;;

    *)
    echo "Usage: $0 {start|stop|restart}"
    exit 1
    esac
    exit 0
    as "noip2.sh" and copy it in "/etc/init.d" directory.
    Finally, type the following
    Code:
    sudo update-rc.d noip2.sh defaults 90
    so that the process will start automatically on startup.

  4. #4
    Join Date
    Aug 2006
    Location
    Long Beach, CA
    Beans
    132
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: noip2 "Can't locate configuration file..." - but it's right there!

    Nice, it worked. Once again, the solution was so simple I'm embarrassed.

    What a coincidence you posted the answer only a week before I tried this again!

  5. #5
    Join Date
    Oct 2006
    Location
    Argentina
    Beans
    251
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: noip2 "Can't locate configuration file..." - but it's right there!

    Hey, how do I force an update... I want to check on no-ip site that the update really worked.

  6. #6
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    14,812
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: noip2 "Can't locate configuration file..." - but it's right there!

    If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •