Comments (6)
Thanks @helfrichmichael
Kinda jank...but I ended up adjusting the logic in deploy_impl.py
to account for a symbol as needed
@property
def version(self, name_separator="."):
"""Returns the version string for the App Engine services as a string.
name_sparator: Optional argument to be set if you need to split
username on symbol. Default: None
ex: ".", "-", "_"
Orginal: first.last-20190219
New: firstlast-20190219
https://github.com/google/loaner/issues/15
"""
user = getpass.getuser()
if name_separator is not None:
split_username = user.split(name_separator)
user = split_username[0] + split_username[1]
if self._version:
return self._version
return "{user}-{date}".format(
user=user,
date=datetime.datetime.strftime(datetime.datetime.now(), "%Y%m%d"),
)
from loaner.
Out of curiosity does your username start with admin_? If so, that would explain the issue since it has an underscore which is not permitted according to that error. If this is the case, we might be able to look into simplifying/stripping non-approved characters from usernames.
from loaner.
Ah so I've tried it logged in on 2 accounts.
admin@domain
first.last@domain
I assume admin is reserved by system so it changes it to admin_@cloudshell and it doesn't like . so changes that one to first_last@cloudshell
from loaner.
I had the same issue, using the compute engine vm, as gcp account names are eric_white.
Did the build as root without issue.
from loaner.
I noticed this is still open, and I'm currently running into the same issue with the first.last
username setup.
Is there a workaround other than running the build as root
or is that the suggested route to take?
from loaner.
So for what it's worth, this is defined here https://github.com/google/loaner/blob/master/loaner/deployments/deploy_impl.py#L272.
@CoreyGriffin and others - to get around this, you can add the following flag to your deployment script --version="name". You'll replace name with your name or something that meets the criteria for the versioning.
I.E. bash deployments/deploy.sh --version="testing" web prod.
from loaner.
Related Issues (20)
- [Question] How's the notifications/reminder email works? HOT 5
- [QUESTION] Where in the code are stored the devices when enrolled in Grab and Go HOT 1
- Is there a simple way to update a Datastore entity HOT 3
- Please incorporate Alan's version of GnG HOT 2
- Precondition Failed when unenrolling a device HOT 2
- Completely reset Loaner data/Downgrading issues HOT 3
- Exploring options where Chromebooks and Chromebase used in an organisation. Dont want to pin grabngo app to all users. HOT 3
- [QUESTION] Chrome app deprectiation HOT 2
- Loaner: 8719G03U8X HOT 3
- Newbie trying to get this to work ~ FAILED: Build did NOT complete successfully (0 packages loaded) HOT 1
- Another Newbie having problems - Error occurred during the fetch of repository 'io_bazel_rules_appengine
- Grab and Go issues: Multi domain option. HOT 1
- Device not found using device_identifier HOT 2
- 02368551_Chromebook extension needed until Jan 15th HOT 1
- 02346073_Chrome book extension needed until 18th Feb HOT 1
- Unable to enroll new devices to GnG loaner portal
- Cannot access to the web app locally HOT 9
- Could not find public key information in Chome Web Store Dashboard HOT 3
- Web app internal server error, DirectoryRPCError: Forbidden, initial Bootstrapping HOT 7
- Multiple Domain, first bootstrap login error unauthorized HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loaner.