Google Cloud SDK Authentication - sdk

After installing Google Cloud SDK, When i run
gcloud auth login
I get an error message :
Your browser has been opened to visit:
https://accounts.google.com/o/oauth2/auth?scope= .... <whole link>
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
Error showing url: Operation not supported
What could cause this problem and how to fix it ?

I tried installing GConf again but it did not help.
The problem was I had two accounts on chrome to be signed in, and the error was caused as while opening the authentication link. it did not get the required response.
I simply copied the authentication link https://accounts.google.com/o/... from the command line window and pasted it in browser window, which gave me an option to sign in from my desired account. I signed in and I was successfully authenticated.

Related

Connecting using SnowSQL denied 403 error

I am trying to configure JDBC but kept getting the same error I am getting using snowsql:
250001 (08001): Failed to connect to DB. Verify the account name is correct: JG3409.canada-central.azure.snowflakecomputing.com:443. 000403: 403: HTTP 403: Forbidden
If the error message is unclear, enable logging using -o log_level=DEBUG and see the log to find out the cause. Contact support for further help.
Goodbye!
I have configured the config file, and I have double checked the account, company, region, reset password to only use alphanumeric.
I have used both forms of the URL
The only possibility is that I am using a trial account, but I can't imagine that this would limit external non-browser connections?
I use a simple user/password, I have whitelisted my IP and I don't have a problem with a proxy or a firewall. I can successfully connect using a browser.. using:
https://app.snowflake.com/canada-central.azure/jg63409
Important contents of the config file:
[connections]
accountname=JG3409
#accountname=uegxydq-pz20606
region=canada-central.azure
username=ASHSNOWFLAKE
any ideas?
Your account is not JG3409 but JG63409 based on this link:
https://app.snowflake.com/canada-central.azure/jg63409
Try in your browser:
https://jg63409.canada-central.azure.snowflakecomputing.com
I found out using snowcd that my computer could not connect via my home router.
When I used my personal hotspot on my (5G) phone, snowcd passed all the tests immediately. The problem then arose how to adjust the network security policy to allow a CIDR block of network addresses through since my phone uses a new address every time I connect, and I can't edit the policy to allow my phone while connected via my phone (for obvious reasons)
Catch 22
123.45.0.0/16 is not accepted in the new Snowflake UI, and 0.0.0.0 doesn't work for me, but the documentation gave me a clue.. the new UI doesn't separate by commas, so I switched to the old UI and voila!
Incidentally the OLD UI uses the same URL as SnowSQL so I picked up my error in my account number there as well (although I should have seen it earlier).
Diabolical but thanks #Sergiu too!

Symfony send mail error (Mailer and SwiftMailer)

I'm trying to send emails in my Symfony 4.4 app, I tryed both Mailer and SwiftMailer.
The app is running inside a Docker container, with shared ports 80 and 3306.
If I try the console command with SwiftMailer I get this:
bin/console swiftmailer:email:send --from=ex#example.com --to=ex#example.com --subject=hi --body=hi
[OK] 1 emails were successfully sent.
And after a while I get:
ERROR [app] Exception occurred while flushing email queue: Expected response code 250 but got code "554", with message "554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. [Hostname=XXXX.eurprd04.prod.outlook.com]
This happens with other email providers also, and both, in Mailer and SwiftMailer.
The fact that I get an (error) response from the service provider (Outlook in this case) makes me think that is not a port problem, as the email did actually reach the provider.
Any ideas? I'm quite stuck on this.
Thank you.
This is an outlook365 issue, your authentication account is different to the From address, this is forbidden unless you explicitly grant permission to do so.
You can easily solve this by using the same From address as the account you are using to authenticate. Otherwise, you'll need to grant SendAs permission or SendOnBehalf.
Given your example, you need to set the permission on the ex#example.com mailbox, and grant it to the authuser#example.com user as configured in your env.
You need to do this for as many mailboxes as you want the authuser to be able to send mail as.
To check the configuration, you can access Office 365 as the authuser and try changing the From address when composing a new email. You should see all addresses that have granted permission to that user.

timeout in telegram.bot webhook - asp.net mvc

I had been developed a telegram bot using Telegram.Bot.
I tried to rework with the bot, First I created bot using BotFather and got token.
I set webhook server api address in telegram api. But when I check webhookinfo it returns this error
https://api.telegram.org/botToken/getWebhookinfo
respone:
"last_error_date":1585419712,"last_error_message":"Connection timed out"
I checked it need TLS12 to have secure connection using
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
But It's not getting updates in my server and show time out error.
I tried posting using postman and ngrok to run on my iisexpress and I'm getting data and can sending messages to bot in my localhost.
But In hosting it's not working, whats wrong with new Telegram.Bot library or telegram server?
update
I checked with postman my hosting url, post man also cant connect to that url. what can be wrong with my codes?
This is response when i'm call update receiving URL in my hosting:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.10.34.35:443
I got problem, the certificate which we use should be valid one, not free.
For more information please study this link:
https://core.telegram.org/bots/webhooks

Microsoft Graph - Email Delivery Failure when using sendMail API

I'm having issue with https://graph.microsoft.com/v1.0/users/<userId>/sendMail.
I get 202 Accepted as response, however when I browsed to the user's mailbox above, I'm receiving delivery failure notification as below:
Delivery has failed to these recipients or groups:
<username>#outlook.com
Your message wasn't delivered because the recipient's email provider rejected it.
Remote Server returned '550 5.7.708 Service unavailable. Access denied, traffic not accepted from this IP. For more information please go to http://go.microsoft.com/fwlink/?LinkId=526653 AS(7171) [SYBPR01MB4428.ausprd01.prod.outlook.com]'
When I logon to Outlook and send email to <username>#outlook.com from <userId>'s Outlook, the email was sent successfully.
Anyone know what's happening here?
I've tried to add a SMTP connector, but doesn't fixed the problem. When SMTP connector send an email to test Outbound Email, it works fine as I can receive at <_username_>#outlook.com.
If you follow the link provided, it explains what is happening
5.7.708 Access denied, traffic not accepted from this IP
The majority of traffic from this tenant has been detected as suspicious and has resulted in a ban on sending ability for the tenant.
Ensure that any compromises or open relays have been resolved, and then contact support through your regular channel.
For more information, see Fix email delivery issues for error codes 5.7.700 through 5.7.750 in Exchange Online.

Sending Email from .NET using windows live smtp

I have configured smtp settings in web.config and I was able to successfully send email when working on my local machine. But when I uploaded the code on the server, its giving me following exception
Mailbox unavailable. The server response was: 5.7.3 Requested action aborted
Meanwhile, I also received an email from Microsoft telling me that an attempt to login to my account from a new location was blocked. I clearly understand the problem that server is in a different part of the world than where I usually login to a Windows Live account. That's why it is blocking the account to login. But I want it to login and send email using my credentials on from remote server. There must be some settings in Windows Live account but I failed to find one.
Contacting Hotmail Support Center first to find out if its really possible what you are intending to do might be helpful. I think if hotmail web administration has put a security check, it must be for a purpose of stopping such remote login activities.

Resources