This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.
Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.
Before posting questions here you might want to review the developer documentation.
For some reason my mojo site has stopped indexing content and the search returns 0 results. I've deleted the files in "/Data/Sites/1/index" as suggested in another post and tried the search again but it still doesn't work. I did notice that no new files were in the index folder after i ran the search, which is obviously why the site had no new content indexed.
The site is running in a medium trust environment and it has the folder specified in the web.config file.
Can anybody point me in the right direction to fix this?
Thanks in advance for any help
Most likely permissions on that folder have somehow changed and it is no longer writable.
You may get some clues if you clear the error log, then do a search then check the error log and see if any clues.
Hope it helps,
wow that was a fast response, thanks!
When you say "error log" do you mean the "System Log" located under the Admin menu?
If so i've checked it and there is nothing showing in it at all. I've recreated the index folder and made sure it has the correct permissions but still nothing.
Are you missing any of the indexbluilder files? There should be a number of files in the /Setup/indexbilderconfig folder. Each file is about 1kb in size. Are they present?
I have the following files in the indexbuilderconfig folder:
I uploaded the above files again just to be sure. When i run a search now I get this message next to the search box:
"The Search Index for the site is currently being built. Please wait a few minutes and try your search again."
However, no files are created in the index folder and the "System Log" is empty.
Are you sure the path for <add key="Lucene.Net.lockdir" value=... pointing to the /Data/Sites/1/index folder is correct? Is it possible your host moved your site to a new physical path and this setting is no longer correct?
I'm running out of ideas.
Yeah it's definitely the correct path. When I say there is nothing in the "System Log" I mean there is nothing e.g. no "currentlog.config" under the Data folder. Do you think this problem is linked?
Yes, that tells me that no matter what you may think, the Data folder and its children are not all writable. Something has changed and the user that the web app is running as does not have write permission to needed folders.
Would the file manager still write to the folder if that was the case? I tried it and it can create new folders and upload files to the Data folder.
Can you create files or folders in the index folder?
Yeah I can create folders and upload files to the index folder. I can rename them to.