-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tj3d issue and work-around #168
Comments
Based on this I came up with different workaround. It requires ruby-activesupport, but should provide a more robust way to check if a timezone is valid:
|
The same import failure happens to me:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wouldn't call this a fix, but it made the issue (which seem to be somewhat common) go away. The problem was my issue with tj3d. I started with an absolutely fresh and up-to-date Fedora 21 installation (x86_64), taskjuggler installed via RPM which automatically installed ruby with YAML support.
tj3 works like a charm. I use it HEAVILY. Trying to start using the tj3d and tj3webd functionality to take it to the next level, I tried for the first time to bring up tj3d with a project I spend more time working on that I should. That failed. I it would get stuck trying to import the project. So I grabbed the tutorial.tjp and tried loading that. This attempt failed as well. So I started exploring and found that many folks have experienced similar issues. There were some suggestions regarding the confirmation of YAML support. Those tests passed for me.
So I attempted to throw tj3d into heavy debugging mode:
tj3d -d -w --debug -p 12345 -c .taskjugglerrc tutorial.tjp
I chose a crazy port that wasn't default so it would be easier to spot in the log files
The .taskjugglerrc was straight from the tutorial (just one level higher on the debugging):
Here is the stderr log file created during my last failed run:
So, I went exploring the TjTime.rb file mentioned in the log file above. Line 79 looks like it is trying to set the TZ environment variable.
I have never written a single line of ruby - ever. I set and exported a TZ environment variable and achieved the same results as before - failure. Looking closer at the stderr output I found this line and did a little more research about setting SAFE in ruby.
Fatal: Insecure operation - []=
Not knowing anything about anything, I then commented out line 79. That's it. Just commented it out. I unset the previously set TZ environment variable.
The who.le show works now. All tutorial examples work. My large project file works with all of it's crazy includes and booking statement files. The web interface works. I am running the very simple .taskjugglerrc file as above and can run tj3d and tj3webd without any arguments - like I said straight from the tutorial.
This is just a fantastic project and want to help in any way I can. I wouldn't call this a fix, but it now causes everything that I know to try from the tutorial --- to work. Maybe this will help others.
Please use the suggestion to alter TjTime.rb at your own risk. I have only done basic testing, but wow...
Thank you to the group for all of your efforts.
By the way, this is my first post / issue with my just created github account. - so please flame me too hard for a newbie style post.
The text was updated successfully, but these errors were encountered: