Project

General

Profile

File upload not work

Added by Anonymous almost 6 years ago

Hello!
I have a problem!

Saving attachment '/opt/redmine/redmine-3.4.5/files/2018/04/180417165908_oVaSfJVvHJ4-01.jpeg' (1471923 bytes)
Completed 500 Internal Server Error in 64ms (ActiveRecord: 8.7ms)

ActiveRecord::StatementInvalid (PG::StringDataRightTruncation: ОШИБКА:  значение не умещается в тип character varying(40)
: INSERT INTO "attachments" ("filesize", "author_id", "filename", "content_type", "created_on", "disk_directory", "disk_filename", "digest") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"):
  app/controllers/attachments_controller.rb:97:in `upload'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'
sh: 1: darcs: not found
sh: 1: cvs: not found
sh: 1: bzr: not found
Environment:
  Redmine version                3.4.5.stable
  Ruby version                   2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
  Rails version                  4.2.8
  Environment                    production
  Database adapter               PostgreSQL
SCM:
  Subversion                     1.8.10
  Mercurial                      3.1.2
  Git                            2.1.4
  Filesystem
Redmine plugins:
  a_common_libs                  2.4.3
  redmine_ldap_sync              2.1.1.devel
  redmine_lightbox2              0.4.3
  redmine_tweaks                 1.0.2
  sidebar_hide                   0.0.8
drwxrwxr-x  6 deb      deb      4096 апр  7 15:30 app
-rw-rw-r--  1 deb      deb       860 апр  7 15:30 appveyor.yml
drwxrwxr-x  2 deb      deb      4096 апр  7 15:30 bin
drwxrwxr-x  5 deb      deb      4096 апр 16 15:41 config
-rw-rw-r--  1 deb      deb       160 апр  7 15:30 config.ru
-rw-rw-r--  1 deb      deb       241 апр  7 15:30 CONTRIBUTING.md
drwxrwxr-x  3 deb      deb      4096 апр 16 16:34 db
drwxrwxr-x  2 deb      deb      4096 апр  7 15:30 doc
drwxrwxr-x  5 deb      deb      4096 апр  7 15:30 extra
drwxrwxrwx  5 www-data www-data 4096 фев 13 13:24 files
-rw-rw-r--  1 deb      deb      3622 апр  7 15:30 Gemfile
-rw-r--r--  1 deb      deb      5323 апр 16 16:04 Gemfile.lock
drwxrwxr-x  7 deb      deb      4096 апр  7 15:30 lib
drwxrwxr-x  2 deb      deb      4096 апр 18 08:26 log
drwxrwxrwx  7 deb      deb      4096 апр 17 10:24 plugins
drwxrwxrwx  8 www-data www-data 4096 апр  7 15:30 public
-rw-rw-r--  1 deb      deb       275 апр  7 15:30 Rakefile
-rw-rw-r--  1 deb      deb       205 апр  7 15:30 README.rdoc
drwxrwxr-x  2 deb      deb      4096 апр  7 15:30 script
drwxrwxr-x 10 deb      deb      4096 апр  7 15:30 test
drwxrwxr-x  9 deb      deb      4096 апр  7 15:30 tmp
drwxrwxr-x  2 deb      deb      4096 апр  7 15:30 vendor

This all happened after the update from with 3.2 to 3.4.5
It is possible that I forgot to do something.. The question is - what? :)


Replies (2)

RE: File upload not work - Added by Martin Denizet (redmine.org team member) almost 6 years ago

Hello,
Is it possible you forgot to update your database?

RAILS_ENV=production bundle exec rake db:migrate

Cheers,

RE: File upload not work - Added by Anonymous almost 6 years ago

Yeees! ))
Thank you!

    (1-2/2)