war file deployment error

127 views
Skip to first unread message

yil...@gmail.com

unread,
Aug 17, 2016, 9:01:03 AM8/17/16
to jobsworth
When I deploy ROOT.war on Tomcat 8 webapps folder on windows 7 I get "No source of timezone data could be found. Please refer to http://tzinfo.github.io/datasourcenotfound for help resolving this error."
I have not any knowledge of Ruby. Is There any way to solve this simply ?

Aristedes Maniatis

unread,
Aug 17, 2016, 6:39:54 PM8/17/16
to jobs...@googlegroups.com
What happened when you installed the gem?

Ari


On 17/08/2016 11:01pm, yil...@gmail.com wrote:
> When I deploy ROOT.war on Tomcat 8 webapps folder on windows 7 I get "No source of timezone data could be found. Please refer to http://tzinfo.github.io/datasourcenotfound for help resolving this error."
> I have not any knowledge of Ruby. Is There any way to solve this simply ?
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "jobsworth" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jobsworth+...@googlegroups.com <mailto:jobsworth+...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

--
-------------------------->
Aristedes Maniatis
CEO, ish
https://www.ish.com.au
GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A

signature.asc

yil...@gmail.com

unread,
Aug 18, 2016, 8:41:48 AM8/18/16
to jobsworth
 whatever i do "gem install tzinfo-data" did not work .
 And also adding to Gemfile "gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]"  too did not work.

18 Ağustos 2016 Perşembe 01:39:54 UTC+3 tarihinde Ari Maniatis yazdı:

Aristedes Maniatis

unread,
Aug 18, 2016, 7:59:30 PM8/18/16
to jobs...@googlegroups.com
Unfortunately I don't have any Windows machines to test on, so I don't really know what is needed to get that to work on Windows.

You may need to also add this to application.rb:

require 'tzinfo'


Plus you'll probably want to build a new war file using script/jenkins_build.sh but you'll have to have bash installed to run that.


Ari


On 18/08/2016 10:41pm, yil...@gmail.com wrote:
> whatever i do "gem install tzinfo-data" did not work .
> And also adding to Gemfile "gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]" too did not work.
>
> 18 Ağustos 2016 Perşembe 01:39:54 UTC+3 tarihinde Ari Maniatis yazdı:
>
> What happened when you installed the gem?
>
> Ari
>
>
> On 17/08/2016 11:01pm, yil...@gmail.com <javascript:> wrote:
> > When I deploy ROOT.war on Tomcat 8 webapps folder on windows 7 I get "No source of timezone data could be found. Please refer to http://tzinfo.github.io/datasourcenotfound <http://tzinfo.github.io/datasourcenotfound> for help resolving this error."
> > I have not any knowledge of Ruby. Is There any way to solve this simply ?
> >
> > --
> >
> > ---
> > You received this message because you are subscribed to the Google Groups "jobsworth" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to jobsworth+...@googlegroups.com <javascript:> <mailto:jobsworth+...@googlegroups.com <javascript:>>.
> > For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
signature.asc

IMeMeMine

unread,
Feb 6, 2019, 5:46:52 PM2/6/19
to jobsworth
I have the same problem. On Windows 7, 64-bit, I installed Apache Tomcat 9.0.14 (20181206). I "deployed" ROOT.war via the web interface.
Tomcat starts up okay (several warnings), but at http://localhost:8080/ it serves a big error message:
Internal Server Error (500)
Request Method:     GET
Request URL:     http://localhost:8080/

No source of timezone data could be found. Please refer to http://tzinfo.github.io/datasourcenotfound for help resolving this error.
from D:/apache-tomcat-9.0.14/webapps/ROOT/WEB-INF/gems/gems/tzinfo-1.2.2/lib/tzinfo/data_source.rb:182:in
... [a long list] ...
You're seeing this error because you use JRuby::Rack::ErrorApp::ShowStatus.
(This also happens apps other than jobsworth.)

The help page (redirects to https://github.com/tzinfo/tzinfo/wiki/Resolving-TZInfo::DataSourceNotFound-Errors ) tells me to add this line to "Gemfile":
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
(I think the "optional" extra parameters might be very necessary.)
Changes produced:
The Tomcat console output loses these lines:
D:/apache-tomcat-9.0.14/webapps/ROOT/WEB-INF/gems/gems/paperclip-5.1.0/lib/paperclip/storage/filesystem.rb:49: warning: `&' after local variable or literal is interpreted as binary operator
D:/apache-tomcat-9.0.14/webapps/ROOT/WEB-INF/gems/gems/paperclip-5.1.0/lib/paperclip/storage/filesystem.rb:49: warning: even though it seems like argument prefix
and gains these lines:
←[31mCould not find gem 'tzinfo-data java' in any of the gem sources listed in your Gemfile or available on this machine.←[0m
←[33mRun `bundle install` to install missing gems.←[0m
The error on the webpage at http://localhost:8080/ changes to:
exit from org/jruby/RubyKernel.java:714:in `exit' from org/jruby/RubyKernel.java:677:in `exit' from D:/apache-tomcat-9.0.14/webapps/ROOT/WEB-INF/gems/gems/bundler-1.13.1/lib/bundler/setup.rb:17:in `<main>' from org/jruby/RubyKernel.java:956:in `require' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1:in `(root)' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:133:in `<main>' from org/jruby/RubyKernel.java:956:in `require' from D:/apache-tomcat-9.0.14/webapps/ROOT/WEB-INF/config/boot.rb:6:in `(root)' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1:in `(root)' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55:in `require' from uri:classloader:/jruby/rack/rails/environment3.rb:23:in `<main>'
because I ask for tzinfo-data, but it is not present, and it doesn't go get it for me.

Help page:
TZInfo attempts to load tzinfo-data by calling require 'tzinfo/data'. If the tzinfo-data/lib directory is on the Ruby load path, then TZInfo will be able to find and use tzinfo-data.
But I don't know where is "the Ruby load path".  I have an application, not Ruby.

Help page:
If you are not using a dependency management system such as Bundler, then installing the tzinfo-data gem should be sufficient to resolve the error.  [Run] gem install tzinfo-data .
But the app has no command-line interface where I could type that in. There is no executable file (exe/bat/cmd/jar) named Gem or Ruby.
Tomcat invokes Ruby to serve the page, but Ruby runtime is buried somewhere inside.
D:\apache-tomcat-9.0.14\webapps\ROOT\WEB-INF\bundle.bat exists, but it calls "ruby.exe", which is not present.  (Can I just drop in ruby.exe?  (I doubt it.))

After I installed Ruby, which comes with gem.cmd and ruby.exe, I can run gem install tzinfo-data.  That makes Ruby 2.5.x add concurrent-ruby-1.1.4, tzinfo-2.0.0, and tzinfo-data-1.2018.9 to C:\Ruby25-x64\lib\ruby\gems\2.5.0\gems . (Ruby 2.6.x adds tzinfo-data-1.2018.9 to C:\Ruby26-x64\lib\ruby\gems\2.6.0\gems , keeping (latest) concurrent-ruby-1.1.4 and (older) tzinfo-1.2.5.)  But Ruby added them to its own local folder, NOT the application folder where I need tzinfo-data.  Can I make it I update the collection inside the app folder?  (Spoiler: yes.)  Can I just copy the folder(s) over?  (Spoiler:  probably not.)

I tried copying the folders.  I got various errors, but it never worked.  (Possibly because I omitted the , platforms: [:mingw, :mswin, :x64_mingw].  But I'm not going to retest now to see whether it would have worked.)

I found a comand to make RubyGems install the needed gem to the application's collection:
gem install tzinfo-data -include-dependencies --install-dir D:\apache-tomcat-9.0.14\webapps\ROOT\WEB-INF\gems
It added 3 gems (concurrent-ruby-1.1.4, tzinfo-2.0.0, and tzinfo-data-1.2018.9) .
(credit: https://jeremiahflaga.github.io/2017/04/08/problems-encountered-with-jekyll-powered-blog/ )

The Tomcat console output shows this new error (and neither of the others):
←[31mUnable to find a spec satisfying tzinfo-data (>= 0) in the set. Perhaps the lockfile is corrupted?←[0m
←[33mRun `bundle install` to install missing gems.←[0m
The error on the webpage at http://localhost:8080/ stays the same, (except that it mentions "...WEB-INF/gems/gems/bundler-2.0.1..." instead of "...WEB-INF/gems/gems/bundler-1.13.1...".)
[I will reboot and continue.]

Ruby 2.5 (full) doesn't come with bundler, and an attempt to add it (gem install bundler) failed.  Ruby 2.6 comes with bundle.

Somewhere else someone say you have run bundle update after installing tzinfo-data.
So I tried a command line that I think should update the application's collection:
bundle update --gemfile D:\apache-tomcat-9.0.14\webapps\ROOT\WEB-INF\Gemfile
Result is this:  It made updates to the collection inside Ruby 2.6 (not the app), and it crashed:
...
Fetching warden 1.2.7 (was 1.2.6)
Installing warden 1.2.7 (was 1.2.6)
Fetching devise 3.5.10
Installing devise 3.5.10
Fetching devise-encryptable 0.2.0
Installing devise-encryptable 0.2.0
Fetching unf_ext 0.0.7.5 (x64-mingw32) (was 0.0.7.2)
Installing unf_ext 0.0.7.5 (x64-mingw32) (was 0.0.7.2)
Gem::RuntimeRequirementNotMetError: unf_ext requires Ruby version >= 2.0, < 2.6.
The current ruby version is 2.6.1.33.
An error occurred while installing unf_ext (0.0.7.5), and Bundler cannot
continue.
Make sure that `gem install unf_ext -v '0.0.7.5' --source
'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  localeapp was resolved to 3.1.1, which depends on
    rest-client was resolved to 2.0.2, which depends on
      http-cookie was resolved to 1.0.3, which depends on
        domain_name was resolved to 0.5.20180417, which depends on
          unf was resolved to 0.1.4, which depends on
            unf_ext
The app already had "unf-0.1.4-java", so I don't know why it was installing "unf_ext 0.0.7.5 (x64-mingw32) (was 0.0.7.2)"

Maybe I should have tried this first, but I didn't, I tried it second:
D:\apache-tomcat-9.0.14\webapps\ROOT\WEB-INF>bundle install --gemfile D:\apache-tomcat-9.0.14\webapps\ROOT\WEB-INF\Gemfile
It crashed:
...
Installing json 1.8.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
...
generator.c:861:25: error: 'rb_cFixnum' undeclared (first use in this function);
...
Ideas?

I tried adding require 'tzinfo' to D:\apache-tomcat-9.0.14\webapps\ROOT\WEB-INF\config\application.rb
Same weird error about the lockfile.

"[I'll] probably want to build a new war file using script/jenkins_build.sh"?  I downloaded a package.
I'd sooner run Linux in VirtualBox and install it there.  Which version of Linux breaks it?
Downloadable completely configured virtual machines are nice to have.  (ClockingIT has one online, but it is corrupted.)

Frank Orellana

unread,
Feb 6, 2019, 7:07:48 PM2/6/19
to jobsworth
Not sure if this helps but in linux I managed to solve this problem in a distro that didn't have timezone packages by default by installing systemwide the tzdata package, in this case, in alpine linux it was:

apk add tzdata
Which added the folder /usr/share/zoneinfo

that the error was mentioning, after that this error went away and I could see the login screen (it gave other errors when trying to login so I desisted).

Anyway, see the post I made yesterday where I managed to install using a docker container, you should be able to run in in a linux virtual machine (not sure if it will run dirrectly on windows), and maybe you will be able to try jobsworth that way.

regards.

IMeMeMine

unread,
Feb 8, 2019, 4:36:06 PM2/8/19
to jobsworth
    I never managed to make "bundle" update the collection under Tomcat.  It always updated the collection under Ruby.
    But I could use "gem install" to add gems under Tomcat.
    So I tried to supply the missing pieces.  (Probably too new.)
    (If I try again to make jobsworth run under Windows, I think I will try an older version of Ruby.)

    Tomcat said:  "Could not find gem 'sass-rails java' in any of the gem sources listed in your Gemfile.  Run `bundle install` to install missing gems."
    So I did:  gem install sass-rails -include-dependencies --install-dir D:\apache-tomcat-9.0.14\webapps\ROOT\WEB-INF\gems

    Tomcat said:  "Could not find gem ..."
    So I did:  gem install i18n -include-dependencies --install-dir D:\apache-tomcat-9.0.14\webapps\ROOT\WEB-INF\gems
    (I had 0.7.0.)  (It added the latest 1.5.3. That did not clear the error.)
    So I did:  gem install i18n -v '0.9.5' ...
    (It added the needed 0.905.)

    I didn't need 1.5.3, so I did: gem uninstall i18n -v '1.5.3' ...
    (It didn't uninstall 1.5.3.  It said "Gem 'i18n' is not installed".)

    Tomcat said:  "Could not find gem ..."
    So I did:  gem install activesupport -v '4.2.11' ...

    Tomcat said:  "Could not find nokogiri-1.10.1-java in any of the sources"
    (I had nokogiri-1.6.8-java.)
    So I did:  gem install nokogiri -v '1.10.11' ...
    gem said:  "ERROR:  Could not find a valid gem 'nokogiri' (= 1.10.11) in any repository  ERROR:  Possible alternatives: nokogiri"  (WHAT?  It can't not be there.)
    So I did:  gem install nokogiri --version '1.10.11'
    gem said:  ERROR:  Could not find a valid gem 'nokogiri' (= 1.10.11) in any repository  ..."  (WHAT?  It can't not be there.)
    So I did:  gem install nokogiri ...
    gem said:  "Successfully installed nokogiri-1.10.1-x64-mingw32"  (it went into folder "nokogiri-1.10.1-x64-mingw32")  (WHAT?  It couldn't find it when I specified the version, but it found that exact version when I didn't specify!)
    Tomcat said:  "Could not find nokogiri-1.10.1-java in any of the sources"  (still haven't fixed it.)
    So I did:  gem install nokogiri-1.10.11-java ...  (I made a bad guess of the name format.)
    gem said:  "ERROR:  Could not find a valid gem 'nokogiri-1.10.11-java' (>= 0) in any repository  ..."  (of course that failed.)
    So I did:  gem install nokogiri --platform java ....
    gem said:  "Successfully installed nokogiri-1.10.1"   (it went into folder "nokogiri-1.10.1")  (IT WORKED!) (but WHY does the folder name not include "-java"?)
    Tomcat said:  "Could not find nokogiri-1.10.1-java in any of the sources ..."  (still haven't fixed it.)
    So I did:  gem install nokogiri --platform ruby  (another guess)
    gem said:  "Done installing documentation for  after 0 seconds"  (WHAT?  Is it already installed?  Does --platform ruby imply java or x64-mingw32?)
    So I did:  gem install nokogiri --platform ruby --version '1.10.11'
    gem said:  "ERROR:  Could not find a valid gem 'nokogiri' (= 1.10.11) in any repository  ERROR:  Possible alternatives: nokogiri"  (same impossible absence)
    Tomcat said:  "Could not find nokogiri-1.10.1-java in any of the sources ..."  (still haven't fixed it.)

    I fooled with:  gem install bundler
    I fooled with:  bundle lock --add-platform ruby
    and numerous other attempted hacks.
    Some gave illusions of progress, and then it got stuck somewhere else.
    Too many dead ends.

    Tomcat still says:  "Could not find nokogiri-1.10.1-java in any of the sources ..."  (still haven't fixed it.)
    The webpage at http://localhost:8080/ still says:  "exit from org/jruby/RubyKernel.java:714:in `exit' from org/jruby/RubyKernel.java:677:in `exit' from D:/apache-tomcat-9.0.14/webapps/ROOT/WEB-INF/gems/gems/bundler-2.0.1/lib/bundler/setup.rb:17:in `<main>' from org/jruby/RubyKernel.java:956:in `require' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1:in `(root)' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:133:in `<main>' from org/jruby/RubyKernel.java:956:in `require' from D:/apache-tomcat-9.0.14/webapps/ROOT/WEB-INF/config/boot.rb:6:in `(root)' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1:in `(root)' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55:in `require' from uri:classloader:/jruby/rack/rails/environment3.rb:23:in `<main>' "

    My next stab at hosting jobsworth will be the install script, on a Linux (in a virtual machine).  I wonder how that will blow up - maybe any safe, current Linux will be too new.
    (If I try again to make jobsworth run under Windows, I think I will try an older version of Ruby.)  (Or maybe learn how to "rebuild" it with an added require.  I wonder how that will blow up - maybe an obvious update of one outdated gem will blow it away - or create a latent defect.)

IMeMeMine

unread,
Feb 8, 2019, 4:58:36 PM2/8/19
to jobsworth
    One obvious hack jumped out at me, so I tried it.
    I renamed "nokogiri-1.10.1" to "nokogiri-1.10.1-java".  Doesn't fix it.  (undid)
    I renamed "nokogiri-1.10.1-x64-mingw32" to "nokogiri-1.10.1-java".  Doesn't fix it.  (undid)
    The files and folders inside are only named "nokogiri" with no version or platform appended, so I shouldn't have to rename those.
    "nokogiri-1.6.8-java" folder contains "nokogiri.jar".  So it is Java.
    "nokogiri-1.10.1" folder contains "nokogiri.so".  (actually 2, in folders "ext" and "lib".)
    "nokogiri-1.10.1-x64-mingw32" folder contains "nokogiri.so".  (actually 4 of them, in folders "2.3", "2.4", "2.5", "2.6".)
    ".so" file contents begin with "MZ".  Windows .exe and .dll files begin with "MZ".
    So I really never got the Java version.


IMeMeMine

unread,
Feb 8, 2019, 5:05:28 PM2/8/19
to jobsworth
Continuing:

I tried:  gem install nokogiri --platform java --version '1.10.11' -include-dependencies --install-dir D:\apache-tomcat-9.0.14\webapps\ROOT\WEB-INF\gems
gem said:  ERROR:  Could not find a valid gem 'nokogiri' (= 1.10.11) in any repository

I tried:  gem install nokogiri --platform java [...]

gem said:  Done installing documentation for  after 0 seconds

I deleted all "nokogiri" folders and tried again.  same results.  (i put them back)

Frank Orellana

unread,
Feb 8, 2019, 5:22:51 PM2/8/19
to jobsworth
Well that seems complicated... I never managed to run it under windows either, but I just tried the jobsworth installer script in ubuntu 18.04 and it worked perfectly! (it worked too on older ubuntu 16.04 and 16.10, and debian 8.8)

I just followed the instructions here: https://github.com/frank-orellana/jobsworth-installer (yes I forgot them), and it worked with just these commands:

wget https://github.com/frank-orellana/jobsworth-installer/archive/master.tar.gz
tar xzf master.tar.gz
cd jobsworth-installer-master
chmod +x install-jobsworth.sh
sudo ./install-jobsworth.sh

And everything was done in around five minutes. Notice that this is just for installing not building it.

Frank Orellana

unread,
Feb 8, 2019, 5:23:50 PM2/8/19
to jobsworth
Also the docker script should run fine in any linux distro that supports docker.

IMeMeMine

unread,
Feb 10, 2019, 4:36:57 AM2/10/19
to jobsworth
  Thanks.  I went ahead and installed jobsworth stack under Linux, using the instructions, before I saw your reply.  It went smoothly, with only a few detours that were mostly from my ignorance.
  I ran Linux in VMs. My Xeons were released before 2011, so my computer can't run VMware. But it can run Oracle VirtualBox.
  I found the script page, so I installed the mentioned older Ubuntu (ubuntu-16.04.5-server-amd64.iso released 20180731) in VirtualBox, and the script worked fine there.
  (One minor confusion. I configured the VM's network as "NAT" to let it reach the Internet and repository; and then "VirtualBox Host-Only Ethernet Adapter" so that a browser on my pc could access its webserver at http://192.168.56.103:8080.  I didn't know that "bridged" (as-instructed) lets it do both (its webserver is at http://xxx.yyy.zzz.140:8080/ ).
  Now that I have seen it install as-advertised on 16.04, I plan to try it with the current Ubuntu LTS, 18.04, next.  It's good to know that 18.04 will work (doesn't break it).
  (The documentation pages are lagging, don't include the tests on the newer Ubuntu, including https://github.com/ari/jobsworth/wiki/How-to-install-Jobsworth-5-on-Ubuntu-16.10 )

  The above page mentions a "virtual machine already configured" that "can be downloaded from here.", a link to the Releases page: https://github.com/frank-orellana/jobsworth/releases .  There, "Instructions to run this VM:  Unpack it (Download zip file)".  That link is a bit.ly redirector to a dropbox URL that only says "404  That file isn’t here anymore".

  One big annoyance was:  VirtualBox (and others) have no provision for pasting the [text] clipboard into the "console terminal".  This is a glaring omission.  It is like the 1970s, when you would read a script from a manual and had no choice but to type it in on a Teletype. (Even then you could prepare a punchtape if the script was long and you used it often.)
  (Even if you install the "Guest Additions", you still can't paste text.  The included "clipboard sharing" only applies to [most] graphical Linux consoles, not the raw text-only Linux console of Ubuntu Server.)
  When you run a command prompt in Windows, it provides a way to paste the clipboard text into the text "console".  Not by Ctrl+V - that just types a local Ctrl+V.  Windows doesn't implement "clipboard sharing" with the console -- it wouldn't help because the console has no clipboard.  Instead, you click (or type Alt+space) to get the window's menu, and then click Edit and then Paste (or type E and then P).  Also, the mouse can select text from the console (without involving the app), and there are two ways to copy that text into the Windows clipboard.
  Almost every generic terminal client (for serial ports and/or telnet and ssh) provides the same functions ("paste" as-if typing, and "copy" that reads the simulated "glass teletype").
  So there are a few ways out:
  1) Wait for VirtualBox to add a "paste" command to its menu that types the Windows clipboard into the terminal session.  (They really should.)
  2) Install Windows macro software that can type the Windows clipboard into Windows, as if keystrokes.  (If you do this in a raw-text editor, the result would be the same as a true "paste" -- unless Insert is toggled off, then it will overtype some text.)  Then make the VM window current and trigger the macro.
  3) Run ssh server on the [virtual] Linux system, and then connect using PuTTY or similar on the Window computer.  Use only that "terminal"; don't use the Linux "console".  Optionally run the Linux "headless".
  4) If you have "Guest Additions" installed, you can set up a "shared folder".  Then, on the Windows side, copy long scripts into text files in that folder.  If you know all the needed Linux commands, you can quickly access and use the text files on the Linux side.
  5) Use Linux with GUI.  Then install "Guest Additions" to allow clipboard sharing (and then enable it).  Or: co-pilot the GUI console using TeamViewer - it implements clipboard sharing.  Or: use an XTerminal that runs on Windows - it should allow clipboard sharing, or at least type the Windows clipboard into the XTerminal.  (Either option might let you run the Linux GUI "headless".)
  6) Bite the bullet and type the longish commands.

  Bug?:  On the "Company Settings" page, http://xxx.yyy.zzz.140:8080/companies/1/edit I can set the "Company Name", but it doesn't show anywhere.  When I try to upload a logo, .jpg or .png, it says "We're sorry, but something went wrong.  We've been notified about this issue and we'll take a look at it shortly.".  (ClockingIT displays both, on the login page and most pages.)

  jobsworth might run under Windows if you just add "tz-info" into the requirements (even though it isn't needed under Linux) and build a new .war file.  (I'm just guessing here.)
  (Why have too many layers?)
  I could try, but I'd need to know which version of Ruby it was built under.  (Not sure yet.  Was it 1.5?  Can it use newer/newest Gems, or is that too risky?)


Well that seems complicated... I never managed to run it under windows either, but I just tried the jobsworth installer script in ubuntu 18.04 and it worked perfectly! (it worked too on older ubuntu 16.04 and 16.10, and debian 8.8)

I just followed the instructions here: https://github.com/frank-orellana/jobsworth-installer (yes I forgot them), and it worked with just these commands:

wget https://github.com/frank-orellana/jobsworth-installer/archive/master.tar.gz
tar xzf master.tar.gz
cd jobsworth-installer-master
chmod +x install-jobsworth.sh
sudo ./install-jobsworth.sh

=====
Also the docker script should run fine in any linux distro that supports docker.

Well that seems complicated... I never managed to run it under windows either, but I just tried the jobsworth installer script in ubuntu 18.04 and it worked perfectly! (it worked too on older ubuntu 16.04 and 16.10, and debian 8.8)

Frank Orellana

unread,
Feb 10, 2019, 3:15:01 PM2/10/19
to jobsworth
Replying between lines:

Thanks.  I went ahead and installed jobsworth stack under Linux, using the instructions, before I saw your reply.  It went smoothly, with only a few detours that were mostly from my ignorance.
  I ran Linux in VMs. My Xeons were released before 2011, so my computer can't run VMware. But it can run Oracle VirtualBox.
  I found the script page, so I installed the mentioned older Ubuntu (ubuntu-16.04.5-server-amd64.iso released 20180731) in VirtualBox, and the script worked fine there.
Great!

  (One minor confusion. I configured the VM's network as "NAT" to let it reach the Internet and repository; and then "VirtualBox Host-Only Ethernet Adapter" so that a browser on my pc could access its webserver at http://192.168.56.103:8080.  I didn't know that "bridged" (as-instructed) lets it do both (its webserver is at http://xxx.yyy.zzz.140:8080/ ).
Yes you can also run it in NAT but you will have to either access it as localhost:8080 from your host or forward the port 8080 in virtualbox (and firewall if needed), to access it from everywhere else

  Now that I have seen it install as-advertised on 16.04, I plan to try it with the current Ubuntu LTS, 18.04, next.  It's good to know that 18.04 will work (doesn't break it).
  (The documentation pages are lagging, don't include the tests on the newer Ubuntu, including https://github.com/ari/jobsworth/wiki/How-to-install-Jobsworth-5-on-Ubuntu-16.10 )
Yes there hasn't been much response so I didn't update this, I will update it to reflect that

  The above page mentions a "virtual machine already configured" that "can be downloaded from here.", a link to the Releases page: https://github.com/frank-orellana/jobsworth/releases .  There, "Instructions to run this VM:  Unpack it (Download zip file)".  That link is a bit.ly redirector to a dropbox URL that only says "404  That file isn’t here anymore".
Hmm, I think you need to have a dropbox account to access it. Does anyone know of a better file sharing service so I can upload it there instead of dropbox?

  One big annoyance was:  VirtualBox (and others) have no provision for pasting the [text] clipboard into the "console terminal".  (...)
Yes, that... is just the way it is with linux and virtualbox, if you are running a text only virtual machine then the best option is the one you mention:
"3) Run ssh server on the [virtual] Linux system, and then connect using PuTTY or similar on the Window computer.  Use only that "terminal"; don't use the Linux "console"." Or if you are new to this, simply run a linux distro with a desktop environment.

  Bug?:  On the "Company Settings" page, http://xxx.yyy.zzz.140:8080/companies/1/edit I can set the "Company Name", but it doesn't show anywhere.  When I try to upload a logo, .jpg or .png, it says "We're sorry, but something went wrong.  We've been notified about this issue and we'll take a look at it shortly.".  (ClockingIT displays both, on the login page and most pages.)
Not sure, maybe show the logs of errors and maybe that will help someone to fix it if it.

  jobsworth might run under Windows if you just add "tz-info" into the requirements (even though it isn't needed under Linux) and build a new .war file.  (I'm just guessing here.)
  (Why have too many layers?)
  I could try, but I'd need to know which version of Ruby it was built under.  (Not sure yet.  Was it 1.5?  Can it use newer/newest Gems, or is that too risky?)
No idea, if you manage to update it I guess @Ari would be able to merge it in to the repository
Reply all
Reply to author
Forward
0 new messages