Language Selection

English French German Italian Portuguese Spanish

New Content/Layout OK?

Yes
97% (31 votes)
No
3% (1 vote)
Total votes: 32

Varnish Proxy

Silly me, a poll would not work on the new server. I forgot that with the Varnish cache proxy at the front almost all visitors arrive from the same IP address (the proxy), which means that Drupal would allocate just one vote to all (except registered and presently logged in users). With Drupal upgrade we can perhaps find polling software that overcomes this.

rpaf

You must use mod_rpaf to fix this problem that Varnish introduces.
See eg https://www.varnish-cache.org/lists/pipermail/varnish-misc/2008-September/016470.html
mod_rpaf for EL6 64bit here: http://centos.alt.ru/repository/centos/6/x86_64/mod_rpaf-0.6-2.el6.x86_64.rpm

Proxy

Thank, we will look into it. Currently, a lot of stuff other than the poll (e.g. views being counted) are not compatible with Varnish and it makes it look as though not many people visit and can participate in the site.

For sheer stats you could use

For sheer stats you could use an external (i.e. not cached by varnish) service, such as Google Analytics or run your own Piwik.

Piwik

Google Analytics is spyware, but Piwik would be a possibility (Stallman recently told me that it's good). Can it be installed on a cache proxy? I'd have to gain access to it first. Either way, this would not facilitate per-post page request count. Susan had it set up with a module, but it's no longer working correctly. In turn, rating/sorting posts by popularity is no longer possible, and that's the real downside (the front page can no longer list popular items for today).

The problem is not just that IP addresses are not unique. Some requests are never seen by the CMS and Apache.

For the non-unique addresses

For the non-unique addresses look at mod_rpaf, it was made for this situations.
Is this drupal6 or 7? With 6 varnish integration sucks from what I've seen.

See also
https://drupal.org/project/varnish
https://fourkitchens.atlassian.net/wiki/display/TECH/Configure+Varnish+3+for+Drupal+7

Agreed on Google Analytics. You can just install Piwik on the same host and tell Varnish either not to cache it or you can just set its virtualhost on a port other than 80 so it bypasses Varnish completely.

Varnish

Thanks for the pointers.

Yes, it's Drupal 6 and there are other issues that I am beginning to see, such as lack of updates from the RSS feeds around the page (I am currently investigating this, maybe it's related to a cron job or module config although I very much doubt the latter as I haven't changed configs).

Non-unique addresses could be bypassed as an issue even by writing random IP addresses, but that would enable easy poll rigging. I guess it's not essential for operation of the site, but it's a nice-to-have...

From Drupal.org: "This module provides integration between your Drupal site and the Varnish HTTP Accelerator, an advanced and very fast reverse-proxy system. Basically, Varnish handles serving static files and anonymous page-views for your site much faster and at higher volumes than Apache, in the neighborhood of 3000 requests per second."

I have had such issues with Varnish on top of WordPress and MediaWiki (pages served improperly from cache) and it all makes me wonder if removing Varnish altogether is the best way to proceed.

As for Piwik, I have never tried it before, so I will look into it.

I would keep Varnish on for

I would keep Varnish on for static files (css, js, jpeg etc) and to clean up HTTP traffic (Varnish will not forward incomplete or malformed HTTP requests to the backend, it should also be the front line against synfloods etc).

Here's a sample of what I use (test it first, I'm just beginning with Varnish myself)

director default dns {
.list = {
.port = "8080";
.connect_timeout = 5s;
.first_byte_timeout = 600s;
.between_bytes_timeout = 600s;
.max_connections = 10000;
"172.16.1.53"/32;
}
}
sub vcl_recv {
if (req.url ~ "\.(png|gif|jpg|swf|css|js)$") {
return(lookup);
}
}
sub vcl_fetch {
if (req.url ~ "\.(png|gif|jpg|swf|css|js)$") {
unset beresp.http.set-cookie;
}
if (req.restarts == 0) {
if (req.http.x-forwarded-for) {
set req.http.X-Forwarded-For =
req.http.X-Forwarded-For + ", " + client.ip;
} else {
set req.http.X-Forwarded-For = client.ip;
}
}
}

Then install mod_rpaf and make sure your Apache is listening on port 8080 and add this to /etc/httpd/conf.d/rpaf.conf:
LoadModule rpaf_module modules/mod_rpaf-2.0.so

RPAFenable On
RPAFproxy_ips 127.0.0.1 IPs_OF_THE_SERVER
RPAFsethostname On
RPAFheader X-Forwarded-For

PS: looks like drupal is messing with my comments, here's a text version http://fpaste.org/74672/raw/

Thanks

Thanks, I will look at it and into it in the weekend.

RSS feeds

The Piwik demo looks impressive, I have just given them a word of endorsement.

I am still trying to resolve some other issues we've identified.

I think I found the source of the issue above (RSS feeds). It seems like any external site access is denied by default, which helps explain why RSS feeds cannot be retrieved by the Drupal part of the site:


[root@tuxmachines ~]# wget lxer.com
--2014-02-05 04:34:37--  http://lxer.com/
Resolving lxer.com... 108.166.170.174
Connecting to lxer.com|108.166.170.174|:80... failed: Connection refused.
[root@tuxmachines ~]# wget linuxtoday.com
--2014-02-05 04:34:54--  http://linuxtoday.com/
Resolving linuxtoday.com... 70.42.23.121
Connecting to linuxtoday.com|70.42.23.121|:80... failed: Connection refused.

Looks like a firewall issue

Looks like a firewall issue at the first glance.

Firewall

Nux wrote:

Looks like a firewall issue at the first glance.

Yes, it was a simply issue to tackle. It works now.

Pageview count and polls

I'll have a look and see if configuration can solve not just the polling issue but also pageview count. The site of this module is down and it seems like it may require configuration on the cache server too.

More in Tux Machines

Wine 5.0's first release candidate

  • Wine Announcement
    The Wine development release 5.0-rc1 is now available.
    
    This is the first release candidate for the upcoming Wine 5.0. It
    marks the beginning of the yearly code freeze period. Please give this
    release a good testing to help us make 5.0 as good as possible.
    
    What's new in this release (see below for details):
      - Gecko update, with support for running from a global location.
      - Unicode data updated to Unicode version 12.1.
      - Initial version of the MSADO (ActiveX Data Objects) library.
      - Update installation support in the WUSA (Windows Update Standalone) tool.
      - More progress on the kernel32/kernelbase restructuring.
      - Support for signing with ECDSA keys.
      - Various bug fixes.
    
    The source is available from the following locations:
    
      https://dl.winehq.org/wine/source/5.0/wine-5.0-rc1.tar.xz
      http://mirrors.ibiblio.org/wine/source/5.0/wine-5.0-rc1.tar.xz
    
    Binary packages for various distributions will be available from:
    
      https://www.winehq.org/download
    
    You will find documentation on https://www.winehq.org/documentation
    
    You can also get the current source directly from the git
    repository. Check https://www.winehq.org/git for details.
    
    Wine is available thanks to the work of many people. See the file
    AUTHORS in the distribution for the complete list.
    
    
  • Wine 5.0-RC1 Released With Unicode 12.1 Support, Initial ActiveX Data Objects Library

    Making it into Wine 5.0-rc1 is an updated Mozilla Gecko revision, Unicode 12.1 support, an initial MSADO ActiveX Data Objects library implementation, updating the installation support within the WUSA (Windows Update Standalone_ utility, continued Kernel32/Kernelbase restructuring, support for signing with ECDSA keys, and the usual variety of bug fixes.

Pi for Everyone and Everything

Pi foundation released their first system-on-a-chip (SOC) in 2012, they had no idea how overwhelming the response would be. The credit-card-sized computer once meant to be an easy entry point for British students to get into programming and computer science has burgeoned into a whole community of add-on boards (“hats”), screens and extras that people all around the world are using for all kinds of things. Raspberry Pi computers have ARM processors on them and most Linux distributions that support those processors will run on them. There are also Windows 10 IOT (Internet of Things) embedded platforms that will run on them as well. The most popular operating system for it by far is Raspbian, which is a derivative of Debian Linux. The Raspberry Pi foundation also has an OS image called NOOBS, which will allow you to install a number of different options on it as well. Getting started is as easy as buying a Pi, a case and its accompanying necessities, which you might already own, namely a microSD card, a 5V-2A wall-wart-type supply with a micro USB connection, an HDMI cable and a USB keyboard and mouse. Several starter kits are available that include cases, power supplies and NOOBS already installed on a microSD card. If you already have access to a microSD card, it is simple enough to go to www.raspberrypi.org and download any of the OS images that they have there. There are also details on how to get the image onto the card. Read more

Fedora Deciding Whether CD/DVD Installation Issues Should Still Hold Up Releases

Fedora will continue producing ISO images of their distribution that can be installed to a DVD (or CD in the case of some lightweight spins) or more commonly these days copied to USB flash drives, but they are debating whether any CD/DVD optical media issues should still be considered blocker bugs in 2020 and beyond. Fedora optical media and any issues pertaining to that would be considered non-blocking for Fedora releases. This reflects the fact a majority of Linux users these days are copying their Linux distributions to USB flash drives and installing from there rather than still burning CDs/DVDs. Particularly with many computers these days lacking CD/DVD drives, not having to worry about optical install issues as blocker bugs would free up resources to deal with more pressing bugs around release time. Read more

today's leftovers

  • AMDVLK 2019.Q4.4 Released With Navi 14 Fixes, DoW 3 Perf Optimization

    As anticipated, AMD has now formally released a new version of their AMDVLK open-source Vulkan driver following this week's Radeon Software Adrenalin 2020 Windows driver release. The changes end up being what I was alluding to yesterday with VK_EXT_pipeline_creation_feedback support, subgroup cluster support, a performance optimization for the Dawn of War 3 game, CTS failure fixes for Navi 14, and other fixes.

  • Dominique Leuenberger: openSUSE Tumbleweed – Review of the week 2019/50

    Another week has passed – and we’re almost at the end of the year. During the last week we have released 4 snapshots for Tumbleweed (1206, 1207, 1210 and 1211) containing those noteworthy changes: gpg 2.2.18 libvirt 5.10.0 linux-glibc-devel 5.4 Mozilla Thunderbird 68.3.0 bluez 5.52 libxml 2.9.10 createrepo_c 0.15.4: beware: it is very strict and blocks any snapshot if there is a package with non-UTF8 chars or ASCII < 32 (except 9, 10 and 13) in a changelog. Double check your .changes files before submitting. GNOME 3.34.2 KDE Plasma 5.17.4

  • Why you need to know about Seeed hardware devices

    The microcontroller craze doesn't seem to be dying down—and that's a good thing because these products consistently succeed where the mobile market consistently fails: Users get open software and hardware, a portable form factor, and a wide choice of vendors and products that are built to last. Among the best of the open hardware and software vendors is Seeed, the self-proclaimed "IoT Hardware Enabler." I recently started seeing the Seeed logo on projects, so I contacted the company to learn about the interesting things they're doing. In response, they generously sent me one of their latest products: the Seeeduino Nano, a compact board that the company says is fully compatible with the Arduino Nano but at half the price and a quarter the size, along with a sample sensor to get me started. I spent a few days with it, and I'm already working on a project to improve my home garden and thinking of several others for home automation. Far from just another Arduino-like product, the Seeeduino Nano solves several problems new makers face when they get a microcontroller and want to use it.

  • Marco Zehe: A quick introduction to using Gutenberg

    Late in November, I published a personal opinion on the state of Gutenberg accessibility. Today, I’d like to give an introduction to Gutenberg from a screen reader user perspective. Gutenberg, the WordPress block editor, is the new way to create content and build sites in WordPress. It is a rich web application that uses many modern techniques such as dynamic updates, toolbars, side bars and other items to completely update the posting experience. It can also be quite daunting at first. Let us try to shed a little light on some of the mysteries around it.

  • Pitfalls for OMEMO Implementations – Part 1: Inactive Devices

    Smack’s OMEMO implementation received a security audit a while ago (huge thanks to the Guardian Project for providing the funding!). Radically Open Security, a non-profit pentesting group from the Netherlands focused on free software and ethical hacking went through the code in great detail to check its correctness and to search for any vulnerabilities. In the end they made some findings, although I wouldn’t consider them catastrophically bad (full disclosure – its my code, so I might be biased :D). In this post I want to go over two of the finding and discuss, what went wrong and how the issue was fixed.

  • Support FSF's copyleft and licensing work

    We launched our annual fundraiser with the goal of welcoming 600 new associate members before December 31st. New members are critical to the cause, and by becoming a member you will stand in solidarity with others who care about computer user freedom. As is the case with any social movement, the numbers matter, and it is a very powerful gesture to make for only $10 a month ($5 if you are a student). Please support the work that gives hope for a future with software freedom: make a donation or – better yet -- join us and become a member today. The Free Software Foundation is a global leader for copyleft, and the licensing team plays a vital role in disseminating useful knowledge about free software while working to protect it. We accomplish this in part by answering licensing questions from the public and by providing resources like our list of free software licenses. We also increase access to software freedom by managing the Respects Your Freedom certification program, and cataloging free software through our endorsed distributions program and the Free Software Directory. To protect free software, we handle license compliance for the GNU Project, resulting in a stronger community and more respect for the power of copyleft. We are proud to accomplish this as just two staff working with our executive director, board, and legal counsel. These resources combined make a potent force for software freedom, and your support will ensure our work continues with the aim to do an even better job in 2020. Let us share a bit about the work we did in 2019 and elaborate on why it is so vital that this work continues.

  • OpenJS Foundation Welcomes Electron As Its New Incubating Project [Ed: OpenJS is run by people from Microsoft]

    Initially developed by GitHub in 2013, today the framework is maintained by a number of developers and organization

  • Twitter Is Funding Effort To Create A 'Decentralized Standard?'For Social Media

    The project is called Bluesky and eventually, it should enable Twitter to "access and contribute to a much larger corpus of public conversation," pushing it to be far more innovative than in the past.