pmichael
 Posts:21

| | 07/06/2007 4:56 PM |
| Hi, John, I just upgraded to DNN 4.5.3 and have the latest free PageBlaster installed. Whenever I do a recursive re-synch of the filesystem with the scheduler, I get errors about inserting null into the lastupdated column of folders. After lots of trial and error, I have discovered that the folders under the cache folder in the _default portal are the problem. When I delete all of these folders on the physical file system and do a recursive resynch at the cache folder, no errors, and also I can schedule a file synch and it works with no errors. That is as it should be because I have spent a lot of time investigating files/folders tables and physical. Lots of time. But after I navigate around on one of the DNN sites and a folder with that portal name is created under cache, then the file synch errors resume, both in filemanager and in scheduler. I assume that I must have something not set correctly either in PageBlaster config or DNN somehow. I'm not using DNN compression at all, nor whitespacefilter; I have Page State set to Page, and module set to Memory; Moderate caching, and "ServerAndNoCache." In DNN, the "cache" folder IsProtected is true ( =1 in folders table). Not sure if that is relevant. Can you advise me on how to deal with this? Thanks, Mike | | | |
|
|
|
John Mitchell Posts:3276


| | 07/06/2007 5:01 PM |
| Hi Mike, If the files that are causing problems have pb.webinfo extensions then they are PageBlaster cache files. You may want to change the cache folder for PageBlaster to the root of your site. Create a new folder called "Cache" in the root, and then point your cache-folder attribute in the Snapsis.PageBlaster.Config to that. | | | |
|
pmichael
 Posts:21

| | 07/06/2007 5:17 PM |
| OK, thanks. Have done so but don't see the new folders getting created there now. cache-folder="/Cache"
config-folder="/portals/_default/Cache"
the config file is also in the DNN root ... should it be like this? cache-folder="/Cache"
config-folder="/"
| | | |
|
John Mitchell Posts:3276


| | 07/06/2007 5:22 PM |
| The config folder doesn't really matter on the free version, so you may want to set it the same as the cache folder. Check to make sure that you have write permissions set on your Cache folder. | | | |
|
pmichael
 Posts:21

| | 07/06/2007 5:24 PM |
| Showing up now for one of the portals, just not the first one. Thanks for your help! Mike | | | |
|
Gilbert Vanden Borre
 Posts:44


| | 07/07/2007 2:44 AM |
| Dear John When I saw this thread in the dnn-forum this morning, I thought I have to look at the Log viewer of a few of my sites.
And what did I see? General Exception
AssemblyVersion: 04.04.00
PortalID: 0
PortalName: [-----]
UserID: 1
UserName: host
ActiveTabID: 116
ActiveTabName: Wie zijn wij RawURL: /Providers/HtmlEditorProviders/FckHtmlEditorProvider/FCKCSS.aspx?tabid=116
AbsoluteURL: /Providers/HtmlEditorProviders/FckHtmlEditorProvider/FCKCSS.aspx
AbsoluteURLReferrer: http://[-----]/Providers/HtmlEditorProviders/FckHtmlEditorProvider/FCKeditor/editor/fckeditor.html?InstanceName=dnn_ctr806_EditHTML_teContent_teContent&Toolbar=DNNDefault
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 4e2c4917-1569-47fd-8a57-f2536908be35
InnerException: Unhandled Error:
FileName:
FileLineNumber: 0
FileColumnNumber: 0 Method: Snapsis.HttpModules.PageBlaster.UserController.GetCacheKey StackTrace:
Message: System.Exception: Unhandled Error: ---> System.NullReferenceException: Object reference not set to an instance of an object. at Snapsis.HttpModules.PageBlaster.UserController.GetCacheKey(Settings settings) at Snapsis.HttpModules.PageBlaster.PageController.IsPageExcluded(HttpApplication app, ExcludeFrom excludeFrom, Settings settings) at Snapsis.HttpModules.PageBlaster.PageBlasterModule.PreSendRequestHeaders(Object sender, EventArgs e) at System.Web.HttpApplication.RaiseOnPreSendRequestHeaders() --- End of inner exception stack trace ---
Source:
Server Name: DEDI494
What did I see at the cache folders of this site /Portals/_default/Cache/tabid.
(Snapsis ΐ.2.4] free version installed)
Different folders are created... 101 102 103 ...
In the folders nothing... May I ask you: Is the solution for that what pmichael has said in the thread of dnn?
Or, is there something else to do? | | Vriendelijke groeten Gilbert Vanden Borre | |
|
John Mitchell Posts:3276


| | 07/07/2007 7:33 AM |
| Hi Gilbert, I don't the errors are related. Your's appears to be caused by trying to cache pages in the providers folder for FCK editor. I would put an excludePath in for any url with FCK in it. | | | |
|
Gilbert Vanden Borre
 Posts:44


| | 07/07/2007 10:27 AM |
| Hi John I think I don't understand you completely...
You said: Your's appears to be caused by trying to cache pages in the providers folder for FCK editor.
I use the Fckeditor as html/text editor.
I don't have a page with the name FCK in it...
Perhaps when I use the FckEditor then he looks like a page like FCKCSS.aspx, Fcdkeditor.html... and then perhaps he try to cache this page and give this error... Then of course I have to put an excludePath for any url with FCK in it.
If that is correct, then it isn't only by me?... But what did I see also...
I see the tabs in the folder of the cache pages (..._default/Cache/tabs...) and they are empty... Is that normal?... | | Vriendelijke groeten Gilbert Vanden Borre | |
|
John Mitchell Posts:3276


| | 07/07/2007 11:08 AM |
| Hi Gilbert, the way you described it is correct. The FCK editor is loking for those pages. It would be a good default exclude, I think I have already added it to the next release, but if not I will.
..._default/Cache/tabs folder may be empty, but it is not normal for it to stay that way. Is that where your cache-folder attribute in the Snapsis.PageBlaster.Config file is pointing to? If so, do you have a non-zero interval for disk-cache -interval? If so, then your disk caching may not be working. Check permissions on that folder or better yet, move the folder to the root like described earlier in this thread.
The reason I used that folder in the default config was to keep the configuration easier. I didn't think that DNN would try to sync the cache folder into the FIleManager, but maybe it does.
| | | |
|
pmichael
 Posts:21

| | 07/07/2007 11:30 AM |
| I kept getting the error when synching filesystem via DNN schedule. I went portal by portal and synched each Admin | FileManager recursively with no errors. When I went to Host | FileManager and resynched at the root level recursively, I got the error. So I expanded the folders and went folder by folder and resynched recursively, each and every one, from the bottom up ... no errors until I reached /Cache. Now I got the error. Viewing via Host | FileManager, all I saw in /Cache were two text files (placeholder.txt and readme.txt) ... but when I went to filesystem, then I saw that there was also a pb.webinfo file in /Cache as well as some subfolders which also had pb.webinfo files in them.
Apparently DNN wanted to synch these folders but something also wouldn't allow it to provide the params necessary to insert a record.
At any rate - moving /Cache for PageBlaster as recommended here has resolved my problems. I'm very happy ... managed to upgrade a very messy 3.1.1 install to 3.7 and then to 4.5.3, doing lots of file system cleanup and deleting a bunch of portals and modules, removing a fair number of dll files from /bin ... in the end, it looks like I have a very solid 4.5.3 DNN instance which is clean and lean and with PageBlaster's help considerably faster than the original 3.1.1. (On a new and faster server as well!)
Thanks for your help with this, John.
| | | |
|
Gilbert Vanden Borre
 Posts:44


| | 07/07/2007 12:53 PM |
| Hi John This is the Snapsis.PageBlaster.config file that I use. As you can see these are the normal setting that you set... [snapsis]
[pageBlaster
page-param="tabid"
cache-folder="/portals/_default/Cache"
config-folder="/portals/_default/Cache"
cached-languages=""
blocked-useragents=""
blocked-ipaddresses=""
memory-cache-interval="00:04:00:00"
memory-size-limit="25"
disk-cache-interval="01:00:00:00"
disk-size-limit="100"
compression-algorithm="gzip"
compression-level="high"]
[excludePaths]
[path pattern="\?(?!tabid)" excludeFrom="All" /]
[path pattern="(\.asmx|\.axd|\.asxh|rss|fck|admin|install|thumb|wizard|cart)" excludeFrom="All" /]
[path pattern="ctl.*?(edit|module|tab)" excludeFrom="All" /]
[/excludePaths]
[trace level="None" file="pb.trace.config" /]
[!-- [providers]
[provider name="GenericFilter" interface="IFilterProvider"
type="Snapsis.HttpModules.PageBlaster.GenericFilterProvider, Snapsis.HttpModules.PageBlaster"]
[replacementRules]
[rule]
[ruleName]White Space[/ruleName]
[searchFor][![CDATA[]\s+?[]]][/searchFor]
[replaceWith][![CDATA[][]]][/replaceWith]
[/rule]
[/replacementRules]
[/provider]
[/providers]
--]
[/pageBlaster]
[/snapsis] As you can see ..._default/Cache is indeed set in Snapsis.PageBlaster.config file. And fck is excluded... What do you mean with 'do you have a non-zero interval for disk-cache-interval? If so, then your disk caching may not be working.' The disk-cache-interval is set to "01:00:00:00" that means indeed non-zero... and then you said: my disk caching may not be working?... I think that I've full permission on that folder... I will check it...
But when dnn create tab folders in the ..._default/Cache folder then it is normal I think that I've write permissions... Or am I wrong? | | Vriendelijke groeten Gilbert Vanden Borre | |
|
John Mitchell Posts:3276


| | 07/07/2007 1:01 PM |
| Hi Gilbert,
I didn't know if you had changed the default config or not. It looks like you do have a non-zero disk-cache-interval and you are correct, if the tab folders are being created then your permissions are probably ok.
So yes, you should be getting .pb.webinfo files in those tabid folders after browsing around your site.
| | | |
|
Gilbert Vanden Borre
 Posts:44


| | 07/07/2007 1:48 PM |
| Hi John I've checked site 1 One with the General Exception as I mentioned... HTTP Status Code: HTTP/1.1 200 OK
Cache-Control: private
Connection: close
Date: Sat, 07 Jul 2007 18:24:49 GMT
Content-Length: 5125
Content-Type: text/html
Content-Encoding: gzip
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
X-Snapsis-PageBlaster: v:2.2.1;c:d;x:+;r:+
Set-Cookie: .ASPXANONYMOUS=dPNO8VX3xwEkAAAAOGJlZThkY2UtYTc0YS00YjU1LTk0ODAtMjUyMjVmYjc4NjQ40; expires=Sat, 15-Sep-2007 05:04:49 GMT; path=/; HttpOnly There are about 50 tabId folders created in the ".../portals/_default/Cache folder.
All the folders are empty...
One .pb.webinfo file in the ".../portals/_default/Cache folder. I've checked site 2 HTTP Status Code: HTTP/1.1 200 OK
Cache-Control: private
Connection: close
Date: Sat, 07 Jul 2007 18:27:54 GMT
Content-Length: 4887
Content-Type: text/html; charset=UTF-8
Content-Encoding: gzip
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
X-Snapsis-PageBlaster: v:2.2.4;c:d;x:+;r:+
Set-Cookie: .ASPXANONYMOUS=9LWTX1b3xwEkAAAAMTQ5ZmJjZTAtZWRlOS00ZDlhLWFmZWMtZDY4NjZjYjY5ZTFm0; expires=Sat, 15-Sep-2007 05:07:54 GMT; path=/; HttpOnly Also about 50 tabId folders created in the .../portals/_default/Cache folder
A few folders empty
One .pb.webinfo... file in the ".../portals/_default/Cache folder.
Different folders with one or more .pb.webinfo... file | | Vriendelijke groeten Gilbert Vanden Borre | |
|
Gilbert Vanden Borre
 Posts:44


| | 07/07/2007 1:50 PM |
| Hi John
Now I see it...
Could it be that it is because of version v:2.2.1;c:d;x:+;r:+ of pageblaster?...
Perhaps I've forgotten to update that version?...
| | Vriendelijke groeten Gilbert Vanden Borre | |
|
John Mitchell Posts:3276


| | 07/07/2007 1:52 PM |
| It could be the version, but I doubt it.
The c:d part in the header means that it retrieved the cache file from disk, so it looks like it is working on both sites according to the header. | | | |
|
pmichael
 Posts:21

| | 07/07/2007 8:32 PM |
| I just had a thought ... this is probably not related to what you folks are discussing now ... but if there were a placeholder.txt in each of the files at /Portals/_default/Cache/{portalname} along with the ....webinfo files, then the DNN file synchronization would probably work ok. As far as I am concerned I'm good with the /Cache folder at the root, but it might simplify installation for some users to continue to use the _default/Cache folder ... and I am thinking that a synchronizable file such as placeholder.txt would make that possible. | | | |
|
pmichael
 Posts:21

| | 07/11/2007 3:56 PM |
| On the other hand, this may all have been my fault ... I swear I saw an upgrade error with a snippet of code that was trying to set the Folders.LastUpdated column to not null. It looked like it had failed, so I did that manually. After looking at a clean install of 4.5.3 and seeing that LastUpdated is nullable, I realized I had made a mistake.
I wasn't even able to create a folder in DNN FileManager due to that. Back in business now, and probably wouldn't have had an issue with PageBlaster if not for my error. FYI. | | | |
|
John Mitchell Posts:3276


| | 07/11/2007 4:03 PM |
| Thanks for the update. I was wondering why no one else had run into this issue before. Still, I don't think the FileManager should be trying to sync up the Cache folder. I guess it could help if you wanted to browse the cache folder with the File Manger, but with the files coming and going so often it may not be worth it. | | | |
|