mc0e reported a 500 Internal Server Error when sending private messages, caused by an ArgumentError when comparing a string to an integer in topic_user.rb. Investigation revealed that the default_other_auto_track_topics_after_msecs Site Setting was incorrectly stored as a string (“0”) instead of an integer. codinghorror suggested updating to the latest version, but mc0e confirmed the issue persisted after a standard update. zogstrip identified the root cause as a bug where the setting saves as a string and provided a temporary console fix, though mc0e noted the change did not persist. After zogstrip submitted an initial fix, mc0e reported that the fix was not applied due to a CI delay in merging to the tests-passed branch. zogstrip subsequently provided a second, definitive fix. mc0e inquired about the CI integration schedule, and zogstrip explained the typical 10-minute turnaround time for broken builds. The issue was ultimately resolved, and mc0e confirmed the message sending functionality is now working.
When trying to send a message to a particular user (or at least not all users) I’m seeing a 500 error.
In the production log I see:
production.log:
Started POST "/posts" for 168.1.6.43 at 2015-09-09 07:35:10 +0000
Processing by PostsController#create as JSON
Parameters: {"raw"=>"Test junk - McNaughty, and we don't have proper way to get root password, but then decided to walk yet, and then I'll look at it when I have the dimensions of knots and then we should look at logs.", "title"=>"testing", "is_warning"=>"false", "archetype"=>"private_message", "target_usernames"=>"LDC", "typing_duration_msecs"=>"10100", "composer_open_duration_msecs"=>"176608", "nested_post"=>"true"}
Completed 500 Internal Server Error in 142ms (ActiveRecord: 30.6ms)
ArgumentError (comparison of String with 0 failed)
/var/www/discourse/app/models/topic_user.rb:102:in `>='
looking at topic_user.rb, it appears that the error results from the following resulting in a string value in:
So it appears that it’s the Site default setting that is the issue. There’s no non numeric characters in that value, but I am getting a string value where a numeric one is expected.
OK, I tried that. It doesn’t stick. e.g. if I do it and then restart the rails console it’s back to how it was before with a string value. Also doesn’t fix the message sending in the site.
What’s the schedule for moving stuff into tests-passed? IS there a CI testing and integration process that kicks off when the commit is entered into master, or is it periodic? How long does it generally take?