常见的Redmine装和更新问题
在应用程序更新期间, 日志中出现一个包含“SQL SQL语法有误;Se hai bisogno di aiuto per MySQL, ti invitiamo a contattarci per ulteriori informazioni....”的错误消息.
ragione
这意味着您的数据库已过时,无法处理我们的应用程序发送的请求。它只是无法理解它.
解决 方案
您需要更新您的数据库.
如何更新数据库?
在base di conoscenza中有详细说明.
Per maggiori informazioni su Easy Redmine, 未遵循我们在spiegazione中的强烈建议(至少在过去一次).
- 根据服务器设置使用chgrp和chown命令更正权限(例如:chgrp -R www-data public_html)
- 再次运行安装命令bundle exec rake easyproject:install RAILS_ENV=production,这将清除缓存(如果以root身份运行 ,将non lo farò成功)
- 重新启动服务器
Per saperne di più su Easy Software, 请在用户facile下运行:
sudo chown -R facile / Home / facile / corrente
(在旧机器上 - sudo chown -R easy /srv/easyredmine/public_html)
sudo chgrp -R facile / Home / facile / corrente
(在旧机器上 - sudo chgrp -R easy /srv/easyredmine/public_html)
cd / Home / facile / corrente
(在旧机器上 - cd /srv/easyredmine/public_html)
bundle exec rake easyproject:install RAILS_ENV=production
sudo service puma@tuo.nome.dominio riavvia
请记得为所有必要的文件夹设置权限.
如果遇到500错误,以下是一些建议:
- correreFacile 服务器要求检查,尝试修复验证失败的问题
- banca dati di backup
- 从客户区下载最新软件包
- 确保Web服务器具有完全访问权限的public、file、log、tmpcartella
- correre pacchetto di installazione, senza il test di sviluppo
- correrebundle exec rake easyproject:install RAILS_ENV=production
- 重启应用服务器
- Per saperne di più su Redmine (也从数据库中删除))
- 发送邮件至support@easyredmine.com, 并附上日志/production.log文件
Ci sono molte possibili cause di questo errore. Ecco alcuni suggerimenti:
- problema della cache del browser - prova a cancellarla
- problema di DNS
- problema di impostazione del server
Per prima cosa controlla la connessione e la rete (verifica che il server sia raggiungibile utilizzando un comando ping o traceroute). Lato server firewall.
Se tutto quanto sopra sembra a posto, prova a ottenere alcune informazioni da nginx error.logs. Controlla nginx error.log sul lato server - /var/log/nginx/error.log
Verifica nuovamente che la tua configurazione nginx corrisponda allo standard indicato qui:
https://www.redmine.org/projects/redmine/wiki/HowTo_configure_Nginx_to_run_Redmine
Un esempio di configurazione nginx (come utilizzato da Easy Software). Molto simile a quello ufficiale, sono state ottimizzate solo alcune variabili:
user www-data;
worker_processes 8;
worker_rlimit_nofile 60000;
log_errore /var/log/nginx/error.log;
pid /var/run/nginx.pid;
eventi {
worker_connections 10240;
# multi_accept on;
}
http {
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # non utilizzare SSLv3 ref: POODLE
includere /etc/nginx/mime.types;
default_type application / octet-stream;
server_names_hash_bucket_size 2048;
access_log /var/log/nginx/access.log;
sendfile su;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay on;
send_timeout 1800;
client_body_timeout 1800;
client_header_timeout 1800;
proxy_read_timeout 1800;
client_max_body_size 220m;
fastcgi_buffer_size 64K;
fastcgi_buffers 128 16k;
proxy_max_temp_file_size 0;
types_hash_max_size 4096;
types_hash_bucket_size 128;
proxy_busy_buffers_size 256k;
proxy_buffers 8 256k;
proxy_buffer_size 256k;
gzip su;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
includere /etc/nginx/conf.d/*.conf;
include / etc / nginx / sites-enabled / *;
include / etc / nginx / siti-auto / *;
}
Altre possibili cause dell'errore 502 possono essere...
Unicorn non in esecuzione, a causa di
- autorizzazioni insufficienti
- versione sbagliata di passeggeri
- versione errata di Ruby
- Gem mancanti
- filesystem rotto
Per scoprire l'esatto problema, è necessario controllare i log di errore in Unicorn o Apache + il log dell'applicazione da Easy Redmine (log/production.log)
timeout
Se bassa timeout è configurato, verrà visualizzato questo errore su:
- grandi esportazioni
- sovraccarico del server
- esecuzione dei task rake dalla GUI
Limite di connessioni MySQL
Assicurarsi di avere un numero sufficiente di connessioni consentite a MySQL. Essa dipende dal numero di utenti, ma si dovrebbe avere almeno un 100 permesso.
此错误发生在2018年1.2版本(平台04.00及更高版本)之后.
升级安装过程中出现了以下错误.
[!] 解析`Gemfile`时发生错误:
[!] 解析`Gemfile`时发生错误:无法加载此文件--
# plugin 'rys-bundler', github: 'easysoftware / rys-bundler', branch: 'master'> Plugin.hook ('rys-gemfile', self)
Bundler无法继续.
这是由于过时的redmine安装程序版本引起的.
soluzione:
在安装升级之前
$ gem install redmine-installer
Leggi l'URL di Easy Redmine qui sotto, leggi qui: https://company.com/easyredmine/
在这种情况下,您需要确保将变量RAILS_RELATIVE_URL_ROOT配置为您的正确后缀/easyredmine
BitNami:
- 创建一个额外的配置文件config/additional_environment.rb
- config.action_controller.relative_url_root = "/ easyredmine"
- 然后预编译资源(rake easyproject:install RAILS_ENV=production)并重新启动服务器
确保已安装并运行 wkhtmltopdf(wkhtmltopdf 需要 X 服务器或其他仿真器)
使用以下命令进行测试:"wkhtmltopdf google.com google.pdf"
添加到您的代理配置中:
proxy_set_header X-Forwarded-Proto https
Controllare la configurazione di cron. È molto importante che i compiti rake sono NON eseguito da root. Ciò causerà il fallimento a causa di autorizzazioni insufficienti.
Diciamo che stai eseguendo Easy Redmine come utente Easy. I comandi sono:
Visualizza cron attivi -u crontab facile -l
Editing -u crontab facile -e
Applica i cambiamenti sudo service cron reload
Esempio per l'esecuzione di cron ogni 5 minuti:
* / 5 * * * * /home/easy/scripts/easy_scheduler.sh &> / dev / null
#! / bin / bash -l
LOG_FILE = "/ home / facile / corrente / log / easy_scheduler_rake.log"
echo "$ (date '+% Y-% m-% d% H:% M:% S') avvia rake" >> $ {LOG_FILE}
cd / home / easy / current && bundle exec rake easyproject: scheduler: run_tasks RAILS_ENV = production >> $ {LOG_FILE}
echo "$ (date '+% Y-% m-% d% H:% M:% S') end rake" >> $ {LOG_FILE}
/home/easy/scripts/easy_scheduler.sh deve essere un eseguibile:
sudo chmod + x /home/easy/scripts/easy_scheduler.sh
Non esitare a fare ricerche in rete per un manuale che spieghi con maggiore precisione l'impostazione di cron sul tuo server. Non costituisce infatti una funzione richiesta solamente da Easy Redmine.
确保您的网络服务器支持URL地址的实际大小
确保您不要使用Webrick网络服务器!
- Puoi anche usare Ruby per Web e Ruby
- 重新配置慢速过滤器查询,以显示较少的字段
- 重置您的CRON以减少启动频率
- 参考此案例研究 - Scarica Ruby per Rails加速
- 检查您的配置 - https://www.easyredmine.com/resources/installation/1885-recommended-optimal-configuration-of-easy-redmine-server
Puoi usare Redmine in questo modo.
Per favore, contattaci per Redmine, per favore scrivici.储来存储附件, 因为会出现可靠性问题.
配置:
./config/configuration.yml
# 附件存储的绝对路径.
# Cerca "files" in Redmine.
# 您的EasyRedmine实例需要对此目录具有读写权限.
#Traduzione:attachments_storage_path: /var/www/redmine/files
故障排除:
如果无法打开附件, 请查看./log/production.log以获取常见错误:
无法发送附件,/var/www/redmine/files/2015/08/150805095407_xxx.PNG不存在或不可读
ENOENTE,权限被拒绝...等等。
确保您的网络服务器具有完全访问权限的公共、文件、日志、临时cartella
除非应用程序获取,否则您的存储库中的新提交不会在Easy Redmine中反映出来。您需要在您的存储库客户端(github, gitlab, TortoiseSVN等)上设置Webhooks, puoi farlo in Easy Redmine.
- Vai a管理 >> 设置 >> 存储库
- WS WS
- 生成API密钥
- immagazzinamento
- 转到您的存储库客户端
- 添加Webhook
假设您的站点是easyredmine.company.com
对于git - https://easyredmine.company.com/sys/git_fetcher
或 https://easyredmine.company.com/sys/git_fetcher?key=[Chiave API]
- 根据客户端设置, 可能需要一个单独的URL或将密钥放入不同的字段中
对于SVN - https://easyredmine.company.com/ sys / fetch_changesets
或 https://easyredmine.company.com/sys/fetch_changesets?key=[Chiave API]
Per saperne di più, 一切都取决于存储库客户端,与Easy Redmine设置无关。这是您在干净安装或从Redmine升级后必须验证的内容.
Leggi di più su Easy Redmine, 请确保使用至少一级域名, 例如http://myeasyredmine.com而不是仅仅使用http://myeasyredmine。某些浏览器可能无法访问它。
转到管理 >> 设置 >> 电子邮件通知
并验证 FROM 地址是否正确.
它应该与配置文件中的地址相同(或至少来自相同的 SMTP 服务器)。否则,某些电子邮服务(如 gmail 、yahoo 等)可能会拒绝通知.
Secondo知识库中的本文检查您的配置.
Per favore, scrivi Easy Redmine 服务器使用 telnet 连接到邮件服务器.
telnet tuo.dominio.qui numero_porta_qui(例如:telnet gmail.com 465)
它将向您显示是否真的可以连接到您的邮件服务器, 或者您的邮件服务器配置存在问题.
插件安装
- Per saperne di più su ROOT
- 首先,如果存在旧的Easy Gantt插件,请删除(plugins/easy_gantt*)
- Scarica il file REDMINE_ROOT/plugins in REDMINE_ROOT/plugins
- 在REDMINE_ROOT目录下
运行: |
$ Bundle install |
- (或aggiornamento del pacchetto) |
$ Fascio exec rake db: migrate RAILS_ENV = produzione |
$ Fascio exec redmine rake: plugins: migrare RAILS_ENV = produzione |
之后,重新启动服务器.
成功安装的要求
- Scheda Redmine: versione di Redmine 3.2.x, 3.3.x, 3.4.x, 4.x.
- Ruby: 2.3+(推荐2.6).
- Elenco delle applicazioni:MySQL(推荐),PostgreSQL
secondo#installazione中的安装过程进行操作。验证安装日志中是否没有任何错误。如果有错误, 请根据描述尝试解决,或者联系support@easyredmine.com并附上日志中的错误部分.
在Bitnami上安装
Bitnami未经测试, 也不保证可行。如果安装失败, 请手动运行:
运行: |
$ Aggiornamento fascio |
$ rake db:migrate |
$ Rake Redmine: plugins: migrate |