aegif / CmisSync

Synchronize content between a CMIS repository and your desktop. Like Dropbox for Enterprise Content Management!
http://CmisSync.com
163 stars 123 forks source link

System.IO.FileNotFoundException: Could not load file or assembly gtk-sharp #616

Open rasos opened 8 years ago

rasos commented 8 years ago

The latest build for Linux is cmissync_2.3-3.deb which is throwing an error on Lubuntu 15.04 64bit: System.IO.FileNotFoundException: Could not load file or assembly 'gtk-sharp

It would be great if we could expect a more recent version of cmissync for *nix in the near future.

nicolas-raoul commented 8 years ago

Could you please run the following command and tell me whether it works better?

sudo apt-get install libgtk2.0-cil-dev
rasos commented 8 years ago

apt-get install libgtk2.0-cil-dev Now the app is starting: $ cmissync FullPath:/home/raśdfs/.config/cmissync/config.xml CmisSync is a collaboration and sharing tool that is designed to keep things simple and to stay out of your way. ... Usage: CmisSync [start|stop|restart] $ cmissync start Starting CmisSync... Done. $ FullPath:/home/ras/.config/cmissync/config.xml

It creates a folder cmissync, but no window appears for settings, no process is running which I could grep with cmis. BTW, when installing cmissync, the package manager murns, that it violates Debian policy 5.6.20 (not giving size of application).

nicolas-raoul commented 8 years ago

No CmisSync dog logo icon in the system tray?

I created another issue about the Debian policy: https://github.com/aegif/CmisSync/issues/617

rasos commented 8 years ago

There was no dog logo in the system tray. Installing on Ubuntu 14.04 was successful, there is only a strike through logo in the tray;

(CmisSync:21147): Gtk-WARNING **: /build/buildd/gtk+2.0-2.24.23/gtk/gtkwidget.c:5709: widget not within a GtkWindow

Configuring an Alfresco server worked fine, however it does not sync any data in any direction, seems to have died.
The content of the log window can not be copy-pasted. When trying to restart, cmissync throws in the terminal, where it was started:

Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Data.Sqlite, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies.
File name: 'Mono.Data.Sqlite, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
  at CmisSync.Lib.Sync.CmisRepo..ctor (CmisSync.Lib.RepoInfo repoInfo, IActivityListener activityListener) [0x00000] in <filename unknown>:0 
  at CmisSync.ControllerBase.AddRepository (CmisSync.Lib.RepoInfo repositoryInfo) [0x00000] in <filename unknown>:0 
  at CmisSync.ControllerBase.CheckRepositories () [0x00000] in <filename unknown>:0 
  at CmisSync.ControllerBase.<UIHasLoaded>m__8 () [0x00000] in <filename unknown>:0 
  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Data.Sqlite, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies.
File name: 'Mono.Data.Sqlite, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
  at CmisSync.Lib.Sync.CmisRepo..ctor (CmisSync.Lib.RepoInfo repoInfo, IActivityListener activityListener) [0x00000] in <filename unknown>:0 
  at CmisSync.ControllerBase.AddRepository (CmisSync.Lib.RepoInfo repositoryInfo) [0x00000] in <filename unknown>:0 
  at CmisSync.ControllerBase.CheckRepositories () [0x00000] in <filename unknown>:0 
  at CmisSync.ControllerBase.<UIHasLoaded>m__8 () [0x00000] in <filename unknown>:0 
  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0 

Maybe a permission issue, see also the debian package issue #617.

nicolas-raoul commented 8 years ago

Please run sudo apt-get install libmono-sqlite4.0-cil and let us know whether it works better.

rasos commented 8 years ago

Working now, the only thing which is missing is the dog icon in the tray instead of the no-logo icon. To sum up to get cmissync working on Ubuntu/Debian you need to install: sudo apt-get install libmono-sqlite4.0-cil libgtk2.0-cil-dev This should be fixed in the package and some permission issues may need attention when repackaging the debian package.

nicolas-raoul commented 8 years ago

For now I have updated the instructions: https://github.com/aegif/CmisSync/wiki/How-to-install-CmisSync-on-Linux But you are right that they should get installed automatically by the package.