Files not found aft...
 
Notifications
Clear all

Files not found after install

9 Posts
8 Users
8 Likes
3,496 Views
(@nologin)
Joined: 2 years ago
Posts: 1
Topic starter  

After fresh install i've got this error:

Jan 11 19:46:36 carbon zmconfigd[8115]: Watchdog: skipping service antivirus. Service not yet available for restarts.
Jan 11 19:46:36 carbon zmconfigd[8115]: File " removed link ", line 796, in rewriteConfig for line in open(fr).readlines():
Jan 11 19:46:36 carbon zmconfigd[8115]: Rewrite failed: [Errno 2] No such file or directory: ' removed link ' ([Errno 2] No such file or directory: ' removed link ')
Jan 11 19:46:36 carbon zmconfigd[8115]: File " removed link ", line 796, in rewriteConfig for line in open(fr).readlines():
Jan 11 19:46:36 carbon zmconfigd[8115]: Rewrite failed: [Errno 2] No such file or directory: ' removed link ' ([Errno 2] No such file or directory: ' removed link ')
Jan 11 19:46:36 carbon zmconfigd[8115]: All rewrite threads completed in 0.03 sec
Jan 11 19:46:36 carbon zmconfigd[8115]: All restarts completed in 0.00 sec

 

I try to create this empty files: ' removed link '  , ' removed link '

services started but admin panel show 404 page.

Fresh installed Ubuntu 18.04, hosts file and dns correctly configured. 


   
Quote
(@arman)
Admin
Joined: 3 years ago
Posts: 374
 
Posted by: @nologin

After fresh install i've got this error:

Jan 11 19:46:36 carbon zmconfigd[8115]: Watchdog: skipping service antivirus. Service not yet available for restarts.
Jan 11 19:46:36 carbon zmconfigd[8115]: File " removed link ", line 796, in rewriteConfig for line in open(fr).readlines():
Jan 11 19:46:36 carbon zmconfigd[8115]: Rewrite failed: [Errno 2] No such file or directory: ' removed link ' ([Errno 2] No such file or directory: ' removed link ')
Jan 11 19:46:36 carbon zmconfigd[8115]: File " removed link ", line 796, in rewriteConfig for line in open(fr).readlines():
Jan 11 19:46:36 carbon zmconfigd[8115]: Rewrite failed: [Errno 2] No such file or directory: ' removed link ' ([Errno 2] No such file or directory: ' removed link ')
Jan 11 19:46:36 carbon zmconfigd[8115]: All rewrite threads completed in 0.03 sec
Jan 11 19:46:36 carbon zmconfigd[8115]: All restarts completed in 0.00 sec

 

I try to create this empty files: ' removed link '  , ' removed link '

services started but admin panel show 404 page.

Fresh installed Ubuntu 18.04, hosts file and dns correctly configured. 

Hi nologin,

Can you send these again so this time the paths are visible? You could also try apt install libpcre2-8-0 as the root user and then freshclam --config-file=./conf/freshclam.conf and zmantivirusctl start as the zextras and check them again.


   
ReplyQuote
(@adriangibanelbtactic)
Joined: 2 years ago
Posts: 11
 

I confirm this bug. I already have it. You have to check /var/log/carbonio.log manually in order to see it though.

The error reads:

Jan 13 13:01:36 carboniodemo zmconfigd[9943]:   File "/opt/zextras/common/lib/jylibs/state.py", line 796, in rewriteConfig     for line in open(fr).readlines():
Jan 13 13:01:36 carboniodemo zmconfigd[9943]: Rewrite failed: [Errno 2] No such file or directory: '/opt/zextras/mailboxd/etc/zimbra.web.xml.in' ([Errno 2] No such file or directory: '/opt/zextras/mailboxd/etc/zimbra.web.xml.in')
Jan 13 13:01:36 carboniodemo zmconfigd[9943]:   File "/opt/zextras/common/lib/jylibs/state.py", line 796, in rewriteConfig     for line in open(fr).readlines():
Jan 13 13:01:36 carboniodemo zmconfigd[9943]: Rewrite failed: [Errno 2] No such file or directory: '/opt/zextras/mailboxd/etc/jetty-env.xml.in' ([Errno 2] No such file or directory: '/opt/zextras/mailboxd/etc/jetty-env.xml.in')


My workaround for this bug is to edit /opt/extras/conf/zmconfig.cf file and remove these four lines:

SECTION zimbra
    REWRITE mailboxd/etc/zimbra.web.xml.in mailboxd/webapps/zimbra/WEB-INF/web.xml
    REWRITE mailboxd/etc/jetty-env.xml.in mailboxd/webapps/zimbra/WEB-INF/jetty-env.xml
    RESTART mailboxd


and then restart the system thanks to zmcontrol restart command.

It would be nice if Zextras could confirm if my workaround is safe and, anyways, fix this bug (or otherwise add these missing files) so that this is already fixed on packages from the repo.

Thank you.

Note: This Carbonio version was installed on 2022-01-13 from an Ubuntu 18.04 minimal installation.


   
Satrier, Arman Khosravi, Satrier and 1 people reacted
ReplyQuote
(@damirabal)
Joined: 2 years ago
Posts: 4
 

My workaround for this bug is to edit /opt/extras/conf/zmconfig.cf file and remove these four lines:

 

SECTION zimbra
    REWRITE mailboxd/etc/zimbra.web.xml.in mailboxd/webapps/zimbra/WEB-INF/web.xml
    REWRITE mailboxd/etc/jetty-env.xml.in mailboxd/webapps/zimbra/WEB-INF/jetty-env.xml
    RESTART mailboxd

@adriangibanelbtactic,

Can you please checkthat the correct path & file is /opt/zextras/conf/zmconfigd.cf?

At least in my installation, the problem is that these files do not exist:

mailboxd/etc/zimbra.web.xml.in 
mailboxd/etc/jetty-env.xml.in

Instead there are:

mailboxd/etc/zimlet.web.xml.in 
mailboxd/etc/jetty.xml.in

I need Zextras to confirm if the issue is actually a typo on the file names or another issue at all.

Regards,

Dennis

 

 

 

 


   
ReplyQuote
(@adriangibanelbtactic)
Joined: 2 years ago
Posts: 11
 
Posted by: @damirabal

My workaround for this bug is to edit /opt/extras/conf/zmconfig.cf file and remove these four lines:

 

SECTION zimbra
    REWRITE mailboxd/etc/zimbra.web.xml.in mailboxd/webapps/zimbra/WEB-INF/web.xml
    REWRITE mailboxd/etc/jetty-env.xml.in mailboxd/webapps/zimbra/WEB-INF/jetty-env.xml
    RESTART mailboxd

@adriangibanelbtactic,

Can you please checkthat the correct path & file is /opt/zextras/conf/zmconfigd.cf?

At least in my installation, the problem is that these files do not exist:

mailboxd/etc/zimbra.web.xml.in 
mailboxd/etc/jetty-env.xml.in

Instead there are:

mailboxd/etc/zimlet.web.xml.in 
mailboxd/etc/jetty.xml.in

I need Zextras to confirm if the issue is actually a typo on the file names or another issue at all.

Regards,

Dennis

 

 

 

 

I suspect these files do not exist because they are no longer used in Carbonio (but were used in Zimbra).
Why check them in the first place, then?

That's what my workaround does. Avoid that checking.

We need confirmation from Zextras of course.


   
joet and joet reacted
ReplyQuote
(@satrier)
Joined: 2 years ago
Posts: 2
 

@adriangibanelbtactic 

Its work for me. Thanks

 

Im just install new version.

Ubuntu 20.04 

Carbonio: 22.3.1_ZEXTRAS_202203.FOSS


   
ReplyQuote
 bsl
(@bsl)
Joined: 2 years ago
Posts: 1
 

Hello

Release 22.5.1 Community Edition.

The error with two missing files is still there

 

Jun 29 10:28:35 mail2 zmconfigd[29329]: Rewrite failed: [Errno 2] No such file or directory: '/opt/zextras/mailboxd/etc/zimbra.web.xml.in' ([Errno 2] No such file or directory: '/opt/zextras/mailboxd/etc/zimbra.web.xml.in')
Jun 29 10:28:35 mail2 zmconfigd[29329]: Rewrite failed: [Errno 2] No such file or directory: '/opt/zextras/mailboxd/etc/jetty-env.xml.in' ([Errno 2] No such file or directory: '/opt/zextras/mailboxd/etc/jetty-env.xml.in')


   
ReplyQuote
(@linuxcuba)
Joined: 2 years ago
Posts: 33
 

@damirabal please confirm this.

Thanks

Best Regarts


   
ReplyQuote
(@anahuac)
Joined: 10 months ago
Posts: 294
 

Fresh install of 23.5.0 and I still can see those warning in carbonio.log

Jun 19 11:41:41 master zmconfigd[1780518]: Rewrite failed: [Errno 2] No such file or directory: '/opt/zextras/mailboxd/etc/zimbra.web.xml.in' ([Errno 2] No such file or directory:
'/opt/zextras/mailboxd/etc/zimbra.web.xml.in')
Jun 19 11:41:41 master zmconfigd[1780518]:   File "/opt/zextras/common/lib/jylibs/state.py", line 796, in rewriteConfig     for line in open(fr).readlines():  
Jun 19 11:41:41 master zmconfigd[1780518]: Rewrite failed: [Errno 2] No such file or directory: '/opt/zextras/mailboxd/etc/jetty-env.xml.in' ([Errno 2] No such file or directory: '
/opt/zextras/mailboxd/etc/jetty-env.xml.in')

 

Any fix for that?


   
ReplyQuote