JSON.parse: unexpec...
 
Notifications
Clear all

JSON.parse: unexpected character at line 1 column 1 of the JSON data

45 Posts
12 Users
6 Likes
4,229 Views
(@jontalaev89)
Joined: 2 years ago
Posts: 21
 

Help me with this problem?

zmprov ms `zmhostname` zimbraMtaLmtpHostLookup native

or help me

zmlocalconfig -e postfix_lmtp_host_lookup=native
This post was modified 1 year ago by jontalaev89

   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 386
 

@jontalaev89 

Hi,

Can you please tell us a bit more about the problem you are facing?

Thanks

Sharif


   
ReplyQuote
(@jontalaev89)
Joined: 2 years ago
Posts: 21
 

Есть сервер A (почтовый gkunion.ru)
Есть сервер B (mail.rinnol.com)
Сервер B является полной копией сервера A, все почтовые ящики и домены одинаковы.
Сервер B имеет домен rinnol.com
Оба сервера находятся в одной подсети 192.168.200.0/24.
Когда письма поступают только на домены сервера A, они достигают только сервера A.

Когда электронные письма поступают только на сервер B, они достигают только сервера B.

Когда я хочу отправить письмо с сервера B из rinnol.com домена на сервер A в домен gkunion.ru, мой сервер B видит gkunion.ru домен и отправляет письмо внутри.

Мне посоветовали использовать Mail Transport на почтовых ящиках,
он будет использовать не локальную доставку, а на сервер, который там указан.

Необходимо отправлять сообщения из существующего почтового ящика в тот же почтовый ящик на другом сервере

Есть ли инструкция для моей задачи?

Спасибо за помощь, я очень ценю это!

This post was modified 1 year ago 2 times by jontalaev89

   
ReplyQuote
(@jontalaev89)
Joined: 2 years ago
Posts: 21
 
@shariful-islam 

There is a server A (mail.gkunion.ru)

There is a server B (mail.rinnol.com)
Server B is a complete copy of server A, all mailboxes and domains are the same.
Server B has the domain rinnol.com
Both servers are on the same subnet 192.168.200.0/24.
When letters arrive for server A domains, they only reach Server A.
When emails arrive for Server B's domains, they only reach Server B.
When I want to send a letter from server B from the rinnol.com domain to server A to the gkunion.ru domain, my server B sees the gkunion.ru domain and sends a letter internally.

I was advised to use Mail Transport on mailboxes,
it will not use local delivery, but to the server that is specified there.

you need to send messages from an existing mailbox to the same mailbox on another server

Is there an instruction for my task?

Thank you for your help, I really appreciate it

 

This post was modified 1 year ago by jontalaev89

   
ReplyQuote
(@arman)
Admin
Joined: 3 years ago
Posts: 376
 

Hello @jontalaev89,

 

We have forwarded this issue to our team as it needed more investigation. As soon as we hear from them, we will write you back.

 

Thank you so much for being with us.

 

Regards,

Arman


   
ReplyQuote
(@einom)
Joined: 2 years ago
Posts: 4
 

I have found the same error but no clue what is happening in the /opt/zextras/log/nginx.log is the message:

[error] 1457806#1457806: *285117 no live upstreams while connecting to upstream, client: 1.1.1.1, server: , request: "POST /service/admin/soap/GetMailboxRequest HTTP/1.1", host: "mail.example.com:6071", referrer: "https://mail.example.com:6071/carbonioAdmin/manage/domains/803ddd6f-eaff-45ce-89cb-c45fb8fa71a4/accounts"

is like the connection internal between the nginx and the 7071 admin console of zimbraAdmin fail or was lost for timeout,

from firefox console I found it happens most than all with the POST:

POST https://mail.example.com:6071/service/admin/soap/GetSessionsRequest [HTTP/1.1 502 Bad Gateway 99ms]

 


   
ReplyQuote
(@epdguez)
Joined: 12 months ago
Posts: 2
 

I have the same problem in the new version, but when trying to upload files.


   
ReplyQuote
(@epdguez)
Joined: 12 months ago
Posts: 2
 

I have the same problem in the new version, but when trying to upload files.
(JSON.parse: unexpected character at line 1 column 1 of the JSON data)
When I tried version 22 it worked correctly, after installing v23, I have this problem and the Zextras Mail apk does not connect to my server.
What should I check to fix this error?


   
linuxcuba reacted
ReplyQuote
(@anahuac)
Joined: 10 months ago
Posts: 304
 

Hello,

Carbonio Release 23.5.0

Error: "JSON.parse: unexpected character at line 1 column 1 of the JSON data"

when I try to log in on port 6071, but I can login as regular user on the webmail.

Looking into console erros I found this:

POST https://myserver.com:6071/service/admin/soap/AuthRequest [HTTP/1.1 502 Bad Gateway 186ms]

This is a fresh install.

Looking in nginx.log I also found this: "no live upstreams while connecting to upstream"

 
May you help me to figure this out?
 

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

Digging deeper I found this erros message in nginx.log

2023/06/17 21:07:39 [error] 3173#3173: *687 open() "/opt/zextras/admin/login/i18n/en-US.json" failed (2: No such file or directory), client: myip, server: , request: "GET
/static/login/i18n/en-US.json HTTP/1.1", host: "myhost.com:6071", referrer: "https://myhost.com:6071/static/login/"

in fact the file en-us.json doesn't exists.... the one there is en_US.json, so I copy it to the right name and that erro disappear... sadly it doesn't fix the main issue above.

=(


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

Found the issue: IPV6

once i disabled IPV6 and restarted carbonio it worked like a charm!

Fixing:

Edit /etc/sysctl.conf

add this two lines below and save it:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

Run "sysctl -p"

Then, retstart Carbonio: zmprov restart


   
ReplyQuote
(@itsupport-engineer)
Joined: 10 months ago
Posts: 4
 

I get this message on new install, on web interface login.

JSON.parse: unexpected character at line 1 column 1 of the JSON data
 
Error in nginx.log is as follows:
 
2023/07/02 06:32:47 [info] 1629655#1629655: *24 client closed connection while SSL handshaking, client: 127.0.0.1, server: SERVER_PRIVATE_IP:443
2023/07/02 06:32:51 [error] 1629655#1629655: *19 connect() failed (111: Connection refused) while connecting to upstream, client: SERVER_PRIVATE_IP, server: CLIENT_PUBLIC_IP, request: "POST /service/soap/AuthRequest HTTP/2.0", upstream: "http://SERVER_PRIVATE_IP:8080/service/soap/AuthRequest", host: "SERVER_PUBLIC_HOST", referrer: "https://SERVER_PUBLIC_HOST/static/login/"
 
Any idea how to investigate and resolve would be appreciated.
This post was modified 10 months ago by itsupport.engineer

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

Have you disabled IPV6 as I suggested on my previous post?


   
ReplyQuote
(@mcdaniels)
Joined: 8 months ago
Posts: 5
 

Posted by: @anahuac

Found the issue: IPV6

once i disabled IPV6 and restarted carbonio it worked like a charm!

Fixing:

Edit /etc/sysctl.conf

add this two lines below and save it:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

Run "sysctl -p"

Then, retstart Carbonio: zmprov restart

 

You, sir saved me a lot of headache... I wonder why the devs did not respond to this! Hope, I have not overseen something....

 

Fresh Install @ Ubuntu 

Carbonio 23.7.4

 

This post was modified 8 months ago by mcdaniels

   
ReplyQuote
(@mcdaniels)
Joined: 8 months ago
Posts: 5
 

some additional hint: If you look close at the install-docuit says:

  1. IPv6 must be disabled. Make also sure that the /etc/hosts does not contain any IPv6 entries.

This post was modified 8 months ago by mcdaniels

   
ReplyQuote
Page 3 / 3