Project

General

Profile

Bug #3201

RFC2136 cache file not updated because fs is read-only

Added by Xavier Romain over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
09/16/2013
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
2.1
Affected Architecture:
All

Description

As shown in the title, RFC2136 cache file is not properly updated. in System logs, all seems to be OK but definitely not.

php: /services_rfc2136_edit.php: phpDynDNS: updating cache file /conf/dyndns_wan_rfc2136_'test.domain.local'_ns.domain.local.cache: 111.222.333.444

(FQDN and IP was changed for privacy reasons)

/dev/ufs/pfsense0 on / (ufs, local, noatime, read-only, synchronous)
devfs on /dev (devfs, local)
/dev/ufs/cf on /cf (ufs, local, noatime, read-only, synchronous)
/dev/md0 on /tmp (ufs, local)
/dev/md1 on /var (ufs, local)
devfs on /var/dhcpd/dev (devfs, local)

As you can see, /conf is an symlink of /cf/conf but /cf is mounted as read-only.

Maybe, the cache file should be written in /tmp instead of /conf. Or /cf can be mounted as rw during update operation but is less secure than first solution.

Associated revisions

Revision 78db4f1a (diff)
Added by Jim Pingle over 7 years ago

Switch to rw mode before file operations on RFC2136 cache. Fixes #3201

Revision 819a603c (diff)
Added by Jim Pingle over 7 years ago

Switch to rw mode before file operations on RFC2136 cache. Fixes #3201

History

#1 Updated by Jim Pingle over 7 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#3 Updated by Chris Buechler about 7 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF