Results 1 to 8 of 8

Thread: Problems with DenyHosts sync-timestamp or long int exceeds XML-RPC limits? See here.

  1. #1
    Join Date
    Apr 2009
    Beans
    Hidden!
    Distro
    Ubuntu

    Exclamation Problems with DenyHosts sync-timestamp or long int exceeds XML-RPC limits? See here.

    If you use DenyHosts in Ubuntu Lucid 10.04, you are all but guaranteed to have the problems below.

    I'm posting this solution to two problems in DenyHosts. Solving these problems took a lot of work. So I'm trying to make it much easier for the next person who has these problems.

    The following error logs are actually one problem. However the solution is a two step fix.

    2010-09-27 08:59:06,673 - sync : ERROR [Errno 2] No such file or directory: '/var/lib/denyhosts/sync-timestamp'

    2010-09-27 10:59:14,193 - sync : ERROR long int exceeds XML-RPC limits
    Fixing the long int exceeds XML-RPC limits.
    Code:
    sudo nano -w /usr/share/denyhosts/DenyHosts/sync.py
    Look for the following and make the change from a to w.
    fp = open(os.path.join(self.__work_dir,
    SYNC_TIMESTAMP), "a")
    fp = open(os.path.join(self.__work_dir,
    SYNC_TIMESTAMP), "w")
    Now to fix the missing sync-timestamp file.
    Code:
    sudo touch /var/lib/denyhosts/sync-timestamp
    But we need to also change the UNIX time in the file to something more appropriate in order to stop the error message long int exceeds XML-RPC limits. Find the current UNIX time.
    Code:
    date +%s
    The result should look like this.
    Code:
    1285624219
    Just copy and paste the UNIX time number into sync-timestamp, removing anything that may already be present in the sync-timestamp file. Save and restart DenyHosts.

    Code:
    sudo service denyhosts restart
    Last edited by MechaMechanism; September 27th, 2010 at 11:05 PM.

  2. #2
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Problems with DenyHosts sync-timestamp or long int exceeds XML-RPC limits? See he

    Thank you for posting this information.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  3. #3
    Join Date
    May 2005
    Location
    The Netherlands
    Beans
    9
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Problems with DenyHosts sync-timestamp or long int exceeds XML-RPC limits? See he

    Thank you, was looking for a fix!

  4. #4
    Join Date
    Apr 2009
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Problems with DenyHosts sync-timestamp or long int exceeds XML-RPC limits? See he

    Quote Originally Posted by Mies View Post
    Thank you, was looking for a fix!
    Your welcome.

  5. #5
    Join Date
    Aug 2006
    Location
    World wide
    Beans
    191
    Distro
    Lubuntu 11.10 Oneiric Ocelot

    Re: Problems with DenyHosts sync-timestamp or long int exceeds XML-RPC limits? See he

    This problem is not only for 10.04, I'm running 10.10, and had the same issue. Have to wait an hour to see if the update works this time.

    Just checked, denyhosts updated successfully.

    I havent checked, is there a launchpad bug report on this issue?
    Last edited by msandoy; March 31st, 2011 at 03:09 AM. Reason: Added result.
    AMD Phenom II x6 2.8/3.3, 8 GB ram, GTX 550Ti 1024MB gfx, Xubuntu 13.10.

  6. #6
    Join Date
    Apr 2009
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Problems with DenyHosts sync-timestamp or long int exceeds XML-RPC limits? See he

    Quote Originally Posted by msandoy View Post
    I havent checked, is there a launchpad bug report on this issue?
    This issue has been fixed upstream. I imagine Natty 11.04 has the updated package.

  7. #7
    Join Date
    Sep 2011
    Beans
    1

    Re: Problems with DenyHosts sync-timestamp or long int exceeds XML-RPC limits? See he

    I'm seeing the same thing and am running Katya:

    [wc 17] /var/lib/denyhosts # cat /etc/*release
    DISTRIB_ID=LinuxMint
    DISTRIB_RELEASE=11
    DISTRIB_CODENAME=katya
    DISTRIB_DESCRIPTION="Linux Mint 11 Katya"

    Thanks to the OP for the fix!

  8. #8
    Join Date
    Oct 2009
    Beans
    1

    Re: Problems with DenyHosts sync-timestamp or long int exceeds XML-RPC limits? See he

    My thanks as well

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
  •