dotcms upgrade 2.0 PR1 to 2.0.1

31 views
Skip to first unread message

gokhan gulgezen

unread,
Jun 21, 2012, 9:16:14 AM6/21/12
to dotCMS User Group
Hi to all

I am trying to update dotcms with autoupdater but it gives

"unexpected error from server. Code: 404"

also the default url (http://www.dotcms.com:8080/servlets/upgrade2x/)
which i read in documentation gives 404 error.
can somebody tell me, is this a temporary situation like server
problem or the update url has changed and not documented.

Any help will be appreciated.
thanks in advance.

gokhan

Jason Tesser

unread,
Jun 21, 2012, 9:30:37 AM6/21/12
to dot...@googlegroups.com
you need to goto 2.0.1 from PR1 without the Auto Updater. Then you ca use it.

Just download 2.0.1 and copy your plugins, esdata, assets and config over.

Thanks,
Jason Tesser
dotCMS Director, Support Services
1-305-858-1422
> --
> You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
> To post to this group, send email to dot...@googlegroups.com.
> To unsubscribe from this group, send email to dotcms+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.
>

gokhan gulgezen

unread,
Jun 21, 2012, 9:39:31 AM6/21/12
to dotCMS User Group
I tried it, update went well, dotcms is started without error but i
could not see any content under the content tab.
ı think i am missing to copy some config files.
what config files are you mentioning ? I only copied portal.properties
under web-inf/classes

gokhan

Jason Tesser

unread,
Jun 21, 2012, 9:40:49 AM6/21/12
to dot...@googlegroups.com
humm all config should live in a plugin that makes this stuff easy.

I think the esdata dir is missing.

Try to do a full index.

Also it is a bad idea to copy entire files on top of ours as you may
loose added properties

Thanks,
Jason Tesser
dotCMS Director, Support Services
1-305-858-1422


gokhan gulgezen

unread,
Jun 21, 2012, 9:49:26 AM6/21/12
to dotCMS User Group
the error stack trace is the following :


[21/06/12 16:46:42:558 EEST] ERROR velocity.VelocityServlet:
#--------------------------------------------------------------------------------------
[21/06/12 16:46:42:558 EEST] ERROR velocity.VelocityServlet: #
[21/06/12 16:46:42:558 EEST] ERROR velocity.VelocityServlet: #
Velocity Error
[21/06/12 16:46:42:558 EEST] ERROR velocity.VelocityServlet: # on
url : www.thk-ucakfabrikasi.com/home/index.dot
[21/06/12 16:46:42:558 EEST] ERROR velocity.VelocityServlet: # on
req : /
[21/06/12 16:46:42:558 EEST] ERROR velocity.VelocityServlet: # with
macro : #dotParse
[21/06/12 16:46:42:558 EEST] ERROR velocity.VelocityServlet: # on
template : /live/221555af-40a1-4e23-bdce-411af9067ce7.container
[21/06/12 16:46:42:558 EEST] ERROR velocity.VelocityServlet: #
stack:
[21/06/12 16:46:42:558 EEST] ERROR velocity.VelocityServlet: # -- /
live/69bd8ab7-861c-4eba-826b-19adec1d7ec8.dotpage
[21/06/12 16:46:42:558 EEST] ERROR velocity.VelocityServlet: # -- /
live/fc07eac0-c1a5-4835-bd6b-981315b2e8a2.template
[21/06/12 16:46:42:558 EEST] ERROR velocity.VelocityServlet: # -- /
live/221555af-40a1-4e23-bdce-411af9067ce7.container
[21/06/12 16:46:42:558 EEST] ERROR velocity.VelocityServlet: #
[21/06/12 16:46:42:558 EEST] ERROR velocity.VelocityServlet:
#--------------------------------------------------------------------------------------
[21/06/12 16:46:42:558 EEST] ERROR viewtools.WebAPI: Can't find
contentlet: e31075f7-b7bc-46f3-b4f4-b2d0a090f14a lang:2 live:true
com.dotmarketing.portlets.contentlet.business.DotContentletStateException:
Can't find contentlet: e31075f7-b7bc-46f3-b4f4-b2d0a090f14a lang:2
live:true
at
com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.findContentletByIdentifier(ESContentletAPIImpl.java:
236)
at
com.dotmarketing.portlets.contentlet.business.ContentletAPIInterceptor.findContentletByIdentifier(ContentletAPIInterceptor.java:
753)
at com.dotmarketing.cache.LiveCache.getPathFromCache(LiveCache.java:
213)
at com.dotmarketing.viewtools.WebAPI.getAssetPath(WebAPI.java:525)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:601)

it gives lots of those, and no content can be seen in backend.

gokhan gulgezen

unread,
Jun 21, 2012, 9:53:00 AM6/21/12
to dotCMS User Group
- i copied ldap config properties in portal.properties
- copied assets directory under dotCMS dir
- i changed ROOT.XML
- i copied dotsecure directory under tomcat/bin to the same place for
the new dotcms

tahts all what i did before update, it gives the above erro again.

Jason Tesser

unread,
Jun 21, 2012, 10:22:09 AM6/21/12
to dot...@googlegroups.com
try a full reindex.

Thanks,
Jason Tesser
dotCMS Director, Support Services
1-305-858-1422


gokhan gulgezen

unread,
Jun 21, 2012, 10:45:49 AM6/21/12
to dotCMS User Group
reindex is stucked at 3% and the log gives above errors again.
All structure, templates containers are there ı think this means db is
upgraded properly, but when it tries to get content like css files or
images or any content, it gives the above velocity error.

Jason Tesser

unread,
Jun 21, 2012, 11:57:23 AM6/21/12
to dot...@googlegroups.com
i think your index is messed up or not configured right. Get that to
work first.

The velocity errors have nothing to do with the reindex being stuck.
Get a working index and make sure the ES (elastic search) properties
are set properly

Thanks,
Jason S. Tesser
Director, Support Services
dotCMS, Inc.
T: 305.858.1422 x7003
http://twitter.com/dotCMS
www.dotcms.com

gokhan gulgezen

unread,
Jun 25, 2012, 2:36:08 AM6/25/12
to dotCMS User Group
I solved the issue, like you said earlier, some properties in
dotmarketing-config.properties have to be copied to the newly
installed dotcms.
Thanks a lot.

while i was copying the files, i noticed that there is a file named
"dotCMS" in tomcat/bin directory and in that file the index files are
placed in dotsecure/esdata directory. Is this the right place for
esdata ? or is there something wrong in one of our config files. We
think it is weird to place the index files of a host in such a common
place like tomcat/bin directory.

Thanks again
gokhan

Jason Tesser

unread,
Jun 25, 2012, 6:38:16 AM6/25/12
to dot...@googlegroups.com
you can set a fully qualified back for it in the dotmarketing-config es_data

Thanks,
Jason Tesser
dotCMS Director, Support Services
1-305-858-1422


gokhan gulgezen

unread,
Jun 27, 2012, 3:49:27 AM6/27/12
to dotCMS User Group
yes I found it and i have one last question. what is the proper
directory for es_data? i mean in your opinion what should be the value
of this directory setting?

Jason Tesser

unread,
Jun 27, 2012, 6:53:49 AM6/27/12
to dot...@googlegroups.com
by default we make it live in dotsecure but the root of dotcms home is
an ok place also.
Thanks,
Jason S. Tesser
Director, Support Services
dotCMS, Inc.
Reply all
Reply to author
Forward
0 new messages