Warning: require_once(Infra.php): failed to open stream: No such file or directory in /mnt/sei/src/sei/web/SEI.php on line 2
Fatal error: require_once(): Failed opening required 'Infra.php' (include_path='.:/usr/share/php:/usr/share/pear') in /mnt/sei/src/sei/web/SEI.php on line 2
Bom, antes eu instalei o php-cli com o comando:
apt-get install php5-cli
Qual a melhor forma de executar esse comando na vagrant? Depois procurando por php ele acha em ./var/lib/docker/devicemapper/mnt/e56ac2189655d2ff3de89861c1236f91b6678cb77d5f6975807cef0f844271ef/rootfs/usr/bin/php
Atenciosamente,
Rafael Leandro Analista de Finanças e Controle Diretoria de Sistemas e Informação [img]
---------------------------------------------------------------------- Esta mensagem, incluindo quaisquer anexos, é de acesso restrito e destina-se, exclusivamente, à pessoa ou entidade para a qual foi endereçada. Se você a recebeu indevidamente, por favor, elimine-a e informe o equívoco ao emitente imediatamente. O uso não autorizado do conteúdo da mensagem ou anexos é proibido e sujeita o infrator às penalidades cabíveis.
This e-mail message, including any attachments, is of restricted access and intended, exclusively, to the person or entity to which it was addressed. If you have received it by mistake, please, delete the message and kindly notify the sender immediately. The unauthorized use of the contents of the message or any of the attachments is forbidden and the violator is subject to the penalties of law.
Você está rodando o script somente na pasta do sei-vagrant ou está acessando o vagrant via ssh, acessando o container do docker e então executando o script?
Os scripts de atualização php do SEI quando usando vagrant devem ser executados no container httpd da máquina virtual vagrant. Para isto, execute os passos: 1 - na pasta sei-vagrant clonada do gitlab do software publico, use o comando sudo vagrant ssh para conectar-se à máquina virtual. A senha é " *vagrant*", sem aspas. 2 - uma vez conectado à máquina, utilize o comando sudo docker exec -it httpd bash para acessar o container da aplicação SEI. 3 - dentro do container, a pasta do sei fica em /opt/. Utilize o comando de atualização novamente, conforme exemplo abaixo:
*Victor Hugo Lobo Alves* Ministério do Planejamento, Desenvolvimento e Gestão Equipe SEI - CAPGov/COPPE/UFRJ
2017-10-26 16:35 GMT-02:00 Rafael Leandro Ferreira < rafael.ferreira@cgu.gov.br>:
> Caros, ao executar um Script dentro da vagrant do SEI usando o comando: > > > > /usr/bin/php -c /etc/php.ini /mnt/sei/src/sei/scripts/atualizar_sequencias.php > > atualizar_sequencias3.log > > > > > > Temos o seguinte erro: > > > > > > Warning: require_once(Infra.php): failed to open stream: No such file or > directory in /mnt/sei/src/sei/web/SEI.php on line 2 > > > > Fatal error: require_once(): Failed opening required 'Infra.php' > (include_path='.:/usr/share/php:/usr/share/pear') in > /mnt/sei/src/sei/web/SEI.php on line 2 > > > > > > Bom, antes eu instalei o php-cli com o comando: > > > > apt-get install php5-cli > > > > > > Qual a melhor forma de executar esse comando na vagrant? Depois procurando > por php ele acha em ./var/lib/docker/devicemapper/mnt/ > e56ac2189655d2ff3de89861c1236f91b6678cb77d5f6975807cef0f8442 > 71ef/rootfs/usr/bin/php > > > > > > Atenciosamente, > > > > Rafael Leandro > > *Analista de Finanças e Controle* > > Diretoria de Sistemas e Informação > > [image: img] > > > ------------------------------ > Esta mensagem, incluindo quaisquer anexos, é de acesso restrito e > destina-se, exclusivamente, à pessoa ou entidade para a qual foi > endereçada. Se você a recebeu indevidamente, por favor, elimine-a e informe > o equívoco ao emitente imediatamente. O uso não autorizado do conteúdo da > mensagem ou anexos é proibido e sujeita o infrator às penalidades cabíveis. > > This e-mail message, including any attachments, is of restricted access > and intended, exclusively, to the person or entity to which it was > addressed. If you have received it by mistake, please, delete the message > and kindly notify the sender immediately. The unauthorized use of the > contents of the message or any of the attachments is forbidden and the > violator is subject to the penalties of law. > > _______________________________________________ > sei-tecnico mailing list > sei-tecnico@listas.softwarepublico.gov.br >https://listas.softwarepublico.gov.br/mailman/cgi-bin/listinfo/sei-tecnico > >