If you are the redmine administrator check your log files for details about the error

Redmine

Forums » Open discussion »

Hello there,

I’ve migrated a redmine 1.4 instance from Ubuntu to Gentoo linux. I’ve used too ways of doing this, but in both I get the same error.

1st time I tried emerge -s www-apps/redmine. it installed redmine 1.4.5, on which I imported the old database from the Ubuntu server.

2nd time I downloaded via svn (from redmine repository). It installed redmine 1.4.6, and I used the same configs & database as for the 1st time.

Apache config looks like this:

_<VirtualHost a.b.c.d:443>
ServerName redmine.itmcd.ro
#DocumentRoot /var/lib/redmine/public
DocumentRoot /host/w/itmc/itmcd.ro.redmine/public
Include /host/w/itmc/.apache2/itmcd.ro.ssl.include
#<Directory /var/lib/redmine/public>
<Directory /host/w/itmc/itmcd.ro.redmine/public>
RailsBaseURI /
PassengerResolveSymlinksInDocumentRoot on

Allow from all
AllowOverride all
Order allow,deny
</Directory>
ErrorLog /host/w/itmc/logs/error.redmine.log

  1. Possible values include: debug, info, notice, warn, error, crit,
  2. alert, emerg.
    LogLevel warn
    CustomLog /host/w/itmc/logs/access.redmine.log combined
    </VirtualHost>_

My problem?
I cannot edit nor add users. I always get this message, while in logs (neither apache, neither redmine) I can’t see anything:

_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.

Back_

Any ideas?


RE: Internal error on user edit page / no logs

Added by Harry Garrood about 10 years ago

The Redmine logs should be in /path/to/redmine/log/production.log. If there’s no file there, check permissions?

Also you might try just installing Redmine yourself. There are plenty of guides to manually installing it, and not only will you get a version with many more goodies, you’ll also understand how it’s set up a bit better, which will definitely benefit you in the long term.

If you must have a pre-packaged Redmine, I’ve had a good experience with the bitnami stacks.


RE: Internal error on user edit page / no logs

Added by Harry Garrood about 10 years ago

Ah yes — sorry, didn’t read that properly.

I don’t know about the gentoo packaged one, so I can’t help you with that. I can help you with the one you installed from svn, though.

The SVN one won’t write logs in /var/log/redmine — it will use the log directory in the directory where you checked it out.

Is it definitely in the production environment? What command did you use to start Redmine? It might have defaulted to the development environment — try this:

bundle exec rails server production

and then check production.log. Or even just watch the terminal after running that — everything that gets logged is also printed to STDOUT.

Internal error 500 thrown when I try to navigate through Redmine. I have googled error and found some clues but none helped.

I was following this set up guide to install redmine. You can find it HERE

Error looks like this:

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.

Back

niton's user avatar

niton

1,78614 silver badges21 bronze badges

asked Mar 21, 2014 at 0:15

Maciej Cygan's user avatar

Solved by doing this :

Step 8 — File system permissions¶

NB: Windows users can skip this section.

The user account running the application must have write permission on
the following subdirectories:

files (storage of attachments) log (application log file
production.log) tmp and tmp/pdf (create these ones if not present,
used to generate PDF documents among other things)
public/plugin_assets (assets of plugins) E.g., assuming you run the
application with a redmine user account:

mkdir -p tmp tmp/pdf public/plugin_assets sudo chown -R
redmine:redmine files log tmp public/plugin_assets sudo chmod -R 755
files log tmp public/plugin_assets Step 9 — Test the installation Test
the installation by running WEBrick web server:

with Redmine 1.4.x: ruby script/server webrick -e production with
Redmine 2.x: ruby script/rails server webrick -e production Once
WEBrick has started, point your browser to http://:3000/. You
should now see the application welcome page.

Note: Webrick is not suitable for production use, please only use
webrick for testing that the installation up to this point is
functional. Use one of the many other guides in this wiki to setup
redmine to use either Passenger (aka mod_rails), FCGI or a Rack server
(Unicorn, Thin, Puma, hellip;) to serve up your redmine.

answered Mar 21, 2014 at 0:28

Maciej Cygan's user avatar

Centos 7 + Redmine 3.1.1 на Ruby 2.2 Rails 4.2.4 + nginx 1.8 + unicorn.
На домашнюю страницу заходит, всё без проблем. При попытке перейти в Задачи или любую другую вкладку:

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.

В production.log вот что получается:

Started GET «/projects/redmine/issues/new» for 127.0.0.1 at 2015-10-19 17:56:29 +0300
Processing by IssuesController#new as HTML
Parameters: {«project_id»=>»redmine»}
Current user: admin (id=1)
Rendered issues/_form_custom_fields.html.erb (2.8ms)
Rendered issues/_attributes.html.erb (13.5ms)
Rendered issues/_form.html.erb (20.1ms)
Rendered attachments/_form.html.erb (1.9ms)
Rendered issues/new.html.erb within layouts/base (23.1ms)
Completed 500 Internal Server Error in 45ms (ActiveRecord: 9.8ms)

ActionView::Template::Error ([bug] frozen object (JSON::Ext::Generator::State) allocated):
11: <% end %>
12:
13:
14: <%= file_field_tag ‘attachments[dummy][file]’,
15: :id => nil,
16: :class => ‘file_selector’,
17: :multiple => true,
app/views/attachments/_form.html.erb:14:in _app_views_attachments__form_html_erb__3514053648094117852_93197800'
app/views/issues/new.html.erb:33:in
block in _app_views_issues_new_html_erb___3060175743672650348_84590520′
app/helpers/application_helper.rb:1027:in labelled_form_for'
app/views/issues/new.html.erb:5:in
_app_views_issues_new_html_erb___3060175743672650348_84590520′
app/controllers/issues_controller.rb:130:in block (2 levels) in new'
app/controllers/issues_controller.rb:129:in
new’
lib/redmine/sudo_mode.rb:63:in `sudo_mode’

Сталкивался кто-нить с подобным?

aleksandr barakin's user avatar

задан 19 окт 2015 в 15:10

Бум-Ди-Ги-Бай's user avatar

1

У вас очень странные названия файлов.
поидее вместо
_app_views_attachments__form_html_erb__3514053648094117852_93197800
_app_views_issues_new_html_erb___3060175743672650348_84590520

должно бы быть:

app_views_attachments__form_html.erb
app_views_issues_new_html.erb

Посмотрите свои конфиги.

ответ дан 20 окт 2015 в 16:48

Dofri's user avatar

DofriDofri

1,0702 золотых знака11 серебряных знаков26 бронзовых знаков

1

У меня была такая же проблема — я сделал следующее для ее разрешения:

  1. Переименовал папку «vendor» в «vendorx»
  2. Выполнил команду bundle

Вот так:

mv vendor vendorx
bundle install

После этого все вернулось к нормальной работе, и когда я понял, что все в порядке, я удалил папку «vendorx»

Nicolas Chabanovsky's user avatar

ответ дан 23 окт 2015 в 10:09

Lorin Thwaits's user avatar

1

Содержание

  1. Redmine 500 Внутренняя ошибка
  2. 1 ответ 1
  3. Redmine
  4. Задачи
  5. Сохранённые запросы
  6. Defect #30851
  7. Redmine 4.0.1 Internnal error 500 on accessing the settings page
  8. История
  9. #1 Обновлено net ops почти 4 года назад
  10. #2 Обновлено net ops почти 4 года назад
  11. #3 Обновлено Go MAEDA почти 4 года назад
  12. #4 Обновлено net ops почти 4 года назад
  13. #5 Обновлено net ops почти 4 года назад
  14. #6 Обновлено Holger Just почти 4 года назад
  15. #7 Обновлено net ops больше 3 лет назад
  16. = l(:label_settings) %>
  17. Redmine 500 Internal Error
  18. 1 Answer 1
  19. Redmine 500 error — create a New Issue #133
  20. Comments
  21. Redmine
  22. [Urgent Help!]Redmine 500 error(Mysql2::Error)

Redmine 500 Внутренняя ошибка

Внутренняя ошибка 500 выдается при попытке навигации через Redmine. Я погуглил ошибку и нашел некоторые подсказки, но никто не помог.

Я следовал этому руководству по установке Redmine. Вы можете найти это ЗДЕСЬ

Ошибка выглядит так:

Произошла ошибка на странице, к которой вы пытались получить доступ. Если проблемы не устранены, обратитесь за помощью к администратору Redmine.

Если вы являетесь администратором Redmine, проверьте файлы журналов для получения подробной информации об ошибке.

1 ответ 1

Шаг 8 — Разрешения файловой системы¶

NB. Пользователи Windows могут пропустить этот раздел.

Учетная запись пользователя, на котором запущено приложение, должна иметь разрешение на запись в следующих подкаталогах:

файлы (хранилище вложений) log (файл журнала приложения production.log) tmp и tmp/pdf (создавайте их, если они отсутствуют, используются для генерации PDF-документов, между прочим) public/plugin_assets (активы плагинов) Например, если вы запустите приложение с учетной записью пользователя Redmine:

mkdir -p tmp tmp/pdf public/plugin_assets sudo chown -R redmine: журнал redmine файлов tmp public/plugin_assets sudo chmod -R 755 файл журнала tmp public/plugin_assets Шаг 9 — Проверка установки Проверьте установку, запустив веб-сервер WEBrick:

с Redmine 1.4.x: скрипт ruby / сервера webrick -e производство с Redmine 2.x: скрипт ruby / сервера rails webrick -e production Как только WEBrick запустится, укажите в браузере http: //: 3000 /. Теперь вы должны увидеть страницу приветствия приложения.

Примечание: Webrick не подходит для производственного использования, используйте только webrick для проверки работоспособности установки до этого момента. Используйте одно из многих других руководств в этой вики, чтобы настроить redmine для использования Passenger (aka mod_rails), FCGI или Rack-сервера (Unicorn, Thin, Puma, hellip;) для обслуживания вашего redmine.

Источник

Redmine

Задачи

Сохранённые запросы

Defect #30851

Redmine 4.0.1 Internnal error 500 on accessing the settings page

Добавил(а) net ops почти 4 года назад. Обновлено больше 3 лет назад.

Статус: Reopened Начата:
Приоритет: Normal Дата выполнения:
Назначена: Готовность:
Категория: Administration
Версия:
Resolution: Invalid Affected version: 4.0.1

Описание

I’ve setup a brand new redmine 4.0.1 plateform and everything’s running fine but the «Settings» sub menu from «Administration» menu.
When I click on it, I’ve got an internal error (redmine error 500)

When I go back to my previous version redmine 3.4.5, I can access the Settings page, no problem.

Here is my configuration :

Centos 7 operating system
[redmine-4.0.1]# bundler -v
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock —add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
Bundler version 2.0.1

[redmine-4.0.1]# passenger -v
Phusion Passenger 6.0.1

[redmine-4.0.1]# ruby -v
ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-linux]

[redmine-4.0.1]# rails -v
Rails 5.2.2

Here’s my database.yml

Using seperate mysql server for redmine database:

This is error on the browsers:

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.

This is the exact error each time I click on Administration, Settings page in the production.log

I have also started the webrick server:

When I click on Settings, I get this in the webrick server conosle:

Thank you so much for your time in advance..

redmine.jpg (53,03 КБ) net ops, 2019-06-25 23:52

История

#1 Обновлено net ops почти 4 года назад

In looking around google search to troubleshoot this issue:

1. I have added 777 permission to redmine folder on my Centos 7 server:

2. I even added this in my mysql server,

3. Also I deleted the following groups from the users table: GroupNonMember and GroupAnonymous

#2 Обновлено net ops почти 4 года назад

I have these 2 plugins installed but I even tried without installing the plugins from fresh install, still cannot access Settings page period. Get Internal Error message.

#3 Обновлено Go MAEDA почти 4 года назад

  • Параметр Статус изменился с New на Closed
  • Параметр Resolution изменился на Invalid

Could you try the following command?

Please use forums for questions. Reading How to request help may be helpful for you.

#4 Обновлено net ops почти 4 года назад

  • Параметр Статус изменился с Closed на Reopened

I did tried that command as well that did not help either, I forgot to list it.

Is this a defect or configuration or setup issue?

Thanks for your time.

#5 Обновлено net ops почти 4 года назад

Nevemind, I will post it in Forums.

#6 Обновлено Holger Just почти 4 года назад

  • Описание обновлено (diff)

#7 Обновлено net ops больше 3 лет назад

I still have same issue with internal server error 500 when accessing the settings

it has to do with these files under this path: /web/servers/redmine-4.0.4/app/views/settings/edit.html.erb

if I remove the two line, then I see blank Settings page with no Internal server error

see screen shot attached:

[root@redmine-04 settings]# more edit.html.erb_ORIG

>
[root@redmine-04 settings]# more edit.html.erb

= l(:label_settings) %>

[root@redmine-04 settings]# pwd
/web/servers/redmine-4.0.4/app/views/settings
[root@redmine-04 settings]#

This is production.log below:

Processing by SettingsController#index as HTML
Current user: aqureshi (id=79)
Rendering settings/edit.html.erb within layouts/admin
Rendered settings/_general.html.erb (37.6ms)
Rendered settings/_display.html.erb (42.0ms)
Rendered settings/_authentication.html.erb (68.7ms)
Rendered settings/_api.html.erb (7.4ms)
Rendered settings/_projects.html.erb (57.9ms)
Rendered settings/_users.html.erb (476.1ms)
Rendered settings/_issues.html.erb (98.7ms)
Rendered common/_tabs.html.erb (1139.6ms)
Rendered settings/edit.html.erb within layouts/admin (1144.2ms)
Completed 500 Internal Server Error in 1203ms (ActiveRecord: 83.8ms)

ActionView::Template::Error (undefined method `close_duplicate_issues’ for # ):
7:
8:

Источник

Redmine 500 Internal Error

Internal error 500 thrown when I try to navigate through Redmine. I have googled error and found some clues but none helped.

I was following this set up guide to install redmine. You can find it HERE

Error looks like this:

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.

1 Answer 1

Solved by doing this :

Step 8 — File system permissions¶

NB: Windows users can skip this section.

The user account running the application must have write permission on the following subdirectories:

files (storage of attachments) log (application log file production.log) tmp and tmp/pdf (create these ones if not present, used to generate PDF documents among other things) public/plugin_assets (assets of plugins) E.g., assuming you run the application with a redmine user account:

mkdir -p tmp tmp/pdf public/plugin_assets sudo chown -R redmine:redmine files log tmp public/plugin_assets sudo chmod -R 755 files log tmp public/plugin_assets Step 9 — Test the installation Test the installation by running WEBrick web server:

with Redmine 1.4.x: ruby script/server webrick -e production with Redmine 2.x: ruby script/rails server webrick -e production Once WEBrick has started, point your browser to http://:3000/. You should now see the application welcome page.

Note: Webrick is not suitable for production use, please only use webrick for testing that the installation up to this point is functional. Use one of the many other guides in this wiki to setup redmine to use either Passenger (aka mod_rails), FCGI or a Rack server (Unicorn, Thin, Puma, hellip;) to serve up your redmine.

Источник

Redmine 500 error — create a New Issue #133

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.

Tested versions: 3.0.4, 3.1.0 and 2.6.5 (Same error)
Logs: Don´t show nothing.

The text was updated successfully, but these errors were encountered:

This container is running on

CentOS Linux release 7.1.1503 (Core)
3.10.0-229.7.2.el7.x86_64

@darioajr please make sure that you have loaded the default configuration from the administration page.

Yes, I loaded the default configurations In English and In Portuguese (New container), but the error persists.

@darioajr ok.. at this point I would suggest turning off selinux and retrying.

SELINUX of host machine was disabled.

@darioajr ok.. can you share you docker run or docker-compose.yml file so that I can try to reproduce this issue.

redmine:
image: sameersbn/redmine:3.1.0
environment:
— TZ=America/Sao_Paulo
— REDMINE_PORT=10083
— SMTP_ENABLED=true
— SMTP_DOMAIN=mailserv.xxxxxxxx.com.br
— SMTP_HOST=mailserv.xxxxxxxx.com.br
— SMTP_PORT=25
— DB_TYPE=mysql
— DB_HOST=bnsvher348
— DB_NAME=redmine
— DB_USER=redmine
— DB_PASS=Redmine@2015.
— NGINX_MAX_UPLOAD_SIZE=999m
ports:
— «10083:80»
volumes:
— /srv/docker/redmine/:/home/redmine/data

Howto capture the log to this error??

@darioajr oh.. sorry I did not find the time to look into this. give me a couple if minutes to check.

@darioajr I checked it and found no issues. can you try the following docker-compose file to check if you see the issue

here is th output of docker-compose up http://pastebin.com/77a8fJyj

Remember to load the default configuration first before creating a project. Let me know.

As far as I can tell there is nothing wrong with the image.

Ok , the error occurs when I add the following settings

  • SMTP_ENABLED=true
  • SMTP_DOMAIN=mailserv.xxxxxxxx.com.br
  • SMTP_HOST=mailserv.xxxxxxxx.com.br
  • SMTP_PORT=25

When I do an email to send test works, but let configured to send email when you create a task the error occurs.

My E-mail server is Exchange 2010, I´m using relay option in the host machine (server) , this configuration don’t need user and password and Allows send email with any «From» name .

Resolution:
Change SMTP parameters:
— SMTP_ENABLED=true
— SMTP_DOMAIN=mydomain
— SMTP_HOST=mailserv.mywebserver.com.br
— SMTP_PORT=25
— SMTP_STARTTLS=false
— SMTP_OPENSSL_VERIFY_MODE=none
— SMTP_TLS=false

@darioajr its weird that incorrect incorrect SMTP settings causes issues while accessing the «New Issue» page. Glad that you got it resolved.

Hi all,
I exactly had the same issue. The funny thing was that after disabling emails all outgoing emails in the admin section, the 500 error was gone. Then I activated emailing again. But now I was able to create new issues (even with enable email settings).
Weired thing.. And after a restart (of the container) the problem once again appeared.

hi,i got this error too,and here is production.log

•554 DT:SPM 发送的邮件内容包含了未被许可的信息,或被系统识别为垃圾邮件。请检查是否有用户发送病毒或者垃圾邮件;(The email contains information that has not been licensed, or is identified as spam by the system. Please check if there is a user to send a virus or spam)

if i set SMTP_METHOD:async_smtp , error is gone,but i can’t receive email.

Источник

Redmine

[Urgent Help!]Redmine 500 error(Mysql2::Error)

[Env.]Redmine 2.3.2 on windows
[Background]From yesterday, I found when click to «Repository» in redmine, speed is very slow, so I try to boot mongrel, I installed mongrel gem, and run «ruby script/rails server -e production», there is such message.

=> Booting Mongrel
=> Rails 3.2.13 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server

Then from today, there is interl 500 error, when developers doing «update» issue, I checked the log, there are 2 mysql erros shown below,I guess there maybe 2 reasons.

I remove mongrel info. from gemfile.lock and gemfile, run bundle install again, then restart redmine service, for I am not sure if 500 error is booting mongrel leads, so I did like that.

  • accessing «repository» and fetching changesets speed is too slow influences normal redmine usage

I am not sure if the 2 are the right reasons, so hope to get some guide and solution to this issue.

By the way, , our redmine is bitnami redmine, it has apache integrated, mongrel booting is unnecessary or not?

Hope to get help.

Started GET «/redmine/» for xxx at 2015-04-28 09:55:59 +0800
Processing by WelcomeController#index as HTML
Completed 500 Internal Server Error in 0ms

ActiveRecord::StatementInvalid (Mysql2::Error: Query execution was interrupted: SELECT `settings`.* FROM `settings` WHERE `settings`.`name` = ‘session_lifetime’ LIMIT 1):
app/models/setting.rb:171:in `find_or_default’
app/models/setting.rb:108:in `[]’
app/models/setting.rb:141:in `session_lifetime?’
app/controllers/application_controller.rb:64:in `session_expired?’
app/controllers/application_controller.rb:53:in `session_expiration’

Started GET «/redmine/issues/7101» for xxx at 2015-04-28 09:56:01 +0800
Processing by IssuesController#show as HTML
Parameters: <«id»=>«7101»>
Completed 500 Internal Server Error in 1045ms

Источник

The Redmine in this article was version up, however, was modified since the problem has occurred.
Problem Internal Server Error occurs when you try to open the Settings screen. In addition, also it fails by Internal Server Error when the file is attached.

Redmine3.1.1-> to 3.2.2 version up in safe and easily with 30 minutes — designetwork(EN)

  • Authority added to the configuration file
    • Error elimination of setting screen
  • Internal error
    • Attachments

Error elimination of setting screen

That’s the state of the up to here, an error occurs when you select the «Administration»> «Settings».

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.

The reason for this is lack authority of the new version of the file.

Old

[root@CentOS-01 ~]# ls -l /var/lib/redmine/tmp
total 0
drwxr-xr-x. 2 apache apache  6 May 24 02:03 cache
...

New

[root@CentOS-01 ~]# ls -l /var/lib/redmine-3.2.2/tmp
total 0
drwxrwxr-x. 2 1000 1000  6 May  6 03:39 cache
...

Privileges change.

[root@CentOS-01 ~]# chmod 777 /var/lib/redmine-3.2.2/tmp/cache/

[root@CentOS-01 ~]# ls -l  /var/lib/redmine-3.2.2/tmp
total 0
drwxrwxrwx. 2 1000 1000  6 May  6 03:39 cache

[root@CentOS-01 ~]# service httpd restart

This becomes accessible to the setting screen.

Attachments

Here in order to eliminate the error at the time of file attachments.

Old

[root@CentOS-01 ~]# ls -l /var/lib/redmine
total 52
drwxr-xr-x.  3 apache apache   33 Apr 22 19:04 files
...

New

[root@CentOS-01 ~]# ls -l /var/lib/redmine-3.2.2/
total 52
drwxrwxr-x.  3 1000 1000   33 May 26 01:46 files
...

Similarly, the authority added.

[root@CentOS-01 ~]# chmod 777 -R /var/lib/redmine-3.2.2/files/

[root@CentOS-01 ~]# ls -l /var/lib/redmine-3.2.2/
total 52
drwxrwxrwx.  3 1000 1000   33 May 26 01:46 files

[root@CentOS-01 ~]# service httpd restart

This also allows for file attachments.

I am trying to migrate an oldish installation:

Environment:
  Redmine version                          2.2.3.stable
  Ruby version                             1.9.3 (x86_64-linux)
  Rails version                            3.2.12
  Environment                              production
  Database adapter                         Mysql2
Redmine plugins:
  no plugin installed

to a new machine:

Environment:
  Redmine version                2.6.1.stable
  Ruby version                   1.9.3-p194 (2012-04-20) [x86_64-linux]
  Rails version                  3.2.21
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.6.17
  Mercurial                      2.2.2
  Bazaar                         2.6.0
  Git                            1.7.10.4
  Filesystem                     
Redmine plugins:
  redmine_dmsf                   1.4.9 stable

I did a simple backup on old server:

root@redmine www/redmine# /usr/bin/mysqldump -u root -p"...redmine" redmine_production | gzip > redmine_`date +%y_%m_%d`.gz
root@redmine www/redmine# tar cjf files.tar.bz2 files

and tried to restore it in the new (working, but empty) machine:

root@redmine ~# cd /var/www/redmine/
root@redmine www/redmine# scp mcon@syno0:files.tar.bz2 .
files.tar.bz2                                         100% 4229     4.1KB/s   00:00
root@redmine www/redmine# scp mcon@syno0:redmine_15_02_12.gz .
redmine_15_02_12.gz                                   100%   11KB  11.2KB/s   00:00

*** here Redmine server is STILL working ***

root@redmine www/redmine# service apache2 stop
[ ok ] Stopping web server: apache2 ... waiting .
root@redmine www/redmine# tar xjf files.tar.bz2
root@redmine www/redmine# zcat redmine_15_02_12.gz | mysql --user=root --password=...redmine     redmine_production
root@redmine www/redmine# rake db:migrate
==  Setup: migrating ==========================================================
-- create_table("attachments", {:force=>true})
   -> 0.0082s
-- create_table("auth_sources", {:force=>true})
   -> 0.0043s
-- create_table("custom_fields", {:force=>true})
   -> 0.0041s
-- create_table("custom_fields_projects", {:id=>false, :force=>true})
   -> 0.0043s
-- create_table("custom_fields_trackers", {:id=>false, :force=>true})
   -> 0.0037s
-- create_table("custom_values", {:force=>true})
   -> 0.0049s
-- create_table("documents", {:force=>true})
   -> 0.0041s
-- add_index("documents", ["project_id"], {:name=>"documents_project_id"})
   -> 0.0127s
-- create_table("enumerations", {:force=>true})
   -> 0.0052s
-- create_table("issue_categories", {:force=>true})
   -> 0.0036s
-- add_index("issue_categories", ["project_id"], {:name=>"issue_categories_project_id"})
   -> 0.0158s
-- create_table("issue_histories", {:force=>true})
   -> 0.0191s
-- add_index("issue_histories", ["issue_id"], {:name=>"issue_histories_issue_id"})
   -> 0.0143s
-- create_table("issue_statuses", {:force=>true})
   -> 0.0046s
-- create_table("issues", {:force=>true})
   -> 0.0045s
-- add_index("issues", ["project_id"], {:name=>"issues_project_id"})
   -> 0.0149s
-- create_table("members", {:force=>true})
   -> 0.0062s
-- create_table("news", {:force=>true})
   -> 0.0052s
-- add_index("news", ["project_id"], {:name=>"news_project_id"})
   -> 0.0139s
-- create_table("permissions", {:force=>true})
   -> 0.0044s
-- create_table("permissions_roles", {:id=>false, :force=>true})
   -> 0.0059s
-- add_index("permissions_roles", ["role_id"], {:name=>"permissions_roles_role_id"})
   -> 0.0168s
-- create_table("projects", {:force=>true})
   -> 0.0582s
-- create_table("roles", {:force=>true})
   -> 0.0045s
-- create_table("tokens", {:force=>true})
   -> 0.0044s
-- create_table("trackers", {:force=>true})
   -> 0.0037s
-- create_table("users", {:force=>true})
   -> 0.0048s
-- create_table("versions", {:force=>true})
   -> 0.0112s
-- add_index("versions", ["project_id"], {:name=>"versions_project_id"})
   -> 0.0428s
-- create_table("workflows", {:force=>true})
   -> 0.0059s
==  Setup: migrated (0.4712s) =================================================

**** MANY LINES, APPARENTLY WITHOUT ERROR ****

==  ChangeChangesetsCommentsLimit: migrating ==================================
-- change_column(:changesets, :comments, :text, {:limit=>16777216})
   -> 0.0081s
==  ChangeChangesetsCommentsLimit: migrated (0.0085s) =========================

==  AddPasswordChangedAtToUser: migrating =====================================
-- add_column(:users, :passwd_changed_on, :datetime)
   -> 0.0104s
==  AddPasswordChangedAtToUser: migrated (0.0108s) ============================

==  InsertBuiltinGroups: migrating ============================================
==  InsertBuiltinGroups: migrated (0.1441s) ===================================

root@redmine www/redmine# service apache2 start
[ ok ] Starting web server: apache2.
root@redmine www/redmine#

After this Redmine is no longer working.
Attempts to connect results in:

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.

Back

And I get the following log:

...
Connecting to database specified by database.yml
Creating scope :system. Overwriting existing method Enumeration.system.
Creating scope :sorted. Overwriting existing method User.sorted.
Creating scope :sorted. Overwriting existing method Group.sorted.
Started GET "/" for 192.168.7.114 at 2015-02-12 14:41:57 +0000
Processing by WelcomeController#index as HTML
  Current user: admin (id=1)
Completed 500 Internal Server Error in 75.0ms

NoMethodError (undefined method `passwd_changed_on' for #<User:0x00000006696f80>):
  app/controllers/application_controller.rb:150:in `force_logout_if_password_changed'

What am I doing wrong?

Redmine

Redmine 500 error

but when i go «http://myserverip» i get this 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.

Maybe anyone knows where the problem is?

Ответы (15)

RE: Redmine 500 error — Добавил(а) Martin Denizet (redmine.org team member) больше 8 лет назад

Hi Konstantin,
Can you please attach the last error in the log/production.log please?

RE: Redmine 500 error — Добавил(а) Konstantin Okorochkov больше 8 лет назад

Connecting to database specified by database.yml
Creating scope :system. Overwriting existing method Enumeration.system.
Creating scope :sorted. Overwriting existing method Group.sorted.
Creating scope :sorted. Overwriting existing method User.sorted.
Started GET «/» for 192.168.0.4 at 2014-07-14 15:57:18 +0400
Processing by WelcomeController#index as HTML
Completed 500 Internal Server Error in 3.7ms

ActiveRecord::StatementInvalid (Mysql2::Error: Table ‘redmine_db.settings’ doesn’t exist: SHOW FULL FIELDS FROM `settings`):
app/models/setting.rb:226:in `check_cache’
app/controllers/application_controller.rb:97:in `user_setup’

Started GET «/» for 192.168.0.4 at 2014-07-14 15:57:41 +0400
Processing by WelcomeController#index as HTML
Completed 500 Internal Server Error in 1.5ms

ActiveRecord::StatementInvalid (Mysql2::Error: Table ‘redmine_db.settings’ doesn’t exist: SHOW FULL FIELDS FROM `settings`):
app/models/setting.rb:226:in `check_cache’
app/controllers/application_controller.rb:97:in `user_setup’

and so on, many times.

RE: Redmine 500 error — Добавил(а) Martin Denizet (redmine.org team member) больше 8 лет назад

It seems you didn’t run the migration of the database.
To do so, cd to your Redmine installation path and run:

Источник

Redmine

Задачи

Сохранённые запросы

Defect #30851

Redmine 4.0.1 Internnal error 500 on accessing the settings page

Добавил(а) net ops почти 4 года назад. Обновлено больше 3 лет назад.

Статус: Reopened Начата:
Приоритет: Normal Дата выполнения:
Назначена: Готовность:
Категория: Administration
Версия:
Resolution: Invalid Affected version: 4.0.1

Описание

I’ve setup a brand new redmine 4.0.1 plateform and everything’s running fine but the «Settings» sub menu from «Administration» menu.
When I click on it, I’ve got an internal error (redmine error 500)

When I go back to my previous version redmine 3.4.5, I can access the Settings page, no problem.

Here is my configuration :

Centos 7 operating system
[redmine-4.0.1]# bundler -v
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock —add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
Bundler version 2.0.1

[redmine-4.0.1]# passenger -v
Phusion Passenger 6.0.1

[redmine-4.0.1]# ruby -v
ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-linux]

[redmine-4.0.1]# rails -v
Rails 5.2.2

Here’s my database.yml

Using seperate mysql server for redmine database:

This is error on the browsers:

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.

This is the exact error each time I click on Administration, Settings page in the production.log

I have also started the webrick server:

When I click on Settings, I get this in the webrick server conosle:

Thank you so much for your time in advance..

redmine.jpg (53,03 КБ) net ops, 2019-06-25 23:52

История

#1 Обновлено net ops почти 4 года назад

In looking around google search to troubleshoot this issue:

1. I have added 777 permission to redmine folder on my Centos 7 server:

2. I even added this in my mysql server,

3. Also I deleted the following groups from the users table: GroupNonMember and GroupAnonymous

#2 Обновлено net ops почти 4 года назад

I have these 2 plugins installed but I even tried without installing the plugins from fresh install, still cannot access Settings page period. Get Internal Error message.

#3 Обновлено Go MAEDA почти 4 года назад

  • Параметр Статус изменился с New на Closed
  • Параметр Resolution изменился на Invalid

Could you try the following command?

Please use forums for questions. Reading How to request help may be helpful for you.

#4 Обновлено net ops почти 4 года назад

  • Параметр Статус изменился с Closed на Reopened

I did tried that command as well that did not help either, I forgot to list it.

Is this a defect or configuration or setup issue?

Thanks for your time.

#5 Обновлено net ops почти 4 года назад

Nevemind, I will post it in Forums.

#6 Обновлено Holger Just почти 4 года назад

  • Описание обновлено (diff)

#7 Обновлено net ops больше 3 лет назад

I still have same issue with internal server error 500 when accessing the settings

it has to do with these files under this path: /web/servers/redmine-4.0.4/app/views/settings/edit.html.erb

if I remove the two line, then I see blank Settings page with no Internal server error

see screen shot attached:

[root@redmine-04 settings]# more edit.html.erb_ORIG

>
[root@redmine-04 settings]# more edit.html.erb

= l(:label_settings) %>

[root@redmine-04 settings]# pwd
/web/servers/redmine-4.0.4/app/views/settings
[root@redmine-04 settings]#

This is production.log below:

Processing by SettingsController#index as HTML
Current user: aqureshi (id=79)
Rendering settings/edit.html.erb within layouts/admin
Rendered settings/_general.html.erb (37.6ms)
Rendered settings/_display.html.erb (42.0ms)
Rendered settings/_authentication.html.erb (68.7ms)
Rendered settings/_api.html.erb (7.4ms)
Rendered settings/_projects.html.erb (57.9ms)
Rendered settings/_users.html.erb (476.1ms)
Rendered settings/_issues.html.erb (98.7ms)
Rendered common/_tabs.html.erb (1139.6ms)
Rendered settings/edit.html.erb within layouts/admin (1144.2ms)
Completed 500 Internal Server Error in 1203ms (ActiveRecord: 83.8ms)

ActionView::Template::Error (undefined method `close_duplicate_issues’ for # ):
7:
8:

Источник

Redmine

Internal error on user edit page / no logs

I’ve migrated a redmine 1.4 instance from Ubuntu to Gentoo linux. I’ve used too ways of doing this, but in both I get the same error.

1st time I tried emerge -s www-apps/redmine. it installed redmine 1.4.5, on which I imported the old database from the Ubuntu server.

2nd time I downloaded via svn (from redmine repository). It installed redmine 1.4.6, and I used the same configs & database as for the 1st time.

Apache config looks like this:

_
ServerName redmine.itmcd.ro
#DocumentRoot /var/lib/redmine/public
DocumentRoot /host/w/itmc/itmcd.ro.redmine/public
Include /host/w/itmc/.apache2/itmcd.ro.ssl.include
#

RailsBaseURI /
PassengerResolveSymlinksInDocumentRoot on

Allow from all
AllowOverride all
Order allow,deny

ErrorLog /host/w/itmc/logs/error.redmine.log

  1. Possible values include: debug, info, notice, warn, error, crit,
  2. alert, emerg.
    LogLevel warn
    CustomLog /host/w/itmc/logs/access.redmine.log combined
    _

My problem?
I cannot edit nor add users. I always get this message, while in logs (neither apache, neither redmine) I can’t see anything:

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.

Ответы (3)

RE: Internal error on user edit page / no logs — Добавил(а) Harry Garrood почти 10 года назад

The Redmine logs should be in /path/to/redmine/log/production.log. If there’s no file there, check permissions?

Also you might try just installing Redmine yourself. There are plenty of guides to manually installing it, and not only will you get a version with many more goodies, you’ll also understand how it’s set up a bit better, which will definitely benefit you in the long term.

If you must have a pre-packaged Redmine, I’ve had a good experience with the bitnami stacks.

RE: Internal error on user edit page / no logs — Добавил(а) Dragos Cirjan почти 10 года назад

I did install it both from both repository and svn; same result.
Also, /var/log/redmine/production.log exists. But I have nothing in it.

How do I configure redmine to dump logs (debug) there?

RE: Internal error on user edit page / no logs — Добавил(а) Harry Garrood почти 10 года назад

Ah yes — sorry, didn’t read that properly.

I don’t know about the gentoo packaged one, so I can’t help you with that. I can help you with the one you installed from svn, though.

The SVN one won’t write logs in /var/log/redmine — it will use the log directory in the directory where you checked it out.

Is it definitely in the production environment? What command did you use to start Redmine? It might have defaulted to the development environment — try this:

Источник

Redmine

Internal error on project

I have an error when I try to configure a project. When I click on «Configuration» on a project ( french version), I have the following message :

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.

I upgrade the version in August. 2.30 o 2.31

This is my configuration :

Environment:
Redmine version 2.3.1.stable
Ruby version 1.9.3 (i686-linux)
Rails version 3.2.13
Environment production
Database adapter Mysql2
Redmine plugins:
clipboard_image_paste 1.7
redmine_backlogs v1.0.3
redmine_code_review 0.5.0

I have others projects and no error
If a add a new project , I don’t have this problem too.

Can you help me to resolve this ?

Ответы (6)

RE: Internal error on project — Добавил(а) Martin Denizet (redmine.org team member) около 9 лет назад

Could you include the error in the log please?
To do so, you can do:

Cause the error to happen again and do a Ctrl+C in the shell to stop the tail from scrolling down.

I guess it might be related to a plugin.

RE: Internal error on project — Добавил(а) Lin Duxe около 9 лет назад

Hi martin ,
thanks for your response.

First, my file production.log was big : 320 MO. It was impossible to write in.ang I had warnings concerning it size
I removed it.
Now the file is ok .
When I try to reproduce the error, this is what I have with your command

Started GET «/redmine/projects/portail/settings» for 192.168.1.7 at 2013-10-16 18:48:18 +0200
Processing by ProjectsController#settings as HTML
Parameters: <«id»=>«portail»>
Current user: linduxe (id=35)

It’s all. Yesterday, I restarted the apache service, witouth succes. I didn’t restart the server because I have lot of users connected. But I can planify this.

RE: Internal error on project — Добавил(а) Martin Denizet (redmine.org team member) около 9 лет назад

That is odd, this doesn’t look like an Internal Error log entry.
You may want to check your logging configuration.
Without log, it’s not possible to establish a diagnostic.
I’d suspect that the error could be linked to the «redmine_backlogs» plugin. You could try an upgrade on a development server.
Cheers,

RE: Internal error on project — Добавил(а) Lin Duxe около 9 лет назад

This is my file production.log, with news datas ! 🙂

tarted GET «/redmine/projects/portail/settings» for 192.168.1.7 at 2013-10-28 18:00:28 +0100
Processing by ProjectsController#settings as HTML
Parameters: <«id»=>«portail»>
Current user: linduxe (id=35)
Rendered projects/_form.html.erb (42.1ms)
Rendered projects/_edit.html.erb (48.6ms)
Rendered projects/settings/_modules.html.erb (4.7ms)
Rendered projects/settings/_members.html.erb (239.1ms)
Rendered projects/settings/_versions.html.erb (49.2ms)
Rendered projects/settings/_issue_categories.html.erb (9.6ms)
Rendered projects/settings/_wiki.html.erb (2.9ms)
Rendered projects/settings/_repositories.html.erb (39.3ms)
Rendered projects/settings/_activities.html.erb (25.6ms)
Rendered plugins/redmine_backlogs/app/views/backlogs/_project_settings.html.erb (17.7ms)
Rendered plugins/redmine_code_review/app/views/code_review_settings/_filters.html.erb (254.2ms)
Rendered plugins/redmine_code_review/app/views/code_review_settings/_show.html.erb (398.7ms)
Rendered common/_tabs.html.erb (868.0ms)
Rendered projects/settings.html.erb within layouts/base (874.2ms)
Completed 500 Internal Server Error in 1074ms

ActionView::Template::Error (undefined method `button_to_remote’ for # :0xb799aa4>):
99:

60)%>
100:

101:
102:

103: <:controller =>‘code_review_settings’, :action => ‘add_filter’, :id => @project>,
104: :update => ‘auto_assignment_filters’, :submit => ‘code_review_form’, :condition => «is_valid_expression($(‘auto_assign_add_filter_expression’))») >
105: = button_to_function(l(:button_cancel), «$(‘add_filter_form’).style.display = ‘none’») %>
app/helpers/application_helper.rb:948:in `labelled_form_for’
app/views/common/_tabs.html.erb:24:in `block in app_views_common_tabs_html_erb___1028347094_95318200′
app/views/common/_tabs.html.erb:23:in `each’
app/views/common/_tabs.html.erb:23:in `_app_views_common__tabs_html_erb___1028347094_95318200′
app/helpers/application_helper.rb:271:in `render_tabs’
app/views/projects/settings.html.erb:3:in `_app_views_projects_settings_html_erb__365451904_95081240′

I noticethat I have upgraded «redmine backlogs» . V1.0.3 to v1.0.6
What do you think about it ?

RE: Internal error on project — Добавил(а) Martin Denizet (redmine.org team member) около 9 лет назад

This log tell me redmine_code_review plugin is not compatible with Redmine 2.x
There was changes with the *_to_remote methods.
You can disable it for now the time to find a new version.

RE: Internal error on project — Добавил(а) Lin Duxe около 9 лет назад

I installed the last version of redmine_code_review !

Источник

Понравилась статья? Поделить с друзьями:
  • If not error excel formula
  • If hangup use geometry lba1sector 129 как исправить
  • If error try pulling dash fuse
  • If a process fails most operating system write the error information to a
  • Ieytd has encountered an error and must close