Kulpreet Singh
2005-Jun-08 12:26 UTC
[Instiki] Moving Contents from one instiki to the other?
Hi, In my enthusiasm, I started two different instiki''s, say instiki-a and instiki-b on two different hosts, Both of the above instiki''s are running one "web" each. Say web-1 on instiki-a and web-2 on instiki-b. Realising this is a redundant set up I want to move one of the webs, say web-2 from instiki-b to insiki-a. My first naive urge was to simply copy over the contents from the storage directory and over. Then I started looking at the code, realising I will need to understand atleast a bit about rails before I do anything meaningful. Thus this mail. Is it possible to premanently move contents of a "web" from one instiki to another? The move should alllow the moved web to still act as a wiki. Would appreciate any help. Regards Kulpreet -- Home is where .emacs is
Assaph Mehr
2005-Jun-08 19:25 UTC
[Instiki] Moving Contents from one instiki to the other?
> Realising this is a redundant set up I want to move one of the webs, say web-2 > from instiki-b to insiki-a. > > My first naive urge was to simply copy over the contents from the storage > directory and over. Then I started looking at the code, realising I will need > to understand atleast a bit about rails before I do anything meaningful. Thus > this mail. > > Is it possible to premanently move contents of a "web" from one instiki to > another? The move should alllow the moved web to still act as a wiki.The storage directory contains snapshots of the data for the whole service. Services are linked to the TCP/IP port number they run on, and each service may contain several wikis. I you just need it on one machine, you can copy over the sub-directory (with the port number) to machine a, name it as a different number, and access it on a different port (e.g. http://instiki-a:2501/ instead of http://instiki-a:2500/ for the original wiki-a). A better solution is to export the web from instiki-b as textile/markdown and import it back into a new web on the instiki-a machine. You should first create a new web (go to ''edit web'' and near the bottom there''s a link to crate a new web) and then import the exported web into this one. Automatic imports are there, but disables, in Instiki 0.10.x. You either need to hack the source to enable them (look at the list archives on how to do this) or you can do this manually by recreating the pages from their content in the zip file. HTH, Assaph
Kulpreet Singh
2005-Jun-10 11:17 UTC
[Instiki] Moving Contents from one instiki to the other?
My problem on setting up a multiple web still remains. I do not want to create another instance of the process or bind to more than I port. To achieve the same, when I try and "create a web" from the "Edit Web" page, the interface runs smoothly and comes back to the homepage for the old web. There is no confirmation for the creation of the new web, further I only see the following in the logs - Processing AdminController#create_web (for 127.0.0.1 at Fri Jun 10 15:49:59 BST 2005) Parameters: {"action"=>"create_web", "controller"=>"admin"} Rendering admin/create_web within layouts/default Rendering layouts/default (200 OK) Completed in 0.00993 (100 reqs/sec) | Rendering: 0.00853 (85%) 134.226.32.57 - - [10/Jun/2005:15:49:59 BST] "GET /create_web HTTP/1.0" 200 2942 http://quill.dsg.cs.tcd.ie:2500/kulpreetsstiki/edit_web -> /create_web Processing AdminController#create_web (for 127.0.0.1 at Fri Jun 10 15:50:19 BST 2005) Parameters: {"name"=>"testing", "system_password"=>"hidden", "action"=>"create_web", "controller"=>"admin", "address"=>"testing"} Redirected to http://quill.dsg.cs.tcd.ie:2500/ Completed in 0.00287 (348 reqs/sec) 134.226.32.57 - - [10/Jun/2005:15:50:19 BST] "POST /create_web HTTP/1.0" 302 98 http://quill.dsg.cs.tcd.ie:2500/create_web -> /create_web Processing WikiController#index (for 127.0.0.1 at Fri Jun 10 15:50:19 BST 2005) Parameters: {"action"=>"index", "controller"=>"wiki"} Redirected to http://quill.dsg.cs.tcd.ie:2500/kulpreetsstiki/show/HomePage Completed in 0.00278 (359 reqs/sec) 134.226.32.57 - - [10/Jun/2005:15:50:19 BST] "GET / HTTP/1.0" 302 126 http://quill.dsg.cs.tcd.ie:2500/create_web -> / Processing WikiController#show (for 127.0.0.1 at Fri Jun 10 15:50:19 BST 2005) Parameters: {"action"=>"show", "id"=>"HomePage", "controller"=>"wiki", "web"=>"kulpreetsstiki"} Rendering wiki/page within layouts/default Rendering layouts/default (200 OK) Completed in 0.11924 (8 reqs/sec) | Rendering: 0.11661 (97%) 134.226.32.57 - - [10/Jun/2005:15:50:19 BST] "GET /kulpreetsstiki/show/HomePage HTTP/1.0" 200 5772 http://quill.dsg.cs.tcd.ie:2500/create_web -> /kulpreetsstiki/show/HomePage Then I try and put the "/testing/show/HomePage" in my location bar to see if I can get to the new web. I only get a message saying "no such web". I see the following in the log. Processing WikiController#show (for 127.0.0.1 at Fri Jun 10 15:51:30 BST 2005) Parameters: {"action"=>"show", "id"=>"HomePage", "controller"=>"wiki", "web"=>"testing"} Completed in 0.00094 (1068 reqs/sec) 134.226.32.57 - - [10/Jun/2005:15:51:30 BST] "GET /testing/show/HomePage HTTP/1.0" 404 21 - -> /testing/show/HomePage This makes me ask the question, is the multiple web feature truly supported? Regards Kulpreet On Thursday 09 June 2005 12:29 am, Assaph Mehr wrote:> > Realising this is a redundant set up I want to move one of the webs, say > > web-2 from instiki-b to insiki-a. > > > > My first naive urge was to simply copy over the contents from the storage > > directory and over. Then I started looking at the code, realising I will > > need to understand atleast a bit about rails before I do anything > > meaningful. Thus this mail. > > > > Is it possible to premanently move contents of a "web" from one instiki > > to another? The move should alllow the moved web to still act as a wiki. > > The storage directory contains snapshots of the data for the whole > service. Services are linked to the TCP/IP port number they run on, > and each service may contain several wikis. > > I you just need it on one machine, you can copy over the sub-directory > (with the port number) to machine a, name it as a different number, > and access it on a different port (e.g. http://instiki-a:2501/ instead > of http://instiki-a:2500/ for the original wiki-a). > > A better solution is to export the web from instiki-b as > textile/markdown and import it back into a new web on the instiki-a > machine. > You should first create a new web (go to ''edit web'' and near the > bottom there''s a link to crate a new web) and then import the exported > web into this one. Automatic imports are there, but disables, in > Instiki 0.10.x. You either need to hack the source to enable them > (look at the list archives on how to do this) or you can do this > manually by recreating the pages from their content in the zip file. > > HTH, > Assaph > > _______________________________________________ > Instiki-users mailing list > Instiki-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users-- Home is where .emacs is
Assaph Mehr
2005-Jun-14 00:35 UTC
[Instiki] Moving Contents from one instiki to the other?
As far as I can see, the only thing that will cause the below listed redirection is a failure to authenticate with the system password. Since I can create new webs just fine, I have to ask: are you sure you entered the right password? This should be the password to the whole system, the one you set when you first created the service, not the edit password for the web. HTH, Assaph On 6/11/05, Kulpreet Singh <singhk@cs.tcd.ie> wrote:> Processing AdminController#create_web (for 127.0.0.1 at Fri Jun 10 15:50:19 > BST 2005) > Parameters: {"name"=>"testing", "system_password"=>"hidden", > "action"=>"create_web", "controller"=>"admin", "address"=>"testing"} > Redirected to http://quill.dsg.cs.tcd.ie:2500/ > Completed in 0.00287 (348 reqs/sec) > 134.226.32.57 - - [10/Jun/2005:15:50:19 BST] "POST /create_web HTTP/1.0" 302 > 98 > http://quill.dsg.cs.tcd.ie:2500/create_web -> /create_web > > > Processing WikiController#index (for 127.0.0.1 at Fri Jun 10 15:50:19 BST > 2005) > Parameters: {"action"=>"index", "controller"=>"wiki"} > Redirected to http://quill.dsg.cs.tcd.ie:2500/kulpreetsstiki/show/HomePage > Completed in 0.00278 (359 reqs/sec) > 134.226.32.57 - - [10/Jun/2005:15:50:19 BST] "GET / HTTP/1.0" 302 126 > http://quill.dsg.cs.tcd.ie:2500/create_web -> /