Course export/import-Win/Linux issue

56 views
Skip to first unread message

Max Devin

unread,
May 15, 2016, 1:39:17 AM5/15/16
to OpenOLAT
Hi guys,
I am having a serious issue with the course import and export feature in Win and Linux. I've built the whole system in a Win and created many courses in it. 
After that, I just exported app to war, openolat db to sql and zipped olatdata folder. I copied everything to a linux, changed path in olat.local.properties and imported the sql data into mysql. After a few minor issues I managed to run it on Linux.
Unfortunately there was some problem with my courses. They were visible in the Courses section, but after clicking them I got an internal error no. 1 (see below). Assuming that it might be some encoding issue related to the fact that I had just copied olatdata from Win do Linux, a deleted courses and tried to export-import from Win to Linux. Export was fine. I got zip file. I checked it- I could open it. But when I tried to import into Linux I got an internal error no. 2. I tried to debug it by trying to use a simple course (title, description, logo image plus one single page of dummy content) both in Win and Linux. In Win it was fine - both creation and export. In Linux I had a problem with export - an error no 3 (as browser error code).  

I'd attribute the whole issue to the Win/Linux migration as I lost all the config from Win when I first started Linux verion. But the fact that I cannot export course created in Linux indicate that something else must be wrong.

p.s. attempt to import course in Win that I have just exported in Win also gives an error no. 2.

Thanks in advance for any help.
Max

System Win8.1 and Ubuntu 14
Openolat 10.3.2 
Tomcat 8.0.33
Java 8

Error no. 1
The learning resource is corrupted and can not be displayed. Contact your support staff or use the delete link to remove this resource from the system.


Error no. 2:

Oops, something went wrong!
Error code: N1-E5 

<dispatchinfo>
<componentinfo>
<compname>ffo_main_null</compname>
<compclass>org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer</compclass>
<extendedinfo>n/a</extendedinfo>
<event>
<class>org.olat.core.gui.control.Event</class>
<command>validation ok</command>
<tostring>com:validation ok,org.olat.core.gui.control.Event@d62b3f02</tostring>
</event>
</componentinfo>
<controllerinfo>
<controllername>org.olat.repository.ui.author.ImportRepositoryEntryController</controllername>
<controllername>org.olat.repository.ui.author.AuthorListController</controllername>
<controllername>org.olat.repository.ui.author.OverviewAuthoringController</controllername>
<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
</controllerinfo>
</dispatchinfo> 
Throwable: java.lang.ClassCastException

message:org.olat.core.util.vfs.LocalFolderImpl cannot be cast to org.olat.core.commons.modules.bc.vfs.OlatRootFolderImpl,java.lang.ClassCastException

at org.olat.course.PersistingCourseImpl.getCourseExportDataDir(PersistingCourseImpl.java:160)
at org.olat.repository.handlers.CourseHandler.importReferences(CourseHandler.java:383)
at org.olat.repository.handlers.CourseHandler.importResource(CourseHandler.java:262)
at org.olat.repository.ui.author.ImportRepositoryEntryController.doImport(ImportRepositoryEntryController.java:228)
at org.olat.repository.ui.author.ImportRepositoryEntryController.formOK(ImportRepositoryEntryController.java:154)
at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:367)
at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:202)
at org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:240)
at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
at org.olat.core.gui.components.AbstractComponent.fireEvent(AbstractComponent.java:238)


Error no. 3 (with browser link path www.mydomain.com/m/0a96ae1313e45f811618f8a99fa2027e/) :

HTTP Status 500 - mr already served, relPath =/,
 
type Exception report

message mr already served, relPath =/,

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.olat.core.logging.AssertException: mr already served, relPath =/,
org.olat.core.gui.control.winmgr.MediaResourceMapper.handle(MediaResourceMapper.java:50)
org.olat.core.dispatcher.mapper.MapperDispatcher.execute(MapperDispatcher.java:116)
org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:280)
org.olat.core.servlets.OpenOLATServlet.doGet(OpenOLATServlet.java:209)
javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
org.olat.core.servlets.OpenOLATServlet.service(OpenOLATServlet.java:166)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause

java.lang.Exception: assertionstackgenerator
org.olat.core.logging.AssertException.<init>(AssertException.java:53)
org.olat.core.gui.control.winmgr.MediaResourceMapper.handle(MediaResourceMapper.java:50)
org.olat.core.dispatcher.mapper.MapperDispatcher.execute(MapperDispatcher.java:116)
org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:280)
org.olat.core.servlets.OpenOLATServlet.doGet(OpenOLATServlet.java:209)
javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
org.olat.core.servlets.OpenOLATServlet.service(OpenOLATServlet.java:166)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note The full stack trace of the root cause is available in the Apache Tomcat/8.0.33 logs.

Florian Gnaegi

unread,
May 17, 2016, 3:44:18 AM5/17/16
to open...@googlegroups.com
Hi Max

We said that many times on the list: Windows is not supported. Not because it is not possible, but because we do not test it on Windows, our productive setup is Linux. 

The main problem with Windows is the one you run into: file system incompatibility. Windows uses \, Linux/Unix/OSX uses /. Of course we could take care of that, but it is extra work for us and as long as no one is paying for a windows environment where all the automatic tests will run permanently, we will just not do it. 

We strongly recommend using Linux for production. Also when it comes to optimizing the installation for large scale usage, we just have no experience with Windows. If you decide to use OpenOLAT on Windows, you are on your own, we will not be able to help. 

To „officially“ support Windows we need financing for Hardware or a VM in our continuous integration environment, Windows licenses, labor to install and maintain everything, finding and fixing all the / \ problems, writing special test cases to deal with those problems etc.

To solve your problem: you could look into the exported files and see if you have path infos with \ and change them to /. 

Cheers
Florian

--
--
Sie erhalten diese Nachricht, weil Sie Mitglied sind von Google
Groups-Gruppe "OpenOLAT".
Für das Erstellen von Beiträgen in dieser Gruppe senden Sie eine E-Mail
an open...@googlegroups.com
Um sich von dieser Gruppe abzumelden, senden Sie eine E-Mail an
openolat+u...@googlegroups.com
Weitere Optionen finden Sie in dieser Gruppe unter
http://groups.google.com/group/openolat?hl=de
-------------------------------------------------------------------------------------------------------------------
OpenOLAT - infinite learning - http://www.openolat.org

---
You received this message because you are subscribed to the Google Groups "OpenOLAT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openolat+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--------------------------------------------------------------------
professional services for the e-learning system OpenOLAT
hosting - operating - support - development - mobile - consulting
--------------------------------------------------------------------
frentix  GmbH
Florian Gnägi, Geschäftsführer
Hardturmstrasse 76
CH-8005 Zürich, Switzerland


Find me on skype  twitter xing linkedin 
--------------------------------------------------------------------

Reply all
Reply to author
Forward
0 new messages