Bug#678515: redmine: 500 Internal Server Error. Incompatible character encodings: ASCII-8BIT and UTF-8

2012-07-03 Thread Jérémy Lal
On 03/07/2012 06:44, Holger Friedrich wrote:
 Hi,
 we had the same problem when upgrading to ruby 1.9. Rolling back to ruby
 1.8 using update-alternatives helped of course as a quick workaround
 until we found out about mysql2 adapter.
 
 Yes, mysql2 adapter is not included in Debian.
 
 For everybody who needs a quick workaround:
 1) edit /etc/redmine/default/database.yml, change adapter from mysql to
 mysql2
 2) install libmysqlclient-dev
 3) edit /usr/share/redmine/Gemfile, uncomment the following lines
group :mysql do
  gem mysql2, ~ 0.2.7
end
 (you will probably need to do this again if the redmine package is upgraded)
 4) run bundle install from /usr/share/redmine
 
 It is important to get the 0.2 version of the mysql2 gem, the 0.3 series
 does not include the activerecord-mysql2-adapter we need (as it is
 included in Rails 3.1).

... and break your install next time redmine updates its dependencies.

I'd like to know if /etc/redmine/default/database.yml has encoding
properly set and matching your database encoding.







-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#678515: redmine: 500 Internal Server Error. Incompatible character encodings: ASCII-8BIT and UTF-8

2012-07-03 Thread Jérémy Lal
never mind, bug confirmed.

Jérémy.




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#678515: redmine: 500 Internal Server Error. Incompatible character encodings: ASCII-8BIT and UTF-8

2012-07-03 Thread Holger Friedrich

Hi Jeremy,

... and break your install next time redmine updates its dependencies.

yes...

I'd like to know if /etc/redmine/default/database.yml has encoding
properly set and matching your database encoding.

utf8

Best,
Holger



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#678515: redmine: 500 Internal Server Error. Incompatible character encodings: ASCII-8BIT and UTF-8

2012-07-02 Thread Holger Friedrich
Hi,
we had the same problem when upgrading to ruby 1.9. Rolling back to ruby
1.8 using update-alternatives helped of course as a quick workaround
until we found out about mysql2 adapter.

Yes, mysql2 adapter is not included in Debian.

For everybody who needs a quick workaround:
1) edit /etc/redmine/default/database.yml, change adapter from mysql to
mysql2
2) install libmysqlclient-dev
3) edit /usr/share/redmine/Gemfile, uncomment the following lines
   group :mysql do
 gem mysql2, ~ 0.2.7
   end
(you will probably need to do this again if the redmine package is upgraded)
4) run bundle install from /usr/share/redmine

It is important to get the 0.2 version of the mysql2 gem, the 0.3 series
does not include the activerecord-mysql2-adapter we need (as it is
included in Rails 3.1).

Best,
Holger





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#678515: redmine: 500 Internal Server Error. Incompatible character encodings: ASCII-8BIT and UTF-8

2012-06-28 Thread Marc Dequènes (Duck)

tag 678515 + confirmed
severity 678515 grave
thanks


Coin,

As Ruby 1.9 is now the default, this application is now unusable for  
the default installation, thus bumping severity accordingly.


Btw, according to upstream authors, the mysql2 adapters is to be used  
with Ruby 1.9 instead of the traditional mysql backend. I don't  
understand why, but if he is right, this package is missing in Debian  
so there is no easy workaround. According to [1], we would need  
ruby-mysql2 0.2.7, and not earlier versions.


Regards.

[1] https://github.com/brianmario/mysql2#activerecord

--
Marc Dequènes (Duck)


pgpK05qboEPjz.pgp
Description: PGP Digital Signature


Bug#678515: redmine: 500 Internal Server Error. Incompatible, character encodings: ASCII-8BIT and UTF-8

2012-06-27 Thread Christian Blaich
Hi,

i posted my Version of the Problem here:
http://www.redmine.org/issues/11280#change-39349

bad answer :(

fixed it with changing the language from ger to english!



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#678515: redmine: 500 Internal Server Error. Incompatible character encodings:, ASCII-8BIT and UTF-8

2012-06-27 Thread Christian Blaich
Sry the information fixed it with changing the language from ger to
english! was wrong!
update-alternatives --config ruby from above helped me!



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#678515: redmine: 500 Internal Server Error. Incompatible character encodings: ASCII-8BIT and UTF-8

2012-06-25 Thread Dario Minnucci

Hi Patrice (and all),

 I have got the same problem but switching back to use Ruby 1.8 as
 default ruby command solved this. May be using update-alternatives
 command or removing both the ruby and ruby1.9.1 packages if no
 dependency.


It seems that forcing to use Ruby 1.8 via update-alternatives solves the issue:


# update-alternatives --config ruby
There are 2 choices for the alternative ruby (providing /usr/bin/ruby).

  SelectionPathPriority   Status

* 0/usr/bin/ruby1.9.1   51auto mode
  1/usr/bin/ruby1.8 50manual mode
  2/usr/bin/ruby1.9.1   51manual mode

Press enter to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/bin/ruby1.8 to provide /usr/bin/ruby (ruby) in 
manual mode.


Note: I'm not reasigning this bug to the Ruby packages since Redmine Team may 
want to handle it in
some other way.

Regards.

-- 
 Dario Minnucci mid...@debian.org
 Phone: +34 902884117 | Fax: +34 902024417 | Support: +34 80745
 Key fingerprint = BAA1 7AAF B21D 6567 D457  D67D A82F BB83 F3D5 7033




signature.asc
Description: OpenPGP digital signature


Bug#678515: redmine: 500 Internal Server Error. Incompatible character encodings: ASCII-8BIT and UTF-8

2012-06-25 Thread Jérémy Lal
Hi,
i'm testing redmine 1.4.4 with ruby1.9, but i can't
reproduce the issue you describe, probably because
i'm testing with a sqlite3 backend.

* are you using mysql backend ?
* did you install a mysql gem as root ?
* did you test using redmine 1.4.4 / latest ruby 1.9.3 ?

Jérémy.




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#678515: redmine: 500 Internal Server Error. Incompatible character encodings: ASCII-8BIT and UTF-8

2012-06-22 Thread midget
Package: redmine
Version: 1.4.3+dfsg1-1
Severity: important

Dear Maintainer,

It seems that redmine is not properly handling characters as á, é, í, ó, ú, ñ 
when they are part of issue subject, issue description, commit message, etc...


When this occurs, this message is displayed:


Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine
administrator for assistance.

If you are the Redmine administrator, check your log files for details
about the error.


and you can read in /var/log/redmine/default/fastcgi.crash.log:


Processing ActivitiesController#index (for IP_ADDRESS at 2012-06-22 13:24:18) 
[GET]
  Parameters: {controller=activities, action=index, 
id=MY_PROJECT}
Rendering template within layouts/base
Rendering activities/index

ActionView::TemplateError (incompatible character encodings: ASCII-8BIT and 
UTF-8) on line #24 of app/views/activities/index.html.erb:
21: %= content_tag('p', l(:label_no_data), :class = 'nodata') if 
@events_by_day.empty? %
22: 
23: div style=float:left;
24: %= link_to_content_update(\xc2\xab  + l(:label_previous),
25:params.merge(:from = @date_to - @days - 1),
26::title = l(:label_date_from_to, :start = 
format_date(@date_to - 2*@days), :end = format_date(@date_to - @days - 1))) %
27: /div

app/views/activities/index.html.erb:24:in `concat'
app/views/activities/index.html.erb:24
/usr/lib/ruby/vendor_ruby/action_view/renderable.rb:34:in `block in render'
/usr/lib/ruby/vendor_ruby/action_view/base.rb:306:in `with_template'
/usr/lib/ruby/vendor_ruby/action_view/renderable.rb:30:in `render'
/usr/lib/ruby/vendor_ruby/action_view/template.rb:205:in `render_template'
/usr/lib/ruby/vendor_ruby/action_view/base.rb:265:in `render'
/usr/lib/ruby/vendor_ruby/action_view/base.rb:348:in `_render_with_layout'
/usr/lib/ruby/vendor_ruby/action_view/base.rb:262:in `render'
/usr/lib/ruby/vendor_ruby/action_controller/base.rb:1252:in 
`render_for_file'
/usr/lib/ruby/vendor_ruby/action_controller/base.rb:936:in `render'
/usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:51:in `block in 
render_with_benchmark'
/usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:51:in 
`render_with_benchmark'
/usr/lib/ruby/vendor_ruby/action_controller/base.rb:1328:in `default_render'
/usr/lib/ruby/vendor_ruby/action_controller/base.rb:1334:in `perform_action'
/usr/lib/ruby/vendor_ruby/action_controller/filters.rb:617:in `call_filters'
/usr/lib/ruby/vendor_ruby/action_controller/filters.rb:610:in 
`perform_action_with_filters'
/usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:68:in `block in 
perform_action_with_benchmark'
/usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:68:in 
`perform_action_with_benchmark'
/usr/lib/ruby/vendor_ruby/action_controller/rescue.rb:160:in 
`perform_action_with_rescue'
/usr/lib/ruby/vendor_ruby/action_controller/flash.rb:151:in 
`perform_action_with_flash'
/usr/lib/ruby/vendor_ruby/action_controller/base.rb:532:in `process'
/usr/lib/ruby/vendor_ruby/action_controller/filters.rb:606:in 
`process_with_filters'
/usr/lib/ruby/vendor_ruby/action_controller/base.rb:391:in `process'
/usr/lib/ruby/vendor_ruby/action_controller/base.rb:386:in `call'
/usr/lib/ruby/vendor_ruby/action_controller/routing/route_set.rb:438:in 
`call'
/usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:87:in `dispatch'
/usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:121:in `_call'
/usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:130:in `block in 
build_middleware_stack'
/usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:29:in `call'
/usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:29:in `block in call'

/usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/query_cache.rb:34:in
 `cache'
/usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:9:in `cache'
/usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:28:in `call'

/usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/connection_pool.rb:361:in
 `call'
/usr/lib/ruby/vendor_ruby/action_controller/string_coercion.rb:25:in `call'
/usr/lib/ruby/vendor_ruby/rack/head.rb:9:in `call'
/usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:21:in `call'
/usr/lib/ruby/vendor_ruby/action_controller/params_parser.rb:15:in `call'
/usr/lib/ruby/vendor_ruby/action_controller/session/cookie_store.rb:99:in 
`call'
/usr/lib/ruby/vendor_ruby/action_controller/failsafe.rb:26:in `call'
/usr/lib/ruby/vendor_ruby/rack/lock.rb:15:in `call'
/usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:106:in `call'
/usr/lib/ruby/vendor_ruby/rack/handler/fastcgi.rb:66:in `serve'
public/dispatch.fcgi:24:in `main'

Rendering /usr/share/redmine/public/500.html (500 Internal Server Error)


Don't