How to delete locked DNN search files in APP_Data > Search? - dotnetnuke

Our DNN is showing old search results.
I have looked at this URL on the DNN Forums: http://www.dnnsoftware.com/forums/threadid/523345/scope/posts/search-results-returning-old-urls
I have looked at the scheduler and re-scheduled the crawler to re-index the pages.
When I try to delete the files in the Search folder, it says it can't as if it is locked.
How do I get DNN to re-index the content on the site? Is there a cache which needs to be cleared as well?

The lock is due to the the worker process accessing the files. If recycling the app pool doesn't do it, you may have to stop the application pool in IIS and wait for the worker process to completely unload (you can kill it in TaskManager). Then delete the files in App_Data/Search, and finally start the application pool back up. That works for me.

Related

How do I specify DomainOverrideStrategy.OVERRIDE on a gcloud beta app domain-mappings request?

I am using a Custom Domain for a Google Application project. I have multiple projects and I use the same domain for each, although only one mapping is active at any time. Historically this has been as simple as Verifying the domain on the latest project and then Adding the domain. The domain has then automatically switched to the new project.
I have not used this approach for some months and when I tried it recently I got the messages
www.xxxxx.com is already mapped to a project.
xxxxx.com is already mapped to a project.
Research on StackOverflow suggests the use of the following command
gcloud beta app domain-mappings create xxxxx.com
This does look the right thing to do, unfortunately the response to the command is:
ERROR: (gcloud.beta.app.domain-mappings.create) App [aaaaaa] is the subject of a conflict: Domain 'xxxxx.com' is already mapped to another application. You must delete the existing domain mapping before you can re-map the domain, or you may specify 'DomainOverrideStrategy.OVERRIDE' on the request to force overwrite the existing mapping. Domain 'xxxxx.com' is currently mapped to an application on which you do not have permissions.
I do not want to use the delete approach since there will be a gap in service before the re-map. I would like to use the OVERRIDE option but I cannot work out how to add it to the gcloud command and I cannot locate any documentation.
Update 6Nov17.
In the absence of an answer I have used the delete approach and it worked as expected. The re-map was possible immediately after the mapping was deleted for the current app. Unfortunately for some users access to the web page was not possible, or error messages were returned, for a while. After about 10-15 minutes normal service was resumed. For my web site a gap of 10-15 minutes is manageable. This will not be true for many sites and I anticipate that Google Cloud will tidy up this procedure before it exits Beta.
If for some reason it is not possible to access the current app to delete the mapping then I guess deleting the app's subdomain information at the domain registrar will have the same effect, although it may be difficult to predict when the delete of the associated mapping will happen.
On the plus site the new automatic SSL provision worked flawlessly.

Accidentally Deleted my Database for a wordpress site

I designed a site last year locally and copied it over to the clients hosting onces the site was complete.
A year later I needed to delete some of my old databases and it turns out one of the db was for that site.
I went back to my hosting provider who imformed me that they can not retrieve the file even though I can still see it although when I open it up in phpMyAdmin there are no wordpress tables in it.
The clients hosting company sent me the ftp details to re-download the website and I have all the latest elements however I do not have an XML file to upload all the latest pages and posts.
I have all the images, all the plugins and themes but nothing else.
Is there any way without me having to recreate the whole thing and creating a new database to establish the link back with the website.
well thats terrible, I would ask the host for a backup, my company swiftgrid.net backs up websites every day. its pretty common for the host to have a backup. If there is no backup the only other thing you could do is go to the http://archive.org/ and copy and paste the pages if there is a record.
Mathew

Cleanup Google Mobile Backend Starter

So I started to play with Google Mobile Backend Starter.
Now I want to clean this instance and anything that this starter thingy created into the project (e.g. task queues, data store, etc...)
How do we achieve this?
Is this done through some command line somewhere along the lines described in this page?
appengine-java-sdk/bin
EDIT: I should have made it clearer, I don't intend to delete the project. I just want to "clean" it and replace with my own application. Anyway, I ended up using the appengine SDK tools mentioned above (Updating and Managing a Java App). It was a long process, and tedious. It could be improved.
What I did:
Using the appengine SDK tool, downloaded the application first. It prompted me for a password. I had to create a new "App Password" entry in my Google account, since it didn't accept my "usual" Google password (e.g. GMAIL)
To clean the Scheduled Tasks, edit cron.xml so that no entries are left. A sample empty cron.xml file is shown in the documentation page. Run the update procedure of the SDK tool for cron jobs
To clean the Queues, use the same approach (queue.xml)
Clean DataStore by going to DataStore Admin page (if applicable)
Upload your new application (either thru SDK, or thru Android/Eclipse AppEngine plugin)
There will now be 2 (or more) versions of your AppEngine. If necessary, make your newly uploaded application, the default version. This is done in the Developer Console.
Check the instances as well. Remove if necessary

DNN (DotNetNuke) reading files locally

Is it possible for DNN to read files directly off a server? What I would like to do is be able to drag files into a created folder on my server and they will automatically be uploaded and show up on my DNN site. My main concern in this scenario is that I want to be able to go into the file on the server make changes and the changes will automatically be reflected on my DNN site without me having to reupload the file.
You can put things into the Portals/#/ folder, or a subfolder there, and have DNN AutoSynchronize the file-system (there's a scheduled task) so that the files show up in the File Manager in DNN.
I have a client who has a specific Uploads directory they FTP files into, and the synchronization process makes them available to their editors.

Can I update an application configuration file without restarting the Jetty server?

I have Solr running on a Jetty server, and I'd like to be able to update a configuration file and have my application pick up the changes without restarting the entire server. Specifically, I'm looking for something similar to touch web.xml in Tomcat. Is that possible, and if so, how do I do it?
EDIT:
Specifically, I want to update application-specific information in an external file, and I want to get the application to load this new data all without stopping and starting the server.
There are several ways to achieve this (assuming you're thinking of general config reloading). You can have a daemon thread polling the file for last changed timestamp, and trigger a reload. Or you can check the timestamp on each configuration value lookup, if it doesn't happen to often. But my preferred way would be to expose a "reload configuration" operation either through JMX or a URL that is accessible only from the "inside".
If you are running Solr 4+ and are talking about schema.xml and solrconfig.xml, then you want 'Reload Core', which is in the Web Admin UI under core/collection management. You can also trigger it from a URL.
From Apache solr admin, go to core admin and reload respective core. If you are using solr cloud, then it is too easy. Just reload configuration via zookeeper. These changes will be visible only after complete copy.

Resources