Hi guys!
I am trying to switch my hosting and would like to migrate the whole matrix system to the new server. Would anyone be able to give some pointers on how i could procede with this? I understand there is a backup.sh script, but I am not sure what steps I need to take to prepare my server for the migration i.e. do I need to install matrix on the new server first and then restore from backup etc?
Thanks,
Anton.
Server migration
So, here is how I have done it.
- Run the backup script when you are sure that all changes have been made.
[*]Install the same version of Matrix on your new server, and all requirements.
[*]Then restore from the backup.
[quote]
Thank you Nic! Just as I thought. Not looking forward to it
[/quote]
It actually was pretty easy. I think what took me the longest was finding what commands correctly imported the postgres .dump file.
Yeah, I'll just have to give it a go. Thank you for the confirmation of the first steps though.
Turned out to be relatively easy.
You don't actually have to install matrix on the new server. As long as you have prepared you server with all the essentials etc. it should be fine. The only problem I ran into, was that my old database was in sql_ascii and the import "failed", so I needed to convert it to utf-8. Once I have done the conversion, everything worked just fine.
Spoke too soon 
The asset map isn't working. Getting and error. Maybe someone know what this might be?
Thanks,
Anton.
Error details:
For input string: " "
For input string: " "
[Fatal Error] :1:2: The markup in the document preceding the root element must be well-formed.
java.io.IOException: error while parsing : The markup in the document preceding the root element must be well-formed.
at net.squiz.matrix.core.Matrix.doRequest(Matrix.java:179)
at net.squiz.matrix.assetmap.AssetMap.loadTranslations(AssetMap.java:302)
at net.squiz.matrix.assetmap.AssetMap.init(AssetMap.java:101)
at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:722)
Java Plug-in 10.7.0.10
Using JRE version 1.7.0_07-b10 Java HotSpot™ 64-Bit Server VM
User home directory = /Users/anton
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
I think the issues was that I was accessing the site with a modified host file…
[quote]
I think the issues was that I was accessing the site with a modified host file…
[/quote]
So you got it working?
[quote]
So you got it working?
[/quote]
The domains that have already switched over to the new server, have the asset map running just fine. The domain I initially tried it with by modifying the host file had the asset map error above. I guess I will know in a couple of days, but I think it should be fine. Fingers crossed