Error on all pages: touch(): Utime failed

Any site announcements will be made here. Also the place to make suggestions to help improve this site. Also use this forum for reporting suspected errors or for asking 'how to' questions.
Post Reply
User avatar
Robert T
Site Admin
Joined: Mon 12 Jun, 2006 10:35
Posts: 10171

  Z3 roadster 1.9
Location: Cheshire

Error on all pages: touch(): Utime failed

Post by Robert T »

Hi,

I'm getting this error at the top of all pages:
Warning: touch(): Utime failed: Operation not permitted in /var/www/home/zroad/htdocs/forum/includes/template.php on line 159
Seems to be output before any page content, but the page content itself is okay.

Cheers R.
Arctic Silver '99 Z3 1.9 & Black '59 Frogeye 1275cc
Image
User avatar
Boysie
Joined: Sat 23 Apr, 2005 14:24
Posts: 1654

  M roadster S50
Location: Wallington Surrey
Contact:

Post by Boysie »

Hi Robert

So am i

Ray
Ray

Image
S50 ///M Roadster, Arctic Silver, Imola Red/Black interior
1970 Austin Healey Sprite, Original ' Now Sold :-(
2002 Harley 1130cc V Rod Custom

Image
321bhp
Joined: Mon 01 Dec, 2003 19:34
Posts: 2516

  Not specified
Location: essex

Post by 321bhp »

and me
User avatar
Zmeagol
Joined: Wed 08 Oct, 2003 15:38
Posts: 1375

  Z4 roadster 3.0i
Location: Putney

Post by Zmeagol »

It started after I made a change to the banner advert. It doesn't appear to be serious (just one error line) and I plan to have a go at finding the problem this evening.

Tim
User avatar
Robert T
Site Admin
Joined: Mon 12 Jun, 2006 10:35
Posts: 10171

  Z3 roadster 1.9
Location: Cheshire

Post by Robert T »

Thanks Tim. I didn't notice the banner advert missing as my browser is set to block certain ads.

Cheers R.
Arctic Silver '99 Z3 1.9 & Black '59 Frogeye 1275cc
Image
User avatar
cowboybebop
Joined: Sat 12 May, 2007 21:54
Posts: 366

  Z3 roadster 2.8
Location: Derby

Error message at the top of the page..

Post by cowboybebop »

For a few weeks now i keep getting a warning at the top of each page....

Warning: touch(): Utime failed: Operation not permitted in /var/www/home/zroad/htdocs/forum/includes/template.php on line 159

i wondered if it may be something to do with Vista which i installed not to long ago...

anyone else have this same error message?

it only does it on the zroadster website....
:head:
User avatar
Gimlet
Joined: Sat 14 Aug, 2004 10:02
Posts: 180

  BMW other
Location: Nuneaton
Contact:

Post by Gimlet »

No ... I get it too on XP.
BMWCC Central Region Secretary

Space Grey E92 335d SE Coupe
User avatar
Zmeagol
Joined: Wed 08 Oct, 2003 15:38
Posts: 1375

  Z4 roadster 3.0i
Location: Putney

Post by Zmeagol »

I've put back the strongstrut advert for the moment which has cured the problem.

Tim
User avatar
BimBeema
Joined: Sun 16 Oct, 2005 22:55
Posts: 1753

  Z3 roadster 2.2i
Location: London

Post by BimBeema »

Yes so do I - have just been ignoring it cos the rest of the site seems to be working as normal! :dunce:
///M_aniac
Z Register member
Joined: Sat 30 Jul, 2005 19:34
Posts: 4054

  M roadster S50
Location: Belfast

Post by ///M_aniac »

It seems to be away now.
BMW Z3, the only way to build a true roadster

Image - The most powerful letter in the world.
Cloz wrote:There is something that will never change is my love for Z3
smartypants wrote:Conor?

With an M??


The World's gone mad :D
smartypants wrote:The Z3 rear is a great thing to behold ;)
///M_aniac
Z Register member
Joined: Sat 30 Jul, 2005 19:34
Posts: 4054

  M roadster S50
Location: Belfast

Post by ///M_aniac »

Cheers Tim. Looks much better now.
BMW Z3, the only way to build a true roadster

Image - The most powerful letter in the world.
Cloz wrote:There is something that will never change is my love for Z3
smartypants wrote:Conor?

With an M??


The World's gone mad :D
smartypants wrote:The Z3 rear is a great thing to behold ;)
User avatar
Alfie
Z Register member
Joined: Thu 29 Apr, 2004 14:28
Posts: 3312

  M roadster S54
Location: Broadchurch....

Post by Alfie »

Nope.
I've still got the "Warning....line 159" across the top AND the SS advert.

A.
Image
JontyP
Joined: Fri 26 Mar, 2004 10:24
Posts: 383

  M roadster S54
Location: Behind You

Post by JontyP »

Yep, me too. Dunt matter tho eh?

Jonty
User avatar
Robert T
Site Admin
Joined: Mon 12 Jun, 2006 10:35
Posts: 10171

  Z3 roadster 1.9
Location: Cheshire

Post by Robert T »

Arctic Silver '99 Z3 1.9 & Black '59 Frogeye 1275cc
Image
User avatar
Robert T
Site Admin
Joined: Mon 12 Jun, 2006 10:35
Posts: 10171

  Z3 roadster 1.9
Location: Cheshire

Post by Robert T »

Still seeing the error in both Firefox and IE. Strongstrut advert now present. :?

Cheers R.
Arctic Silver '99 Z3 1.9 & Black '59 Frogeye 1275cc
Image
madmare
Joined: Thu 10 Aug, 2006 13:08
Posts: 96

  Z3 roadster 1.9i

Post by madmare »

I've still got both - the error and the SS ad?
User avatar
cowboybebop
Joined: Sat 12 May, 2007 21:54
Posts: 366

  Z3 roadster 2.8
Location: Derby

Post by cowboybebop »

Yes i still have this problem....

but i dont see an advert at all
User avatar
NorwegianBlue
Z Register member
Joined: Fri 14 Nov, 2003 00:24
Posts: 446

  M roadster S54
Location: Sunny Yorkshire
Contact:

Post by NorwegianBlue »

Zmeagol - you need to clear the cache folder!! It's a server side problem, so users need not worry.
User avatar
BimBeema
Joined: Sun 16 Oct, 2005 22:55
Posts: 1753

  Z3 roadster 2.2i
Location: London

Post by BimBeema »

What's going on this morning? lots of errors both on top and bottom of each page!
User avatar
Zmeagol
Joined: Wed 08 Oct, 2003 15:38
Posts: 1375

  Z4 roadster 3.0i
Location: Putney

Post by Zmeagol »

Sorry, I was experimenting.

Tim
User avatar
BimBeema
Joined: Sun 16 Oct, 2005 22:55
Posts: 1753

  Z3 roadster 2.2i
Location: London

Post by BimBeema »

Do you not have a test/local copy of this where you can experiment on your local machine before uploading perrhaps?
User avatar
Zmeagol
Joined: Wed 08 Oct, 2003 15:38
Posts: 1375

  Z4 roadster 3.0i
Location: Putney

Post by Zmeagol »

No. And now the forum is really bu%%ered up.
User avatar
BimBeema
Joined: Sun 16 Oct, 2005 22:55
Posts: 1753

  Z3 roadster 2.2i
Location: London

Post by BimBeema »

Yep - we can see that! :D

Sorry not being helpful, would like to help, but don't know much about php! :|
User avatar
Zmeagol
Joined: Wed 08 Oct, 2003 15:38
Posts: 1375

  Z4 roadster 3.0i
Location: Putney

Post by Zmeagol »

I cleared the server-side cache, but this has created extra problems. Am working on it but if anyone has any ideas please PM me.

Tim
User avatar
Robert T
Site Admin
Joined: Mon 12 Jun, 2006 10:35
Posts: 10171

  Z3 roadster 1.9
Location: Cheshire

Post by Robert T »

Hi Tim,

I am now seeing the following:

Code: Select all

Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid/gid is 2025/2025 is not allowed to access /var/www/home/zroad/htdocs/forum/cache/subSilver owned by uid/gid 33/33 in /var/www/home/zroad/htdocs/forum/includes/template.php on line 155

Warning: fopen(/var/www/home/zroad/htdocs/forum/cache/subSilver/viewtopic_body.tpl.php): failed to open stream: No such file or directory in /var/www/home/zroad/htdocs/forum/includes/template.php on line 155

Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/home/zroad/htdocs/forum/includes/template.php on line 156

Warning: fclose(): supplied argument is not a valid stream resource in /var/www/home/zroad/htdocs/forum/includes/template.php on line 157

Warning: touch(): SAFE MODE Restriction in effect. The script whose uid/gid is 2025/2025 is not allowed to access /var/www/home/zroad/htdocs/forum/cache/subSilver owned by uid/gid 33/33 in /var/www/home/zroad/htdocs/forum/includes/template.php on line 159
Safe mode should really be left on (it is set in php.ini), so I think it is a file ownership problem with the files in the cache, or with the script that is trying to read them. Did you chown the cache files in order to wipe the cache?

Cheers R.
Arctic Silver '99 Z3 1.9 & Black '59 Frogeye 1275cc
Image
User avatar
Zmeagol
Joined: Wed 08 Oct, 2003 15:38
Posts: 1375

  Z4 roadster 3.0i
Location: Putney

Post by Zmeagol »

Robert T wrote:Did you chown the cache files in order to wipe the cache?
I don't have unix command line access, just FTP, so I deleted them. Cache directory attributes are set to 777.

I don't think I have access to php.ini as the site is is running on a shared host.

Tim
User avatar
Robert T
Site Admin
Joined: Mon 12 Jun, 2006 10:35
Posts: 10171

  Z3 roadster 1.9
Location: Cheshire

Post by Robert T »

Hi again Tim,

It looks like it is expecting a "subSilver" subdirectory in the cache - maybe it can't re-create it automatically - you might try mkdir'ing and seeing what happens.

The only other thought I have at this time is that the php scripts for the site were ftp'd in using the wrong user, if that is possible. If you don't have root access then they nothing can have been chown'ed.

Cheers R.
Arctic Silver '99 Z3 1.9 & Black '59 Frogeye 1275cc
Image
User avatar
NorwegianBlue
Z Register member
Joined: Fri 14 Nov, 2003 00:24
Posts: 446

  M roadster S54
Location: Sunny Yorkshire
Contact:

Post by NorwegianBlue »

777 gives the folder full rights to everyone, so that should be ok. With the "subSilver" subdirectory in the cache make sure it exists and set the rights to 777 too.
User avatar
Zmeagol
Joined: Wed 08 Oct, 2003 15:38
Posts: 1375

  Z4 roadster 3.0i
Location: Putney

Post by Zmeagol »

the cache directory and subdirectories are set to 777. The problem is due to the cache directory being created by a different user. My ISP is being predictably obtuse.

Tim
erdnase
Joined: Fri 07 Jul, 2006 04:50
Posts: 37

  Z4 roadster 2.5i

Post by erdnase »

Wow, it took me a few days to figure out to scroll down - I just assumed the forum was knackered! Hi again everyone :)

Erd
pdwarren
Joined: Sat 02 Sep, 2006 13:57
Posts: 69

  M coupe S50

Post by pdwarren »

It seems the files in the cache have been created by PHP scripts running as the httpd/apache user (I'm pretty sure that's what uid 33 will be) and now, because safe mode is turned on, its complaining that those don't match your uid.

What I don't understand is how this ever worked or how it's supposed to work... You can probably fix it my changing the ownership of those files to be 2025.2025. You should be able to do that because you own the directory, but it's not straightforward.

I run an ISP so have some idea about this stuff, but we don't use safe mode... Drop me a PM if you want a hand.

Paul
User avatar
Robert T
Site Admin
Joined: Mon 12 Jun, 2006 10:35
Posts: 10171

  Z3 roadster 1.9
Location: Cheshire

Post by Robert T »

AFAIK chown can only ever be user to change file ownership if run by root, so without root access you aren't going to be able to fix the ownership manually. You can however use chgrp to change the group of files you own.

The errors seem to be indicate that the scripts are owned by the user with uid 2025 (Tim's user account), and that the cache files are owned by the user with uid 33 (apache/httpd). This could have come about because part of the phpbb install is still owned by the apache user and only those files which Tim has changed recently are now owned by his user. The cache directories were then re-created by the apache owned script files, and now the ones Tim modified can't write to them.

I could mock this up on my Linux server here at the weekend if you want me to try and help figure it out.

Cheers R.
Arctic Silver '99 Z3 1.9 & Black '59 Frogeye 1275cc
Image
pdwarren
Joined: Sat 02 Sep, 2006 13:57
Posts: 69

  M coupe S50

Post by pdwarren »

Robert T wrote:AFAIK chown can only ever be user to change file ownership if run by root, so without root access you aren't going to be able to fix the ownership manually. You can however use chgrp to change the group of files you own.
You can't use chown, but you can change the ownership of files if you have write permissions on the directory:

mv foo bar
cp bar foo
rm bar

Will give you ownership of foo provided that you were able to read it in the first place.
The errors seem to be indicate that the scripts are owned by the user with uid 2025 (Tim's user account), and that the cache files are owned by the user with uid 33 (apache/httpd). This could have come about because part of the phpbb install is still owned by the apache user and only those files which Tim has changed recently are now owned by his user. The cache directories were then re-created by the apache owned script files, and now the ones Tim modified can't write to them.
But how did part of the install become owned by apache?

The scripts will get run as uid 33, irrespective of who owns them, so it's quite possible for those cache files to get created by phpBB, and then for them to be unreadable by other parts because their ownership doesn't match the ownership of the scripts so safe mode complains.

The only way I can see around this (other than by manually changing ownership as above) is to run whatever script creates the cache files as uid 2025, which is only possible if you have shell access to the machine.

The other possibility is that the ISP may have set up safe mode to do a group id check only, in which case you can fix it by changing the group on the files in question, but judging by the error message, I think it's doing a full uid/gid check.

Paul
User avatar
Zmeagol
Joined: Wed 08 Oct, 2003 15:38
Posts: 1375

  Z4 roadster 3.0i
Location: Putney

Post by Zmeagol »

I have a thread running on the phpBB community board: http://www.phpbb.com/community/viewtopi ... 1&t=559839

though without much luck at this stage.

My only access is CuteFTP (other than the forum) and I don't know whether I can correct whatever is wrong using FTP or whether I have to ask the ISP to do something. At this stage I don't know what to ask.

Tim
User avatar
Robert T
Site Admin
Joined: Mon 12 Jun, 2006 10:35
Posts: 10171

  Z3 roadster 1.9
Location: Cheshire

Post by Robert T »

Hi Tim,

I have just stuck phpBB on my server now. I can't reproduce the error
messages in the forum pages, but I do get the same errors in the server log.

It seems that the cache directory must contain a "subSilver" directory owned by the same user (your ftp user) as all the php scripts with permissions 777 and then inside there there needs to be an "admin" directory also owned by your user with permissions 777. The actual cache files do get created as the apache user.

Initially I was running with safe mode turned off and these directories were being created for me, but with it on, they do not get created, so I had to do it by hand. I wonder if something changed since you installed the board or last cleared the cache?

I had a quick read of your php forum posts. Make sure your are actually in the cache subdirectory when you try to chmod subSilver.

Cheers R.
Arctic Silver '99 Z3 1.9 & Black '59 Frogeye 1275cc
Image
User avatar
Zmeagol
Joined: Wed 08 Oct, 2003 15:38
Posts: 1375

  Z4 roadster 3.0i
Location: Putney

Post by Zmeagol »

Problem resolved. Because users were ignoring all the error messages and continuing to use the forum (I couldn't get to the screen that restricts access), the subSilver directory was getting recreated by the script.

I waited until a period of inactivity, deleted it, created it and chmodded it. Everything seems OK (cross fingers and toes).

Tim
daverave
Joined: Thu 15 Jun, 2006 20:42
Posts: 203

  Z3 roadster 3.0i
Location: San Isidro, Cartagena

Post by daverave »

Thats the only problem with having such a popular forum. There's always someone on it :pc

Glad you got it sorted out. The scroll finger was getting rather sore :thumb:
ImageImage
User avatar
Gazza
Joined: Tue 04 Oct, 2005 20:58
Posts: 9521

  M roadster S54
Location: Romford Essex

Post by Gazza »

Ahhhhh nice to be back to normal

Gazza.
Gazza

"Understeer is when you hit the wall with the front of the car, oversteer is when you hit the wall with the rear of the car. Horsepower is how fast you hit the wall and torque is how far you take the wall with you"

Z3 S54 M roadster Image, BMW Z1, BMW M3 CSL, Z4M Coupe
ImageImage
User avatar
Robert T
Site Admin
Joined: Mon 12 Jun, 2006 10:35
Posts: 10171

  Z3 roadster 1.9
Location: Cheshire

Post by Robert T »

Good man, Tim. All seems fine now.

If you were still struggling, I was going to suggest turning the caching feature off temporarily.

Cheers R.
Arctic Silver '99 Z3 1.9 & Black '59 Frogeye 1275cc
Image
User avatar
cowboybebop
Joined: Sat 12 May, 2007 21:54
Posts: 366

  Z3 roadster 2.8
Location: Derby

Post by cowboybebop »

Nice to be back to normal again

:) :) :) :) :) :)
User avatar
kruisn
Joined: Sat 22 Oct, 2005 22:28
Posts: 403

  Z3 roadster 3.0i
Location: Keikeri,New Zealand

Post by kruisn »

Thanks for your I.T. sleuthing Tim. It must have been frustrating.
Nice to have things back to normal. No idea what you were all talking about though? ? ? ?
Don't drink and drive home -
Take the Zd and fly home -
User avatar
stu
Joined: Fri 10 Oct, 2003 17:49
Posts: 3540

  Z3 roadster 2.8 supe
Location: On the edge!

Post by stu »

Brilliant, now I don't have to worry about the RSI from scrolling down all the time :D
someone in a minority once wrote:I know I'm in a minority
Image
User avatar
BimBeema
Joined: Sun 16 Oct, 2005 22:55
Posts: 1753

  Z3 roadster 2.2i
Location: London

Post by BimBeema »

Nice one Tim - cheers. :)
User avatar
Ian_C
Joined: Sun 10 Dec, 2006 20:10
Posts: 2415

  Z3 roadster 2.8
Location: Lytham St Annes

Post by Ian_C »

Thanks for your efforts in sorting this out Tim.
321bhp
Joined: Mon 01 Dec, 2003 19:34
Posts: 2516

  Not specified
Location: essex

Post by 321bhp »

cheers,great to be back to normal :o :o :o
User avatar
spokey
Joined: Fri 20 Feb, 2004 11:11
Posts: 4586

  blank
Location: The Big Smoke

Post by spokey »

stu wrote:Brilliant, now I don't have to worry about the RSI from scrolling down all the time :D
Is that what you're attributing it to? :devil:
Ciao,
Spokey
jackal on PH wrote:i love your profile... an endless pornographic paroxysm of the letters BMW

do you actually like driving at all or are cars to you just a manifestation of some sort of pathological mother complex ?
User avatar
Zmeagol
Joined: Wed 08 Oct, 2003 15:38
Posts: 1375

  Z4 roadster 3.0i
Location: Putney

Post by Zmeagol »

LOL

Tim

(woops! put me in the sin bin)
Post Reply