standardnotes / syncing-server

[Deprecated: Use our new Node server: https://github.com/standardnotes/syncing-server-js]
https://standardnotes.org
GNU Affero General Public License v3.0
209 stars 48 forks source link

gem / mimemagic errors trying to install on Yunohost #199

Open davterra opened 3 years ago

davterra commented 3 years ago

I'm trying to install syncing-server on Yunohost. Each time, the install seems to break down around the gem/mimemagic build process. Here is a relevant snippet from the install log:

2021-05-04 19:45:56,131: DEBUG - Installing activerecord 5.2.4.4 2021-05-04 19:45:57,425: DEBUG - Fetching mimemagic 0.3.8 2021-05-04 19:45:57,533: DEBUG - Installing mimemagic 0.3.8 with native extensions 2021-05-04 19:45:58,048: WARNING - Gem::Ext::BuildError: ERROR: Failed to build gem native extension. 2021-05-04 19:45:58,052: DEBUG - 2021-05-04 19:45:58,053: WARNING - current directory: 2021-05-04 19:45:58,063: WARNING - /opt/yunohost/snserver/live/vendor/bundle/ruby/2.7.0/gems/mimemagic-0.3.8/ext/mimemagic 2021-05-04 19:45:58,064: WARNING - /opt/rbenv/versions/2.7.2/bin/ruby 2021-05-04 19:45:58,065: WARNING - -I/opt/rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0 -rrubygems 2021-05-04 19:45:58,066: WARNING - /opt/yunohost/snserver/live/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/exe/rake 2021-05-04 19:45:58,242: WARNING - RUBYARCHDIR\=/opt/yunohost/snserver/live/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/mimemagic-0.3.8 2021-05-04 19:45:58,245: WARNING - RUBYLIBDIR\=/opt/yunohost/snserver/live/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/mimemagic-0.3.8 2021-05-04 19:45:58,246: WARNING - rake aborted! 2021-05-04 19:45:58,256: WARNING - Could not find MIME type database in the following locations: 2021-05-04 19:45:58,266: WARNING - ["/usr/local/share/mime/packages/freedesktop.org.xml", 2021-05-04 19:45:58,266: WARNING - "/opt/homebrew/share/mime/packages/freedesktop.org.xml", 2021-05-04 19:45:58,267: WARNING - "/usr/share/mime/packages/freedesktop.org.xml"] 2021-05-04 19:45:58,267: DEBUG - 2021-05-04 19:45:58,268: WARNING - Ensure you have either installed the shared-mime-types package for your 2021-05-04 19:45:58,268: WARNING - distribution, or 2021-05-04 19:45:58,269: WARNING - obtain a version of freedesktop.org.xml and set FREEDESKTOP_MIME_TYPES_PATH to 2021-05-04 19:45:58,270: WARNING - the location 2021-05-04 19:45:58,270: WARNING - of that file.

I'm pretty experienced with Linux/CLI but pretty new at server/database stuff. Any ideas welcome

JaspalSuri commented 3 years ago

Hi @davterra, sorry to hear that. We're in the process of transitioning away from Ruby and Ruby on Rails to JavaScript(& TypeScript) and will update the setup docs afterwards. I can reach out to you when that is completed if you'd like. 🙂

davterra commented 3 years ago

Ok, thanks. I appreciate your offer. Is there a build on Github that I can install in a server away from Yunohost that is currently working?

JaspalSuri commented 3 years ago

Hi @davterra, I'm sorry for the late response; I somehow missed your reply. There currently isn't (for JavaScript), but feel free to watch this repo for updates, particularly when the documentation is ready.

davterra commented 3 years ago

No problem, and I will watch that repo. Thanks!

karolsojko commented 3 years ago

@davterra you can find the new docs at: https://docs.standardnotes.org/self-hosting/getting-started/